Complete Checklist for Manual Upgrade to Oracle Database 11gR2 (11.2) (文档 ID 837570.1)

In this Document

Purpose
Ask Questions,Get Help,And Share Your Experiences With This Article
Scope
Details
References

APPLIES TO:

Oracle Database - Enterprise Edition - Version 9.2.0.7 to 9.2.0.7 [Release 9.2]
Oracle Database - Standard Edition - Version 9.2.0.8 to 11.2.0.4 [Release 9.2 to 11.2]
Oracle Database - Enterprise Edition - Version 9.2.0.8 to 11.2.0.4 [Release 9.2 to 11.2]
Information in this document applies to any platform.

PURPOSE

This document is created for use as a guideline and checklist when manually upgrading from Oracle 9iR2 (9.2),Oracle 10gR1 (10.1),Oracle 10gR2 (10.2) or Oracle 11gR1 (11.1) to Oracle 11gR2 (11.2).

Ask Questions,And Share Your Experiences With This Article

Would you like to explore this topic further with other Oracle Customers,Oracle Employees,and Industry Experts?

Click here to join the discussion where you can ask questions,get help from others,and share your experiences with this specific article.
Discover discussions about other articles and helpful subjects by clickinghereto access the mainMy Oracle Support Communitypage for Database Install/Upgrade.

SCOPE

Database Administrators,Support

DETAILS

Recommendations for Source database

1) Ensure that all database components/objectsprovided by Oracleare VALIDin the source database prior to starting the upgrade.

2) Ensure that you do not have duplicate objects in the SYS and SYSTEM schema.

The following objects are permissible duplicate objects:

OBJECT_NAME OBJECT_TYPE

------------------------------ -------------------
AQ$_SCHEDULES TABLE
AQ$_SCHEDULES_PRIMARY INDEX
DBMS_REPCAT_AUTH PACKAGE
DBMS_REPCAT_AUTH PACKAGE BODY

Note:All these checks are done when you execute step 3 (dbupgdiag.sql)

3) Disable the custom triggers that would fire before/after DDL and enable them after the upgrade is complete.

4)Prior toUpgrading a database with XML Database(XDB) installed or installing XDB,be sure to run the code mentioned inNote 1573175.1"Upgrading or Installing XDB could result in data loss if XDB_INSTALLATION_TRIGGER exists " to determine if any objects need to be dropped. Please note,failure to follow the steps listed below could result in data loss of user objects like tables,indexes


Requirements and recommendations for target database

  • Check the certification of Oracle 11gR2 with your Platform/Operating system before downloading and installing Oracle 11gR2. Please check the certification information on My Oracle Support.
  • Download and Install Oracle 11g Release 2 in a new Oracle Home and make sure there are no relinking errors.
  • Install the latest available Patchset from Metalink (if available).
  • Install the latest PSU (Patch Set Update) patch. you can refer below document to download the latest PSU patch for 11g R2 release.

Doc ID 1454618.1 - Quick Reference to Patch Numbers for Database PSU,SPU(CPU),Bundle Patches and Patchsets

e.g.,if you are upgrading to 11.2.0.4 version then it is recommended to apply the latest PSU patch released for 11.2.0.4 version.

  • Install the latest opatch available for your platform and database version (if available).
  • Install the latest available Critical Patch Update (if available).
  • Either take a Cold or Hot backup of your source database (advisable to have cold backup).
  • If you have XDB installed then please install the PSE for 10368698 to the 11.2.0.2 Home before doing the upgrade. If there is not an existing one-off patch for your platform please open an SR to request the one-off patch. This defect can cause certain databases that are XDB enabled to take a great deal of time to upgrade. The bug10368698 is fixed in 11.2.0.3.
  • If you have XDB installed then the install the fix forBug 10419629in the 11.2.0.2.0 home prior to upgrade . Please referNote 1305561.1While Upgrading From 10.2.0.4.0 To 11.2.0.2.0 Catupgrd.sql=ORA-31061 ORA-19202 LSX-23
  • If the XML database (XDB) component is installed,you must set SHARED_POOL_SIZE = 250M and JAVA_POOL_SIZE = 250M or higher before upgrading otherwise you may run into the issue described in the following article
    Note 1127179.1ORA-07445 [qmkmgetConfig()+52] During Catupgrd.sql (11.2.0.1).

If ASMM is configured on the database,set both parameters as indicated above to guarantee a minimum value for those pools.

  • For an awareness of performance-related issues in 11.2.0.2 . Please referNote 1320966.1"Things to Consider Before Upgrade to 11.2.0.2 in Relation to Database Performance"
  • For an awareness of SQL profile related known issue,please referBUG 13646689- SQL PROFILES LOST AFTER UPGRADE ORA-00001 (SYS.I_SQLOBJ$AUXDATA_PKEY) . Currently development is working on this bug . SQL PROFILES will be lost when upgrading from 10.2 releases if following SQL statement return rows .
    select sp.signature,sp.category,count(*) from sqlprof$ sp,sqlprof$desc sd,sql$ s
    where sp.signature = sd.signature(+) and sp.signature = s.signature
    group by sp.signature,sp.category having count(*) > 1;
  • For an awareness of Oracle Text related issues in 11.2.0.4 if using Text,then please refer Oracle Text Release 11.2.0.4.0 Mandatory Patches (Doc ID1608029.1)
  • If Mitigation Patch 19721304 is applied at source database,then Oracle JVM component has been disabled. You might get the following error while upgrading the database.
ORA-02290 - check constraint (SYS.JAVA_DEV_DISABLED) violated.

Enable Oralce JVM java component at the source database before start upgrading the database .

Connect to the database as a SYSDBA user
SQL> exec dbms_java_dev.enable;

Refer:Database Upgrade failed with Errors “ORA-02290: check constraint (SYS.JAVA_DEV_DISABLED) violated” & “ORA-04045: SYS.DBMS_ISCHED” (Doc ID1985725.1)

NOTE : This step is ONLY applicable if you have applied Mitigation Patch on the source database

Compatibility Matrix


Minimum version of the database that can be directly upgraded to Oracle 11g Release 2 (11.2)

Source Database Target Database
9.2.0.8 or higher 11.2.x
10.1.0.5 or higher 10.2.0.2 or higher 11.1.0.6 or higher 11.2.x


The following database versions will require an indirect upgrade path:

Source Database Upgrade Path for Target Database
Target Database
7.3.3 (or lower) ----> 7.3.4 -> 9.2.0.8 ----> 11.2.x
8.0.5 (or lower) 8.0.6 -> 9.2.0.8 8.1.7 (or lower) 8.1.7.4 -> 10.2.0.2(or any higher 10GR2 version) 9.0.1.3 (or lower) 9.0.1.4 -> 10.2.0.2 (or any higher 10GR2 version) 9.2.0.7(or lower) 9.2.0.8 11.2.x


For example:

If source database is 8.1.7.0.0,the upgrade path to be followed is as below:
8.1.7.0.0 --> 8.1.7.4 --> 10.2.0.2(or any higher 10GR2 version)--> 11.2.x.

Reminder :


9.2.0.8 patchset :Patch:4547809
10.1.0.5 patchset :Patch:4505133
10.2.0.2 patchset :Patch:4547817

To get quickly id of a patchset :
Note 438049.1: How To Find RDBMS patchsets on My Oracle Support
Note 753736.1: Quick Reference to Patchset Patch Numbers

Pre-Upgrade Steps

