Basic Oracle Concepts and Programming Question:
Download Job Interview Questions and Answers PDF
How To Revoke CREATE SESSION Privilege from a User in Oracle?
Answer:
If you take away the CREATE SESSION privilege from a user, you can use the REVOKE command as shown in the following example script:
>.insqlplus /nolog
SQL> connect SYSTEM/globalguideline
SQL> REVOKE CREATE SESSION FROM dev;
Revoke succeeded.
SQL> GRANT CREATE SESSION TO dev;
Grant succeeded.
This script restored the CREATE SESSION privilege to user "dev", so you can continue other example scripts below.
>.insqlplus /nolog
SQL> connect SYSTEM/globalguideline
SQL> REVOKE CREATE SESSION FROM dev;
Revoke succeeded.
SQL> GRANT CREATE SESSION TO dev;
Grant succeeded.
This script restored the CREATE SESSION privilege to user "dev", so you can continue other example scripts below.
Download Oracle Database Interview Questions And Answers
PDF
Previous Question | Next Question |
How To Grant CREATE SESSION Privilege to a User in Oracle? | How To Lock and Unlock a User Account in Oracle? |