Notes on upgrading 11i E-Business Suite database from 10.2.0.4 to 11.2.0.

3 on Linux

Apply 11gR2 interoperability patches using adpatch on Admin Tier

8815204 5644137 7456837 9535311 9835302

INTEROPERABILITY PATCH FOR R11I ON 11.2 RDBMS PLM_PF.C: USE OF LITERAL CAUSING PERFORMANCE ISSUE WHEN INSERTING DATA INTO USER DEFINED ATTRIBUTES TABLES ONE -OFF - 11I AOL/J CODE BASE AND 11G JDBC DRIVER COMPLIANCE TXK AUTOCONFIG AND TEMPLATES ROLLUP PATCH Update TCH11201: ADBLDXML AND AUTOCONFIG COMPLETES WITH JAVA.LANG.UNSATISFIEDLINKERROR

Reference Metalink Notes:
881505.1 165195.1

Setup the 11.2.0.3 environment
[oracle@kens-orasql-002-uat script]$ export ORACLE_HOME=/hds001/oracle/product/11.2.0.3/dbhome_1 export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/perl/bin:$PATH export LD_LIBRARY_PATH=$ORACLE_HOME/lib export PERL5LIB=/hds001/oracle/product/11.2.0.3/dbhome_1/perl/lib/5.10.0:/hds001/oracle/product/11.2.0.3/dbhome_1/perl/lib/site_perl/5.10.0

[oracle@kens-orasql-002-uat script]$ cd /hds001/oracle/product/11.2.0.3/dbhome_1/nls/data/old/ [oracle@kens-orasql-002-uat old]$ which perl /hds001/oracle/product/11.2.0.3/dbhome_1/perl/bin/perl [oracle@kens-orasql-002-uat old]$ perl cr9idata.pl Creating directory /hds001/oracle/product/11.2.0.3/dbhome_1/nls/data/9idata ... Copying files to /hds001/oracle/product/11.2.0.3/dbhome_1/nls/data/9idata... Copy finished. Please reset environment variable ORA_NLS10 to /hds001/oracle/product/11.2.0.3/dbhome_1/nls/data/9idata!

Edit .bash_profile
ORA_NLS10=/hds001/oracle/product/11.2.0.3/dbhome_1/nls/data/9idata export ORA_NLS10

Install opatch for 11.2.0.3
[oracle@kens-orasql-002-uat stage]$ mv /hds001/oracle/product/11.2.0.3/dbhome_1/OPatch /hds001/oracle/product/11.2.0.3/dbhome_1/OPatch.old [oracle@kens-orasql-002-uat stage]$ cp p6880880_112000_Linux-x86-64.zip $ORACLE_HOME [oracle@kens-orasql-002-uat stage]$ cd $ORACLE_HOME/

[oracle@kens-orasql-002-uat dbhome_1]$ unzip p6880880_112000_Linux-x86-64.zip Archive: /hds001/oracle/product/11.2.0.3/dbhome_1/p6880880_112000_Linux-x86-64.zip creating: OPatch/ creating: OPatch/oplan/ inflating: OPatch/oplan/README.html …. …. [oracle@kens-orasql-002-uat dbhome_1]$ cd OPatch [oracle@kens-orasql-002-uat OPatch]$ ./opatch version OPatch Version: 11.2.0.3.0 OPatch succeeded.

export PATH=/hds001/oracle/product/11.2.0.3/dbhome_1/OPatch:$PATH

[oracle@kens-orasql-002-uat OPatch]$ which opatch /hds001/oracle/product/11.2.0.3/dbhome_1/OPatch/opatch

Apply additional 11.2.0.3 RDBMS patches
Apply the following patches using opatch
o

9858539

o o o o o o o 12942119 12960302 12985184 13001379 13004894 13258936 13366268 Prepare the database for the 11.repcat$_audit_column_idx1 .2. SQL> exec dbms_stats. DBA Recyclebin purged. SQL> Drop index system. PL/SQL procedure successfully completed.3 Upgrade As SYS as SYSDBA SQL> purge dba_recyclebin.repcat$_audit_column_idx1 * ERROR at line 1: ORA-01418: specified index does not exist Remove all hidden database parameters and events from pfile (or spfile) and restart the database: _b_tree_bitmap_plans .gather_dictionary_stats.0. Drop index system.

