3. Pre-install
3.1 Environment
We have already created our oracle user account and set up the groups. We now need to set up the environment for the oracle user.
Firstly, log on as user oracle in shell window (su oracle). Do the following.
- vi /usr/oracle/.cshrc - and then add the following lines and save
-
- setenv DISPLAY :0.0
- setenv ORACLE_BASE /usr/oraInventory
- setenv ORACLE_HOME /usr/oracle
- setenv ORACLE_SID oralin
- setenv PATH ${PATH}:$ORACLE_HOME/bin:/usr/local/jre:/usr/local/java/bin
- setenv LD_ASSUME_KERNEL 2.2.5
- setenv LD_LIBRARY_PATH /usr/lib:$ORACLE_HOME/lib:/usr/local/java/bin
- setenv CLASSPATH /usr/local/java/lib/classes.zip:.:$ORACLE_HOME/jdbc/lib/classes111.zip
- setenv CLASSPATH ${CLASSPATH}:$ORACLE_HOME/sqlj/lib/translator.zip
- setenv LANG en:en_GB
- chmod 644 /usr/oracle/.cshrc
- vi /usr/oracle/.bash_profile - and then add the following lines and save
-
- DISPLAY=:0.0
- ORACLE_BASE=/usr/oraInventory
- ORACLE_HOME=/usr/oracle
- ORACLE_SID=oralin
- PATH=$PATH:$ORACLE_HOME/bin:/usr/local/jre
- export DISPLAY ORACLE_BASE ORACLE_HOME ORACLE_SID PATH
- edit any other users home files to source either csh or bash files on login so that user can access sqlplus
- add any other users to the sysoper,sysdba group as required - I used userdrake
3.2 Link Java
We need to create symbolic links for Java so that Oracle which is hard coded with the locations can find it.
Do the following as root.
- ln -s /usr/local/jdk118_v3 /usr/local/java
- ln -s /usr/local/jre116_v5 /usr/local/jre
3.3 Copy Oracle Cdrom to a Local Hard Disk
One of the installation files on the Cdrom has a hard coded path which I found we need to edit. Therefore I copied the entire /mnt/cdrom directory to a new location on a spare partition. You will need approx 350Mb of space. Use whatever method you are happy with to perform the copy.
Note: Whatever path you copy the /mnt/cdrom directory to, I will refer to it as cdrom-path from now on.
Edit the following file /cdrom-path/install/oraparam.ini and change the JRE_LOCATION as below:
from
- JRE_LOCATION=../stage/Components/oracle.swd.jre/1.1.8/1/~DataFiles/Expanded
- JRE_LOCATION=/
Now we need to create another link as root:
- mkdir -p /linux/bin
- ln -s /usr/local/jdk118_v3/bin/jre /linux/bin/jre
3.4 GLIBC Workaround
As I stated before Oracle requires glibc 2.1.x, no more no less. As the system currently uses 2.2.x you already should have installed the 2.1.x library in /usr. To fool Oracle into using the older version we need to move some of the 2.2.x files aside just for the install.
Do the following as root.
- cd /usr/bin
- mkdir saved
- mv gcc cc ld saved
- ln -s /usr/i386-glibc-2.1-linux/bin/i386-glibc21-linux-gcc gcc
- ln -s gcc cc
- ln -s /usr/i386-glibc-2.1-linux/bin/i386-glibc21-linux-ld ld
- cd /usr/lib
- mkdir saved
- mv libc.so libdl.so libm.so libpthread.so saved
- mv libc.a libdl.a libm.a libpthread.a saved
This completes the pre-install process.
Version 1.3 last modified by AdminWiki on 22/03/2004 at 09:45
Document data
- Lost account?
- Join the community, be part of the Club: it's free!
- Get the PWP Download Subscription!