Professional Documents
Culture Documents
TCL Commands
TCL Commands
Enter password:
Connected to:
User created.
ERROR at line 1:
ORA-01921: role name 'STUDENT' conflicts with another user or role name
Role created.
CNAME VARCHAR2(20)
CADDRESS VARCHAR2(50)
CITY VARCHAR2(20)
CAGE NUMBER(38)
Revoke succeeded.
Grant succeeded.
Grant succeeded.
Grant succeeded.
SQL> exit
Disconnected from Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
C:\Windows\System32>sqlplus
Enter password:
Connected to:
CID CNAME
---------- --------------------
CADDRESS CITY
-------------------------------------------------- --------------------
CAGE
----------
1 nnn
#123 LDh
33
2 nisha
#145 Jal
26
CID CNAME
---------- --------------------
CADDRESS CITY
-------------------------------------------------- --------------------
CAGE
----------
ERROR at line 1:
SQL> exit
Disconnected from Oracle Database 11g Express Edition Release 11.2.0.2.0 - 64bit Production
C:\Windows\System32>sqlplus
Enter password:
Connected to:
CID CNAME
---------- --------------------
CADDRESS CITY
-------------------------------------------------- --------------------
CAGE
----------
1 nnn
#123 LDh
33
2 nisha
#145 Jal
26
CID CNAME
---------- --------------------
CADDRESS CITY
-------------------------------------------------- --------------------
CAGE
----------
CNAME CADDRESS
-------------------- --------------------------------------------------
nnn #123
nisha #145
SQL> commit;
Commit complete.
1 row deleted.
-------------------- --------------------------------------------------
nisha #145
SQL> rollback
2 ;
Rollback complete.
CNAME CADDRESS
-------------------- --------------------------------------------------
nnn #123
nisha #145
1 row updated.
CNAME CADDRESS
-------------------- --------------------------------------------------
nnn #555
nisha #145
Savepoint created.
SQL> update customer set caddress='#777' where cname='nisha';
1 row updated.
CNAME CADDRESS
-------------------- --------------------------------------------------
nnn #555
nisha #777
Savepoint created.
1 row deleted.
CNAME CADDRESS
-------------------- --------------------------------------------------
nisha #777
Rollback complete.
-------------------- --------------------------------------------------
nnn #555
nisha #777
Rollback complete.
CNAME CADDRESS
-------------------- --------------------------------------------------
nnn #555
nisha #145
SQL>