In this section all the steps need to be performed after having set the environment of the previous version of the Oracle Database. Note that the database must be running in normal mode in the old release.

To download and use the latest Pre-Upgrade Information Tool see the following:
How to Download and Run Oracle's Database Pre-Upgrade UtilityNote 884522.1

or

Run the Pre-Upgrade Information Tool for Collecting Pre-Upgrade Information

Step1

  • Log into the system as the owner of the Oracle Database 11g Release 2 (11.2) Oracle Home directory.
  • Copy the Pre-Upgrade Information Tool (utlu112i.sql) from the Oracle Database 11g Release 2 (11.2) ORACLE_HOME/rdbms/admin directory to a directory outside of the Oracle Home,such as the temporary directory on your system.

$ORACLE_HOME/rdbms/admin/utlu112i.sql


Failure to run the pre-upgrade tool (utlu112i.sql) will result in the following error while running the catupgrd.sql script :

SQL> SELECT TO_NUMBER('MUST_BE_SAME_TIMEZONE_FILE_VERSION')
2 FROM registry$database
3 WHERE tz_version != (SELECT version from v$timezone_file);
SELECT TO_NUMBER('MUST_BE_SAME_TIMEZONE_FILE_VERSION')
*
ERROR at line 1:
ORA-01722: invalid number


It is required to restore the database back to previous version in order to run the preupgrade tool (utlu112i.sql ) .


Step 2

  • Change to the directory where utlu112i.sql had been copied in the previous step.
  • Start SQL*Plus and connect to the database instance as a user with SYSDBA privileges. Then run and spool the utlu112i.sql file. Please note that the database should be started using the source Oracle Home .
$sqlplus'/assysdba'
SQL>spoolupgrade_info.log
SQL>@utlu112i.sql
SQL>spooloff
SQL>


Check the spool file and examine the output of the Upgrade Information Tool.
The sections which follow describe the output of the Upgrade Information Tool.
For sample output,Clickhere

Database
This section displays global database information about the current database,such as the database name,release number and compatibility level. A warning is displayed if you must adjust the COMPATIBLE initialization parameter before the database is upgraded.

Logfiles
This section displays a list of redo log files in the current database whose size is less than 4 MB. For each log file,the file name,group number and recommended size is displayed.
In a manual upgrade using SQL scripts and utilities,new files of at least 4 MB (preferably 10 MB) must be created in the current database,and any redo log files less than 4 MB must be dropped before the database is upgraded. These tasks are performed automatically by the Database Upgrade Assistant.

Tablespaces
This section displays a list of tablespaces in the current database. For each tablespace,the tablespace name and minimum required size is displayed. In addition,a message is displayed if the tablespace is adequate for the upgrade.In a manual upgrade using SQL scripts and utilities,space must be added to tablespaces that do not have enough free space in the current database. These tablespace adjustments must be made before the database is upgraded. This task is performed automatically by the Database Upgrade Assistant.

Update Parameters
This section displays a list of initialization parameters in the parameter file of the current database that must be adjusted before the database is upgraded. The adjustments must be made to the parameter file after it is copied to the new Oracle Database 11g release.

Deprecated Parameters
This section displays a list of initialization parameters in the parameter file of the current database that are deprecated in the new Oracle Database 11g release.Obsolete Parameters This section displays a list of initialization parameters in the parameter file of the current database that are obsolete in the new Oracle Database 11g release2 (11.2). Obsolete initialization parameters must be removed from the parameter file before the database is upgraded.

Appendix A: "Deprecated Initialization Parameters" for a list of initialization parameters that are deprecated in Oracle Database 11g release 2 (11.2).

Obsolete Parameters:
This section displays a list of initialization parameters in the parameter file of the current database that are obsolete in the new Oracle Database 11g release 2 (11.2). Obsolete parameters need to be removed from the parameter file before the database is upgraded. Obsolete parameters' means parameters which are no longer valid (or) in use.
Appendix B:"Obsolete Initialization Parameters" for a list of initialization parameters that are obsolete in Oracle Database 11g release 2 (11.2)

Components
This section displays a list of database components in the new Oracle Database 11g release 2 (11.2) that are upgraded or installed when the current database is upgraded.

Miscellaneous Warnings
This section provides warnings about specific situations that might require attention before or after the upgrade.

SYSAUX Tablespace
This section displays the minimum required size for the SYSAUX tablespace which is required in the new Oracle Database 11g release 2 (11.2). The SYSAUX tablespace must be created if it does not exist (in Oracle 9i ) after the new release is started and before the upgrade scripts are invoked.

Note: If SYSAUX was created in 9i then it must be dropped and re-created after starting in the new release. If created in 10g or later then it can be left there and used.

Preparing Database for Upgrade

Step3

Check for the integrity of the source database.

Check for the integrity of the source database prior to starting the upgrade by downloading and running the dbupgdiag.sql script from the My Oracle Support article below:

Note 556610.1 Script to Collect DB Upgrade/Migrate Diagnostic Information (dbupgdiag.sql)


If the dbupgdiag.sql script reports any invalid objects,run $ORACLE_HOME/rdbms/admin/utlrp.sql (multiple times) to validate the invalid objects in the database until there is no change in the number of invalid objects.

$cd$ORACLE_HOME/rdbms/admin
$sqlplus"/assysdba"
SQL>@utlrp.sql


After validating the invalid objects,re-run dbupgdiag.sql in the database once again and make sure that everything is fine.

It is advisable to do a Health Check using "hcheck.sql" script .Please refer following article to download the script .

Note 136697.1hcheck.sql" script to check for known problems in Oracle8i,Oracle9i,Oracle10g and Oracle 11g



Step 4

Deprecated CONNECT Role

After upgrading to Oracle Database 11g Release 2 (11.2) from Oracle Database9i Release 2 (9.2) or Oracle Database 10g Release 1 (10.1),the CONNECT role has only the CREATE SESSION privilege; the other privileges granted to the CONNECT role in earlier releases are revoked during the upgrade. To identify which users and roles in your database are granted the CONNECT role,use the following query:

SELECTgranteeFROMdba_role_privs
WHEREgranted_role='CONNECT'and
granteeNOTIN(
'SYS','OUTLN','SYSTEM','CTXSYS','DBSNMP',
'LOGSTDBY_ADMINISTRATOR','ORDSYS',
'ORDPLUGINS','OEM_MONITOR','WKSYS','WKPROXY',
'WK_TEST','WKUSER','MDSYS','LBACSYS','DMSYS',
'WMSYS','EXFSYS','SYSMAN','MDDATA',
'SI_INFORMTN_SCHEMA','XDB','ODM');


If users or roles require privileges other than CREATE SESSION,then grant the specific required privileges prior to upgrade.
The upgrade scripts adjust the privileges for the Oracle-supplied users.

In Oracle 9.2.x and 10.1.x CONNECT role includes the following privileges:

SELECTGRANTEE,PRIVILEGE
FROMDBA_SYS_PRIVS
WHEREGRANTEE='CONNECT'

GRANTEEPRIVILEGE
-----------------------------
CONNECTCREATEVIEW
CONNECTCREATETABLE
CONNECTALTERSESSION
CONNECTCREATECLUSTER
CONNECTCREATESESSION
CONNECTCREATESYNONYM
CONNECTCREATESEQUENCE
CONNECTCREATEDATABASELINK


From Oracle 10.2,'CONNECT' role only includes 'CREATE SESSION' privilege.

Step 5

Create script for DBLINK (in case the database has to be downgraded again).

