snippetModerate
How to find index organized table
Viewed 0 times
howorganizedfindindextable
Problem
I'm working on Oracle 11g database and I need to list all index-organized tables.
Is there a dba's view to query for that ?
Thanks
Is there a dba's view to query for that ?
Thanks
Solution
Here is the query you require:
The documentation states:
If this is an index-organized table, then IOT_TYPE is IOT,
IOT_OVERFLOW, or IOT_MAPPING. If this is not an index-organized table,
then IOT_TYPE is NULL.
SELECT TABLE_NAME
FROM DBA_TABLES
WHERE IOT_TYPE IS NOT NULL;The documentation states:
If this is an index-organized table, then IOT_TYPE is IOT,
IOT_OVERFLOW, or IOT_MAPPING. If this is not an index-organized table,
then IOT_TYPE is NULL.
Code Snippets
SELECT TABLE_NAME
FROM DBA_TABLES
WHERE IOT_TYPE IS NOT NULL;Context
StackExchange Database Administrators Q#51970, answer score: 14
Revisions (0)
No revisions yet.