Edit D:\app\Administrator\product\11.2.0\dbhome_1\RDBMS\ADMIN\xdbpatch.sql
Rem Rem $Header: rdbms/admin/xdbpatch.sql /st_rdbms_11.2.0.1.0_gen/1 2010/02/25 14:51:52 badeoti Exp $ Rem Rem xdbpatch.sql Rem Rem Copyright (c) 2002, 2010, Oracle and/or its affiliates. Rem All rights reserved. Rem Rem NAME Rem xdbpatch.sql - Branch Specific Minor Version Patch Script for XDB Rem Rem DESCRIPTION Rem Patches are minor releases of the database. This script, depending Rem on where it is checked in, attempts to migrate all the previous Rem minor versions of the database to the version it is checked in to. Rem Obviously, this is a no-op for the first major production release Rem in any version. In addition, the script is also expected to reload Rem all the related PL/SQL packages types when called via catpatch. Rem Rem NOTES Rem Dictionary changes are not supposed to be done in DB Minor versions, Rem We should conform to this directive in 10g. Also, several Rem irrelevant MODIFIED lines were deleted Rem Rem MODIFIED (MM/DD/YY) Rem badeoti 12/21/09 - ensure limited acl table access privs for public Rem bhammers 11/10/09 - 8760324, set 'Unstructured Present' flag Rem when upgrading XIDX from 11.2.0.1 to 11.2.0.2 Rem badeoti 02/24/10 - XbranchMerge badeoti_bug-9304342 from main Rem badeoti 02/16/10 - bug 9304342: fix-up complex type PDs Rem sidicula 01/11/08 - Grants to DBA & System Rem mrafiq 11/08/05 - calling xdbrelod Rem mrafiq 11/08/05 - fix for bug 4721297: calling catxdbv Rem rburns 08/17/04 - conditionally run dbmsxdbt Rem spannala 04/30/04 - revalidate xdb at the end of patch Rem najain 01/28/04 - call prvtxdz0 and prvtxdb0 Rem spannala 12/16/03 - fix to be correct for main Rem njalali 07/10/02 - Created Rem WHENEVER SQLERROR EXIT; EXECUTE dbms_registry.check_server_instance; WHENEVER SQLERROR CONTINUE; Rem Load XDB upgrade downgrade utilities (dbms_xdbmig_util) @@prvtxudu.plb Rem Fix schema-for-schemas in DBs upgraded from 9201 execute dbms_xdbmig_util.checkSchSchCfgKids; execute dbms_xdbmig_util.fixSchSchCfgKids; execute dbms_xdbmig_util.checkSchSchCfgKids; commit; Rem Fix corrupted complex type rows execute dbms_xdbmig_util.fixCfgPDs; execute dbms_xdbmig_util.checkCfgPDs; execute dbms_xdbmig_util.checkSchSchCfgKids; commit; Rem clean up updown utilities @@dbmsxuducu.sql -- Explicit grants to DBA,System; "any" privileges are no more applicable for -- XDB tables. Listing these specifically since there are certain tables -- for which we dont grant full access by default even to DBA & System. -- (eg, purely-dictionary tables like XDB$SCHEMA, XDB$TTSET etc.) grant all on XDB.XDB$RESOURCE to dba; grant all on XDB.XDB$RESOURCE to system with grant option; grant all on XDB.XDB$H_INDEX to dba; grant all on XDB.XDB$H_INDEX to system with grant option; grant all on XDB.XDB$H_LINK to dba; grant all on XDB.XDB$H_LINK to system with grant option; grant all on XDB.XDB$D_LINK to dba; grant all on XDB.XDB$D_LINK to system with grant option; grant all on XDB.XDB$NLOCKS to dba; grant all on XDB.XDB$NLOCKS to system with grant option; grant all on XDB.XDB$WORKSPACE to dba; grant all on XDB.XDB$WORKSPACE to system with grant option; grant all on XDB.XDB$CHECKOUTS to dba; grant all on XDB.XDB$CHECKOUTS to system with grant option; grant all on XDB.XDB$ACL to dba; grant all on XDB.XDB$ACL to system with grant option; grant all on XDB.XDB$CONFIG to dba; grant all on XDB.XDB$CONFIG to system with grant option; grant all on XDB.XDB$RESCONFIG to dba; grant all on XDB.XDB$RESCONFIG to system with grant option; grant all on XDB.XS$DATA_SECURITY to dba; grant all on XDB.XS$DATA_SECURITY to system with grant option; grant all on XDB.XS$PRINCIPALS to dba; grant all on XDB.XS$PRINCIPALS to system with grant option; grant all on XDB.XS$ROLESETS to dba; grant all on XDB.XS$ROLESETS to system with grant option; grant all on XDB.XS$SECURITYCLASS to dba; grant all on XDB.XS$SECURITYCLASS to system with grant option; declare suf varchar2(26); stmt varchar2(2000); begin select toksuf into suf from xdb.xdb$ttset where flags = 0; stmt := 'grant all on XDB.X$PT' || suf || ' to DBA'; execute immediate stmt; stmt := 'grant all on XDB.X$PT' || suf || ' to SYSTEM WITH GRANT OPTION'; execute immediate stmt; end; / --fix for lrg 1957560 --replaced all the other files by xdbrelod as it loads all the files --which were being loaded before including catxdbv which is needed for fixing --lrg 1957560 @@xdbrelod.sql
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de