Professional Documents
Culture Documents
Oracle 11g Upgrade On HP-UNIX
Oracle 11g Upgrade On HP-UNIX
1 ) on HP-UNIX
su – ora<sid>
umask 022 –make sure you do this prior to running any upgrade activities
mkdir /oracle/stage/112_64
mkdir /oracle/SID/112_64
cd /oracle/stage/112_64
SAPCAR –xvf /install/ORA_11G/OR111264.SAR
SAPCAR –xvf /install/ORA_11G/OR211264.SAR
SAPCAR –xvf /install/ORA_11G/ OR311264.SAR
SAPCAR –xvf /install/ORA_11G/ OR411264.SAR
SAPCAR –xvf /install/ORA_11G/ OR511264.SAR
SAPCAR –xvf /install/ORA_11G/ OR611264.SAR
SAPCAR –xvf /install/ORA_11G/OR711264.SAR
4 Follow the installation guide and this document. Install guide steps are in this document , but
please use both.
6 Check /oracle/SID for freespace – ORA 11 needs at least 8gb of freespace in /oracle/SID
kctune ncsize=35840
kctune ninode=34816
kctune nfile=126976
kctune maxfiles_lim=63488
Oracle 11g Upgrade – (10.2.0.4 to 11.2.0.1 ) on HP-UNIX
** I also looked at all parms execute as root kcweb –F
Select – T - Tunables
As orasid user
cd /oracle/stage/112_64/database
./runInstaller –executeSysPrereqs
Oracle 11g Upgrade – (10.2.0.4 to 11.2.0.1 ) on HP-UNIX
As ora<sid> start VNC session , will need it next
./runInstaller –executePrereqs
Close
In order to fix this error, you need to install HP-UX Patch PHCO_40381. Ask UNIX admin to install this
patch.
As part of the patch bundle installation the server will be rebooted which will also activate the kernel
parameters amended above.
11 Check old ENV parameters are not set and set new Oracle ENV parameters
cd /var/opt/oracle
cp oraInst.loc oraInst.loc.GE1
14 Start the OUI to install the Oracle 11G software – as orasid in you vnc session with the new
ENV variables.
cd /oracle/stage/112_64/database/SAP
./RUNINSTALLER
cd /oracle/stage/112_64/database/sap
./RUNINSTALLER
Oracle 11g Upgrade – (10.2.0.4 to 11.2.0.1 ) on HP-UNIX
Click Next
Click Next
Oracle 11g Upgrade – (10.2.0.4 to 11.2.0.1 ) on HP-UNIX
Click Next
Click Next
Check space in /oracle/GE1/112_64 – need 8gb free
Oracle 11g Upgrade – (10.2.0.4 to 11.2.0.1 ) on HP-UNIX
GE1 received this error – can’t do this ahead of time as rdbms is not there yet
I found there is no demo directory in /oracle/GE1/112_64/rdbms
As orasid create demo directory and chmod 755
cd /oracle/GE1/112_64/rdbms
mkdir demo
chmod 755 demo
Click on RETRY
Successful…..
Click Close – ended at 1000am….takes about 40 min
Copy new OPatch from .zip file into /oracle/SID/102_64/OPatch – MOPatch needs the OPatch levels
delivered with the .zip.
Oracle 11g Upgrade – (10.2.0.4 to 11.2.0.1 ) on HP-UNIX
Move the existing OPatch directory to a different name
sapbl001:orage1 4> cd /oracle/GE1/102_64
sapbl001:orage1 6> mv OPatch OPatch_PRE_SAP_112012_201010
unzip -l /install/ORA_11G/mopatch-2_1_2.zip
mopatch is already unzipped in /install/ORA_11g
19 Once you have reviewed the file, proceed to install the patches.
cd $ORACLE_HOME/lib
ll libnn*.so
ln -s libnnz11.so libnnz10.so
ll ll libnn*.so
Install upgrade scripts as per note 1431793. (Download it and extract it to /oracle/GS0 )
22 Copy the listener, tnsnames and sqlnet files from the network/admin directory
Oracle 11g Upgrade – (10.2.0.4 to 11.2.0.1 ) on HP-UNIX
23 Adjust the listener for ORACLE HOME as shown below.
(Change the ORACLE_HOME path from 102_64 to 112_64)
ADR_BASE_LISTENER = /oracle/<DBSID>/saptrace
Above commands :
SQL> select retention from dba_hist_wr_control;
SQL> select SPACE_USAGE_KBYTES/1024 “AWR Size [Mbytes]” from V$SYSAUX_OCCUPANTS
where occupant_name = ‘SM/AWR’;
SQL> select sum(bytes)/(1024 * 1024) “SYSAUX Mbytes free” from dba_free_space where
tablespace_name = ‘SYSAUX’;
Results from GE0 and GE1 from above commands…no action was needed on either
GE0 – SPACE_USAGE = 79.75 Mbytes free = 18.25
GE1 - SPACE_USAGE = 105.4375 Mbytes free = 11.625
Free space on SYSAUX looks low here compared to the check results earlier (3.8MB versus 217MB free
space required) so extended SYSAUX to meet the requirement.
I did not extend SYSAUX on GE0 nor GE1…ran OK
Oracle 11g Upgrade – (10.2.0.4 to 11.2.0.1 ) on HP-UNIX
*** If you set all these before you launch vncserver , you will need to set again in *** vncserver
orasid session…the ENV variables DO NOT transfer to the vnc session ***
cd /oracle/SID/112_64/sap/ora_upgrade/post_upgrade
./dbua.sap.sh
Compatible option gives error. So try without them.
I did not use –compatible on GE0 nor GE1 , no problem….Eric.
Oracle 11g Upgrade – (10.2.0.4 to 11.2.0.1 ) on HP-UNIX
Click Next
Oracle 11g Upgrade – (10.2.0.4 to 11.2.0.1 ) on HP-UNIX
Click No
This was also run during pre_upgrade..so for GE1 I skipped it and answered Yes to continue.
Oracle 11g Upgrade – (10.2.0.4 to 11.2.0.1 ) on HP-UNIX
Click Yes
Oracle 11g Upgrade – (10.2.0.4 to 11.2.0.1 ) on HP-UNIX
Click Next
Click Next
Oracle 11g Upgrade – (10.2.0.4 to 11.2.0.1 ) on HP-UNIX
Click Next
Click Next
Oracle 11g Upgrade – (10.2.0.4 to 11.2.0.1 ) on HP-UNIX
Oracle 11g Upgrade – (10.2.0.4 to 11.2.0.1 ) on HP-UNIX
Click Finish
Oracle 11g Upgrade – (10.2.0.4 to 11.2.0.1 ) on HP-UNIX
Click OK.
Click OK.
Oracle 11g Upgrade – (10.2.0.4 to 11.2.0.1 ) on HP-UNIX
Click OK.
Oracle 11g Upgrade – (10.2.0.4 to 11.2.0.1 ) on HP-UNIX
Oracle 11g Upgrade – (10.2.0.4 to 11.2.0.1 ) on HP-UNIX
Click Close.
Post-Upgrade steps.
1. Update the environment files for ORACLE_HOME and PATH and SHLIB
(.dbenv_sapbl014.csh….dbenv_sapbl014.sh .dbenv.csh .dbenv.sh)
2. Check the DB version.
4. Run saproot.sh
5. Run sapdba_role.sql
6. Update the SAPDBA role for both the ABAP and Java schema IDs;
Oracle 11g Upgrade – (10.2.0.4 to 11.2.0.1 ) on HP-UNIX
Oracle 11g Upgrade – (10.2.0.4 to 11.2.0.1 ) on HP-UNIX
7. Set the database compatibility as shown;
And also ;
….
Oracle 11g Upgrade – (10.2.0.4 to 11.2.0.1 ) on HP-UNIX
9. Backup the DB…GE1 = almost 5 hours
13. Check the Read authorization of the gs0adm user for ORACLE_HOME.
14. BEFORE STARTSAP IS ATTEMPTED - Update the sidadm environment to reflect the new
Oracle home.
(.dbenv_sapbl014.csh….dbenv_sapbl014.sh .dbenv.csh .dbenv.sh)
22. Exec DB02 and click REFRESH button , a DBA refresh job will start
Wait for job to end before going to 23
23. Issue stopsap as sidadm – make sure sidadm can stop dbase and R3
24. Issue startsap as sidadm – make sure sidadm can start dbase and R3
27. Create needed link for db13 jobs to run successfully and using brtools
As Root
umask 022
cd /usr/lib/hpux64
ln –s /oracle/client/10x64/instantclient/libclntsh.so.10.1 /usr/lib/hpux64/libclntsh.so.10.1