list table, table partition, index, index partition and lob from dba_objects : dba_objects « System Tables Views « Oracle PL / SQL

Oracle PL / SQL
1. Aggregate Functions
2. Analytical Functions
3. Char Functions
4. Constraints
5. Conversion Functions
6. Cursor
7. Data Type
8. Date Timezone
9. Hierarchical Query
10. Index
11. Insert Delete Update
12. Large Objects
13. Numeric Math Functions
14. Object Oriented Database
15. PL SQL
16. Regular Expressions
17. Report Column Page
18. Result Set
19. Select Query
20. Sequence
21. SQL Plus
22. Stored Procedure Function
23. Subquery
24. System Packages
25. System Tables Views
26. Table
27. Table Joins
28. Trigger
29. User Previliege
30. View
31. XML
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Oracle PL / SQL » System Tables Views » dba_objects 
list table, table partition, index, index partition and lob from dba_objects
    
SQL>
SQL> set echo off
SQL> set verify off
SQL> set pagesize 9999
SQL>
SQL> column object_name format a30
SQL> column tablespace_name format a30
SQL> column object_type format a12
SQL> column status format a1
SQL>
SQL> break on object_type skip 1
SQL>
SQL> select object_type, object_name,
  2         decodestatus, 'INVALID', '*''' status,
  3         decodeobject_type,
  4                  'TABLE', (select tablespace_name
  5                              from dba_tables
  6                             where table_name = object_name
  7                               and owner = upper('&1')),
  8                  'TABLE PARTITION', (select tablespace_name
  9                                        from dba_tab_partitions
 10                                       where partition_name = subobject_name
 11                                         and owner = upper('&1')),
 12                  'INDEX', (select tablespace_name
 13                              from dba_indexes
 14                             where index_name = object_name
 15                               and owner = upper('&1')),
 16                  'INDEX PARTITION', (select tablespace_name
 17                                        from dba_ind_partitions
 18                                       where partition_name = subobject_name
 19                                         and owner = upper('&1')),
 20                  'LOB', (select tablespace_name
 21                            from dba_segments
 22                           where segment_name = object_name
 23                             and owner = upper('&1')),
 24                  null tablespace_name
 25    from dba_objects a
 26   where owner = upper('&1')
 27   order by object_type, object_name
 28  /
Enter value for 1: column status format a10
Enter value for 1:
Enter value for 1: --

   
    
    
  
Related examples in the same category
1. Query dba_objects table group by object_type
2. Query object name by object id against dba_objects
3. List all not valid database objects
4. List all sys owned package name
5. Get all system packages
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.