You are on page 1of 35

Upgrade Oracle Database 11.1.0.7 to 11.2.0.2 with EBS R12.1.

3 on
RedHat Linux x86_64 - 5.5
Interoperability Notes EBS R12 with Database 11gR2 [ID 1058763.1]
Interoperability Notes Oracle EBS R12 with Oracle Database 11gR2 (11.2.0.2) [ID 1367644.1]

1. Install Oracle New Home using Oracle Database Examples CD


a. Download: http://www.oracle.com/technetwork/database/enterpriseedition/downloads/112010-linx8664soft-100572.html

b.
Create one directory inside the Current Oracle Home.
o $ mkdir 11.2.0
o $ chmod 775 11.2.0

Check the RPMS


binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3 (32 bit)
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
gcc-4.1.2
gcc-c++-4.1.2
glibc-2.5-24
glibc-2.5-24 (32 bit)
glibc-common-2.5
glibc-devel-2.5
glibc-devel-2.5 (32 bit)
glibc-headers-2.5
ksh-20060214
libaio-0.3.106
libaio-0.3.106 (32 bit)
libaio-devel-0.3.106
libaio-devel-0.3.106 (32 bit)
libgcc-4.1.2
libgcc-4.1.2 (32 bit)
libstdc++-4.1.2
libstdc++-4.1.2 (32 bit)
libstdc++-devel 4.1.2
make-3.81
numactl-devel-0.9.8.x86_64
sysstat-7.0.2

Page 1 of 35

Check the sysctl.conf file for below mentioned parameters.


# cd /etc
# vi sysctl.conf

kernel.shmall = 4294967296
kernel.sem = 256 32000 100 142
kernel.shmmni = 4096
kernel.msgmni = 2878
fs.file-max = 6815744
net.ipv4.ip_local_port_range =9000 65000
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 262144
tcp.ipv4.tcp_wmem = 262144 262144 262144
tcp.ipv4.tcp_rmem = 4194304 4194304 4194304
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65000
# cd /etc/security
# vi limits.conf
################oracle setup##############
* hard nofile 65536
* soft nofile 4096
* hard nproc 16384
* soft nproc 2047
##########################################

Installation

$ cd /database
$ ./runInstaller

Page 2 of 35

Page 3 of 35

Page 4 of 35

Page 5 of 35

Page 6 of 35

Page 7 of 35

Page 8 of 35

# GO TO EXAMPLE CD
$ ./runInstaller

Page 9 of 35

Page 10 of 35

Page 11 of 35

Copy from existing $ORACLE_HOME/network to new $ ORACLE_HOME

[oraprd@proderp network]$ cp -R admin/ /u05/db/tech_st/11.2.0/network/

Copy all the .env file to new ORACLE_HOME


$ cd $ORACLE_HOME
[oraprd@proderp 11.1.0]$ cp *.env /u05/db/tech_st/11.2.0/
Copy appsutil directory to New ORACLE HOME
$ cd $ORACLE_HOME
[oraprd@proderp 11.1.0]$ cp -R appsutil/ /u05/db/tech_st/11.2.0/
Go to New Oracle Home change the listener.ora file from old ORACLE_HOME to New ORACLE_HOME

PROD =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = proderp.mashkur.com.ae)(PORT = 1521))
)
)
SID_LIST_PROD =
(SID_LIST =
(SID_DESC =
(ORACLE_HOME= /u05/db/tech_st/11.2.0)
(SID_NAME = PROD)
)
)
STARTUP_WAIT_TIME_PROD = 0
CONNECT_TIMEOUT_PROD = 10
TRACE_LEVEL_PROD = OFF
LOG_DIRECTORY_PROD = /u05/db/tech_st/11.2.0/network/admin
LOG_FILE_PROD = PROD
TRACE_DIRECTORY_PROD = /u05/db/tech_st/11.2.0/network/admin
TRACE_FILE_PROD = PROD
ADMIN_RESTRICTIONS_PROD = OFF
SUBSCRIBE_FOR_NODE_DOWN_EVENT_PROD = OFF
IFILE=/u05/db/tech_st/11.2.0/network/admin/PROD_proderp/listener_ifile.ora
Page 12 of 35

