who changed my code ?-USER_OBJECTS -
Posted on June 8th, 2008 by admin
How can one see if somebody modified any code?
The source code for stored procedures, functions and packages are stored in the Oracle Data Dictionary.
One can detect code changes by looking at the LAST_DDL_TIME column in the USER_OBJECTS dictionary view.
Example:
SELECT OBJECT_NAME,
TO_CHAR(CREATED, ‘DD-Mon-RR HH24:MI’) CREATE_TIME,
TO_CHAR(LAST_DDL_TIME, ‘DD-Mon-RR HH24:MI’) MOD_TIME,
STATUS
FROM USER_OBJECTS
WHERE LAST_DDL_TIME > ‘&CHECK_FROM_DATE’;
Filed under: DataWarehousing, ERP, Interview Questions(& answers), Oracle Apps, PL/SQL, SQL
Leave a Reply
You must be logged in to post a comment.