表の一覧を確認する

Pocket

【概要】
DBA_TABLESは、データベース内のリレーショナル表の一覧を簡単に示します。
【SQL文】
/*
|| ■表の一覧を確認する
||
|| 【項目の説明】
|| OWNER :表の所有者
|| TABLE_NAME :表の名前
|| TABLESPACE_NAME :表が設定されている表領域の名前。
|| パーティション表、一時表および索引構成表の場合は、NULL。
*/
set echo off
set line 80
set pages 1000

clear col
ttitle off

col owner for a20
col table_name for a30
col tablespace_name for a20

ttitle left ‘■■■ 表一覧情報 ■■■’
spool tbl_list_info.lis

SELECT owner
, table_name
, tablespace_name
FROM dba_tables
WHERE iot_type IS NULL
AND owner NOT IN
(‘APPQOSSYS’,’CTXSYS’,’DBSFWUSER’,’DBSNMP’,’GSMADMIN_INTERNAL’
,’MDSYS’,’OJVMSYS’,’OUTLN’,’SYS’,’SYSTEM’,’WMSYS’,’XDB’)
ORDER BY 1,2
;
spool off
clear col
ttitle off
set line 80

以上です (^^♪