Create drop command by query the user_objects table : user_objects « System Tables Data Dictionary « Oracle PL/SQL Tutorial






SQL>
SQL>
SQL>
SQL>
SQL> SELECT    'DROP ' || object_type || ' ' || object_name || ';'
  2  FROM      user_objects
  3  WHERE     object_type IN ('PACKAGE','PACKAGE BODY','PROCEDURE',
  4                         'FUNCTION','TRIGGER')
  5  and       rownum < 50
  6  ORDER BY  object_type;

DROP FUNCTION CHITIME;
DROP FUNCTION RULERSTR;
DROP FUNCTION TO_NUMBER_OR_NULL;
DROP FUNCTION TRACEIT;
DROP FUNCTION TO_MMSDDSYYYY_OR_NULL;
DROP FUNCTION IS_OVERDUE;
DROP FUNCTION RECEIVE_MESSAGE;
DROP FUNCTION TABCOUNT;
DROP FUNCTION VALUE_IN;
DROP PACKAGE PARAMETERS;
DROP PACKAGE ONECUR;
DROP PACKAGE WORKER_TS;
DROP PACKAGE DATES;

DROP PACKAGE WORKPLACE_TYPE_TS;
DROP PACKAGE WORKER_TYPE_TS;
DROP PACKAGE VALERR;
DROP PACKAGE SCOPES;
DROP PACKAGE CLASSPACKAGE;
DROP PACKAGE GENDER_TS;
DROP PACKAGE BODY WORKER_TYPE_TS;
DROP PACKAGE BODY WORKER_TS;
DROP PACKAGE BODY GENDER_TS;
DROP PACKAGE BODY SCOPES;
DROP PACKAGE BODY PARAMETERS;
DROP PACKAGE BODY WORKPLACE_TYPE_TS;
DROP PACKAGE BODY DATES;

DROP PACKAGE BODY CLASSPACKAGE;
DROP PACKAGE BODY SALESPKG;
DROP PACKAGE BODY VALERR;
DROP PROCEDURE DROPIT;
DROP PROCEDURE FLUSH;
DROP PROCEDURE BULK_TEST;
DROP PROCEDURE CLOSECUR;
DROP PROCEDURE ROW_AT_A_TIME_TEST;
DROP PROCEDURE SAVESTRINGTOFILE;
DROP PROCEDURE PUT_BOOLEAN;
DROP PROCEDURE CREINDX;
DROP PROCEDURE GET_LINE;
DROP PROCEDURE P_RUN_INSERT;

DROP PROCEDURE P1;
DROP PROCEDURE WAIT;
DROP PROCEDURE SEND_MESSAGE;
DROP PROCEDURE PRINTLN;
DROP PROCEDURE DROP_IF_EXISTS;
DROP PROCEDURE SHOWEMPS;
DROP PROCEDURE DELETE_CUST;
DROP PROCEDURE FCREATE;
DROP PROCEDURE RUNDDL;
DROP PROCEDURE PROCA;

49 rows selected.

SQL>
SQL>








30.90.user_objects
30.90.1.Check user_objects for object name
30.90.2.Check the package status in user_objects
30.90.3.Check function/procedure status
30.90.4.Check the status for all stored procedures is by using the Oracle data dictionary view USER_OBJECTS
30.90.5.Get invalid table objects by joining user_segments and user_objects
30.90.6.Get all invalid user objects in user_objects table
30.90.7.Create drop command by query the user_objects table
30.90.8.Create grant permission command by querying user_objects table
30.90.9.Query user_objects for all packages, procedures and functions
30.90.10.Query user_objects for user-defined data type
30.90.11.Recompile all invalid package
30.90.12.Query user_objects for all java classes
30.90.13.Query user_objects for all PL/SQL code
30.90.14.Get Object id from user_objects
30.90.15.Join sys.col$ and user_objects
30.90.16.Query user_objects for object status
30.90.17.Query user_objects for your functions and procedures
30.90.18.User and its average object id
30.90.19.Show the procedure is marked invalid **
30.90.20.Behavior of dependent objects.
30.90.21.Finding, Validating, and Describing Packages
30.90.22.If procedure is valid