object_type. SQL> spool off Disable Archive logging and restart the database Set Up the 11._fast_full_scan_enabled _gby_hash_aggregation_enabled _like_with_bind_as_equality _optimizer_push_pred_cost_based _sort_elimination_cost_ratio _sqlexec_progression_cost _trace_files_public Get a list of pre-upgrade INVALID objects SQL> set pagesize 5000 SQL> spool invalid_objects. SQL> select owner.3 environment to launch the Database Upgrade Assistant(dbua) .object_name from dba_objects where status=’INVALID’order by owner.2.0.count(*) from dba_objects where status='INVALID' group by cube(owner).object_type.lst SQL> select owner. object_name.

.

.

If you see a screen like this …. . This can happen if the environment variable ORA_TZFILE is set and is pointing to the Oracle 10g Home – unset the variable and launch dbua once again.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

0.0 11.0.2.3.3.2. STATUS ----------VALID VALID VALID VALID VALID VALID VALID VALID VALID INVALID VALID STATUS ----------VALID VALID VALID VALID VERSION -----------------------------11.0 11.2.2. COMP_NAME -------------------------------------------------Oracle Text Oracle Data Mining OLAP Catalog Spatial Oracle Multimedia Oracle XML Database Oracle Expression Filter Oracle Database Catalog Views Oracle Database Packages and Types Oracle Real Application Clusters JServer JAVA Virtual Machine COMP_NAME -------------------------------------------------Oracle XDK Oracle Database Java Packages OLAP Analytic Workspace Oracle OLAP API 15 rows selected.2.0.0 11.3.0 11.3.0 11.3.0.0.status.2.0 11.2.0.3.0.3.0 11.2.2.2.0.0 11.0 11.3.0 11.3.3.3.0.0.3.0 11.0.2.3.0.2.2.0.0 11.0.2.0 11.POST UPGRADE After the upgrade check DBA_REGISTRY SQL> set linesize 120 SQL> col comp_name format a50 SQL> select comp_name.3.0 VERSION -----------------------------11.version from dba_registry.0.0 .3.2.

Create the updated 11.2.ora SQL> create pfile from spfile.0. Update the following database parameters after the RDBMS 11gR2 upgrade _b_tree_bitmap_plans FALSE _fast_full_scan_enabled FALSE _like_with_bind_as_equality TRUE _optimizer_autostats_job false _sort_elimination_cost_ratio 5 _system_trig_enabled true _trace_files_public TRUE compatible 11.2.3 pfile [oracle@kens-orasql-002-uat ~]$ cd $ORACLE_HOME/dbs [oracle@kens-orasql-002-uat dbs]$ ls –lrt spfile* -rw-r----.0 utl_file_dir '/usr/tmp'. PL/SQL procedure successfully completed.upgrade_stat_table('applfnd'.2/appsutil/outbound/CLMTS10G_KENs-ORASQL-001' .1 oracle oinstall 4608 Sep 18 12:29 spfileCLMTS10G.Upgrade the statistics table SQL> exec dbms_stats. '/oracle/CLMTS10G/db/tech_st/11. File created.0.'fnd_stattab').2.

adctxprv.0.3 Listener Kill the 10g listener oracle 377 1 CLMTS10G -inherit oracle 18909 18287 0 Aug16 ? 0 09:49 pts/3 00:01:24 /hds001/oracle/product/10.sql and adstats.2.sql.Note – check the utl_file_dir parameter as paths may change after the upgrade Remove the following database parameters: core_dump_dest nls_language plsql_optimize_level timed_statistics Set up the 11.sql .sql APPL_TOP/admin/adstats.2.0/dbhome_1/bin/tnslsnr 00:00:00 grep tns [oracle@kens-orasql-002-uat script]$ kill -9 377 Create the 11gR2 listener using netca – retain the same port as the 10g listener Copy adgrants.sql from the Admin Tier across to the 11gR2 Oracle home APPL_TOP/admin/adgrants.

