Oracle Database Object List

{ Abhilash Kumar Bhattaram : Follow on LinkedIn }

One of the traditional problems of DBA’s are to keep a track of the Oracle Database objects before and after any major application deployment. Most Database deployments would have a change on…


This content originally appeared on DEV Community and was authored by Abhilash Kumar Bhattaram

{ Abhilash Kumar Bhattaram : Follow on LinkedIn }

One of the traditional problems of DBA's are to keep a track of the Oracle Database objects before and after any major application deployment. Most Database deployments would have a change on all kinds of objects which a development team may not be able to clarify in numbers. In addition to the tables and indexes which are seen as probably the most visible changes many DBA's lose track of the status of objects during deployments. The different kind of objects are table , index , synonym , package , procedure , function , etc.

The below script would show you the distinct objects in your database in case you are looking at this the first time.

SQL> select distinct(object_type) from all_objects;

It's very difficult to get a snapshot of the current objects , so I came up with my utility objlst.sql . This will quickly give me a snapshot of all database objects accounts segregated per database user and their sum.

Below is the my objlst utility
https://github.com/abhilash-8/ora-tools/blob/master/objlst.sql

Below is a pictorial representation of what the SQL would do

Summary of Objects per user
Summary of Objects per user

Summary of Invalid Objects per user

Summary of Invalid Objects per user

Now as you can see having such a script would not only help me get a snapshot of my objects but also helps me compare the objects after a database deployment.

Many applications are sensitive to invalid objects , this scripts clearly points out which objetcs are invalid without much of an effort.


This content originally appeared on DEV Community and was authored by Abhilash Kumar Bhattaram


Print Share Comment Cite Upload Translate Updates
APA

Abhilash Kumar Bhattaram | Sciencx (2024-07-13T18:35:37+00:00) Oracle Database Object List. Retrieved from https://www.scien.cx/2024/07/13/oracle-database-object-list/

MLA
" » Oracle Database Object List." Abhilash Kumar Bhattaram | Sciencx - Saturday July 13, 2024, https://www.scien.cx/2024/07/13/oracle-database-object-list/
HARVARD
Abhilash Kumar Bhattaram | Sciencx Saturday July 13, 2024 » Oracle Database Object List., viewed ,<https://www.scien.cx/2024/07/13/oracle-database-object-list/>
VANCOUVER
Abhilash Kumar Bhattaram | Sciencx - » Oracle Database Object List. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/07/13/oracle-database-object-list/
CHICAGO
" » Oracle Database Object List." Abhilash Kumar Bhattaram | Sciencx - Accessed . https://www.scien.cx/2024/07/13/oracle-database-object-list/
IEEE
" » Oracle Database Object List." Abhilash Kumar Bhattaram | Sciencx [Online]. Available: https://www.scien.cx/2024/07/13/oracle-database-object-list/. [Accessed: ]
rf:citation
» Oracle Database Object List | Abhilash Kumar Bhattaram | Sciencx | https://www.scien.cx/2024/07/13/oracle-database-object-list/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.