- 方法1:
根据指定用户名获得对应用户所拥有权限的表
select table_name, owner from all_tables where owner = 'scott';
- 方法2:
通过tab视图获得当前登录用户所有表和视图,通过tabletype过滤获得所有表
select * from tab where tabtype = 'table';
- 方法3:
根据user_tables表获得当前用户拥有所有表
select table_name from user_tables;
- 方法4:
根据sys表空间下all_object表获得指定用户指定类型对象(表)
select object_name from sys.all_objects where owner='scott' and object_type='table';