Upload
sankarnaru
View
224
Download
0
Embed Size (px)
Citation preview
8/14/2019 Install Oracle 9205 8
1/22
Author A.Kishorehttp://appsdba.info
1 of 22
Installation Guide for Oracle 9.2.0.5 on Sun Solaris 8
HISTORY
Rev Author Description
1.0 A.Kishore Draft
2.0 A.Kishore Included the screen shots and the upgrade screen shot from9.2.0.1 to 9.2.0.5 on Solaris
# Time Responsible Task
Task List
1) Install Sun Solaris 8 Operating System2) Check Hardware Requirements3) Operating System Software Requirements including Operating System Patch4) Java Runtime Environment (JRE)5) Check Software Limits
6) Setup the Solaris Kernel7) Create Unix Group dba8) Create Unix User oracle9) Setup ORACLE environment ($HOME/.profile) as follows10) Install from CD-ROM ...11) Unpacking installation files12) Check oraInst.loc File13) Install with Installer in interactive mode14) Create the Database using dbca15) Automatically Start / Stop the Database
16) Issues Faced and Solutions17) Screen Shots for Installation and upgrade from 9.2.0.1 to 9.2.0.5
8/14/2019 Install Oracle 9205 8
2/22
Author A.Kishorehttp://appsdba.info
2 of 22
1) 2 hrs Install Sun Solaris 8 Operating System
Refer- Page 11 of 18 for UNIX file system configuration
2) 15 min Check Hardware Requirements
Minimal Memory: 256 MBMinimal Swap Space: Twice the amount of the RAM
To determine the amount of RAM memory installed on your system, enter thefollowing command.
$ /usr/sbin/prtconf | grep "Memory size"
Memory size: 1024 Megabytes -
To determine the amount of SWAP installed on your system, enter the followingcommand and multiply the BLOCKS column by 512. Divide this value by 1024again 1024. We get the size in MB
$ swap l
blocks
4198368
swap size = (4198368 * 512) /(1024 * 1024) = 2049 KB
To determine whether the system architecture is 64-bit, enter the followingcommand
$ /bin/isainfo -kv64-bit sparcv9 kernel modules
3) 1 hr Operating System Software Requirements
Use the latest kernel patch from Sun Microsystems.
- Download the Patch from: http://sunsolve.sun.com/8_Recommended.zip
- Read the README File included in the Patch- Usually the only thing you have to do is:
8/14/2019 Install Oracle 9205 8
3/22
Author A.Kishorehttp://appsdba.info
3 of 22
$ cd $ ./install_custer$ cat /var/sadm/install_data/_log
$ showrev -p
- Reboot the system
To determine your current operating system information:
$ uname a
SunOS mnhmdb 5.8 Generic_117000-01 sun4u sparc SUNW,UltraSPARC-IIi-cEngine
To determine which operating system patches are installed:
$ showrev -p
To determine which operating system packages are installed:
$ pkginfo -i [package_name]
pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibm SUNWlibms \SUNWsprot SUNWsprox SUNWtoo SUNWi1of SUNWi1cs SUNWi15csSUNWxwfntsystem SUNWarc Archive Librariessystem SUNWbtool CCS tools bundled with SunOSsystem SUNWhea SunOS Header Filessystem SUNWi15cs X11 ISO8859-15 Codeset Supportsystem SUNWi1cs X11 ISO8859-1 Codeset Supportsystem SUNWi1of ISO-8859-1 (Latin-1) Optional Fontssystem SUNWlibm Sun WorkShop Bundled libmsystem SUNWlibms Sun WorkShop Bundled shared libmsystem SUNWsprot Solaris Bundled toolssystem SUNWsprox Sun WorkShop Bundled 64-bit make librarysystem SUNWtoo Programming Toolssystem SUNWxwfnt X Window System platform required fonts
To determine if your X-windows system is working properly on your local system,but you can redirect the X-windows output to another system (connect as oracle92user).
8/14/2019 Install Oracle 9205 8
4/22
Author A.Kishorehttp://appsdba.info
4 of 22
$ xclock
To determine if you are using the correct system executables:
$ /usr/bin/which make$ /usr/bin/which ar$ /usr/bin/which ld$ /usr/bin/which nm
Each of the four commands above should point to the/usr/ccs/bin directory. If not,add /usr/ccs/bin to the beginning of the PATH environment variable in the currentshell.
Note: Once to set path properly in .profile for oracle user then this commands willstart working
4)Java Runtime Environment (JRE)
The JRE shipped with Oracle9i is used by Oracle Java applications such as theOracle Universal Installer is the only one supported. You should not modify thisJRE, unless it is done through a patch provided by Oracle Support Services. Theinventory can contain multiple versions of the JRE, each of which can be used byone or more products or releases. The Installer creates the oraInventory directorythe first time it is run to keep an inventory of products that it installs on yoursystem as well as other installation information. The location of oraInventory is
defined in /var/opt/oracle/oraInst.loc. Products in an ORACLE_HOME accessthe JRE through a symbolic link in $ORACLE_HOME/JRE to the actuallocation of a JRE within the inventory. You should not modify the symbolic link.
5) 15 min Check Software Limits
Oracle9i includes native support for files greater than 2 GB. Check your shell todetermine whether it will impose a limit.
To check current soft shell limits, enter the following command:
8/14/2019 Install Oracle 9205 8
5/22
Author A.Kishorehttp://appsdba.info
5 of 22
$ ulimit Sa
time(seconds) unlimited
file(blocks) unlimiteddata(kbytes) unlimitedstack(kbytes) 8192coredump(blocks) unlimitednofiles(descriptors) 256memory(kbytes) unlimited
To check maximum hard limits, enter the following command:
$ ulimit -Ha
The file (blocks) value should be multiplied by 512 to obtain the maximum filesize imposed by the shell. A value of unlimited is the operating system default andis the maximum value of 1 TB.
time(seconds) unlimitedfile(blocks) unlimiteddata(kbytes) unlimitedstack(kbytes) unlimitednofiles(descriptors) 1024memory(kbytes) unlimited
6) 30 min Setup the Solaris Kernel
Set to the sum of the PROCESSES parameter for each Oracle database, adding thelargest one twice, then add an additional 10 for each database. For example,consider a system that has three Oracle instances with the PROCESSES parameterin theirinitSID.ora files set to the following values:
ORACLE_SID=TYP1, PROCESSES=100ORACLE_SID=TYP2, PROCESSES=100ORACLE_SID=TYP3, PROCESSES=200
The value of SEMMNS is calculated as follows:
SEMMNS = [(A=100) + (B=100)] + [(C=200) * 2] + [(# of instances=3) * 10] =630
Setting parameters too high for the operating system can prevent the machine frombooting up. Refer to Sun Microsystems Sun SPARC Solaris system administrationdocumentation for parameter limits.
set shmsys:shminfo_shmmax=4294967295set shmsys:shminfo_shmmin=1set shmsys:shminfo_shmmni=100set shmsys:shminfo_shmseg=10set semsys:seminfo_semmni=100set semsys:seminfo_semmsl=256
8/14/2019 Install Oracle 9205 8
6/22
Author A.Kishorehttp://appsdba.info
6 of 22
set semsys:seminfo_semmns=1024set semsys:seminfo_semopm=100set semsys:seminfo_semvmx=32767
Reboot the SystemTo test# /usr/sbin/sysdef | grep SEM
100 semaphore identifiers (SEMMNI)1024 semaphores in system (SEMMNS)
30 undo structures in system (SEMMNU)256 max semaphores per id (SEMMSL)100 max operations per semop call (SEMOPM)10 max undo entries per process (SEMUME)
32767 semaphore maximum value (SEMVMX)16384 adjust on exit max value (SEMAEM)
# /usr/sbin/sysdef | grep SHM4294967295 max shared memory segment size (SHMMAX)
1 min shared memory segment size (SHMMIN)100 shared memory identifiers (SHMMNI)10 max attached shm segments per process (SHMSEG)
7) 15 min Create Unix Group oradba92
$ groupadd oradba92$ groupadd oinstall
8)
Create Unix User oracle92
$ useradd -d /app_users/home/oracle92 -m -s /bin/ksh -g oinstall -G oradba92oracle92
This command creates the oracle92 user and specifies:
oinstall as the primary group
oradba92 as the secondary group
Change the owner and group of the directories that you created to the oracle92 userand the oinstall group:
$ chown -R oracle92:oinstall /oracle
Change the permissions on the directories that you created to 775:
$ chmod -R 775 /oracle
9) 15 min Setup ORACLE environment ($HOME/.profile) as follows
Create .profile connected as oracle92 usersu oracle92vi .profile
8/14/2019 Install Oracle 9205 8
7/22
Author A.Kishorehttp://appsdba.info
7 of 22
stty istripPATH=/usr/bin:/usr/ucb:/etc:.
export PATH
DISPLAY=190.2.3.128:0.0; export DISPLAYumask 022; export umask
# setup Oracle EnvironmentORACLE_HOME=/oracle/product/920; export ORACLE_HOMEORACLE_BASE=/oracle; export ORACLE_BASEHM_DBA_ADMIN=/oracle/admin/920/HMDEV/admin; exportHM_DBA_ADMININSTALLER_HOME=/oracle/inventory; export INSTALLER_HOMEORACLE_SID=HMDEV; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERMLD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/openwin/libLD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/dt/lib:/usr/ucblib:/usr/local/lib export LD_LIBRARY_PATH
# Set up the search paths:
PATH=/bin:/usr/openwin/bin:/usr/bin:/usr/sbin:/opt/bin:/usr/ccs/bin:/opt/local/GNU/binPATH=$PATH:/opt/local/bin:/opt/NSCPnav/bin:$ORACLE_HOME/binPATH=$PATH:/usr/local/samba/bin:/usr/ucb:. export PATH
#CLASSPATH must include the following JRE location(s):
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlibCLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib
10) Install from CD-ROM ...
Usually the CD-ROM will be mounted automatically by the Solaris VolumeManager, if not, do it as follows as user root.
$ su root$ mkdir /cdrom$ mount -r -F hsfs /dev/.... /cdrom
exit or CTRL-D
11) 15 min Unpacking installation files
$ cd
8/14/2019 Install Oracle 9205 8
8/22
Author A.Kishorehttp://appsdba.info
8 of 22
$ mkdir Disk1 Disk2 Disk3$ cd Disk1$ cat solaris64_9.2.0.1.0.Disk3.cpio1 | cpio -icd
This will extract all the files for Disk1, repeat steps for Disk2 and Disk3. Now youshould have three directories (Disk1, Disk2 and Disk3) containing installationfiles.
12) 2 hr Install with Installer in interactive mode
Install Oracle 9i with Oracle Installer
$ cd /Disk1$ DISPLAY=localhost:0.0; export DISPLAY
$ export DISPLAY$ ./runInstaller
Note: See the screen shots at the end
Answer the questions in the Installer, we use the following install directories
Inventory Location: /oracle/oraInventoryOracle Universal Installer in: /oracle/product/ouiJava Runtime Environment in: /oracle/product/jre/1.1.8
Edit the Database Startup Script/var/opt/oracle/oratab
TYP2:/opt/oracle/product/9.2.0:Y
13) Create the Database using dbca
14) Automatically Start / Stop the Database
cd /var/opt/oracle/oratab
Note: You should then change the 'N' entry to 'Y' for the line with your
database ORACLE_SID.
ORACLE_HOME=/oracle/product/920 export ORACLE_HOME
ORACLE_OWNER=oracle92 export ORACLE_OWNER
vi /etc/init.d/dbora.sh
case $1 in
start)
su - $ORACLE_OWNER -c $ORACLE_HOME/bin/dbstart
8/14/2019 Install Oracle 9205 8
9/22
Author A.Kishorehttp://appsdba.info
9 of 22
su - $ORACLE_OWNER -c "$ORACLE_HOME/bin/lsnrctl start"
exit 0
;;
stop)
su - $ORACLE_OWNER -c "$ORACLE_HOME/bin/lsnrctl stop"
su - $ORACLE_OWNER -c $ORACLE_HOME/bin/dbshut
exit 0
;;
esac
echo "Usage: $0 [start|stop]"
chmod 777 dbora
ln -s /etc/init.d/dbora.sh /etc/rc3.d/S12dbora.sh
ln -s /etc/init.d/dbora.sh /etc/rc0.d/K12dbora.sh
16) Issues Faced and Solutions
1) Problem: SunNetra T105 didnt had a console to install the OperatingSystem
Solution: Connected a laptop and using COM1 could install theOperating SystemStart programs accessories communications hyperterminal -op COM1 bits per second 9600 Enter Enter
2) Problem Media IssueDuring installation of Operating System at one point the system wasHanging, tried 2 or 3 times.Solution Replaced the Operating System CDs with Original CDsand problem was solved
3) Problem Console IssueAfter the installation was done, we removed the Laptop and I wastrying to connect through HummingBird, but was unable to connect
8/14/2019 Install Oracle 9205 8
10/22
Author A.Kishorehttp://appsdba.info
10 of 22
Solution: Should comment # CONSOLE in /etc/default/loginWe are not able to do using Laptop, so we just created a user
(dummy). Using telnet and using desktop m/c we connected as thatuser (dummy) then connected as root and modified login file.
vi /etc/default/login and comment CONSOLE
# If CONSOLE is set, root can only login on that device.# Comment this line out to allow remote login by root.
#CONSOLE=/dev/consolevi /etc/profile PATH=$PATH:/opt/sfw/bin
4) Problem: During installation of Oracle9r2 had issues in setting
DISPLAY variableGot the error Cant connect to X11 windowSolution: DISPLAY=localhost:0.0; export DISPLAYAlways set DISPLAY to the workstation u are installing not thedatabase server machine
5> Semaphores were not getting displayed/usr/sbin/sysdef | grep SEM
After changing the parameters in /etc/system - reboot the machine$ rebootCheck the shared memory parameters using$ sysdef -i
If they have not changed, load the shared memory module using$ modload /kernel/sys/shmsysmodload /kernel/sys/shmsysmodload /kernel/sys/semsys
8/14/2019 Install Oracle 9205 8
11/22
Author A.Kishorehttp://appsdba.info
11 of 22
17> Screen Shots for Installation and upgrade from 9.2.0.1 to 9.2.0.5oracle92@server [/software/Oracle9r2_Software/Disk1] #./runInstaller
8/14/2019 Install Oracle 9205 8
12/22
Author A.Kishorehttp://appsdba.info
12 of 22
8/14/2019 Install Oracle 9205 8
13/22
Author A.Kishorehttp://appsdba.info
13 of 22
8/14/2019 Install Oracle 9205 8
14/22
Author A.Kishorehttp://appsdba.info
14 of 22
8/14/2019 Install Oracle 9205 8
15/22
Author A.Kishorehttp://appsdba.info
15 of 22
8/14/2019 Install Oracle 9205 8
16/22
Author A.Kishorehttp://appsdba.info
16 of 22
8/14/2019 Install Oracle 9205 8
17/22
Author A.Kishorehttp://appsdba.info
17 of 22
# sh root.shRunning Oracle9 root.sh script...
The following environment variables are set as:ORACLE_OWNER= oracle92ORACLE_HOME= /oracle/product/920
8/14/2019 Install Oracle 9205 8
18/22
Author A.Kishorehttp://appsdba.info
18 of 22
Enter the full pathname of the local bin directory: [/usr/local/bin]:The file "dbhome" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: y
Copying dbhome to /usr/local/bin ...
The file "oraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]: yCopying oraenv to /usr/local/bin ...
The file "coraenv" already exists in /usr/local/bin. Overwrite it? (y/n) [n]:Copying coraenv to /usr/local/bin ...
Adding entry to /var/opt/oracle/oratab file...Entries will be added to the /var/opt/oracle/oratab file as needed byDatabase Configuration Assistant when a database is created
Upgrade the database from 9.2.0.1 to 9.2.0.5
/software/Oracle9r2_Software/patch9205/Disk1] #./runInstaller
8/14/2019 Install Oracle 9205 8
19/22
Author A.Kishorehttp://appsdba.info
19 of 22
8/14/2019 Install Oracle 9205 8
20/22
Author A.Kishorehttp://appsdba.info
20 of 22
/software/Oracle9r2_Software/patch9205/Disk1] #./runInstaller
8/14/2019 Install Oracle 9205 8
21/22
Author A.Kishorehttp://appsdba.info
21 of 22
8/14/2019 Install Oracle 9205 8
22/22
Author A.Kishorehttp://appsdba.info
Post Install steps
lsnrctl startsqlplus /NOLOGSQL> CONNECT SYS/password AS SYSDBASQL> STARTUP UPGRADESQL> SPOOL patch.logSQL> @ORACLE_BASE\ORACLE_HOME\rdbms\admin\catpatch.sqlSQL> SPOOL OFFSQL> SHUTDOWNSQL> STARTUP
SQL> SPOOL utlrlp.logSQL> @?/rdbms/admin/utlrp.sqlSQL> SPOOL OFF