With

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

SQL> create user naser identified by naser;

User created.
SQL> create user sumon identified by sumon;
User created.
SQL> GRANT create table,create user TO naser WITH ADMIN OPTION;
Grant succeeded.
SQL> GRANT create session TO NASER;
Grant succeeded.
SQL> conn naser/naser
Connected.
SQL> GRANT create user to sumon;
Grant succeeded.
SQL> grant create session to sumon
2 ;
grant create session to sumon
*
ERROR at line 1:
ORA-01031: insufficient privileges
SQL> conn scott/scott;
Connected.
SQL> grant create session to sumon;
Grant succeeded.
SQL> conn sumon/sumon;
Connected.
SQL> create user lubna identified by lubna;
User created.
SQL> conn scott/scott
Connected.
SQL> REVOKE create user from naser;
Revoke succeeded.
SQL> conn naser/naser
Connected.
SQL> create user nasrin identified by nasrin;
create user nasrin identified by nasrin
*
ERROR at line 1:
ORA-01031: insufficient privileges
SQL> conn sumon/sumon

Connected.
SQL> create user nasrin identified by nasrin;
User created.
SQL> conn scott/scott
Connected.
SQL> REVOKE create user FROM sumon;
Revoke succeeded.
SQL> conn sumon/sumon
Connected.
SQL> create user hasina identified by hasina;
create user hasina identified by hasina
*
ERROR at line 1:
ORA-01031: insufficient privileges

You might also like