我想知道到底哪一个用户对该表具有update权限
SQL> create user testhao identified by testhao;
User created.
SQL> grant connect,resource to testhao;
Grant succeeded.
SQL> conn testhao/testhao
Connected.
SQL> select count(*) from all_tab_privs
2 ;
COUNT(*)
----------
2028
SQL> select count(*) from dba_tab_privs;
select count(*) from dba_tab_privs
*
ERROR at line 1:
ORA-00942: table or view does not exist
SQL> conn / as sysdba
Connected.
SQL> grant select on dba_tab_privs to testhao;
Grant succeeded.
SQL> conn testhao/testhao
Connected.
SQL> select count(*) from dba_tab_privs;
COUNT(*)
----------
4354
User created.
SQL> grant connect,resource to testhao;
Grant succeeded.
SQL> conn testhao/testhao
Connected.
SQL> select count(*) from all_tab_privs
2 ;
COUNT(*)
----------
2028
SQL> select count(*) from dba_tab_privs;
select count(*) from dba_tab_privs
*
ERROR at line 1:
ORA-00942: table or view does not exist
SQL> conn / as sysdba
Connected.
SQL> grant select on dba_tab_privs to testhao;
Grant succeeded.
SQL> conn testhao/testhao
Connected.
SQL> select count(*) from dba_tab_privs;
COUNT(*)
----------
4354
SQL> SELECT grantee FROM dba_tab_privs
WHERE table_name=your_table_name AND PRIVILEGE='UPDATE';
WHERE table_name=your_table_name AND PRIVILEGE='UPDATE';
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/13165828/viewspace-606978/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/13165828/viewspace-606978/