Edit sqlnet.ora (Change Old ORACLE_HOME to New ORACLE_HOME)

IFILE=/u05/db/tech_st/11.2.0/network/admin/PROD_proderp/sqlnet_ifile.ora

Change tnsname.ora ((Change Old ORACLE_HOME to New ORACLE_HOME)

IFILE=/u05/db/tech_st/11.2.0/network/admin/PROD_proderp/PROD_proderp_ifile.ora

Change PROD_proderp.env (Change Old ORACLE_HOME to New ORACLE_HOME)

Change all the places 11.1.0 to 11.2.0


$ cd $ORACLE_HOME/appsutil
$ vi PROD_proderp.xml
Change all the places 11.1.0 to 11.2.0
STOP THE LISTENER
SHUTDOWN THE DATABASE
Please take Cold Backup of DB and ORACLE_HOME
START THE DATABASE
START THE LISTENER
Take application Maintenance Mode(adadmin)
Apply the below mentioned patch.
o 9062910, 9852070, 8919489 (applied)
Take a backup of appsutil directory from New ORACLE_HOME
Create New appsuatl :
[applprd@erpprod bin]$ perl admkappsutil.pl
Starting the generation of appsutil.zip
Log file located at /soft/db/inst/apps/PROD_erpprod/admin/log/MakeAppsUtil_10110935.log
output located at /soft/db/inst/apps/PROD_erpprod/admin/out/appsutil.zip
MakeAppsUtil completed successfully.
Transfer file from application server to db server:
[applprd@erpprod bin]$ scp /soft/db/inst/apps/PROD_erpprod/admin/out/appsutil.zip
oraprd@proderp:/u05/db/tech_st/11.2.0
The authenticity of host 'proderp (172.16.254.70)' can't be established.
RSA key fingerprint is 04:99:30:ce:ce:15:c3:f7:c6:29:61:24:37:e9:8d:01.
Are you sure you want to continue connecting (yes/no)? yes
Page 13 of 35

Warning: Permanently added 'proderp,172.16.254.70' (RSA) to the list of known hosts.


oraprd@proderp's password:
appsutil.zip
100% 2731KB 2.7MB/s 00:00
[applprd@erpprod bin]$

Change the file permission.


[oraprd@proderp 11.2.0]$ ls -ltr appsutil.zip
-rw-r--r-- 1 oraprd dba 2796317 Oct 11 09:37 appsutil.zip
[oraprd@proderp 11.2.0]$ chmod -R 775 appsutil.zip
[oraprd@proderp 11.2.0]$ ls -ltr appsutil.zip
-rwxrwxr-x 1 oraprd dba 2796317 Oct 11 09:37 appsutil.zip
[oraprd@proderp 11.2.0]$
Extract the File:
[oraprd@proderp 11.2.0]$ unzip -o appsutil.zip
Set the NEW ORACLE HOME PATH
[oraprd@proderp db]$ export ORACLE_BASE=/u05/db
[oraprd@proderp db]$ export ORACLE_HOME=/u05/db/tech_st/11.2.0/
[oraprd@proderp db]$ export PATH=PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH

Apply DB Patches

p10160615_112020_Linux-x86-64.zip
p10229719_112020_Linux-x86-64.zip
p12400751_112020_Linux-x86-64.zip
p12942119_112020_Linux-x86-64.zip
p13001379_112020_Generic.zip
p13004894_112020_Linux-x86-64.zip
p10149223_112020_Linux-x86-64.zip

[[oraprd@proderp patch]$ unzip p10149223_112020_Linux-x86-64.zip


[oraprd@proderp patch]$ which opatch
Page 14 of 35

/u05/db/tech_st/11.2.0/OPatch/opatch
[oraprd@proderp patch]$ opatch version
Invoking OPatch 11.2.0.1.1
OPatch Version: 11.2.0.1.1
OPatch succeeded.
[oraprd@proderp patch]$
Go to extracted patch Directory
[erpora@erpuat 4247037]$ opatch apply
Invoking OPatch 11.2.0.1.1
Oracle Interim Patch Installer version 11.2.0.1.1
Copyright (c) 2009, Oracle Corporation. All rights reserved.
Oracle Home
: /prod/erpora/tech_st/11.2.0
Central Inventory : /prod/erpora/oraInventory
from
: /etc/oraInst.loc
OPatch version : 11.2.0.1.1
OUI version
: 11.2.0.2.0
OUI location : /prod/erpora/tech_st/11.2.0/oui
Log file location : /prod/erpora/tech_st/11.2.0/cfgtoollogs/opatch/opatch2012-11-28_18-29-17PM.log
Patch history file: /prod/erpora/tech_st/11.2.0/cfgtoollogs/opatch/opatch_history.txt
ApplySession applying interim patch '4247037' to OH '/prod/erpora/tech_st/11.2.0'
Running prerequisite checks...
OPatch detected non-cluster Oracle Home from the inventory and will patch the local system only.
Backing up files and inventory (not for auto-rollback) for the Oracle Home
Backing up files affected by the patch '4247037' for restore. This might take a while...
Backing up files affected by the patch '4247037' for rollback. This might take a while...
Patching component oracle.sdo.locator, 11.2.0.2.0...
Copying file to "/prod/erpora/tech_st/11.2.0/md/admin/catmgdidcode.sql"
Copying file to "/prod/erpora/tech_st/11.2.0/md/admin/catnomgdidcode.sql"
Copying file to "/prod/erpora/tech_st/11.2.0/md/admin/mgdidcodetype.plb"
Copying file to "/prod/erpora/tech_st/11.2.0/md/admin/mgdidcodetype.sql"
Copying file to "/prod/erpora/tech_st/11.2.0/md/admin/mgdidcodeutl.plb"
Copying file to "/prod/erpora/tech_st/11.2.0/md/admin/mgdidcodeutl.sql"
Copying file to "/prod/erpora/tech_st/11.2.0/md/admin/mgdiddeinstall.sql"
Page 15 of 35

Copying file to "/prod/erpora/tech_st/11.2.0/md/admin/mgdidepctype.plb"


Copying file to "/prod/erpora/tech_st/11.2.0/md/admin/mgdidepctype.sql"
Copying file to "/prod/erpora/tech_st/11.2.0/md/admin/mgdidinstall.sql"
Copying file to "/prod/erpora/tech_st/11.2.0/md/admin/mgdidmetadata.sql"
Copying file to "/prod/erpora/tech_st/11.2.0/md/admin/mgdidmetatable.sql"
Copying file to "/prod/erpora/tech_st/11.2.0/md/admin/mgdidprivs.plb"
Copying file to "/prod/erpora/tech_st/11.2.0/md/admin/mgdsys.sql"
Copying file to "/prod/erpora/tech_st/11.2.0/md/admin/prvtmgdidcodetypeb.plb"
Copying file to "/prod/erpora/tech_st/11.2.0/md/admin/prvtmgdidcodeutlb.plb"
Copying file to "/prod/erpora/tech_st/11.2.0/md/admin/prvtmgdidepctypeb.plb"
Copying file to "/prod/erpora/tech_st/11.2.0/md/support/patchset_mgdsys_validity.sql"
ApplySession adding interim patch '4247037' to inventory
Verifying the update...
Inventory check OK: Patch ID 4247037 is registered in Oracle Home inventory with proper meta-data.
Files check OK: Files from Patch ID 4247037 are present in Oracle Home.
OPatch succeeded.

[oraprd@proderp patch]$ cd 10149223/


[oraprd@proderp 10149223]$ pwd
/u05/db/patch/10149223
[oraprd@proderp 10149223]$
[oraprd@proderp 10149223]$ opatch apply
Invoking OPatch 11.2.0.1.1
Oracle Interim Patch Installer version 11.2.0.1.1
Copyright (c) 2009, Oracle Corporation. All rights reserved.
Oracle Home
: /u05/db/tech_st/11.2.0
Central Inventory : /u05/db/oraInventory
from
: /etc/oraInst.loc
OPatch version : 11.2.0.1.1
OUI version
: 11.2.0.2.0
OUI location : /u05/db/tech_st/11.2.0//oui
Log file location : /u05/db/tech_st/11.2.0/cfgtoollogs/opatch/opatch2012-10-11_11-38-24AM.log
Patch history file: /u05/db/tech_st/11.2.0/cfgtoollogs/opatch/opatch_history.txt
ApplySession applying interim patch '10149223' to OH '/u05/db/tech_st/11.2.0'
Page 16 of 35

Running prerequisite checks...


OPatch detected non-cluster Oracle Home from the inventory and will patch the local system only.
Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u05/db/tech_st/11.2.0')
Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files and inventory (not for auto-rollback) for the Oracle Home
Backing up files affected by the patch '10149223' for restore. This might take a while...
Backing up files affected by the patch '10149223' for rollback. This might take a while...
Patching component oracle.rdbms, 11.2.0.2.0...
Updating archive file "/u05/db/tech_st/11.2.0/lib/libserver11.a" with "lib/libserver11.a/kkqu.o"
Running make for target ioracle
ApplySession adding interim patch '10149223' to inventory
Verifying the update...
Inventory check OK: Patch ID 10149223 is registered in Oracle Home inventory with proper meta-data.
Files check OK: Files from Patch ID 10149223 are present in Oracle Home.
The local system has been patched and can be restarted.
OPatch succeeded.
Follow the above said steps for all opatch.

Stop the LISTENER FROM 11.1.07


[oraprd@proderp ~]$ lsnrctl stop PROD
LSNRCTL for Linux: Version 11.1.0.7.0 - Production on 11-OCT-2012 11:58:26
Copyright (c) 1991, 2008, Oracle. All rights reserved.
Page 17 of 35

Connecting to
(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=proderp.mashkur.com.ae)(PORT=1521)))
The command completed successfully
[oraprd@proderp ~]$
Run the pre-upgrade scripts
Copy the utlu112i.sql to common location
[oraprd@proderp admin]$ pwd
/u05/db/tech_st/11.2.0/rdbms/admin
[oraprd@proderp admin]$
[oraprd@proderp admin]$
[oraprd@proderp admin]$ ls -ltr utlu112i.sql
-rw-r--r-- 1 oraprd dba 204205 Aug 19 2010 utlu112i.sql
[oraprd@proderp admin]$
[oraprd@proderp admin]$ cp utlu112i.sql /u05/db/patch/
[oraprd@proderp admin]$
Login as sysdba
[oraprd@proderp ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.1.0.7.0 - Production on Thu Oct 11 12:05:09 2012
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
Go to $ORACLE_HOME/rdbms/admin (from 11.2.0)
[oraprd@proderp patch]$ ls -ltr *.sql
-rw-r--r-- 1 oraprd dba 204205 Oct 11 12:03 utlu112i.sql
[oraprd@proderp patch]$ sqlplus / as sysdba
SQL*Plus: Release 11.1.0.7.0 - Production on Thu Oct 11 12:05:53 2012
Copyright (c) 1982, 2008, Oracle. All rights reserved.

Page 18 of 35

Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> spool upgrade_1.txt
SQL> @ utlu112i.sql
Oracle Database 11.2 Pre-Upgrade Information Tool 10-11-2012 12:06:58
Script Version: 11.2.0.2.0 Build: 001
.
**********************************************************************
Database:
**********************************************************************
--> name:
PROD
--> version:
11.1.0.7.0
--> compatible: 11.1.0
--> blocksize: 8192
--> platform: Linux x86 64-bit
--> timezone file: V10
.
**********************************************************************
Tablespaces: [make adjustments in the current environment]
**********************************************************************
--> SYSTEM tablespace is adequate for the upgrade.
.... minimum required size: 11997 MB
--> CTXD tablespace is adequate for the upgrade.
.... minimum required size: 143 MB
--> ODM tablespace is adequate for the upgrade.
.... minimum required size: 10 MB
--> APPS_UNDOTS1 tablespace is adequate for the upgrade.
.... minimum required size: 106 MB
--> APPS_TS_TX_DATA tablespace is adequate for the upgrade.
.... minimum required size: 22759 MB
--> APPS_TS_QUEUES tablespace is adequate for the upgrade.
.... minimum required size: 1361 MB
--> SYSAUX tablespace is adequate for the upgrade.
.... minimum required size: 2225 MB
..

$ cd $ORACLE_HOME/bin
$ ./dbua -initParam "_disable_fast_validate=TRUE"

Page 19 of 35

If u will not find any oracle home edit your oratab from /etc/
[oraprd@proderp ~]$ cat /etc/oratab
#

# This file is used by ORACLE utilities. It is created by root.sh


# and updated by the Database Configuration Assistant when creating
Page 20 of 35

# a database.
# A colon, ':', is used as the field terminator. A new line terminates
# the entry. Lines beginning with a pound sign, '#', are comments.
#
# Entries are of the form:
# $ORACLE_SID:$ORACLE_HOME:<N|Y>:
#
# The first and second fields are the system identifier and home
# directory of the database respectively. The third filed indicates
# to the dbstart utility that the database should , "Y", or should not,
# "N", be brought up at system boot time.
#
# Multiple entries with the same $ORACLE_SID are not allowed.
#
#
PROD:/u05/db/tech_st/11.2.0:N
[oraprd@proderp ~]$

Page 21 of 35

Page 22 of 35

Page 23 of 35

For above mentioned message:


connect as sys
Page 24 of 35

drop user sysman cascade;


drop role mgmt_user;
drop user mgmt_view cascade;
drop public synonym mgmt_target_blackouts;
drop public synonym setemviewusercontext;

Page 25 of 35

Page 26 of 35

Ignore this error for EBZ R12.1.x.x

After Completing the Upgrade. Please check the logs , if any error is there ?

POST UPGRADE
Set ORACLE_HOME TO 11.2.0

[oraprd@proderp old]$ pwd


/u05/db/tech_st/11.2.0/nls/data/old
[oraprd@proderp old]$ perl cr9idata.pl
Creating directory /u05/db/tech_st/11.2.0/nls/data/9idata ...
Copying files to /u05/db/tech_st/11.2.0/nls/data/9idata...
Copy finished.
Please reset environment variable ORA_NLS10 to /u05/db/tech_st/11.2.0/nls/data/9idata!
[oraprd@proderp old]$

Page 27 of 35

Check the .env file and replace all 11.1.0 to 11.2.0

[oraprd@proderp 11.2.0]$ sqlplus / as sysdba


SP2-1503: Unable to initialize Oracle call interface
SP2-0152: ORACLE may not be functioning properly
[oraprd@proderp 11.2.0]$ vi PROD_proderp.env
Pleae unset the env veriable.
If you use Oracle E- Business Suite 11i or R12 then you have to remove the environment variable ORA_TZFILE
also from the database environment file.
At the end of $ORACLE_DATABASE_HOME/SID_host.env there is an entry

######################
# Timezone Specification file
ORA_TZFILE="$ORACLE_HOME/oracore/zoneinfo/timezlrg.dat
export ORA_TZFILE
######################
you must remove it. It shows a file(timezlrg.dat) that no longer exists!

You must also remove the ORA_TZFILE and from $ORACLE_DATABASE_HOME/appsutil/template/ad8idbux.env

[oraprd@proderp 11.2.0]$ unset ORA_TZFILE


[oraprd@proderp 11.2.0]$ bash
[oraprd@proderp 11.2.0]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.2.0 Production on Sat Oct 13 12:30:47 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
[erpora@erpuat admin]$ pwd
/prod/erpora/tech_st/11.2.0/md/admin
[erpora@erpuat admin]$
[erpora@erpuat admin]$ ls -ltr catmgdidcode.sql
-rw-r--r-- 1 erpora dba 794 Dec 28 2006 catmgdidcode.sql
[erpora@erpuat admin]$
Page 28 of 35

SQL> @catmgdidcode.sql

SQL> @ /prod/erpora/tech_st/11.2.0/rdbms/admin/utlrp.sql
TIMESTAMP
-------------------------------------------------------------------------------COMP_TIMESTAMP UTLRP_BGN 2012-11-29 09:31:44
DOC>
DOC>
DOC>
DOC>
DOC>
DOC>
DOC>
DOC>
DOC>
DOC>
DOC>
DOC>
DOC>
DOC>
DOC>
DOC>

The following PL/SQL block invokes UTL_RECOMP to recompile invalid


objects in the database. Recompilation time is proportional to the
number of invalid objects in the database, so this command may take
a long time to execute on a database with a large number of invalid
objects.
Use the following queries to track recompilation progress:
1. Query returning the number of invalid objects remaining. This
number should decrease with time.
SELECT COUNT(*) FROM obj$ WHERE status IN (4, 5, 6);
2. Query returning the number of objects compiled so far. This number
should increase with time.
SELECT COUNT(*) FROM UTL_RECOMP_COMPILED;

..

Copy adgrants.sql

from $APPL_TO to db server

[applprd@erpprod admin]$ pwd


/soft/db/apps/apps_st/appl/admin
Page 29 of 35

[applprd@erpprod admin]$ ls -ltr adgrants.sql


-rwxr-xr-x 1 applprd dba 53060 Jan 28 2012 adgrants.sql
[applprd@erpprod admin]$ scp adgrants.sql oraprd@proderp:/u05/db/tech_st/
oraprd@proderp's password:
adgrants.sql
100% 52KB 51.8KB/s 00:00
[applprd@erpprod admin]$
Copy adctxprv.sql DB Server
[applprd@erpprod sql]$ pwd
/soft/db/apps/apps_st/appl/ad/12.0.0/patch/115/sql
[applprd@erpprod sql]$
[applprd@erpprod sql]$
[applprd@erpprod sql]$ ls -ltr adctxp
adctxpkg.sql adctxprv.sql
[applprd@erpprod sql]$ ls -ltr adctxprv.sql
-rwxr-xr-x 1 applprd dba 1664 Jan 28 2012 adctxprv.sql
[applprd@erpprod sql]$
[applprd@erpprod sql]$ scp adctxprv.sql oraprd@proderp:/u05/db/tech_st/
oraprd@proderp's password:
adctxprv.sql
100% 1664 1.6KB/s 00:00
[applprd@erpprod sql]$

[oraprd@proderp tech_st]$ sqlplus / as sysdba


SQL*Plus: Release 11.2.0.2.0 Production on Sat Oct 13 12:45:37 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> spool adgrants.log
SQL> @ adgrants.sql
----------------------------------------------------- adgrants.sql started at 2012-11-29 09:43:40 --Enter value for 1: APPLSYS

Page 30 of 35

RUN

adctxprv.sql

[oraprd@proderp tech_st]$ sqlplus apps/apps @adctxprv.sql manager CTXSYS


SQL*Plus: Release 11.2.0.2.0 Production on Sat Oct 13 12:55:45 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Connecting to SYSTEM
Connected.
PL/SQL procedure successfully completed.
Commit complete.
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oraprd@proderp tech_st]$

