Professional Documents
Culture Documents
3
to 11.2.0.4 for EBS R12.2
Below steps were experimented to my environment and i have upgraded database to 11204
successfully. Few areas are environment specific and kindly double check those steps with
your environment before you execute.
Source : 11.2.0.3
Target : 11.2.0.4
Application : R12.2.4
OS : Oracle solaris 5.10
Interoperability Notes E-Business Suite Release 12.2 with Database 11g Release 2 (Doc ID 1623879.1)
Complete Checklist for Manual Upgrade to Oracle Database 11gR2 (11.2) (Doc ID 837570.1)
1) Ensure that all database components/objects provided by Oracle are VALID in 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.
Database Installation:
Prepare to create the 11.2.0 Oracle home
The 11.2.0 Oracle home must be installed on the database server node in a different directory than the current Oracle
home.
Read Chapters 1 and 2 of the Oracle Database Installation Guide 11g Release 2 (11.2) for your platform. Also read Chapter 1
and the "System Considerations and Requirements" section of Chapter 3 of the Oracle Database Upgrade Guide 11g Release
2 (11.2). Make sure you thoroughly understand the installation and upgrade processes. Perform any step that is relevant for
your environment.
Attention: For HP Itanium platforms using the NFS file system, choose a disk to install the 11g Oracle home
separate from the database files. The mount options of the disk containing the database files must include
forcedirectio. The 11g Oracle home (or any other binaries) must not include the forcedirectio mount option.
Note:
1. When installing 11.2.0.4 on Oracle Linux 7 or Red Hat Linux 7, ignore the warning regarding missing package
'pdksh-5.2.14' during pre-requisite checks.
2. When installing 11.2.0.4 on Oracle Linux 7 or Red Hat Linux 7 and encountering the installer error in invoking
target 'agent nmhs' of makefile with the log file showing an undefined reference to symbol
'B_DestroyKeyObject', users should review and implement the workaround noted in the
document Installation of Oracle 11.2.0.4 Database Software on OL7 fails with "undefined reference to symbol
'B_DestroyKeyObject'" error".
Install Oracle Database 11g Products from the 11g Examples CD (mandatory)
On the database server node, as the owner of the Oracle RDBMS file system and database instance, perform the tasks in the
"Install Oracle Database Examples" section in the Oracle Database Examples Installation Guide.
In the Installation Types window, use the Product Languages button to select any languages other than American English
that are used by your Applications database instance.
After the installation, make sure that:
c. The ORACLE_BASE environment variable must be set accordingly.
d. The ORACLE_HOME environment variable points to the new 11.2.0 Oracle home.
e. The PATH environment variable includes $ORACLE_HOME/bin and the directory where the new perl executable is located
(usually $ORACLE_HOME/perl/bin).
f. The LD_LIBRARY_PATH environment variable includes $ORACLE_HOME/lib.
g. The PERL5LIB environment variable points to the directories where the new perl libraries are located
($ORACLE_HOME/perl/lib/[perl version] and $ORACLE_HOME/perl/lib/site_perl/[perl version] for UNIX/Linux,
$ORACLE_HOME/perl/lib and $ORACLE_HOME/perl/site/lib for Windows).
As you read this document, bear the following important points in mind:
Oracle strongly recommends that you always use the latest version of the opatch utility, available from
My Oracle Support via Patch 6880880.
More information on patching the technology Oracle Homes is available in My Oracle Support
Knowledge Document 1355068.1, Oracle E-Business Suite 12.2 Patching Technology Components Guide.
13417321
16075609
18604144
18708921
18966843
19835133
19949371
20488666
20523280
20678391
21249127
Footnote 3 - After applying the patch, you must run the following Oracle E-Business Suite Release 12.2 specific script and
then restart the database (which is not documented in the patch readme):
$ perl $ORACLE_HOME/nls/data/old/cr9idata.pl
21286665
21321429
21864513
21904072
22098122
22180766
22307372
22496904
22731026
22876444
Footnote 4 - If a conflict is reported with any of these previously documented fixes: Patch 21114125, Patch
21472186 or Patch 22855980 roll back the conflicting patch before applying Patch 22876444.
23477849
Patch installation :
20523280
1. Maintain a location for storing the contents of the patch ZIP file. In the rest of the document, this location (absolute
path) is referred to as <PATCH_TOP_DIR>.
2. Extract the contents of the patch ZIP file to the location you created in Step (1). To do so, run the following command:
$ unzip -d <PATCH_TOP_DIR> p20523280_112040_SOLARIS64.zip
Note:
When OPatch starts, it validates the patch and ensures that there are no conflicts with the software already installed in
the ORACLE_HOME of the Oracle Database. OPatch categorizes conflicts into the following types:
- Conflicts with a patch already applied to the ORACLE_HOME - In this case, stop the patch installation and contact
Oracle Support Services.
- Conflicts with a patch already applied to the ORACLE_HOME that is a subset of the patch you are trying to apply -
In this case, continue with the patch installation because the new patch contains all the fixes from the existing patch in the
ORACLE_HOME. The subset patch will automatically be rolled back prior to the installation of the new patch.
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 '/ as sysdba'
SQL> spool upgrade_info.log
SQL> @utlu112i.sql
SQL> spool off
SQL>
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.
Step3
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 "/ as sysdba"
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.1)
Step 4
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:
SELECT grantee FROM dba_role_privs
WHERE granted_role = 'CONNECT' and
grantee NOT IN (
'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:
SELECT GRANTEE,PRIVILEGE
FROM DBA_SYS_PRIVS
WHERE GRANTEE ='CONNECT'
GRANTEE PRIVILEGE
------- ----------------------
CONNECT CREATE VIEW
CONNECT CREATE TABLE
CONNECT ALTER SESSION
CONNECT CREATE CLUSTER
CONNECT CREATE SESSION
CONNECT CREATE SYNONYM
CONNECT CREATE SEQUENCE
CONNECT CREATE DATABASE LINK
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 ')||'DATABASE LINK '||CHR(10)
||DECODE(U.NAME,'PUBLIC',Null, 'SYS','',U.NAME||'.')|| L.NAME||chr(10)
||'CONNECT TO ' || L.USERID || ' IDENTIFIED BY "'||L.PASSWORD||'" USING
'''||L.HOST||''''
||chr(10)||';' TEXT
FROM SYS.LINK$ L, SYS.USER$ U
WHERE L.OWNER# = U.USER#;
Step 6
Check for TIMESTAMP WITH TIMEZONE Datatype
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
Applying the RDBMS DSTv17 patch 12949905 on the server side in 11.2.
After a DST patch is installed in an 11.2 $ORACLE_HOME there are steps who need to be done to change a existing database
to use this newer DST version.
Simply applying the RDBMS DST patch and restarting the database will NOT enable the new applied RDBMS DST version
patch (like it did in pre-11.2 versions).
For 11.2.0.4:
* Request (if needed) and download RDBMS DSTv17 Patch 12949905 for your platform.
* Apply the RDBMS DSTv17 Patch 12949905 using Opatch, there is no need to shut down or stop the database or other
processes.
Patches location - /a02/patches
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.1 Script 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 "/as sysdba"
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.
Note 453903.1 - Enabling and Disabling Oracle Database Vault in UNIX
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.
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):
Set verify off
Set space 0
Set line 120
Set heading off
Set feedback off
Set pages 1000
Spool analyze.sql
spool off
Note:
1. ORA-30657 might occur if there is any external table validated, which can be safely ignored as per Note 209355.1 ORA-
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);
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 use Note 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 * FROM v$recover_file;
SELECT * FROM v$backup WHERE status != 'NOT ACTIVE';
This should return no rows.
Step 16
SELECT SUBSTR(value,INSTR(value,'=',INSTR(UPPER(value),'SERVICE'))+1)
FROM v$parameter
WHERE name LIKE 'log_archive_dest%' AND UPPER(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
See also :
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.
If DEFAULT_TABLESPACE is anything other than SYSTEM tablespace, modify the default tablespace to SYSTEM by using the
below command.
Step 20
Ensure that if the aud$ table exists that it is in the SYS schema and in the SYSTEM tablespace.
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
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.
$ lsnrctl stop
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.
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.
Step 24
Connect to RMAN:
RUN
{
ALLOCATE CHANNEL chan_name TYPE DISK;
BACKUP DATABASE FORMAT '<db_backup_directory>%U' TAG before_upgrade;
BACKUP CURRENT CONTROLFILE TO '<controlfile_backup_directory>';
}
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.
Refer to the below article for understanding directory structure in 11g and DIAGNOSTIC_DEST.
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:
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 .
Database Upgrade:
9. Ensure Applications patching cycle is complete
If the patching cycle has not been completed, as the owner of the source administration server, run the following command
to finish any in-progress adop session:
$ adop phase=cutover,cleanup
10. Shut down Applications server processes and database listener
On each application tier server node, shut down all server processes or services. On the database tier server node, shut
down the Oracle Net or Net8 database listener in the old Oracle home.
Note: The Applications will be unavailable to users until all remaining tasks in this section are completed.
Attention: Make sure that you do not have the LOCAL_LISTENER initialization parameter set to ensure that
the database does not inadvertently point to a non-existent listener during upgrade.
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
Refer: Unpublished BUG 22454765 - CARRYING METHOD_OPT = "FOR COLUMNS ID SIZE 1" FROM 10G WILL BREAK
UPGRADE
Step 28
9. Modify initialization parameters
Use the following sections in document 396009.1, Database Initialization Parameter Settings for Oracle Applications Release
12 on My Oracle Support as a guideline:
a. Common database initialization parameters
b. Release-specific database initialization parameters for 11gR2
c. Additional Database Initialization Parameters For Oracle E-Business Suite Release 12.2
d. Database initialization parameter sizing
If native compilation of PL/SQL code is disabled in your database instance, ignore the initialization parameters that pertain to
the native compilation of PL/SQL code. Ensure that the temporary tablespace is properly defined. Follow the instructions in
the Temporary Tablespace Setup section.
Note: There are many ways to generate the parameter file (for example, copying and updating an old init.ora
parameter file). You are not confined to using the parameter files generated by the database upgrade
assistant.
At the operating system prompt, change to the $ORACLE_HOME/rdbms/admin directory of 11gR2 Oracle Home.
$ cd $ORACLE_HOME/rdbms/admin
$ sqlplus "/ as sysdba"
SQL> startup UPGRADE
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> CREATE TABLESPACE SYSAUX
DATAFILE '<location>/sysaux01.dbf'
SIZE 500M REUSE
EXTENT MANAGEMENT LOCAL
SEGMENT SPACE MANAGEMENT AUTO
ONLINE;
Set the system to spool results to a log file for later verification after the upgrade is completed and start the upgrade script.
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.
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.
Disregard warnings related to Network ACLs. AutoConfig manages all the E-Business Suite Network ACLs.
When upgrading all statistics tables, note that Oracle E-Business Suite has only one statistics table, APPLSYS.FND_STATTAB,
that needs to be upgraded.
If you plan to change the PL/SQL compilation mode, disable the compilation of objects.
10. Revoke ORA$BASE grant
If the ORA$BASE edition is not the default edition, a grant has to be revoked.
To see the default edition, use SQL*Plus to connect to the database as SYSDBA and run the following command:
SQL> select * from database_properties where property_name='DEFAULT_EDITION';
If ORA$BASE is not returned by the query, use SQL*Plus to connect to the database as SYSDBA and run the following
command:
SQL> revoke use on edition ora$base from public;
11. Natively compile PL/SQL code (optional)
You can choose to run Oracle E-Business Suite 12 PL/SQL database objects in natively compiled mode with Oracle Database
11g. See the "Compiling PL/SQL Program Units for Native Execution" section of Chapter 12 of Oracle Database PL/SQL
Language Reference 11g Release 2 (11.2).
Post Upgrade Steps
For the upgraded instance(s) Verify the ORACLE_HOME parameter to point to the new ORACLE_HOME. Start the listener.
lsnrctl start
Environment Variables
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 )
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.
For Instance,
orcl:/opt/oracle/product/11.2/db_1:Y
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
If you created statistics tables using the DBMS_STATS.CREATE_STAT_TABLE procedure, then upgrade these tables by
executing the following procedure:
EXECUTE DBMS_STATS.UPGRADE_STAT_TABLE('SYS','dictstattab');
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.
You can view the status of all accounts by issuing the following SQL statement:
After you install the patch, reload the packages into the Oracle Database.
change directory to $ORACLE_HOME/rdbms/admin and then
connect as SYSDBA and run the following in given order :
Note : Below steps must be executed in the order they appear in.
23477849
The following steps load modified SQL files into the database. For a RAC environment, perform these steps on only one
node.
$ sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> @?/sqlpatch/23477849/postinstall.sql
22098122
1. For each database instance running on the Oracle home being patched, connect to the database using SQL*Plus.
Connect as SYSDBA and run the below script as follows:
$ sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> @?/sqlpatch/22098122/postinstall.sql
18966843
1. For each database instance running on the Oracle home being patched, connect to the database using SQL*Plus.
Connect as SYSDBA and run the below script as follows:
$ sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> @?/sqlpatch/18966843/postinstall.sql
22731026
1. For each database instance running on the Oracle home being patched, connect to the database using SQL*Plus.
Connect as SYSDBA and run the below script as follows:
$ sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> @?/sqlpatch/22731026/postinstall.sql
Conn / as sysdba
spool upg_tzv_check.log
@upg_tzv_check.sql
spool off
Conn / as sysdba
spool upg_tzv_apply.log
@upg_tzv_apply.sql
spool off
A succesfull run will show at the end:
INFO: The RDBMS DST update is successfully finished.
INFO: Make sure to exit this sqlplus session.
INFO: Do not use it for timezone related selects.
Note : 1585343.1
Create nls/data/9idata directory
On the database server node, as the owner of the Oracle RDBMS file system and database instance, run the following
command to create the $ORACLE_HOME/nls/data/9idata directory.
$ perl $ORACLE_HOME/nls/data/old/cr9idata.pl
After creating the directory, make sure that the ORA_NLS10 environment variable is set to the full path of the 9idata
directory whenever you enable the 11g Oracle home.
Attention: For Windows customers, after creating the XML context file, ensure that the variable s_dlsnname
has the proper listener service name.
Attention: When running AutoConfig on the Patch APPL_TOP, ignore all errors.
Attention: If the database tier node is different from the Applications tier node, after running AutoConfig on
the database tier, modify tcp.invited_nodes of the generated [TNS_ADMIN]/sqlnet.ora to include the
Applications tier so that the Applications tier can connect to the database.
Note: Make sure that you have at least 1.5 GB of free default temporary tablespace.