Oracle 查询用户,表,授权相关语句 --授予权限 grant insert,select,update,delete on table to user;
grant dba,resource to ytpbl;
grant create any sequence to ytpbl;
--撤销 revoke
--Oracle查询用户,表相关信息... --用户 SELECT * FROM DBA_USERS; SELECT * FROM ALL_USERS; SELECT * FROM USER_USERS; --系统权限 SELECT * FROM DBA_SYS_PRIVS; SELECT * FROM SESSION_PRIVS; SELECT * FROM USER_SYS_PRIVS; --角色 SELECT * FROM USER_ROLE_PRIVS; SELECT * FROM DBA_ROLES; --对象权限 select * from user_tab_privs where table_name like '%T_MDM_SMS_MESSAGE_TYPE%'; select * from dba_tab_privs; select * from all_tab_privs; --表查询 select * from user_tab_comments; select * from user_col_comments