During the upgrade to Oracle Database 11g Release 2 (11.2) from Oracle Database 9i Release 2 (9.2) or Oracle Database 10g Release 1 (10.1),any passwords in database links are encrypted. To downgrade to the original release,all of the database links with encrypted passwords must be dropped prior to the downgrade. Consequently,the database links do not exist in the downgraded database. If you anticipate a requirement to be able to downgrade to your original release,then save the information about affected database links from the SYS.LINK$ table,so that you can re-create the database links after the downgrade.

SELECT'CREATE'||DECODE(U.NAME,'PUBLIC','public')||'DATABASELINK'||CHR(10)
||DECODE(U.NAME,Null,'SYS','',U.NAME||'.')||L.NAME||chr(10)
||'CONNECTTO'||L.USERID||'IDENTIFIEDBY"'||L.PASSWORD||'"USING
'''||L.HOST||''''
||chr(10)||';'TEXT
FROMSYS.LINK$L,SYS.USER$U
WHEREL.OWNER#=U.USER#;



Step 6

Check for TIMESTAMP WITH TIMEZONE Datatype

The RDBMS DST patching has been greatly improved in 11gR2.
Unlike upgrading for older versions (upgrading 10.2.0.4 to 11.1.0.7 for example) there is no need anymore to
apply "dst patches" on the old version *before* the upgrade.

If you upgrade from an older RDBMS version to 11gR2 the DST version in 11gR2 after the upgrade will be
simply the same as the DST version that was used in the older RDBMS version.

There are however a few situations where some extra steps are needed,
so please do check below notes before upgrading to 11gR2.,depending on to what 11gR2 version you upgrade to

Note 1579838.1: Actions For DST Updates When Upgrading To Or Applying The 11.2.0.4 Patchset
Note 1358166.1: Actions For DST Updates When Upgrading To Or Applying The 11.2.0.3 Patchset
Note 1201253.1: Actions For DST Updates When Upgrading To Or Applying The 11.2.0.2 Patchset
Note 815679.1: Actions For DST Updates When Upgrading To 11.2.0.1 Base Release

Simply follow above note ( depending on to what 11gR2 version you upgrade to ) in most cases there will be no action to
take before the upgrade,but better be safe than sorry.

If the note say's to apply a RDBMS DST patch to the new 11gR2 home before the upgrade then please do so before going further in this note.


Make sure that

SQL> conn / as sysdba
SQL> select TZ_VERSION from registry$database;


returns the RDBMS DST version of your old Oracle RDBMS version.
This is the value found in the "check your current DST version on 9i,10g or 11.1.0.x" step of the above notes.

If this select gives an error or a different value then re-run the utlu112i.sql (Pre-Upgrade Information Tool) script and check again.


Step 7

Check that the National Characterset (NLS_NCHAR_CHARACTERSET) is UTF8 or AL16UTF16.

select value from NLS_DATABASE_PARAMETERS where parameter = 'NLS_NCHAR_CHARACTERSET';

If this is UTF8 or AL16UTF16 then no action is needed.
If is not UTF8 or AL16UTF16 then refer to the following article:

Note 225912.1: Changing Or Choosing the Database Character Set ( NLS_CHARACTERSET )



Step 8

Optimizer Statistics

When upgrading to Oracle Database 11g Release 2 (11.2),optimizer statistics are collected for dictionary tables that lack statistics. This statistics collection can be time consuming for databases with a large number of dictionary tables,but statistics gathering only occurs for those tables that lack statistics or are significantly changed during the upgrade.

To determine the schemas which lack statistics,either review the output of the utlu112i.sql script or download and run the script from the below article:

Note 560336.1Script to Check Schemas with Stale Statistics


To decrease the amount of downtime incurred when collecting statistics,you can collect statistics prior to performing the actual database upgrade. As of Oracle Database 10g Release 1 (10.1),Oracle recommends that you use the DBMS_STATS.GATHER_DICTIONARY_STATS procedure to gather these statistics. For example,you can enter the following:

$sqlplus"/assysdba"

SQL>EXECDBMS_STATS.GATHER_DICTIONARY_STATS;



If you are using Oracle Database 9i Release 2 (9.2),then you should use the DBMS_STATS.GATHER_SCHEMA_STATS procedure to gather statistics. To do this,you can run the scripts provided inAppendix B.

Appendix Bhas a sample script,which creates the table dictstattab and exports the statistics for the RDBMS component schema into it. The statistics collection might give errors if a particular component schema does not exist in the database or if a component is not installed or is invalid.

This script is useful when you want to import the statistics back into the database

For example,the following PL/SQL subprograms import the statistics for the SYS schema after deleting the existing statistics:

SQL>EXECDBMS_STATS.DELETE_SCHEMA_STATS('SYS');
SQL>EXECDBMS_STATS.IMPORT_SCHEMA_STATS('SYS','dictstattab');


Step 9

Disable Oracle Database Vault

When upgrading from Oracle Database release 10.2,if you have enabled the Oracle Database Vault option in your current Oracle Home,then you must disable Oracle Database Vault in the target Oracle Home where the new release 11.2 software is installed before upgrading the database,and enable it again when the upgrade is finished. If Database Vault is enabled,then DBUA will return an error asking you to disable Database Vault prior to upgrade.

You must do this before upgrading the database. Enable Oracle Database Vault again once the upgrade is completed.

Please refer to the following Documentation/Articles for complete information to Disable/Enable Oracle Database Vault.

Disabling and Enabling Oracle Database Vault

OR

You can also refer to the following documents for Disabling Oracle Database Vault before the upgrade and enabling it after the upgrade.

Note 453903.1 - Enabling and Disabling Oracle Database Vault in UNIX
Note 453902.1 - Enabling and Disabling Oracle Database Vault in WINDOWS


Step 10

Backing up Enterprise Manager Database Control Data. This can be skipped if EM Database Control Console is not being used or not configured.

After upgrading to Oracle Database 11g release 2 (11.2),if you want to downgrade Oracle Enterprise Manager Database Control you must save your Database Control files and data before upgrading your database. The emdwgrd utility can be used to keep a copy of your database control files and data before upgrading your database. The emdwgrd utility resides in the ORACLE_HOME/bin directory in the Oracle Database 11g release 2 (11.2) home.

1. Set ORACLE_HOME to your old Oracle Home
2. Set ORACLE_SID to the SID of the database being upgraded.
3. Set PATH,LD_LIBRARY_PATH and SHLIB_PATH to point to the Oracle home from which the database is being upgraded.

Example : export SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
4. Change directory to Oracle Database 11g release 2 (11.2) home.
5. Run the emdwgrd command.
a. Run the following command for single instance database:

$emdwgrd-save-sidold_SID-pathsave_directory


where old_SID is the SID of the database being upgraded and save_directory is the path to the storage place you have chosen for your Database Control files and data.

@ Note 870877.1How To Save Oracle Enterprise Manager Database Control Data Before Upgrading The Single Instance Database To Other Release ?


b. For RAC database,remote copy is required across the cluster nodes. Define an environment variable to indicate which remote copy is configured. For example: setenv EM_REMCP /usr/bin/scp

$emdwgrd-save-cluster-sidold_SID-pathsave_directory


Note: If 10g Oracle Home is on a shared device,add -shared to the previous command line.

The above command(s) may core dump on the HP-UX Itanium platform,which is a known issue. For more information,refer to following article:

Note 562980.1- emdwgrd core dumps : emdwgrd[228]: 10366 Memory fault(coredump)


