Upload
dvrao
View
220
Download
7
Embed Size (px)
Citation preview
Installing Oracle and Oracle Patching for SAP Installs:
This document explains how to install Oracle 10G on AIX as well as patching Oracle (Also refer to the documentation in the installation guide for the SAP system you are installing for additional notes on the Oracle installation and patching process.
Note: You can use XWin Server to start an xsession or other software like “Reflections”. The below method describes using “XWin Server”.
Start the XServer on the server. Click on Start, XWin Server to bring up a command session.
Type: xhost + (now clients can connect from any host)
Log on as root in CYGWIN and change Oracle sidadm’s password:
Passwd orar1s
Enter new password.
1
Log back on but now with orar1s and the new password. The screen will prompt you for a new password.
At the XWinserver:
jbronne@VWHQSAPM1 ~
$ ssh -X orar1s@r1s
Echo $DISPLAY (verify the display variable is set).
Can also test with the command:
xclock &
(view the clock that appears) – This is to ensure the Oracle Installer screen will be able to come up.
Section 4.5.1: Updating SAP-Specific Files in the Oracle Staging Area.
mv /oracle/stage/102_64/database/Disk1/SAP /oracle/stage/102_64/database/Disk1/
Find where the RDBMS_SAP_64.zip file (should be at: /media/ORACLE)
Extract the zip file:
cd /oracle/stage/102_64/database/Disk1
unzip /media/ORACLE/102_64/RDBMS_SAP.zip
Section 4.5.2 Performing Steps for the AIX Operating System
Run the rootpre.sh
Sign in as orasid.
su - root
Change directory to /oracle/stage/102_64/database/Disk1/rootpre
./rootpre.sh
As root run the command: /usr/sbin/slibclean
Exit so that your ID is orasid again.
2
4.5.3 Running he Oracle Installer
As orasid, go the directory: /oracle/stage/102_64/database/Disk1/SAP
./RUNINSTALLER
Say “y” for yes when to the question appears to run the rootpre.sh as root.
After a few minutes, the Oracle Universal Installer(OUI) appears:
3
Ensure that SID under /oracle and all sub-directories + files are owned by orasid and dba.
If you need to, execute: chown –R CED
Edit the path to oracle/SID/oraInventory and click on the “Next” button.
Click on “Yes”.
4
Click on “Next”.
5
A summary page appears. Click on Install.
6
7
8
Log on as root to the server and execute the above scripts. After this click on the “OK” button.
Exit.
As root, run:
ps –ef | grep ora
Kill the two jobs that have a long line that ends in “.xml”. (makes sure nothing is running since the program files will now be updated in the applying of patches).
kill -9 jobname.xml
4.5.4 Installing the Current Patchset:
Run: /usr/sbin/slibclean (cleans out ghost connections) as root.
As orasid, go to: /media/ORACLE/102_64/Patchset_10204/Disk1
Execute: ./runInstaller
The Oracle Universal Installer screen appears.
9
Click on “Next”.
10
Click “Next”.
11
12
Click on “Next”.
Note: the Red Hand flag is a false positive, and you can ignore this. Click on the “Install” button.
Click on “Yes”.
The Patch Installation starts.
13
Log on as root and execute the root.sh script. Click on “OK” when the script is done.
14
Click on “Exit”.
Section 4.5.5 Installing Required Interim Patches
Logged on as root, go to /media/ORACLE/102_64
Copy contents in OPatch:
cp -R OPatch /oracle/R1S/102_64
Log in as orasid.
Go to /media/ORACLE/102_64 (have to be in this dir because the patches to be applied are in the subdir patches).
Execute this command: /oracle/R1S/102_64/OPatch/opatch napply patches
Say “y” for yes to any prompts.
OPatch completes and there may be some warnings. This is due to some duplicates and you can ignore these.
Now, return back to the SAP Install to go forward.
/oracle/MDQ/102_64/OPatch/optach napply patches_091609
lakrsappr24:/oracle/MDP/102_64/OPatch $ opatch napply opatch /media/ORACLE/102_64/patches_091609 -idfile /tmp/list.txt
/oracle/MDP/102_64/OPatch/opatch napply patches_091609
/oracle/stage/102_64/OPatch/opatch napply 8534387
$ cd 8534387
$ ls
7155248 7155251 7155254 7375613 7609058 8309623 8309642 8568397 8568404 cpu_root.sh
15
7155249 7155252 7197583 7375617 8309587 8309632 8534387 8568398 8568405 patchmd.xml
7155250 7155253 7375611 7609057 8309592 8309637 8568395 8568402 Readme.html
$ opatch napply -skip_subset -skip_duplicate
Patching component oracle.rdbms, 10.2.0.4.0...
Updating archive file "/oracle/stage/102_64/lib/libserver10.a" with "lib/libserver10.a/krvg.o"
Updating archive file "/oracle/stage/102_64/lib/libserver10.a" with "lib/libserver10.a/knld.o"
Updating archive file "/oracle/stage/102_64/lib/libserver10.a" with "lib/libserver10.a/prsc.o"
Updating archive file "/oracle/stage/102_64/lib/libserver10.a" with "lib/libserver10.a/prsg.o"
Updating archive file "/oracle/stage/102_64/lib/libserver10.a" with "lib/libserver10.a/prssz.o"
Copying file to "/oracle/stage/102_64/rdbms/lib/jox.o"
Copying file to "/oracle/stage/102_64/lib/libjox10.a"
The following actions have failed:
Copy failed from '/media/ORACLE/102_64/8534387/8568398/files/lib/libjox10.a' to '/oracle/stage/102_64/lib/libjox10.a'...
--------------------------------------------------------------------------------
********************************************************************************
********************************************************************************
** ATTENTION **
** **
** Please note that the Security Patch Installation (Patch Deinstallation) is **
16
** not complete until all the Post Installation (Post Deinstallation) **
** instructions noted in the Readme accompanying this patch, have been **
** successfully completed. **
** **
********************************************************************************
********************************************************************************
--------------------------------------------------------------------------------
Execution of 'sh /media/ORACLE/102_64/8534387/8534387/custom/scripts/post -apply 8534387 ':
Return Code = 0
The local system has been patched and can be restarted.
UtilSession: N-Apply done.
--------------------------------------------------------------------------------
The following warnings have occurred during OPatch execution:
1) OUI-67124:Copy failed from '/media/ORACLE/102_64/8534387/8568398/files/lib/libjox10.a' to '/oracle/stage/102_64/lib/libjox10.a'...
--------------------------------------------------------------------------------
OPatch Session completed with warnings.
17
OPatch completed with warnings.
you have mail in /usr/spool/mail/oramds
export PATH=$PATH:/usr/ccs/bin
/oracle/MDP/102_64/OPatch/opatch napply -skip_subset -skip_duplicate
--------------------------------------------------------------------------------
********************************************************************************
********************************************************************************
** ATTENTION **
** **
** Please note that the Security Patch Installation (Patch Deinstallation) is **
** not complete until all the Post Installation (Post Deinstallation) **
** instructions noted in the Readme accompanying this patch, have been **
** successfully completed. **
** **
********************************************************************************
********************************************************************************
--------------------------------------------------------------------------------
18
Execution of 'sh /media/ORACLE/102_64/8534387/8534387/custom/scripts/post -apply 8534387 ':
Return Code = 0
The local system has been patched and can be restarted.
UtilSession: N-Apply done.
OPatch succeeded.
ld: 0711-317 ERROR: Undefined symbol: .kpmsetcurr
ld: 0711-317 ERROR: Undefined symbol: .OCIPing
ld: 0711-317 ERROR: Undefined symbol: .OCISessionEnd
ld: 0711-317 ERROR: Undefined symbol: .OCIServerDetach
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
ar: No such file or directory
ar: 0707-117 The fopen system call failed on file /oracle/MDP/102_64/lib/shr.o.
11) OUI-67200:Make failed to invoke "/usr/ccs/bin/make -f ins_rdbms.mk ipc_g ioracle ORACLE_HOME=/oracle/MDP/102_64"....'make: The error code from the last command is 8.
Stop.
'
19
12) OUI-67124:Re-link fails on target "ioracle".
Re-link fails on target "iexpdp".
Re-link fails on target "iimpdp".
Re-link fails on target "irman".
Re-link fails on target "ipc_g ioracle".
--------------------------------------------------------------------------------
OPatch Session completed with warnings.
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
ar: No such file or directory
ar: 0707-117 The fopen system call failed on file /oracle/MDP/102_64/lib/shr.o.
The following make actions have failed :
20
Re-link fails on target "ioracle".
Re-link fails on target "itnslsnr".
21