[oraprd@proderp tech_st]$ sqlplus / as sysdba


SQL*Plus: Release 11.2.0.2.0 Production on Sat Oct 13 12:57:49 2012
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> exec ctxsys.ctx_adm.set_parameter('file_access_role', 'public');
PL/SQL procedure successfully completed.
SQL>
RUN wfaqupfix.sql from APPS SERVER ONLY
Page 31 of 35

[applprd@erpprod sql]$ pwd


/soft/db/apps/apps_st/appl/fnd/12.0.0/patch/115/sql
[applprd@erpprod sql]$ ls -ltr wfaqupfix.sql
-rwxr-xr-x 1 applprd dba 4631 Jan 28 2012 wfaqupfix.sql
[applprd@erpprod sql]$ pwd
/soft/db/apps/apps_st/appl/fnd/12.0.0/patch/115/sql
[applprd@erpprod sql]$ ls -ltr wfaqupfix.sql
-rwxr-xr-x 1 applprd dba 4631 Jan 28 2012 wfaqupfix.sql
[applprd@erpprod sql]$
[applprd@erpprod sql]$ scp wfaqupfix.sql oraprd@proderp:/u05/db/tech_st/
oraprd@proderp's password:
wfaqupfix.sql
100% 4631 4.5KB/s 00:00
[applprd@erpprod sql]$ sqlplus apps/apps @wfaqupfix.sql APPLSYS APPS
SQL*Plus: Release 10.1.0.5.0 - Production on Sat Oct 13 13:03:14 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
PL/SQL procedure successfully completed.
Commit complete.
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[applprd@erpprod sql]$