6. Enter the SYS password for the database to be upgraded.
Note: On RAC databases you will be prompted to run '/tmp/racdwgrd_dbctl.sh' on each of the nodes.

Step 11

Configuring Network ACL's

Oracle Database 11g Release 2 (11.2) includes fine-grained access control to the UTL_TCP,UTL_SMTP,UTL_MAIL,UTL_HTTP,or UTL_INADDR packages using Oracle XMLDB. If you have applications that use one of these packages,you must install OracleXML DB if it is not already installed. You must also configure network access control lists (ACLs) in the database before these packages can work as they did in prior releases. Actions are discussed in Post Upgrade tasks (Step 35),as the DBMS_NETWORK_ACL_ADMIN package is introduced after upgrading the database and not available in prior releases.

Step 12

This optional check is introduced to spot any logical corruption in underlying objects and their dependencies.
This proactive check is introduced to avoid any failure in database upgrade at a later stage due to such corruption. If there is corruption the upgrade will most likely fail.


To check for corruption in the dictionary,use the following commands in SQL*Plus (connected as sys):

Setverifyoff
Setspace0
Setline120
Setheadingoff
Setfeedbackoff
Setpages1000
Spoolanalyze.sql

SELECT'Analyzecluster"'||cluster_name||'"validatestructurecascade ;'
FROMdba_clusters
WHEREowner='SYS'
UNION
SELECT'Analyzetable"'||table_name||'"validatestructurecascade ;'
FROMdba_tables
WHEREowner='SYS'
ANDpartitioned='NO'
AND(iot_type='IOT'ORiot_typeisNULL)
UNION
SELECT'Analyzetable"'||table_name||'"validatestructurecascadeintoinvalid_rows;'
FROMdba_tables
WHEREowner='SYS'
ANDpartitioned='YES';

spooloff

This creates a script called analyze.sql.
Now execute the following steps:

$sqlplus"/assysdba"
SQL>@$ORACLE_HOME/rdbms/admin/utlvalid.sql
SQL>@analyze.sql


This script (analyze.sql) should not return any errors.

Note:
1. ORA-30657 might occur if there is any external table validated,which can be safely ignored as perNote 209355.1ORA-30657: Using ANALYZE TABLE for an External Table

2. Errors shown below when executing analyze.sql can be ignored:
SP2-0734: unknown command beginning "SQL> SELEC..." - rest of line ignored.
SP2-0042: unknown command "SQL>" - rest of line ignored.
SP2-0734: unknown command beginning "SQL> spool..." - rest of line ignored.

3."ORA-00054: resource busy and acquire with NOWAIT specified"may be returned when analyzing AWR tables (WRH$_...)
to workaround this error AWR can be temporarily disabled :

3.a) get current value for snapshot interval :

select snap_interval,retention from dba_hist_wr_control;

3.b) set this interval to zero to temporarily disable AWR :

exec dbms_workload_repository.modify_snapshot_settings(interval=>0);


3.c) Analyze the WRH$ tables

3.d) Revert back to initial value :

exec dbms_workload_repository.modify_snapshot_settings(interval=><value in mn of snap_interval returned at 3.a>);




Step 13

Before upgrading Oracle Database,you must wait until all materialized views have completed refreshing and check that replication is stopped.
Run the following query to determine if there are any materialized view refreshes still in progress:

SQL> select distinct(trunc(last_refresh)) from dba_snapshot_refresh_times;

SQL> select s.obj#,o.obj#,s.containerobj#,lastrefreshdate,pflags,xpflags,o.name,o.owner#,bitand(s.mflags,8) from obj$ o,sum$ s
where o.obj# = s.obj# and o.type# = 42 AND bitand(s.mflags,8) = 8;

If the second query returns any row,then useNote 1442457.1: During 11g Upgrade,Mview refresh warning


Step 14

Ensure that no files need media recovery and that no files are in backup mode.

SELECT*FROMv$recover_file;
SELECT * FROM v$backup WHERE status != 'NOT ACTIVE';

This should return no rows.

Step 15

Password protected roles.

In version 11.2 password protected roles are no longer enabled by default,
if any of your applications relies on such roles being enabled by default and you take no measures to allow
the user to enter the password with the set role command,it is recommended to remove the password
from those roles to allow for existing privileges to remain available,for more information see :

Note 745407.1: What Roles Can Be Set as Default for a User?
Oracle Database Security Guide 10g Release 2 (10.2) Part Number B14266-07
Oracle Database Security Guide 11g Release 1 (11.1) Part Number B28531-15
Oracle Database Security Guide 11g Release 2 (11.2) Part Number E16543-09


Step 16

Resolve outstanding distributed transactions prior to the upgrade.

SQL>select*fromdba_2pc_pending;


If this returns rows you should do the following:

SQL>SELECTlocal_tran_id
FROMdba_2pc_pending;
SQL>EXECUTEdbms_transaction.purge_lost_db_entry('');
SQL>COMMIT;


Step 17

To check if a standby database exists,issue the following query:

SELECTSUBSTR(value,INSTR(value,'=',INSTR(UPPER(value),'SERVICE'))+1)
FROMv$parameter
WHEREnameLIKE'log_archive_dest%'ANDUPPER(value)LIKE'SERVICE%';


If this query returns a row,then sync the standby database with the primary database.
1. Make sure all the logs are transported to the standby server after a final log switch
in the primary.
2. Start the recovery of the standby database with the NODELAY option.

Step 18


Disable all batch and cron jobs.
About jobs initiated with Oracle the packages DBMS_JOB,DBMS_SCHEDULER can be used,regarding cron jobs (external jobs controlled at the OS level),this is a task for your Unix administrator

See also :

Note 404238.1: How to Disable an Entry from DBMS_SCHEDULER
Note 1335741.1: How To Stop A Running Job Using DBMS_JOB
Note 67695.1: PROCEDURE DBMS_JOB.BROKEN Specification

Step 19


Ensure the users SYS and SYSTEM have 'SYSTEM' as their default tablespace.
You must have sufficient space in the tablespace or be set to extents unlimited.

SQL>SELECTusername,default_tablespace
FROMdba_users
WHEREusernamein('SYS','SYSTEM');


If DEFAULT_TABLESPACE is anything other than SYSTEM tablespace,modify the default tablespace to SYSTEM by using the below command.

SQL>ALTERuserSYSdefaulttablespaceSYSTEM;
SQL>ALTERuserSYSTEMdefaulttablespaceSYSTEM;


Step 20


Ensure that if the aud$ table exists that it is in the SYS schema and in the SYSTEM tablespace.

SQL>SELECT owner,tablespace_name
FROMdba_tables
WHEREtable_name='AUD$';


If the AUD$ table is not in SYSTEM tablespace and not owned by the SYS user then before doing the upgrade put it back to the SYSTEM tablespace and it should be owned by SYS .

Note: If the AUD$ table exists and is in use,upgrade performance can be effected depending on the number of records in the table.

Step 21

Check whether database has any externally authenticated SSL users.

SQL>SELECTnameFROMsys.user$
WHEREext_usernameISNOTNULL
ANDpassword='GLOBAL';

If any SSL users are found then Step 33 has to be followed after the upgrade.

Step 22


Note down the location of datafiles,redo logs and control files. Also take a backup of all configuration files like listener.ora,tnsnames.ora,etc. from $ORACLE_HOME.

SQL>SELECTnameFROMv$controlfile;
SQL>SELECTfile_nameFROMdba_data_files;
SQL>SELECTgroup#,memberFROMv$logfile;.


