How to get the list of external tables in oracle schema 11g

database, oracle, oracle11g, sql, sqlplus

Solution

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:

- http://docs.oracle.com/cd/E11882_01/server.112/e25513/statviews_1092.htm#REFRN20074

- http://docs.oracle.com/cd/E11882_01/server.112/e25513/statviews_5490.htm#REFRN26286

Problem

I want to get the list of only external tables in oracle. i tried to get the list using Select * from tab . But it return list of all the table including actual and external . But i only want list of external tables

Original source