This paper (howto) describes step-by-step installation of Oracle 9i database software on Fedora Core 2, 3, 4, 5 and 6.
This paper covers following steps:
- Pre-instalation tasks
- Download & Install
- Post-instalation tasks
- Common installation errors
Pre-instalation tasks
1. Create Oracle user account
Login as root and create te user oracle which belongs to DBA group.
Su-
# Groupadd DBA
# Useradd-g dba Oracle
2. Setting System Parameters
Edit the/etc/sysctl. conf and add following lines:
Kernel. SEM = 250 32000 100 128
Kernel. shmmax = 2147483648
Kernel. shmmni = 128
Kernel. Shmall = 2097152
Kernel. msgmnb = 65536
Kernel. msgmni= 2878
FS. File-max = 65536
Net. ipv4.ip _ local_port_range = 1024 65000
Note: You need execute "sysctl-P" or reboot system to apply above settings.
Edit the/etc/security/limits. conf file and add following lines:
*-Nproc 16384
*-Nofile 16384
3. Setting Oracle Enviroment
Edit the/home/Oracle/. bash_profile file and add following lines:
Settings for Fedora Core 2, 3, 4 only. For Fedora Core 5 and 6 use the next settings.
Oracle_base =/opt/Oracle
ORACLE_HOME = $ oracle_base/920
Oracle_sid = my_oracle
LD_LIBRARY_PATH = $ ORACLE_HOME/lib
Ld_assume_kernel = 2.4.1
Threads_flag = native
Oracle_oem_javaruntime =/opt/jre1.3.1 _ 15
Path = $ path: $ ORACLE_HOME/bin
Export oracle_base ORACLE_HOME oracle_sid LD_LIBRARY_PATH ld_assume_kernel threads_flag oracle_oem_javaruntime path
Settings for Fedora Core 5 and 6 only. For Fedora
Core 2, 3, 4 use the above settings. Note setting of ld_assume_kernel
Will cause incorrect functionality of fc5 and fc6.
Oracle_base =/opt/Oracle
ORACLE_HOME = $ oracle_base/920
Oracle_sid = my_oracle
LD_LIBRARY_PATH = $ ORACLE_HOME/lib
Oracle_oem_javaruntime =/opt/jre1.3.1 _ 15
Path = $ path: $ ORACLE_HOME/bin
Export oracle_base ORACLE_HOME oracle_sid LD_LIBRARY_PATH oracle_oem_javaruntime path
Save the. bash_profile and execute following commands for load new enviroment:
CD/home/Oracle
.. Bash_profile
4. Create base directory for Oracle
Login as root and create base directory for Oracle ($ oracle_base ).
Su-
# Cd/OPT
# Mkdir Oracle
# Chown ORACLE: DBA Oracle
Download & Install
1. Download and install required. RPM packages
Some additional packages are required for Succesful instalation of Oracle software.
To check whether required packages are installed on your operating system use following command:
Rpm-q gcc glibc-headers glibc-kernheaders glibc-devel compat-libstdc ++ CPP compat-gcc
Note: You don't need glibc-kernheaders installed on fc6 as this package is not shipped with fc6.
If some package is not installed download it from Fedora Project website or direct from Core 2, core 3, Core 4, core 5, core 6 locations.
This step is required for Fedora Core 3 and 4 only. Fedora Core 3 is
Ship with compat-gcc-8.3.3.4. Fedora Core 4 is shipped
Compat-gcc-32-3.2.3. These package are GCC 3.x Compiler which are not
Useful for Succesful inatallation. Check whether compat-gcc-8.3.3.4 or
Compat-gcc-32-3.2.3 is installed.
If so then uninstall it using folowing command:
Rpm-e compat-gcc
Download the compat-gcc-7.3-2.96.126.i386.rpm package from
Core 2
Location or from here.
Install the required packages using the RPM command (note
Version of packages may change in newer release, so versions for all
Packages (container t compat-GCC package) used in next command are just
Example .):
# Rps-ivh gcc-3.4.2-6.fc3.i386.rpm \
Glibc-headers-2.3.3-74.i386.rpm \
Glibc-kernheaders-2.4-9.1.87.i386.rpm \
Glibc-devel-2.3.3-74.i386.rpm \
Compat-libstdc ++-3.4.2-6. fc3.i386. RPM \
Cpp-3.4.2-6.fc3.i386.rpm \
Compat-gcc-7.3-2.96.126.i386.rpm
For Fedora Core 4, 5 and 6 only: install the required additional packages using the RPM command:
# Rpm-IVH compat-libgcc-296-2.96-___. RPM \
Compat-libstdc ++-33-3.2.3-___. RPM \
Compat-libstdc ++-296-2.96-___. rpm
If all required packages were installed succesfuly then Login as root
And switch the gcc3 compiler binary with gcc2 compiler binary
Following:
Su-
# Cd/usr/bin
# Mv./GCC./gcc3
# Mv./gcc296./GCC
2. Download the Java runtime enviroment (j2re-1_3_1_15-linux-i586.bin) from the sun website. Keep in mind you need to download j2re1.3.1 _ 11 or higher (Note: Install JRE 1.3.1 _ 1x version only ).
Login as root and make the file executable and then execute it. When the JRE is exracted move the "jre1.3.1 _ 15" Di
Rectory to "/OPT" directory.
# Chmod + x j2re-1_3_1_15-linux-i586.bin
#./J2re-1_3_1_15-linux-i586.bin
# Mv jre1.3.1 _ 15/opt/
3. Download the Oracle 9i (9.2.0.4) software from Oracle website.
Extract the files using following command:
Gunzip ship_9204_linux_disk1.cpio.gz
Gunzip ship_9204_linux_disk2.cpio.gz
Gunzip ship_9204_linux_disk3.cpio.gz
Cpio-idmv <ship_9204_linux_disk1.cpio
Cpio-idmv <ship_9204_linux_disk2.cpio
Cpio-idmv <ship_9204_linux_disk3.cpio
When all archives were extracted you 've got three directories disk1, disk2 and disk3.
Edit the disk1/install/Linux/oraparam. ini and modify jre_location variable and set path to our JRE installation from step 2.
Jre_location =/opt/jre1.3.1 _ 15
4. Start the Oracle software installation process.
Now the system is prepared for Oracle software installation.
To start the installation process execute the following commands:
CD disk1
./Runinstaller
When network configuration assistant and Database Configuration assistant has failed during ST
Artup then do following steps:
CD/opt/Oracle/920
Rm JRE
Ln-S/opt/jre1.3.1 _ 15 JRE
Su-
# Cd/opt/Oracle/920/JRE/bin
# Ln-s Java JRE
# Cd i386/native_threads
# Ln-s Java JRE
Post-instalation tasks
1. Switch back the GCC Binaries
Su-
# Cd/usr/bin
# Mv./GCC./gcc296
# Mv./gcc3./GCC
2. Change of JRE path in Oracle universal Installer
Edit the $ oracle_base/OUI/oraparam. ini file and modify the value of jre_location to/opt/jre1.3.1 _ 15
3. (optional) You may consider to use rlwrap for comfortable
Work with sqlplus. RPM package for Fedora Core (x86) distribution you
Can download here.
Su-
# Rpm-IVH rlwrap-0.24.fedora.i386.rpm
# Exit
Echo "alias sqlplus = 'rlwrap sqlplus '">/home/Oracle/. bash_profile
./Home/Oracle/. bash_profilecommon installation errors
Unable to load native Library:
/Tmp/OraInstall2005-01-08_11-11-34AM/JRE/lib/i386/libjava. So: Symbol
_ Libc_wait, version glibc_2.0 not defined in file libc. so.6 with Link
Time Reference
Solution: Install new JRE 1.3.1 version. Edit
Disk1/install/Linux/oraparam. ini and set path to new JRE
Jre_location variable. For more information see download & Install
Section.
/Tmp/OraInstall2005-04-26_11-38-19AM/JRE/lib/i386/libawt. So:
Libxp. so.6: cannot open shared object file: no such file or directory
Solution: Install the xorg-x11-deprecated-libs package (for> = FC4 versions). For fc5 and later install libxp package.
/tmp/OraInstall2005-06-14_03-46-25PM/JRE/bin/i386/native_threads/Java:
error while loading shared libraries:
/tmp/OraInstall2005-06-14_03-46-25PM/JRE/lib/i386/native_threads/libhpi. so:
cannot restore segment prot after reloc: Permission denied
solution: modify/etc/SELinux/config and change value of SELinux to "disabled" and reboot computer.
starting Oracle intelligent
agent... /opt/Oracle/920/bin/dbsnmpwd: Line 156: 1393 segmentation fault
nohup $ ORACLE_HOME/bin/Dbsnmp $ *> $ dbsnmp_wdlogfile 2> & 1
/opt/Oracle/920/bin/dbsnmpwd: Line 156: 1405 segmentation fault nohup
$ ORACLE_HOME/bin/Dbsnmp $ *> $ dbsnmp_wdlogfile 2> & 1
/opt/Oracle/920/bin/dbsnmpwd: Line 156: 1416 segmentation fault nohup
$ ORACLE_HOME/bin/Dbsnmp $ *> $ dbsnmp_wdlogfile 2> & 1
/opt/Oracle/920/bin/dbsnmpwd: Line 156: 1427 segmentation fault nohup
$ ORACLE_HOME/bin/Dbsnmp $ *> $ dbsnmp_wdlogfile 2> & 1
solution: Download and apply Nr patch.: 3238244 from http://metalink.oracle.com.
exception in thread "Main" Java. lang. internalerror:
can't connect to X11 window server using 'localhost: 0.0 'as the value
of the display variable.
solution: Execute "export display =: 0.0" (as Oracle user)
and "xhost +" as user who has opened X session (for example logged in
Kde, gnome, etc .). if the value is other than 127.0.0.1 or localhost
You shoshould "xhost +" on client machine.
Error in invoking target install of makefile
/Opt/Oracle/920/CTX/lib/ins_ctx.mk
Error in invoking target install of makefile/opt/Oracle/920/precomp/lib/ins_precomp.mk
Error in invoking target install of makefile/opt/Oracle/920/PLSQL/lib/ins_plsql.mk
Error in invoking ntcontab. O of makfile/opt/Oracle/920/Network/lib/ins_net_client.mk
Solution: Install the compat-gcc-7.3-2.96.126.i386.rpm (GCC 2.96)
Package and change the GCC binaries. For more information see download
& Install section. In case of Fedora Core 5 take look at next error
Message.
Sed:-e expression #1, char 7: unterminated's 'COMMAND
Error in $ ORACLE_HOME/install/make. Log
Solution: There is probably bug in bash (fc5 only). Download and
Install bash package from fc4. I have prepared this package (builded
From FC4 SRC. rpm) for fc5-download.
Install it using "rpm-IVH bash-3.0-31.i386.rpm -- force ".
Initializing Java Virtual Machine from
/Tmp/OraInstall2006-10-25_01-43-30PM/JRE/bin/Java. Please wait...
/Tmp/OraInstall2006-10-25_01-43-30PM/JRE/bin/i386/native_threads/Java:
Error while loading shared libraries: libstdc ++-libc6.1-1. so.2: cannot
Open shared object file: no such file or directory-after./runinstaller execution.
Solution:
Su-
# Cd/usr/lib
# Ln-s libstdc ++-3-libc6.2-2.10.0.so libstdc ++-libc6.1-1. so.2
Start./runinstaller again.