首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > oracle >

如何查询用户拥有的对象权限

2012-05-30 
怎么查询用户拥有的对象权限SQL show userUSER 为 SYSSQL grant create table,create view to testS

怎么查询用户拥有的对象权限

SQL> show user;
USER 为 "SYS"
SQL> grant create table,create view to test;
SQL> grant create session to test;

SQL> conn test/test
已连接。
SQL> select * from user_tab_privs;

未选定行

SQL> select * from session_privs;

PRIVILEGE
----------------------------------------
CREATE SESSION
CREATE TABLE
CREATE VIEW
如果我不知test用户的密码,又不修改test原有用户的密码
有什么办法可以用SYS用户查询test用户的对象权限呀?

[解决办法]
SYS用户登录

select * from user_tab_privs where owner='TEST';;

热点排行