oracle 查看特定用户所拥有的表

1.普通用户下 1.1查看user_tables视图 select table_name from user_tables; TABLE_NAME ------------------------------ PROJECT_MANAGE SALGRADE BONUS EMP DEPT // 1.2查看all_tables视图[sysdba用户下,或者普通用户都可以查看] select table_name from all_tables where owner='SCOTT'; TABLE_NAME ------------------------------ DEPT EMP BONUS SALGRADE PROJECT_MANAGE // 2.sysdba权限下 查看dba_tables视图 select table_name from dba_tables where owner= 'SCOTT'; TABLE_NAME ------------------------------ DEPT EMP BONUS SALGRADE PROJECT_MANAGE // 注意:all_objects视图也可以查看当前特定用户所有的表, 但是这个视图里面不光只有table,还有其他的该用户所拥有的对象 如:view,primary key,foreign key,procedure,function,sequence,... 

你可能感兴趣的:(oracle,function,user,table)