DBA Hub

📋Steps in this guide1/1

Find nested tables in db

--- Script to find nested tables of a schema:

oracle configurationintermediate
by OracleDba
14 views
1

Find nested tables in db

--- Script to find nested tables of a schema:

Code/Command (click line numbers to comment):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
set pagesize 200
set lines 200
set long 999
col owner for a18
col table_name for a20
col table_type_owner for a20
col table_type_name for a20
col parent_table_name for a20
col parent_table_column for a20
SELECT owner, table_name, table_type_owner, table_type_name,
parent_table_name, parent_table_column,
LTRIM (storage_spec) storage_spec, LTRIM (return_type) return_type
FROM dba_nested_tables
WHERE owner='&SCHEMA_NAME'
And upper(table_name) like '&&TABLE_NAME'
ORDER BY owner;

Comments (0)

Please to add comments

No comments yet. Be the first to comment!