sql As SYSDBA: SQL> @adgrants. SID.sql <APPS USER> As APPS: SQL> @adctxprv.AD_TOP/patch/115/sql/ adctxprv. 'public' ).ctx_adm. AutoConfig Setup Deregister the current database server (conditional) If you plan to change the database port. PL/SQL procedure successfully completed.set_parameter( 'file_access_role'. you must also update AutoConfig on the database tier and deregister the current database server node. host. Use SQL*Plus to connect to the database as APPS and run the following command: .sql <SYSTEM password> CTXSYS Update the CTXSYS file_access_role parameter. SQL> exec ctxsys. or database name parameter on the database server.

Copy appsutil directory from 10GR2 home to 11gR2 home [oracle@kens-orasql-002-uat dbhome_1]$ cp -fR appsutil [oracle@kens-orasql-002-uat dbhome_1]$ /hds001/oracle/product/11.setup_clean.6.sh and adcrobj.sh exiting with status 1 ERRORCODE = 1 ERRORCODE_END Fixed by: .bin mv jre1.bin run .2.0.3/dbhome_1/ Download jre-6u29-linux-x64./jre-6u29-linux-x64.0.sh sscripts SP2-1503: Unable to initialize Oracle call interface SP2-0152: ORACLE may not be functioning properly adcrobj.0_29 jre [oracle@kens-orasql-002-uat bin]$ perl adbldxml.pl tier=db appsuser=apps_applfnd jtop=/hds001/oracle/product/11.2.3/dbhome_1/appsutil/jre Run AutoConfig on Database Tier using adconfig We were getting error in autoconfig while it was running afdbprf.$ sqlplus apps/[APPS password] SQL> exec fnd_conc_clone.

0.env added lines : if test "%s_database%" = "db112" .2.3/dbhome_1/appsutil/CLMTS10G_kensorasql-002-uat. then ORA_TZFILE="" else ORA_TZFILE="$ORACLE_HOME/oracore/zoneinfo/timezlrg.0.jar Using Context file orasql-002-uat.0.3/dbhome_1 Classpath : /hds001/oracle/product/11.0.zip:/hds001/oracl e/product/11.3/dbhome_1/appsutil/template vi ad8idbux.xml Enter the APPS user password: The log file for this session is located at: /hds001/oracle/product/11.3/dbhome_1/appsutil/java/xmlparserv2.jar:/hds001/oracle/product/11.cd /hds001/oracle/product/11.0.2.0.2./adconfig.2..0.log AutoConfig is configuring the Database environment.2. Using ORACLE_HOME location : /hds001/oracle/product/11.0..2.3/dbhome_1/appsutil/jre/lib/rt.jar:/hds001/oracle/product/11.2.sh Enter the full path to the Context file: /hds001/oracle/product/11.2.3/dbhome_1/appsutil/log/CLMTS10G_kens-orasql-002-uat/09191047/adconfig.3/dbhome_1/jlib/netcfg.0. AutoConfig will consider the custom templates if present.0.2.2.3/dbhome_1 /jdbc/lib/ojdbc6.dat" fi export ORA_TZFILE [oracle@kens-orasql-002-uat bin]$ .xml : /hds001/oracle/product/11.3/dbhome_1/appsutil/CLMTS10G_kens- .3/dbhome_1/appsutil/java:/hds001/oracle/product/11.

SQL> startup Note: If host.Context Value Management will now update the Context file Updating Context file. listener port .. database name etc changes then have to run autoconfig on the apps tiers as well On Admin tier via adadmin .....COMPLETED Updating rdbms version in Context file to db112 Updating rdbms type in Context file to 64 bits Configuring templates from ORACLE_HOME .sql As SYSDBA : SQL> shutdown immediate.COMPLETED Attempting upload of Context file and templates to database.. SQL> startup restrict SQL> @adstats SQL> shutdown immediate. AutoConfig completed successfully. Run adstats.

Recreate grants and synonyms Update bash profile of database user to point to new environment file .

Sign up to vote on this title
UsefulNot useful