RUN AUTO CONFIG IN DB Tier


In adautocfg.sh there will be error.
$ vi adautocfg.sh
Edit these lines where u will see 11.1.07 replace it 11.2.0.2
Run the autoconfig.
Page 32 of 35

[oraprd@proderp PROD_proderp]$ ./adautocfg.sh


Enter the APPS user password:
The log file for this session is located at:
/u05/db/tech_st/11.2.0/appsutil/log/PROD_proderp/10131338/adconfig.log
AutoConfig is configuring the Database environment...
AutoConfig will consider the custom templates if present.
Using ORACLE_HOME location : /u05/db/tech_st/11.2.0
Classpath
:
:/u05/db/tech_st/11.2.0/jdbc/lib/ojdbc6.jar:/u05/db/tech_st/11.2.0/appsutil/java/xmlparserv2.jar:/u05
/db/tech_st/11.2.0/appsutil/java:/u05/db/tech_st/11.2.0/jlib/netcfg.jar:/u05/db/tech_st/11.2.0/jlib/lda
pjclnt11.jar
Using Context file

: /u05/db/tech_st/11.2.0/appsutil/PROD_proderp.xml

Context Value Management will now update the Context file


UnsatisfiedLinkError exception loading native library: njni11
java.lang.UnsatisfiedLinkError: /u05/db/tech_st/11.2.0/lib/libnjni11.so:
/u05/db/tech_st/11.2.0/lib/libnjni11.so: wrong ELF class: ELFCLASS64 (Possible cause: architecture word
width mismatch)
Updating Context file...COMPLETED
Attempting upload of Context file and templates to database...COMPLETED
Updating rdbms version in Context file to db112
Updating rdbms type in Context file to 64 bits
Configuring templates from ORACLE_HOME ...
AutoConfig completed successfully.
[oraprd@proderp PROD_proderp]$
GO TO APPS TIER.
$adadmin
AD code level : [B.3]
AD Administration Main Menu
-------------------------------------------------1. Generate Applications Files menu
2. Maintain Applications Files menu
Page 33 of 35

3. Compile/Reload Applications Database Entities menu


4. Maintain Applications Database Entities menu
5. Change Maintenance Mode
6. Exit AD Administration

Enter your choice [6] : 4


Maintain Applications Database Entities
--------------------------------------------------1. Validate APPS schema
2. Re-create grants and synonyms for APPS schema
3. Maintain multi-lingual tables
4. Check DUAL table
5. Return to Main Menu

Enter your choice [5] :


1. Validate APPS schema
2. Re-create grants and synonyms for APPS schema
After Completing the task , relink the all program
RUN THE AUTO CONFIG.
$ cd $ADMIN_SCRIPTS_HOME
Page 34 of 35

$ ./adautocfg.sh
$ ./adstrtall.sh apps/apps

Page 35 of 35

You might also like