Step 23

If the you have upgraded the Grid Infrastructure then this step is not needed as it was done as part of the GI install / upgrade

a) Stop the listener for the database.

$lsnrctlstop


Previous versions of the listener are not supported for use with an Oracle Database 11g Release 2 (11.2) database. However,it is possible to use the new version of the listener with previous versions of Oracle Databases.
If you are upgrading from 9i or upgrading manually without using DBUA,run Oracle Net Configuration Assistant before upgrading the Oracle RAC database.

This is a two-step option.
You must first run Oracle Net Configuration Assistant from the old Oracle Home to remove the old listener.
- Invoke the Netca
- Choose the configuration you want to do ==> Choose Listener Configuration
- Select what you want to do ==> Delete
- Select the listener you want to delete .

Then you must run Oracle Net Configuration Assistant again from the new Oracle Database 11g Release 2 (11.2) Home to create a new listener.

- Invoke the Netca
- Choose the configuration you want to do ==> Choose Listener Configuration
- Select what you want to do ==> Add
- Provide the detail that is required to configure the listener.

You must remove the old listener before creating a new one. If you attempt to create a new listener from the new Oracle Home first,and use the same name and port as the old listener,then Oracle Net Configuration Assistant returns an error.

Note: This is your only option if you want to upgrade your Oracle RAC database manually.

b) Stop other executable such as dbconsole,isqlplus,etc.

$emctlstopdbconsole
$isqlplusctlstop


Step 24


Shutdown the database.

$sqlplus"/assysdba"
SQL>shutdownimmediate;


Back up the Database

1. Perform Cold Backup
(or)
2. Take a backup using RMAN

ConnecttoRMAN:

rman"target/nocatalog"

RUN
{
ALLOCATECHANNELchan_nameTYPEDISK;
BACKUPDATABASEFORMAT'<db_backup_directory>%U'TAGbefore_upgrade;
BACKUPCURRENTCONTROLFILETO'<controlfile_backup_directory>';
}


--> backup_directory >> Location of the Database backup.
--> controlfile_backup_directory >> Location of the Controlfile backup.

Step 25

- copy the initialization file from source Oracle Home to <target 11GR2 home>/dbs (<target 11GR2 home>\database on Windows)

- then process in target 11GR2 directory (<target 11GR2 home>/dbs for unix and <target 11GR2 home>\database for Windows) to the needed modiciations :

Comment out obsoleted parameters (Appendix A) and change all deprecated parameters (Appendix A).

It is also recommended to remove all hidden parameters set manually prior to upgrading.

* The DIAGNOSTIC_DEST initialization parameter replaces the USER_DUMP_DEST,BACKGROUND_DUMP_DEST.

According toBug 8937877,CORE_DUMP_DEST is not deprecated.

Refer to the below article for understanding directory structure in 11g and DIAGNOSTIC_DEST.

Note 454442.111g Install : Understanding about Oracle Base,Oracle Home and Oracle Inventory locations


* If you are upgrading from 9.2.0.x,the COMPATIBLE initialization parameter must be set to at least 10.0.0,
which is the lowest possible setting for Oracle Database11g Release 2 (11.2) prior to the upgrade.
This value must remain throughout the upgrade and can be changed to the higher value after the upgrade has been completed successfully.
(Please note,once you set the COMPATIBLE to 10.1 there is no way to downgrade to 9iR2 because of symptoms described in
Note 388604.1: ORA-00201 while downgrading from 10gR2 to 10gR1 or 9iR2 ).

Oracle recommends increasing the COMPATIBLE parameter only after complete testing of the upgraded database has been performed.

If you are upgrading from 10.1.0.x or 10.2.0.x then you can leave the COMPATIBLE parameter set to
it's current value until the upgrade has been completed successfully.
This will avoid any unnecessary ORA-942 errors from being reported in SMON trace files during the upgrade
(because the upgrade is looking for 10.2 objects that have not yet been created).

* Adjust the values of the initialization parameters to at least the minimum value indicated by the Pre-Upgrade Information Tool.
Make sure all path names in the parameter file are fully specified. You should not have relative path names in the parameter file.

* If you are upgrading a cluster database,set the parameter CLUSTER_DATABASE=FALSE during the upgrade and set it back to true after the upgrade.



Step 26

If your operating system is Windows then complete the actions in this step,else skip to the next step.

Stop the OracleServiceSID Oracle service of the database you are upgrading,where SID is the instance name. For example,if your SID is ORCL,then enter the following at a command prompt:

Set the environment to Source/Previous version (9.2 / 10.1 / 10.2 /11.1)

1. Stop the Oracle database service.

C:\>NETSTOPOracleServiceORCL


2. Delete Oracle service using ORADIM binary from which the database is upgraded to 11.2.

C:\>ORADIM-DELETE-SIDORCL


3. Create the Oracle Database 11g Release 2 (112) service at a command prompt using the ORADIM command of the new Oracle Database release:

C:\>ORADIM-NEW-SIDSID-INTPWDPASSWORD-STARTMODEAUTO-PFILE%ORACLE_HOME%\DATABASE\INIT<SID>.ORA

ForInstance,

C:\>ORADIM-NEW-SIDORCL-INTPWD<PASSWORD>-STARTMODEAUTO-PFILE%ORACLE_HOME%\DATABASE\INIT<SID>.ORA


Step 27


If your operating system is UNIX then complete this step,else skip to the next step.

1. Make sure the following environment variables point to the Oracle 11g Release 2 (11.2) directories:

- ORACLE_BASE
- ORACLE_HOME
- PATH,LD_LIBRARY_PATH,SHLIB_PATH and LIBPATH ( for AIX )

For example:

$ export ORACLE_HOME=<location of Oracle 11.2>
$ export PATH=$ORACLE_HOME/bin:$PATH
$ export ORACLE_BASE=<Oracle_Base set during installation>
$ export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
$ export SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
$ export LIBPATH=$ORACLE_HOME/lib:$LIBPATH


Note : If ORACLE_BASE is not known,after setting PATH to 11gR2 Oracle Home,execute 'orabase',which will point the location of the base.

Note : Unset/Remove the ORA_TZFILE environment variable if it is set in your environment .



$orabase
/uo1/app/oracle


2. Update the oratab entry to set the new ORACLE_HOME pointing to ORCL and disable automatic startup.

Sample/etc/oratab

#orcl:/opt/oracle/product/10.2/db_1:N
orcl:/opt/oracle/product/11.2/db_1:N


Note: After /etc/oratab is updated to have SID and Oracle Home (11.2),you can execute oraenv (/usr/local/bin/oraenv) and set the environment. The input has to be the SID which is entered in /etc/oratab against the 11gR2 home.

For example:

[oracle@localhost~]$.oraenv
ORACLE_SID=[orcl]?orcl
TheOraclebaseforORACLE_HOME=/opt/oracle/product/11.2/db_1is/u01/app/oracle
[oracle@localhost~]$

Step 27a

If you are upgrading database from 10g,verify following information

SQL> select DBMS_STATS.GET_PARAM('METHOD_OPT') from dual;

DBMS_STATS.GET_PARAM('METHOD_OPT')
-------------------------------------------------------------
FOR COLUMNS ID SIZE 1

If it reports "FOR COLUMNS ID SIZE 1",it might create issues during upgrade. Hence as a workaround execute

SQL>exec DBMS_STATS.SET_PARAM('METHOD_OPT','FOR ALL COLUMNS SIZE AUTO');

