Oracle 9i Installation - OUI mode. From Engine, PatchSet to DB
Oracle 9i Install - Oracle Universal Installer
Engine
PatchSet
DB
Materials
=> patch
patchset
rpm
fonts
ship_9204_linux_disk1~3.cpio,
jdk118_v3_glibc-2.1.3.tar.bz2
jre118_v3_glibc-2.1.3.tar.bz2
-patch
-patchset
-rpm
-fonts
ENGINE INSTALLATION
1. Add Group & User and User's Home Directory
Group : dba
User : oracle
password : oracle
Home Directory : /home/oracle
]#group add -g 5000 dba
]#useradd -g dba -d /home/oracle oracle
]#chown -R oracle.dba /home/oracle
]#passwd oracle
2.Uncpio 'Oracle 9i 9204.ver' Engine Install File: Disk1, Disk2 and Disk3
]#cpio -idmv < ship_9204_linux_disk1.cpio
]#cpio -idmv < ship_9204_linux_disk2.cpio
]#cpio -idmv < ship_9204_linux_disk3.cpio
Disk1, Disk2 and Disk3 have been created. (/home/oracle Directory)
***If disk2.cpio and disk3.cpio have not unwrapped properly, then following error will be occured during the engine installation.
3. Install rpm
]#rpm -Uvh compact-libgcj-7.3-2.96.118.i386.rpm
]#rpm -Uvh cpmpact-libgcj-devel-7.3-2.96.118.i386.rpm
4. Setup Fonts ( Depends on Users Fisrt Language, mine is Korean )
]# cd /home/oracle/font/
]# tar zxvf baekmuk-ttf-2.1.tar.gz
]# cp *.ttf
/home/oracle/Disk1/stage/Components/oracle.swd.jre/1.3.1.0.0/1/DataFiles/Expanded/jre/linux/lib/fonts/
]# cp fonts.dir
/home/oracle/Disk1/stage/Components/oracle.swd.jre/1.3.1.0.0/1/DataFiles/Expanded/jre/linux/lib/fonts/
]# cp font.properties.ko
/home/oracle/Disk1/stage/Components/oracle.swd.jre/1.3.1.0.0/1/DataFiles/Expanded/jre/linux/lib/
5. Modify '.bash_profile' Located in /home/oracle Directory.
]#vi /home/oracle/.bash_profile
export ORACLE_BASE=/home/oracle
export ORACLE_HOME=$ORACLE_BASE/product/9.2
export PATH=$PATH:$ORACLE_HOME/bin:$ORACLE_HOME/Apache/Apache/bin:$PATH
export ORACLE_OWNER=oracle
export ORACLE_SID=testdb
export ORACLE_TERM=xterm
export LD_ASSUME_KERNEL=2.4.1
export THREADS_FLAG=native
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export NLS_LANG=AMERICAN_AMERICA.KO16KSC5601
export LANG=ko_KR.eucKR
6. Apply Pre-Install Patch
]#cd /home/oracle/patch/p3006854_9204_LINUX/3006854
]#sh rhel3_pre_install.sh
7. Reboot and Log-in as 'oracle' User
**]# su - oracle ** is not recommended
8. Run Engine Installer
]$cd /home/oracle/Disk1
]$./runInstaller
Click 'Next'
Check base directory is set as /home/oracle/oraInventory then
Click 'OK'
Give permission to 'dba' group we have created on previous allows update.
Click 'Next'
In order to continue the install, execute 'orainstRoot.sh' by root from new terminal.
Open new terminal, then
]$su -
]#sh /tmp/orainstRoot.sh
If executed, then click 'Continue'
OUI is interacting with users.
Check source path, oracle home name and its path.
Then click 'Next'
Check 'Oracle9i Database 9.2.0.4.0'
Click 'Product Languages'
Select Korean
Click 'Next'
Check 'Enterprise Edition'
Click 'Next'
Select 'Software Only'
Click 'Next'
Check the summary of installation. Settings and Languages.
Then click 'Install'
Installing......
'root.sh' configuration script needs to be executed by root in new terminal.
Open new terminal
]#su -
]#/home/oracle/product/9.2/root.sh
Just press enter when asks full pathname
Then back to OUI installation and click 'Ok'
End of Installation.....
Click 'Exit' then 'Yes'
Check if Oracle9i engine and 9.2.0.4 patch are correctly installed.
]$sqlplus /nolog
PATCHSET
1. Patchset 9.2.0.6
]$cd /home/oracle/patchset
** ]$unzip 'patchset.zip' if patchset is in '.zip' type.
2. Run 'runInstall'
]$cd /home/oracle/patchset/p3948480_9206_LINUX/Disk1
Authourize 'runInstaller' to execute.
]$chmod 755 runInstaller
Are we done? Let's try out run 'runInstaller'
]$./runInstaller
Rejected!
Give permission to 'runInstaller' from /Disk1/install directory.
]$cd /install/
]$chmod 755 runInstaller
Try out again.
Saying 'unzip' needs a permission and Orainstell-- in /tmp directory needs a writable permission.
]$cd /home/oracle/patchset/p3948490_9206_LINUX/Disk1/install/
]$chmod 755 unzip
]$cd /tmp
]$ll
Orainstall- file in /tmp directory already has writable permission to oracle user
]$cd ..
]$ll
'tmp' directory is allowed to be written by root user and root group, but not permitted to other users, such as oracle user and dba group.
Change users to authorizor, root.
]$su -
]#cd /
]#chmod 777 /tmp
Finally this time... work out well?
No. Not done yet.
]#su - oracle
]$cd patchset/p3948480_9206_LINUX/Disk1/
]$./runInstaller
Problem with DISPLAY variable.
We can fix this out by let window server to use ':0.0" dispaly variable.
To correct the setup, edit the '.bash_profile' in /home/oracle directory
]$cd
]$vi .bash_profile
But. There is no setup for display.
I can say this is sort of bug.
Then simply reboot and run again
]$reboot
]$cd patchset/p3948490_9206_LINUX/Disk1/install/
]$./runInstaller
Rebooting can be an good alternation to fix the problems sometimes.
3. Patchset OUI Installation
Click 'Next'
Change installation path to /home/oracle/product/9.2
click 'Next'
Check 'OUI Installer 10.1.0.3.0'
Upgrade OUI first.
Click 'Product Languages'
Otherwise, you'll see this messege.
Add Korean language
Click 'OK'
Click 'Next'
Check Summary of Installation
If correct,
Click 'Install'
Open terminal and authorize log files to be performed.
]$cd /home/oracle/oraInventory/logs
]$chmod 755 installActions*.log && chmod 755 orainstall*
Back to OUI install
Click 'OK'
Run to install patchset
]$./runInstaller
Check 'Oracle 9iR2 Patchset 9.2.0.6.0'
Click 'Next'
Check summary of patchset 9.2.0.6.0 installation
If correct,
Click 'Install'
Installing.....
In new terminal, execute /home/oracle/product/9.2/root.sh as root
]$su -
]#/home/oracle/product/9.2/root.sh
Back to OUI install.
Click 'OK'
Click 'Exit'
Check if patchset 9.2.0.6 has been installed properly
]$sqlplus /nolog
Create DataBase
]$su -
]#echo ‘2147483648’ > /proc/sys/kernel/shmmax
]#vi /etc/rc.d/rc.local
echo ‘2147483648’ > /proc/sys/kernel/shmmax
]$dbca
Click 'Next'
Check 'Create a database'
Click 'Next'
Check 'General Purpose'
Click 'Next'
Name it as 'testdb'
Click 'Next'
Click 'Next'
Character set
Check 'Choose from the list of character sets'
Choose KO16MSWIN949'
Click 'Next'
Click 'Next'
Click 'Finish'
Click 'OK'
Creating....
Set password
Click 'Exit'
Check if database has created properly
]$sqlplus /nolog
SQL>conn /as sysdba
SQL>shutdown
SQL>conn /as sysdba
SQL>startup
SQL>shutdown
SQL>exit
Database has been created.