Create grant permission command by querying user_objects table : user_objects « System Tables Data Dictionary « Oracle PL/SQL Tutorial






SQL>
SQL>
SQL>
SQL> SELECT   'GRANT EXECUTE ON ' || object_name || ' TO ' ||
  2           UPPER('&user_role') || ';'
  3  FROM     user_objects
  4  WHERE    object_type IN ('PACKAGE','PROCEDURE','FUNCTION')
  5  and      rownum < 50
  6  ORDER BY object_type, object_name;
Enter value for user_role:
old   2:          UPPER('&user_role') || ';'
new   2:          UPPER('') || ';'

GRANT EXECUTE ON CHITIME TO ;
GRANT EXECUTE ON GRPVAL TO ;
GRANT EXECUTE ON IS_OVERDUE TO ;
GRANT EXECUTE ON RECEIVE_MESSAGE TO ;
GRANT EXECUTE ON RULERSTR TO ;
GRANT EXECUTE ON TABCOUNT TO ;
GRANT EXECUTE ON TO_MMSDDSYYYY_OR_NULL TO ;
GRANT EXECUTE ON TO_NUMBER_OR_NULL TO ;
GRANT EXECUTE ON TRACEIT TO ;
GRANT EXECUTE ON VALUE_IN TO ;
GRANT EXECUTE ON CLASSPACKAGE TO ;
GRANT EXECUTE ON DATES TO ;
GRANT EXECUTE ON GENDER_TS TO ;

GRANT EXECUTE ON MYDATE TO ;
GRANT EXECUTE ON ONECUR TO ;
GRANT EXECUTE ON PARAMETERS TO ;
GRANT EXECUTE ON SALESPKG TO ;
GRANT EXECUTE ON SCOPES TO ;
GRANT EXECUTE ON TIMER TO ;
GRANT EXECUTE ON VALERR TO ;
GRANT EXECUTE ON WORKER_TS TO ;
GRANT EXECUTE ON WORKER_TYPE_TS TO ;
GRANT EXECUTE ON WORKPLACE_TYPE_TS TO ;
GRANT EXECUTE ON BULK_TEST TO ;
GRANT EXECUTE ON CLOSECUR TO ;
GRANT EXECUTE ON CREINDX TO ;

GRANT EXECUTE ON DELETE_CUST TO ;
GRANT EXECUTE ON DROPIT TO ;
GRANT EXECUTE ON DROP_IF_EXISTS TO ;
GRANT EXECUTE ON FCREATE TO ;
GRANT EXECUTE ON FLUSH TO ;
GRANT EXECUTE ON GET_LINE TO ;
GRANT EXECUTE ON P1 TO ;
GRANT EXECUTE ON PRINTLN TO ;
GRANT EXECUTE ON PROC0 TO ;
GRANT EXECUTE ON PROC1 TO ;
GRANT EXECUTE ON PROC2 TO ;
GRANT EXECUTE ON PROC3 TO ;
GRANT EXECUTE ON PROCA TO ;

GRANT EXECUTE ON PROCB TO ;
GRANT EXECUTE ON PUT_BOOLEAN TO ;
GRANT EXECUTE ON P_RUN_INSERT TO ;
GRANT EXECUTE ON ROW_AT_A_TIME_TEST TO ;
GRANT EXECUTE ON RUNDDL TO ;
GRANT EXECUTE ON SAVESTRINGTOFILE TO ;
GRANT EXECUTE ON SEND_MESSAGE TO ;
GRANT EXECUTE ON SHOWEMPS TO ;
GRANT EXECUTE ON SHOW_FILE TO ;
GRANT EXECUTE ON WAIT TO ;

49 rows selected.








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