3477
社区成员
SQL> show user
USER is "SYS"
SQL> create user ken identified by ken;
User created.
SQL> grant create session to ken;
Grant succeeded.
SQL> conn scott/tiger;
Connected.
SQL> grant all on emp to ken with grant option;
Grant succeeded.
SQL> conn sys as sysdba;
Enter password:
Connected.
SQL> create user tom identified by tom;
User created.
SQL> grant create session to tom;
Grant succeeded.
SQL> conn ken/ken;
Connected.
SQL> grant all on scott.emp to tom with grant option;
Grant succeeded.
SQL> conn scott/tiger;
Connected.
SQL> revoke all on emp from ken;
Revoke succeeded.
SQL> conn tom/tom;
Connected.
SQL> select * from scott.emp;
select * from scott.emp
*
ERROR at line 1:
ORA-00942: table or view does not exist