Refer: Unpublished BUG 22454765 - CARRYING METHOD_OPT = "FOR COLUMNS ID SIZE 1" FROM 10G WILL BREAK UPGRADE

Upgrading Database to 11gR2

Step 28


At the operating system prompt,change to the $ORACLE_HOME/rdbms/admin directory of 11gR2 Oracle Home.

$cd$ORACLE_HOME/rdbms/admin
$sqlplus"/assysdba"
SQL>startupUPGRADE


Note:If you are upgrading from 9.2 and the SYSAUX table already exists then drop the existing SYSAUX tablespace. The SYSAUX tablespace needs to be created immediately after the database is started in upgrade mode using 11g binaries (with Compatibility set to atleast 10.1 and just prior to the running of the catupgrd.sql scripts.


Create the SYSAUX tablespace only if you are upgrading from Oracle Database9i Release 2 (9.2) with the following mandatory attributes:

ONLINE
PERMANENT
READ WRITE
EXTENT MANAGEMENT LOCAL
SEGMENT SPACE MANAGEMENT AUTO

The Pre-Upgrade Information Tool provides an estimate of the minimum required size for the SYSAUX tablespace in the SYSAUX Tablespace section. Refer to the output generated by the utlu112i.sql script in Step 1. The following SQL statement would create a 500 MB SYSAUX tablespace for the database:

SQL>CREATETABLESPACESYSAUX
DATAFILE'<location>/sysaux01.dbf'
SIZE500MREUSE
EXTENTMANAGEMENTLOCAL
SEGMENTSPACEMANAGEMENTAUTO
ONLINE;


Set the system to spool results to a log file for later verification after the upgrade is completed and start the upgrade script.

SQL>setechoon
SQL>SPOOLupgrade.log
SQL>@catupgrd.sql
SQL>spooloff


These measures are an important final step to ensure the integrity and consistency of the newly upgraded Oracle Database software. Also,if you encountered a message listing obsolete initialization parameters when you started the database for upgrade,then remove the obsolete initialization parameters from the parameter file before restarting. If necessary,convert the SPFILE to a PFILE so you can edit the file to delete parameters.

Run the Post-Upgrade Status Tool $ORACLE_HOME/rdbms/admin/utlu112s.sql which provides a summary of the upgrade at the end of the spool log. It displays the status of the database components in the upgraded database and the time required to complete each component upgrade. Any errors that occur during the upgrade are listed with each component and must be addressed.

$sqlplus"/assysdba"
SQL>STARTUP
SQL>@utlu112s.sql


Run catuppst.sql,located in the $ORACLE_HOME/rdbms/admin directory,to perform upgrade actions that do not require the database to be in UPGRADE mode.

SQL>@catuppst.sql


This script can be run concurrently with utlrp.sql. Run utlrp.sql to recompile any remaining stored PL/SQL and Java code in another session.

SQL>@utlrp.sql


Check for the integrity of the upgraded database by running dbupgdiag.sql script from the below article:


If the dbupgdiag.sql script reports any invalid objects,run $ORACLE_HOME/rdbms/admin/utlrp.sql (multiple times) to validate the invalid objects in the database,until there is no change in the number of invalid objects.

After validating the invalid objects,re-run dbupgdiag.sql in the upgraded database once again and make sure that everything is fine.

Post Upgrade Steps


Step 29


Verify the listener.ora file.

For the upgraded instance(s) Verify the ORACLE_HOME parameter to point to the new ORACLE_HOME. Start the listener.

lsnrctlstart


Step 30


Environment Variables

1. Make sure the following environment variables point to the Oracle 11g Release 2 (11.2) directories:

- ORACLE_BASE
- ORACLE_HOME
- PATH,SHLIB_PATH and LIBPATH ( for AIX )

Also check that your oratab file and any client scripts that set the value of ORACLE_HOME point to the Oracle Database 11g Release 2 (11.2) Home.

Note : If you are upgrading a cluster database,then perform these checks on all nodes in which this cluster database has instances configured.

2. Modify /etc/oratab entry to use automatic startup.

SID:ORACLE_HOME:Y

ForInstance,
orcl:/opt/oracle/product/11.2/db_1:Y


Step 31


After the upgrade

note : this simply repeats the same actions as given in the "DST" notes referenced in step 6 of this note.

Check the current version of the Oracle time zone definitions in the upgraded database:

SQL> conn / as sysdba
Connected.
SQL>SELECT version FROM v$timezone_file;

VERSION
----------
4



This should be the same as the value found before the upgrade.

if this is HIGHER than 11 (for 11.2.0.1 ) or 14 (for 11.2.0.2 and 11.2.0.3) then goto step 32

if this is 11 (for 11.2.0.1 ) or 14 (for 11.2.0.2 and 11.2.0.3) then goto step 32

if this is LOWER than 11 (for 11.2.0.1 ) or 14 (for 11.2.0.2 and 11.2.0.3) then it is *recommended* to upgrade the timezone version


*For 11.2.0.1 : update to DSTv11 (standard DST version of 11.2.0.1) by

using the scripts inNote 1585343.1Scripts to automatically update the RDBMS DST (timezone) version in an 11gR2 or 12cR1 database .
OR
followingNote 977512.1Updating the RDBMS DST version in 11g Release 2 (11.2.0.1 and up) using DBMS_DST
(from step 3a) onwards using "11" as (<the new DST version number>) in that note.


*For 11.2.0.2,11.2.0.3 and 11.2.0.4 : update to DSTv14 (standard DST version of (for 11.2.0.2,11.2.0.3 and 11.2.0.4) by

using the scripts inNote 1585343.1: Scripts to automatically update the RDBMS DST (timezone) version in an 11gR2 or 12cR1 database .
OR
followingNote 977512.1Updating the RDBMS DST version in 11g Release 2 (11.2.0.1 and up) using DBMS_DST
(from step 3a) onwards using "14" as (<the new DST version number>) in that note.)


note that :

* it is supported to use a lower DST version in 11gR2,but there is no technical reason to use a lower DST version,
hence we *strongly* recommend to update to the highest DST version included in the 11gR2 version you upgraded

* Optionally you can update to the lastest dst version available.
The latest available DST patch is found in
Note 412160.1: Updated DST transitions and new Time Zones in Oracle Time Zone File patch



Step 32


Upgrade Statistics Tables Created by the DBMS_STATS Package.

If you created statistics tables using the DBMS_STATS.CREATE_STAT_TABLE procedure,then upgrade these tables by executing the following procedure:

EXECUTEDBMS_STATS.UPGRADE_STAT_TABLE('SYS',255);">
In the example,'SYS' is the owner of the statistics table and 'dictstattab' is the name of the statistics table. Execute this procedure for each statistics table.

Step 33


Upgrade Externally Authenticated SSL Users.

If you have upgraded from Oracle 9.2.0.x or 10.1.0.x,and you are using externally authenticated SSL users,then you must run the following command to upgrade those users:

ORACLE_HOME/rdbms/bin/extusrupgrade--dbconnectstring
<hostname:port_no:sid>--dbuser<dbadmin>--dbuserpassword
<password>-a


If you are upgrading from 10.2.0.x (or higher),then you are not required to run this command.

Step 34


Enable Database Vault

Refer to the following documents for enabling Oracle Database Vault:

Note 453903.1- Enabling and Disabling Oracle Database Vault in UNIX
Note 453902.1- Enabling and Disabling Oracle Database Vault in WINDOWS


Step 35


Configure Fine-Grained Access to External Network Services.

To avoid "ORA-24247: network access denied by access control list (ACL)" when executing UTL packages (Network related packages),access has to be granted to user using these packages.

The following example first looks for any ACL currently assigned to host_name. If one is found,then the example grants user_name the CONNECT privilege in the ACL only if that user does not already have it. If no ACL exists for host_name,then the example creates a new ACL called ACL_name,grants the CONNECT privilege to user_name,and assigns the ACL to host_name.

DECLARE
acl_pathVARCHAR2(4000);
BEGIN
SELECTaclINTOacl_pathFROMdba_network_acls
WHEREhost='host_name'ANDlower_portISNULLANDupper_portISNULL;
IFDBMS_NETWORK_ACL_ADMIN.CHECK_PRIVILEGE(acl_path,'principal','privilege')ISNULLTHEN
DBMS_NETWORK_ACL_ADMIN.ADD_PRIVILEGE(acl_path,is_grant,'privilege');
ENDIF;
EXCEPTION
WHENno_data_foundTHEN
DBMS_NETWORK_ACL_ADMIN.CREATE_ACL('ACL_name.xml','ACLdescription','privilege');
DBMS_NETWORK_ACL_ADMIN.ASSIGN_ACL('ACL_name.xml','host_name');
END;

COMMIT;



acl_name.xml => Enter a name for the access control list XML file.
ACL description => 'file description',
principal => 'user_or_role',
is_grant => TRUE|FALSE,
privilege => 'connect|resolve',
host_name => host name

Refer to the below note on how to use DBMS_NETWORK_ACL_ADMIN package and also to avoid ORA-24247 : network access denied by access control list (ACL).

Note 453786.1ORA-24247 When Executing UTL_HTTP UTL_INADDR Packages


Step 36


Edit init.ora

  • If you changed the CLUSTER_DATABASE parameter prior the upgrade set it back to TRUE
  • Migrate your initialization parameter file to a server parameter file.

Create a server parameter file with an initialization parameter file.

SQL>createspfilefrompfile;


This will create an spfile as a copy of the init.ora file located in $ORACLE_HOME/dbs (UNIX) & %ORACLE_HOME%\database (Windows).

Step 37


Change passwords for Oracle-Supplied Accounts.

Depending on the release from which you upgraded,there might be new Oracle-supplied accounts. Oracle recommends that you lock all Oracle supplied accounts except for SYS and SYSTEM,and expire their passwords,thus requiring new passwords to be specified when the accounts are unlocked.

You can view the status of all accounts by issuing the following SQL statement:


To lock and expire passwords,issue the following SQL statement:

SQL>ALTERUSERusernamePASSWORDEXPIREACCOUNTLOCK;


Step 38


Upgrading Oracle Text

This is only needed if Oracle Text is in use.

NOTE :These steps are NOT required if you are upgrading the database within a same release ( patchset upgrade ) Example : 11.2.0.1 to 11.2.0.2.

Copy the following files from the previous Oracle Home to the new Oracle Home:

* Stemming user-dictionary files
* User-modified KOREAN_MORPH_LEXER dictionary files
* USER_FILTER executables

To obtain a list of the above files,use:

$ORACLE_HOME/ctx/admin/ctxf<version>.txt
$ORACLE_HOME/ctx/admin/ctxf<version>.sql

where version is 920,101,102

For instance,if upgrading from 10.2.0:

1.For User Extended Knowledge Base files check
$ORACLE_HOME/ctx/admin/ctxf102.txt
2.ExecutethescriptasdatabaseuserSYS,SYSTEM,orCTXSYS
$ORACLE_HOME/ctx/admin/ctxf102.sql



If your Oracle Text index uses KOREAN_LEXER which was deprecated in Oracle 9i and desupported in Oracle 10g Release 2,see below note for further information on manual migration from KOREAN_LEXER to KOREAN_MORPH_LEXER:

Note 300172.1 Obsolescence of KOREAN_LEXER Lexer Type


If you are upgrading to the 11.2.0.3 then please refer the following article for Support Note for Lexer Feature Updates

Note 1354793.1Oracle Text 11.2.0.3 Support Note for Lexer Feature Updates


Please refer to the following article for more information on step 38.

Note 1319592.1Upgrading Oracle Text Post 10.2.0.4 To 11.2.0.2 Upgrade


Step 39

Upgrade the Oracle Clusterware Configuration

If you are upgrading a cluster database from releases 10.2,11.1,or 11.2.0.1,then upgrade the database configuration in Oracle Clusterware using the following command:

$ srvctl upgrade database -d db-unique-name -o oraclehome

where db-unique-name is the database name assigned to it (not the instance name),and oraclehome is the Oracle home location in which the database is being upgraded.


Step 40

Configure Enterprise Manager

This step is only required if Dbconsole is used for the database,if Dbconsole is not configured or if database is monitored with the Grid Control then this step does not apply.


If your database is being managed by Oracle Enterprise Manager Database Control
then use the following command to update the configuration:

Execute the following command from the Target or upgraded $ORACLE_HOME

emca-upgrade(db|asm|db_asm)[-cluster][-silent][parameters]


You need to run this from the new Oracle Database 11gR2 Oracle Home. When prompted,provide the Oracle Home from which the configuration is being upgraded.

Appendix A: Initialization parameters deprecated in Oracle Database 11g release 2 (11.2)

To get a list of all deprecated initialization parameters,issue the following SQL statement:


SQL>SELECTnameFROMv$parameterWHEREisdeprecated='TRUE';


A warning message is displayed at instance startup if a deprecated parameter is specified in the parameter file. In addition,all deprecated parameters are logged to the alert log at instance startup.

Appendix B: Initialization Parameters Obsolete in Oracle Database 11g Release 2 (11.2)

DRS_START
SQL_VERSION

Step 41

TDE (Transparent Data Encryption)

If your are using Transparent Data Encryption then you will have to rekey the master key as follows:

SQL> alter system set encryption key identified by "<wallet password>";

Please seeNote 1260584.1: Ora-28374 After Migration From 10.2.0.4 To 11.2.0.1 for additional details.

Step 42

Gather Fixed Object Statistics

Please create stats on fixed objects two weeks after the upgrade using the below command
SQL>EXECUTE DBMS_STATS.GATHER_FIXED_OBJECTS_STATS;

It would to good to gather the statistic during non-peak hours

Useful Upgrade documents

Note 1561791.2Upgrade / Downgrade Assistant: Oracle Database/Client
Note 1351112.2Information Center: Upgrading and Migration Oracle Database
Note 785351.1Oracle 11gR2 Upgrade Companion
Note 251.1Database Upgrade Planner from 10.2 to 11.2
Note 264.1Database Upgrade Planner from 9.2 to 11.2

Step 43

When upgrading to 11.2.0.4,if compatiblity is set lower than 11,additional post-upgrade steps are required for manually implementing the patch for bug 14373728

Please seeNote 1537496.1How to Manually Enable the Patch for Bug:14373728 on Oracle 11g Release 11.2.0.4

Revision History

03-Sep-2009 Article Created

27-Oct-2009 Changed Indirect upgrade table value from 9.2.0.3(or lower) to 9.2.0.7(or lower)

27-Oct-2009 Check the certification of the 11g R2 with you platform before installing the software

29-OCt-2009 Note in step 32

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


文章浏览阅读773次,点赞6次,收藏9次。【代码】c# json字符串转Oracle的insert into的小程序。
文章浏览阅读8.7k次,点赞2次,收藏17次。此现象一般定位到远端的监听服务来找问题,在远端查看监听服务状态(具体看下面的解决方案会详细呈现),服务是否开启,另外查看监听端点概要是否存在host未指向到计算名的,如无直接进入监听配置文件listener.ora内添加指向即可。2、查看监听服务状态 lsnrctl status,右边为远端端点状态,未添加host指向到计算名;1、本地及远端安装好Oracle并配置好连接,Oracle服务和监听已启动;1、远程Oracle数据库:Oracle11g R2。或者进入下述服务手动重启。,再进行远程连接即可。_ora-12541:tns:无监听程序
文章浏览阅读2.8k次。mysql脚本转化为oracle脚本_mysql建表语句转oracle
文章浏览阅读2.2k次。cx_Oracle报错:cx_Oracle DatabaseError: DPI-1047: Cannot locate a 64-bit Oracle Client library_cx_oracle.databaseerror: dpi-1047: cannot locate a 64-bit oracle client libr
文章浏览阅读1.1k次,点赞38次,收藏35次。本文深入探讨了Oracle数据库的核心要素,包括体系结构、存储结构以及各类参数。通过解析Oracle数据库的体系结构,读者可以深入了解其内部组成和工作原理。存储结构部分介绍了数据在Oracle中的存储方式,从表空间到数据文件的层层逻辑。最后,我们深入探讨了Oracle数据库中各类参数的作用和配置方法,帮助读者更好地理解和优化数据库性能。本文旨在帮助读者全面理解Oracle数据库的运作机制,为其在实践中的应用提供基础和指导。
文章浏览阅读1.5k次。默认自动收集统计信息的时间为晚上10点(周一到周五,4个小时),早上6点(周六,周日,20个小时)由于平时默认每天只收集4小时,时间有点短了,改成每天可收集8小时。oracle 18c中默认是打开的。查看当前自动收集统计信息的时间。_oracle自动收集统计信息
文章浏览阅读929次,点赞18次,收藏20次。只有assm(Automatic Shared Memory Management)模式可以使用大页,需要关闭amm(Memory Manager Process)HugePages_Free: 306 (空闲306页,已使用306-306=0页)防止oracle使用的内存交换,所以设置的大小与oracle配置的sga、pga相关。HugePages_Rsvd: 0 (操作系统承诺给oracle预留的页数)HugePages_Total: 306 (总共306页)_oracle11g 大页
文章浏览阅读801次。例如:10046:0,1,4,8,12。默认redo日志有三个,大小为50M,循环覆盖使用。redo log再覆盖之前,会被归档,形成归档日志。答:不同事件,不同级别。trace的不同级别?_oracle 日志
文章浏览阅读4.2k次,点赞84次,收藏77次。主要讲解MySQL中SQL的DDL语句,其中包括对数据库和表的一系列操作。_sql ddl 新增字段 mysql
文章浏览阅读1.1k次。ON DEMAND:仅在该物化视图“需要”被刷新了,才进行刷新(REFRESH),即更新物化视图,以保证和基表数据的一致性;ON COMMIT:一旦基表有了COMMIT,即事务提交,则立刻刷新,立刻更新物化视图,使得数据和基表一致。Method =>'C',物化视图有三种刷新方式:COMPLETE、FAST和FORCE。物化视图会占用空间,一半可用于大量数据查询时,减缓主表的查询压力使用。例如创建一个物化视图,让对接单位查询。_oracle物化视图定时刷新
文章浏览阅读713次,点赞21次,收藏18次。1.背景介绍在当今的大数据时代,数据量越来越大,传统的关系型数据库已经无法满足业务需求。因此,NoSQL数据库技术迅速崛起,成为企业和开发者的首选。Oracle NoSQL Database是Oracle公司推出的一款分布式NoSQL数据库产品,具有高性能、高可用性和易于扩展等特点。在本文中,我们将深入了解Oracle NoSQL Database的集成与开发者工具,帮助您更好地掌握这款产品的...
文章浏览阅读2.5k次,点赞2次,收藏4次。今天遇见一个问题需要将字段中包含中文字符串的筛选出来。_oracle查询包含中文字符
文章浏览阅读802次。arcmap 在oracle删除表重新创建提示表名存在解决放啊
文章浏览阅读4.3k次,点赞2次,收藏4次。Oracle连接数据库提示 ORA-12638:身份证明检索失败_ora-12638
文章浏览阅读3.4k次,点赞6次,收藏25次。etc/profile是一个全局配置文件,所有用户登录都会使用该文件构建用户环境。与windows配置环境变量是一个道理。选择Linux系统,找到适合自己系统的安装包,我的是CentOS 8 x64。接下来需要登陆Oracle账户才能下载,无账户的可以自己注册一个。Linux中export 命令用于设置或显示环境变量。模式,利用上下键到文档最后,添加以下代码。出现如图所示版本号字样,则说明安装成功。点击下载,勾选1,点击2。记住完整路径用于后面配置。找到Java并点击进去。往下翻,找到Java8。_linux安装jdk1.8
文章浏览阅读2.4w次,点赞26次,收藏109次。JDK 是的简称,也就是 Java 开发工具包。JDK 是整个 Java 的核心,其中JDK包含了 Java 运行环境(Java Runtime Envirnment,简称 JRE),Java 工具(比如 javac、java、javap 等等),以及 Java 基础类库(比如 rt.jar)。最主流的 JDK 是Oracle公司发布的 JDK,除了 Oracle JDK(商业化,更稳定)之外,还有很多公司和组织开发了属于自己的 JDK,比较有名的有IBM JDK(更适合 IBM) 和OpenJDK。_jdk安装教程
文章浏览阅读7.5w次。出现 “java.sql.SQLNonTransientConnectionException:Could not create connection to database server” 的错误通常是由于无法连接到数据库服务器引起的。_java.sql.sqlnontransientconnectionexception: could not create connection to
文章浏览阅读849次,点赞7次,收藏10次。在ClickHouse中创建用户、数据库并进行权限分配是一个重要的管理任务,它涉及到安全性和访问控制。下面是一个基本的指南来帮助你完成这些操作:1. 创建数据库首先,需要创建一个数据库。使用以下命令:CREATE DATABASE IF NOT EXISTS your_database_name;将 your_database_name 替换为你想要的数据库名。2. 创建用户接下来,创建一个新用户。使用以下命令:CREATE USER your_username IDENTIFIED WIT_在clickhouse中如何创建用户 赋权
文章浏览阅读1.2k次,点赞53次,收藏39次。本文是一篇关于Oracle数据库安装和使用的博文摘要。作者以轻松幽默的笔调介绍了自己在实验中掌握的Oracle数据库基本操作,包括使用组件查看命令、配置数据库监听器等。作者也分享了在实验中遇到的一些有趣问题,如SQL语句缺少分号导致的意外错误。此外,作者还强调了登录sys用户和启动实例加载数据库的注意事项,并鼓励读者面对挑战时保持乐观,不断提升自己的能力。整体风格风趣严谨,引人入胜。
文章浏览阅读820次,点赞17次,收藏16次。KingbaseES、xml、dbms_xmlgen、SETSKIPROWS、人大金仓、KingbaseES兼容Oracle包dbms_xmlgen的功能是通过SQL查询将关系表中数据转化为XML文档。转化方式一共有两种:(1)通过查询字符串直接转化。(2)通过上下文句柄转化。对于通过查询字符串直接转化的方式,无法跳过若干行进行查询,只能直接将表格中的所有数据转化为XML文档。