MINI MINI MANI MO

Path : /opt/oracle/product/18c/dbhomeXE/rdbms/admin/
File Upload :
Current File : //opt/oracle/product/18c/dbhomeXE/rdbms/admin/privcust.sql

Rem Copyright (c) 1996, 2008, Oracle. All rights reserved.  
Rem
Rem   NAME
Rem     privcust.sql - Oracle Web Agent PL/SQL customization package.
Rem   PURPOSE
Rem     Set up some values to be used by Web Agent packages.
Rem   NOTES
Rem
Rem    MODIFIED   (MM/DD/YY)
Rem     ehanks     01/18/08 - Changing "grant all" to "grant execute" for
Rem                           security bug #6596784.
Rem     mmuppago   12/09/05 - Fix for 3434804: OWA packages should 
Rem                           not overwrite customers OWA_CUSTOM packages
Rem     mpal       07/09/97 -  Creation
Rem

create or replace package body OWA_CUSTOM is

        /*********************************************************************/
       /*  Global PLSQL Agent Authorization callback function -             */
      /*     It is used when PLSQL Agent's authorization scheme is set to  */
     /*      GLOBAL or CUSTOM when there is overriding OWA_CUSTOM package.*/ 
    /*       This is a default implementation. User should modify.       */
   /*********************************************************************/
   function authorize return boolean is
   begin
      owa_sec.set_protection_realm('To-be-defined realm');
      return FALSE;
   end;

begin /* OWA_CUSTOM package customization */

   /*******************************************************************/
   /* Set the PL/SQL Agent's authorization scheme --                  */
   /*   This should be modified to reflect the authorization need of  */
   /*   your PLSQL Agent                                              */
   /*******************************************************************/
   owa_sec.set_authorization(OWA_SEC.NO_CHECK);

end;
/
show errors

prompt Granting execute on owa_custom to public
grant execute on OWA_CUSTOM to public;

prompt Creating owa_custom synonym
create or replace public synonym OWA_CUSTOM for OWA_CUSTOM;

prompt Creating owa_global synonym
create or replace public synonym OWA_GLOBAL for OWA_CUSTOM;

OHA YOOOO