MINI MINI MANI MO
Rem
Rem $Header: sdo/admin/pg/opgremov.sql /main/6 2017/09/29 09:00:20 alwu Exp $
Rem
Rem opgremov.sql
Rem
Rem Copyright (c) 2013, 2017, Oracle and/or its affiliates.
Rem All rights reserved.
Rem
Rem NAME
Rem opgremov.sql - <one-line expansion of the name>
Rem
Rem DESCRIPTION
Rem <short description of component this file declares/defines>
Rem
Rem NOTES
Rem <other useful comments, qualifications, etc.>
Rem
Rem MODIFIED (MM/DD/YY)
Rem alwu 09/28/17 - shorten several API names
Rem alwu 06/08/16 - add logic to remove OPG_CTX
Rem alwu 12/14/15 - take out OJVM dependency & function
Rem currentTimeMillis
Rem alwu 12/03/15 - add SQL FILE metadata
Rem alwu 07/23/15 - fix bug 21226251
Rem alwu 01/21/14 - add mdsys to package names
Rem alwu 11/18/13 - add logic to take out the helper function
Rem alwu 11/18/13 - hook up utility
Rem alwu 11/18/13 - start
Rem alwu 11/18/13 - Created
Rem
Rem BEGIN SQL_FILE_METADATA
Rem SQL_SOURCE_FILE: sdo/admin/pg/opgremov.sql
Rem SQL_SHIPPED_FILE: md/admin/opgremov.sql
Rem SQL_PHASE: OPGREMOV
rem SQL_STARTUP_MODE: NORMAL
Rem SQL_IGNORABLE_ERRORS: NONE
Rem SQL_CALLING_FILE: sdo/admin/opge121.sql
Rem END SQL_FILE_METADATA
SET ECHO ON
SET FEEDBACK 1
SET NUMWIDTH 10
SET LINESIZE 80
SET TRIMSPOOL ON
SET TAB OFF
SET PAGESIZE 100
Rem ********************************************************************
Rem #16473696: Indicate Oracle-Supplied object
@@?/rdbms/admin/sqlsessstart.sql
Rem ********************************************************************
ALTER SESSION SET CURRENT_SCHEMA = MDSYS;
whenever sqlerror continue;
declare
stmt varchar2(32767);
begin
begin
stmt := 'drop package mdsys.opg_ctx_session'; execute immediate stmt;
exception when others then null;
end;
begin
stmt := 'drop package mdsys.opg_log'; execute immediate stmt;
exception when others then null;
end;
begin
stmt := 'drop package mdsys.opg_path'; execute immediate stmt;
exception when others then null;
end;
begin
stmt := 'drop public synonym opg_path'; execute immediate stmt;
exception when others then null;
end;
begin
stmt := 'drop package mdsys.opg_graphop'; execute immediate stmt;
exception when others then null;
end;
begin
stmt := 'drop public synonym opg_graphop'; execute immediate stmt;
exception when others then null;
end;
begin
stmt := 'drop package mdsys.opg_metrics'; execute immediate stmt;
exception when others then null;
end;
begin
stmt := 'drop public synonym opg_metrics'; execute immediate stmt;
exception when others then null;
end;
begin
stmt := 'drop package mdsys.opg_utl'; execute immediate stmt;
exception when others then null;
end;
begin
stmt := 'drop package mdsys.opg_rank'; execute immediate stmt;
exception when others then null;
end;
begin
stmt := 'drop public synonym opg_rank'; execute immediate stmt;
exception when others then null;
end;
begin
stmt := 'drop package mdsys.opg_apis'; execute immediate stmt;
exception when others then null;
end;
begin
stmt := 'drop public synonym opg_apis'; execute immediate stmt;
exception when others then null;
end;
begin
stmt := 'drop package mdsys.opg_ctx'; execute immediate stmt;
exception when others then null;
end;
begin
stmt := 'drop context OPG_CTX'; execute immediate stmt;
exception when others then null;
end;
begin
stmt := 'drop context OPG_CTX_SESSION'; execute immediate stmt;
exception when others then null;
end;
-- begin
-- stmt := 'drop function mdsys.currentTimeMillis'; execute immediate stmt;
-- exception when others then null;
-- end;
end;
/
Rem ********************************************************************
Rem #16473696: Indicate Oracle-Supplied object
@?/rdbms/admin/sqlsessend.sql
Rem ********************************************************************
OHA YOOOO