Rem Rem $Header: rdbms/admin/xdbeo111.sql /main/4 2008/11/18 18:13:20 achoi Exp $ Rem Rem xdbeo111.sql Rem Rem Copyright (c) 2007, 2008, Oracle and/or its affiliates. Rem All rights reserved. Rem Rem NAME Rem xdbeo111.sql - XDB downgradE Drop objects for downgrade to 11.1 Rem Rem DESCRIPTION Rem This script drops objects and performs other downgrade actions Rem that would invalidate other objects used during the XDB Rem downgrade processing. Rem Rem NOTES Rem Rem Rem MODIFIED (MM/DD/YY) Rem achoi 11/13/08 - lrg3678340: move xdb_pi_trig to SYS Rem sipatel 09/29/08 - bug 7414934. drop Structured XMLIndex tables Rem sichandr 09/23/08 - drop XDB$REPOS tables Rem rburns 11/08/07 - drop objects for XDB Rem rburns 11/08/07 - Created Rem Rem ================================================================ Rem BEGIN XDB Object downgrade to 11.2.0 Rem ================================================================ -- uncomment for next release --@@xdbeo112.sql Rem ================================================================ Rem END XDB Object downgrade to 11.2.0 Rem ================================================================ Rem ================================================================ Rem BEGIN XDB Object downgrade to 11.1.0 Rem ================================================================ Rem Drop XMLIdxStatsMethods disassociate statistics from indextypes XDB.XMLIndex force; drop type xdb.XMLIdxStatsMethods force; Rem Drop Structured XMLIndex Tables (revert catxtbix) begin execute immediate 'drop package XDB.xtimetadata_pkg force'; exception when others then null; end; / begin execute immediate 'drop library XDB.xmltableindex_lib force'; exception when others then null; end; / begin execute immediate 'drop table xdb.xdb$xtabcols force'; exception when others then null; end; / begin execute immediate 'drop table xdb.xdb$xtabnmsp force'; exception when others then null; end; / begin execute immediate 'drop table xdb.xdb$xtab force'; exception when others then null; end; / Rem Drop repository metadata tables revoke execute on xdb.xdb$nlocks_t from public; drop table xdb.xdb$mounts; drop table xdb.xdb$repos; drop trigger sys.xdb_pi_trig; Rem ================================================================ Rem END XDB Object downgrade to 11.1.0 Rem ================================================================