Professional Documents
Culture Documents
11G To 12C Upgrade Document
11G To 12C Upgrade Document
Also If you are on a UNIX/Linux platform, apply the 10.1.0.5 version of Patch 6400501 to the iAS 10.1.2
Applications tier Oracle home.
Note: For Linux x86-64 environments, download the Linux 32-bit version of the patch as the Applications tier
Oracle home is 32-bit
Step2: Shutdown the database and listener
$ Sqlplus ‘/as sysdba’
Sql> shut immediate
$ lsnrctl stop
Step3: Update application tier context file with new database listener port number (conditional)
The new 12.1.0 Oracle home uses its own database listener for the database instance, replacing the current
database listener. Use the Context Editor to update the following variables in the Applications context file on
each application tier server node to reflect the 12.1.0 configuration:
NOTE: Do not run AutoConfig on the application tier once the context file has been updated. Doing so will
cut off the entire application tier from the database instance until after the upgrade is complete. You will be
instructed to run AutoConfig on the application tier to configure the system for the new port number once the
upgrade is finished and the new database listener is in use.
It is assumed that the SID before and after upgrade are the same.
Log in to the database server node as the owner of the Oracle RDBMS file system and database instance.
Ensure that environment settings, such as ORACLE_HOME, are set for the new Oracle home you are about to
create, and not for any existing Oracle homes on the database server node.
Verify Installation
Install Screens:
Step 6: 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 12c Oracle home.
Apply the following patches for environments without the In-Memory option enabled:
Apply the following patches for environments with the In-Memory option enabled:
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.
If the SYS.ENABLED$INDEXES table exists, use SQL*Plus to connect to the database as SYSDBA and
running the following command to drop it:
If you are upgrading from an RDBMS version prior to 12c, on the old database server node, use SQL*Plus to
connect to the database as SYSDBA and run the $ORACLE_HOME/md/admin/catnomgdidcode.sql script.
This drops the MGDSYS schema.
cd $ORACLE_HOME/rdbms/admin/
exec utl_recomp.recomp_parallel(25);
exec DBMS_STATS.drop_stat_table('APPLSYS','FND_STATTAB');
exec DBMS_STATS.create_stat_table('APPLSYS','FND_STATTAB');
exec DBMS_STATS.upgrade_stat_table('APPLSYS','FND_STATTAB');
Step 13: Compile Invalid Objects
Optimizer Statistics:
$ sqlplus "/as sysdba"
SQL> EXEC DBMS_STATS.GATHER_DICTIONARY_STATS;
oratab file edit it should be old oracle home path and additionally end must be N
$vi /etc/oratab
PROD: /u01/oraR12/PROD/db/tech_st/11.2.0:N
Save and exit
Invoke dbua
$cd $ORACLE_HOME/bin
./dbua
Step16: After complete update restart the database and listener (new)
$sqlplus / as sysdba
SQL> shutdown immediate
$ lsnrctl stop
$sqlplus / as sysdba
SQL> startup
SQL> exit
$ lsnrctl start
Copy $APPL_TOP/admin/adgrants.sql from the administration server node to the database server node. Use
SQL*Plus to connect to the database as SYSDBA and run the script using the following command:
Note: Verify the usage of adgrants.sql in the adgrants.sql script. Older versions of adgrants.sql require the
APPLSYS schema name parameter to be passed instead of APPS.
Copy $AD_TOP/patch/115/sql/adctxprv.sql from the administration server node to the database server node.
Use SQL*Plus to connect to the database as APPS and run the script using the following command
On the administration server node, use SQL*Plus to connect to the database as APPS and run the
$FND_TOP/patch/115/sql/wfaqupfix.sql script using the following command:
Copy $APPL_TOP/admin/adstats.sql from the administration server node to the database server node. Note
that adstats.sql has to be run in restricted mode. Use SQL*Plus to connect to the database as SYSDBA and use
the following commands to run adstats.sql in restricted mode:
Note: Make sure that you have at least 1.5 GB of free default temporary tablespace.
If you plan to change the database port, host, SID, or database name parameter on the database server, you
must also update AutoConfig on the database tier and deregister the current database server node.
Use SQL*Plus to connect to the database as APPS and run the following command:
Implement and run AutoConfig in the new Oracle home on the database server node. If the database listener of
the new Oracle home is defined differently than the old Oracle home, you must also run AutoConfig on each
application tier server node to update the system with the new listener.
Shut down all processes, including the database and the listener, and restart them to load the new environment
settings.
Attention: After creating the appsutil directory and before running AutoConfig, copy orai18n.jar from
$ORACLE_HOME/jlib to $ORACLE_HOME/jdk/jre/lib/ext
Attention: After creating the XML context file, ensure the variable s_jretop points to
$ORACLE_HOME/jdk/jre and is not altered to any other value.
If you upgraded from an RDBMS version prior to 12c, use SQL*Plus to connect to the database as SYSDBA
and run the $ORACLE_HOME/rdbms/admin/catmgd.sql script. This creates the new MGDSYS schema.
If you upgraded from an RDBMS version prior to 12c, apply Patch 18039691 for Oracle E-Business Suite
Release 12.1
To check for the existence of database links, use SQL*Plus on the database server node to connect to the
Applications database instance as APPS and run the following query
If you have custom self-referential database links in the database instance, use the following commands to
drop and re-create them
where [custom database link], [user], [password], [hostname], [port number], and [ORACLE_SID] reflect the
new Oracle Net listener for the database instance.
Restart all the Application tier server processes that you shut down previously. Remember that the Oracle Net
listener for the database instance, as well as the database instance itself, need to be started in the 12.1 Oracle
home. Users may return to the system.
Log on to Oracle E-Business Suite with the "System Administrator" responsibility. Click Requests > Run >
Single Request and the OK button. Enter the following parameters: