[英]How to get the list of external tables in oracle schema 11g
I want to get the list of only external tables in oracle. 我想获取oracle中仅外部表的列表。 i tried to get the list using Select * from tab .
我试图使用Select * from tab获得列表。 But it return list of all the table including actual and external .
但是它返回所有表的列表,包括实际的和外部的。 But i only want list of external tables
但是我只想要外部表的列表
Use 采用
select *
from all_external_tables;
to see all external tables your user as access to. 查看用户访问的所有外部表。 To see them for a specific schema/user:
要为特定的架构/用户查看它们,请执行以下操作:
select *
from all_external_tables
where owner = 'ARTHUR';
If you only want to see the ones owned by your current user, use 如果您只想查看当前用户拥有的那些,请使用
select *
from user_external_tables;
To see all table that are not external tables use this: 要查看不是外部表的所有表,请使用以下命令:
select ut.table_name
from user_tables ut
where not exists (select 42
from user_external_tables uet
where uet.table_Name = ut.table_name);
More details in the manual: 手册中的更多详细信息:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.