New 8
New 8
New 8
15063]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\WINDOWS\system32>set oracle_sid=opr
SERVICE_NAME: oracleserviceopr
TYPE : 10 WIN32_OWN_PROCESS
STATE : 4 RUNNING
(STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0
C:\WINDOWS\system32>sqlplus /nolog
TABLESPACE_NAME
------------------------------
SYSTEM
SYSAUX
UNDOTBS1
TEMP
Tablespace created.
TABLESPACE_NAME STATUS
------------------------------ ---------
SYSTEM ONLINE
SYSAUX ONLINE
UNDOTBS1 ONLINE
TEMP ONLINE
USERS ONLINE
Tablespace created.
TABLESPACE_NAME STATUS
------------------------------ ---------
SYSTEM ONLINE
SYSAUX ONLINE
UNDOTBS1 ONLINE
TEMP ONLINE
USERS ONLINE
TEMP1 ONLINE
6 rows selected.
Database altered.
Database altered.
Tablespace altered.
Tablespace altered.
SQL> ALTER TABLESPACE users OFFLINE;
Tablespace altered.
Tablespace altered.
Table created.
Grant succeeded.
Synonym dropped.
Synonym created.
Synonym created.
Synonym dropped.
Synonym created.
SQL> create user vikram identified by abc default tablespace users temporary
tablespace temp1 quota 15m on data password expire;
create user vikram identified by abc default tablespace users temporary tablespace
temp1 quota 15m on data password expire
*
ERROR at line 1:
ORA-00959: tablespace 'DATA' does not exist
SQL> create user vikram identified by abc default tablespace users temporary
tablespace temp1 quota 15m on data password expire;
create user vikram identified by abc default tablespace users temporary tablespace
temp1 quota 15m on data password expire
*
ERROR at line 1:
ORA-00959: tablespace 'DATA' does not exist
SQL> create user vikram identified by abc default tablespace users temporary
tablespace temp1 quota 15m on users password expire;
User created.
User created.
Grant succeeded.
9 rows selected.
Table created.
SQL> /
Enter value for sno: 101
Enter value for sname: vikram
Enter value for fees: 10000
old 1: insert into student values(&sno,'&sname',&fees)
new 1: insert into student values(101,'vikram',10000)
insert into student values(101,'vikram',10000)
*
ERROR at line 1:
ORA-01438: value larger than specified precision allowed for this column
Table altered.
1 row created.
SQL> /
Enter value for sno: john
Enter value for sname: sd
Enter value for fees: ds
old 1: insert into student values(&sno,'&sname',&fees)
new 1: insert into student values(john,'sd',ds)
insert into student values(john,'sd',ds)
*
ERROR at line 1:
ORA-00984: column not allowed here
SQL> /
Enter value for sno: 102
Enter value for sname: john
Enter value for fees: 70000
old 1: insert into student values(&sno,'&sname',&fees)
new 1: insert into student values(102,'john',70000)
1 row created.
SQL> /
Enter value for sno: 103
Enter value for sname: smith
Enter value for fees: 60000
old 1: insert into student values(&sno,'&sname',&fees)
new 1: insert into student values(103,'smith',60000)
1 row created.
SQL> commit;
Commit complete.
3 rows deleted.
SQL> commit;
Commit complete.
User altered.
Table created.
1 row created.
USERNAME DEFAULT_TABLESPACE
------------------------------ ------------------------------
VC USERS
VIKRAM USERS
OUTLN SYSTEM
SYS SYSTEM
SYSTEM SYSTEM
DIP SYSTEM
ORACLE_OCM SYSTEM
APPQOSSYS SYSAUX
DBSNMP SYSAUX
9 rows selected.
SQL>
SQL> connect sys'
Enter password:
ERROR:
ORA-01017: invalid username/password; logon denied
USERNAME DEFAULT_TABLESPACE
------------------------------ ------------------------------
VC USERS
VIKRAM USERS
OUTLN SYSTEM
SYS SYSTEM
SYSTEM SYSTEM
DIP SYSTEM
ORACLE_OCM SYSTEM
APPQOSSYS SYSAUX
DBSNMP SYSAUX
9 rows selected.
Table created.
1 row created.
Grant succeeded.
no rows selected