Professional Documents
Culture Documents
EBS R12 Database Upgrade From 11.1.0.7 To 11.2.0.4
EBS R12 Database Upgrade From 11.1.0.7 To 11.2.0.4
Check OraTab:
$cat /etc/oraTab – On DB Tier
Ignore this, if it available it should be “NO” as auto start
Auto Config Check:
Validate the patch applied status,
select * from ad_bugs where bug_number in( '8919489', '9738085', '9852070',’12686610')
If not applied,
Login Apps tier with applmgr account and enable maintenance mode
$ adadmin -
Apply below patches with adpath, follow the sequence
$/mnt/software/Patches/9738085
$ adpatch
o Patch 8919489 – Should be applied with 12.1.3 upgrade patch set
After Apply, complete bellow process:
1.1. On the Application Tier (as the APPLMGR user):
1.1.1. Source the environment file.
1.1.2. Create the appsutil.zip file by executing:
$ADPERLPRG $AD_TOP/bin/admkappsutil.pl
(On Windows: %ADPERLPRG% %AD_TOP%\bin\admkappsutil.pl)
This will create appsutil.zip under $INST_TOP/admin/out
1.2. On the Database Tier (as the ORACLE user):
1.2.1. Copy or FTP the appsutil.zip file to the
1.2.2. cd $ORACLE_HOME
1.2.3. $unzip -o appsutil.zip
1.2.4. Run AutoConfig by executing:
$ORACLE_HOME/appsutil/scripts/$CONTEXT_NAME/adautocfg.sh
Apply Patch 9738085
$/mnt/software/Patches/9738085
$ adpatch
Patch 9852070
$/mnt/software/Patches/9852070
$ adpatch
Patch 12686610
$/mnt/software/Patches/12686610
$ adpatch
-This will run the autoconfig
Validate all patch logs for errors and warnings.
Apply patch:
Apply patch 6400501 (conditional):
Apply with Opatch –Check Read me
Stop Services:
Stop Applications – Apps tier
$ cd $ADMIN_SCRIPTS_HOME
$ adstpall.sh apps/apps
Shutdown database – Database tier
Sqlplus / as sysdba
Sql> shutdown immediate
Stop listeners – Database tier
$ lsnrctl stop
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. $export
ORA_NLS10=$ORACLE_HOME/nls/data/9idata
Apply Additional 11.2.0.4 RDMS Patches:
Opatch - Apply additional 11.2.0.4 RDBMS patches – Database tier
$cd $HOME/Patches – Make sure opatch is in path
o Patch 4247037
o Patch 17402822
o Patch 17468141
o Patch 17501296
Postinstallation
$cd 17501296
$ sqlplus /nolog
SQL> CONNECT / AS SYSDBA
SQL> @postinstall.sql
Check the output for any errors
o Patch 17892268
o Patch 19393542
Listeners Stop:
Stop Listeners – Source Database
$lsnrctl stop
oratab file edit it should be old oracle home path and additionally end must be Y
$vi /etc/oratab
VIS: /u01/oraR12/VIS/db/tech_st/11.1.0:Y
CTXSYS Changes:
Copy the adctxprv.sql file to db tier from apps tier
Login Apps tier copy file from $AD_TOP/patch/115/sql/ location
Copy to oravis home location on db tier (through winscp or others)
Login to db tier with
$cd $HOME
Execute: sqlplus apps/[APPS password] @adctxprv.sql \ [SYSTEM password] CTXSYS
$sqlplus apps/apps @adctxprv.sql \ manager CTXSYS
Note: Error - Perl lib version (5.10.0) doesn't match executable version (v5.10.1) at Workaround -
$export ORACLE_HOME=/u01/oraR12/VIS/db/tech_st/11.2.0 export
$PERL5LIB=$ORACLE_HOME/perl/lib/5.10.0:$ORACLE_HOME/perl/site_perl/5.10.0:$ORACLE_HO
ME/appsutil/perl export PATH=$ORACLE_HOME/perl:$ORACLE_HOME/perl/lib:
$ORACLE_HOME/perl/bin:$PATH
DB Auto Config:
Auto Config on new database
Login to apps tier with applmgr account
$cd $ADMIN_SCRIPTS_HOME
$adstpall.sh apps/apps
Login to db tier with oravis
$cd $ORACLE_HOME/appsutil/scripts
$adautocfg.sh
OR
Run adconfig on the Database tier from xml file (it will create environment file for db tire )
$ORACLE_HOME/appsutil/bin/adconfig.sh
contextfile=/u01/oraR12/VIS/db/tech_st/11.2.0/appsutil/VIS_ebsdb.xml
Apps Autoconfig:
Auto config on Apps tier
$login to apps tier with applmgr account
$cd $ADMIN_SCRIPTS_HOME
$adstpall.sh apps/apps
$adautocfg.sh
$adstrtal.sh apps/apps
Note: Apps tier and DB Tier started with all new configuration