MINI MINI MANI MO

Path : /opt/oracle/product/18c/dbhomeXE/ord/im/admin/
File Upload :
Current File : //opt/oracle/product/18c/dbhomeXE/ord/im/admin/impbs.sql

Rem
Rem impbs.sql
Rem 
Rem Copyright (c) 2003, 2017, Oracle and/or its affiliates. 
Rem All rights reserved.
REM 
Rem    NAME
Rem      impbs.sql - Oracle Multimedia inernal install script
Rem                   
Rem
Rem    DESCRIPTION
Rem      Internal installation script for Oracle Multimedia. Installs 
Rem      public package specifications, procedures and functions.
Rem
Rem    NOTES
Rem      
Rem
Rem    MODIFIED   (MM/DD/YY)
Rem     smavris    03/17/16 - Add grants for import callout (moved to SYS)
Rem     alexguti   02/23/16 - Create synonyms for new PL/SQL relational 
Rem			      interface
Rem     smavris    01/26/16 - Grant access to DBA
Rem     smavris    01/15/15 - Schema qualify
Rem

@@?/rdbms/admin/sqlsessstart.sql




REM Install Oracle Multimedia ORDSYS packages

REM Install Oracle Multimedia common error handling Specification
@@ordzpksp.plb
grant execute on ORDSYS.OrdImErrorCodes to ORDSYS;
grant execute on ORDSYS.OrdIMErrorCodes to ORDPLUGINS;
grant execute on ORDSYS.IM to public;
grant execute on ORDSYS.ORDUtil to public;
grant execute on ORDSYS.OrdPlsGwyUtil to public;
grant execute on SYS.ORDIMDPCallOuts to SELECT_CATALOG_ROLE;
grant execute on SYS.ORDIMDPCallOuts to EXECUTE_CATALOG_ROLE;
grant execute on SYS.ORDIMDPCallOuts to DATAPUMP_IMP_FULL_DATABASE;
grant execute on SYS.ORD_ADMIN to DBA;
CREATE OR REPLACE PUBLIC SYNONYM OrdPlsGwyUtil FOR ORDSYS.OrdPlsGwyUtil;

REM Install ORDSource Package
@@ordascex.sql
grant execute on ORDSYS.ORDSourceExceptions to public;

REM Install Oracle Multimedia Image Packages
@@ordipksp.plb
@@ordimpks.plb
@@ordispbs.plb
grant execute on ORDSYS.ORDIMG_PKG to PUBLIC;
grant execute on ORDSYS.ORDImageConstants to PUBLIC;
grant execute on ORDSYS.ORDImgExtCodec_Pkg to PUBLIC;

REM Install Oracle Multimedia Audio Package
@@ordapksp.plb
grant execute on ORDSYS.ORDAudio_Pkg to public;

REM Install Oracle Multimedia Video Package
@@ordvpksp.plb
grant execute on ORDSYS.ORDVideo_Pkg to public;

REM Install Oracle Multimedia ORDDoc Package
@@orddpksp.plb
grant execute on ORDSYS.ORDDoc_Pkg to public;
grant execute on ORDSYS.ORDDocExceptions to public;

REM Install DICOM Packages
@@ordcpksp.sql
grant execute on ordsys.ord_dicom       to public;
@@ordcrpsp.sql
grant execute on ordsys.ord_dicom_admin to ordadmin;

REM Create public synonyms
create or replace public synonym ord_dicom       for ordsys.ord_dicom;
create or replace public synonym ord_dicom_admin for ordsys.ord_dicom_admin;

REM Install ORDPLUGINS Packages
alter session set current_schema="ORDPLUGINS";

REM Install Source Plugin Specifications
@@ordahtsp.sql
@@ordabfsp.sql
grant execute on ORDPLUGINS.ORDX_HTTP_SOURCE to public;
grant execute on ORDPLUGINS.ORDX_FILE_SOURCE to public;

REM Install Oracle Multimedia Audio format plugin Specifications
@@ordadfs.sql
grant execute on ORDPLUGINS.ORDX_DEFAULT_AUDIO to public;

REM Install Oracle Multimedia Video format plugin specifications
@@ordvdfs.sql
grant execute on ORDPLUGINS.ORDX_DEFAULT_VIDEO to public;

REM Install Oracle Multimedia Doc format plugin specifications
@@ordddfs.sql
grant execute on ORDPLUGINS.ORDX_DEFAULT_DOC to public;

REM Install Oracle Multimedia PL/SQL Relational Interface ORD_IMAGE
@@ordirpsp.sql
grant execute on ORDSYS.ORD_IMAGE to public;

REM Install Oracle Multimedia PL/SQL Relational Interface ORD_AUDIO
@@ordarpsp.sql
grant execute on ORDSYS.ORD_AUDIO to public;

REM Install Oracle Multimedia PL/SQL Relational Interface ORD_VIDEO
@@ordvrpsp.sql
grant execute on ORDSYS.ORD_VIDEO to public;

REM Install Oracle Multimedia PL/SQL Relational Interface ORD_DOC
@@orddrpsp.sql
grant execute on ORDSYS.ORD_DOC to public;

REM Create Public Synonyms for PL/SQL Relational Interface
create or replace public synonym ORD_IMAGE for ORDSYS.ORD_IMAGE;
create or replace public synonym ORD_AUDIO for ORDSYS.ORD_AUDIO;
create or replace public synonym ORD_VIDEO for ORDSYS.ORD_VIDEO;
create or replace public synonym ORD_DOC for ORDSYS.ORD_DOC;

alter session set current_schema="ORDSYS";

@?/rdbms/admin/sqlsessend.sql

OHA YOOOO