fedora Receive Updates For This Category
Oracle Application Server 10g (9.0.4) Installation On Fedora Core 1 (FC1)
In this article I8217;ll describe the installation of Oracle Application Server 10g (9.0.4), Oracle8217;s J2EE Application Server, on Fedora Core 1. The article assumes you8217;ve performed the standard server installation including the development tools.
- Download Software
- Unpack Files
- Hosts File
- Set Kernel Parameters
- Setup
- Installation
- Post Installation
Download Software
Download the following software:
Unpack Files
First unzip the files:
gunzip ias904_linux_disk1.cpio.gz gunzip ias904_linux_disk2.cpio.gz gunzip ias904_linux_disk3.cpio.gz gunzip ias904_linux_disk4.cpio.gz
Next unpack the contents of the files:
cpio -idmv < ias904_linux_disk1.cpio cpio -idmv < ias904_linux_disk2.cpio cpio -idmv < ias904_linux_disk3.cpio cpio -idmv < ias904_linux_disk4.cpio
You should now have four directories (Disk1, Disk2, Disk3 & Disk4) containing installation files.
Hosts File
The /etc/hosts file must contain a fully qualified name for the server:
<IP-address> <fully-qualified-machine-name> <machine-name>
Set Kernel Parameters
Add the following lines to the /etc/sysctl.conf file:
kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 142 # semaphores: semmsl, semmns, semopm, semmni kernel.sem = 256 32000 100 142 fs.file-max = 131072 net.ipv4.ip_local_port_range = 20000 65000 kernel.msgmni = 2878 kernel.msgmax = 8192 kernel.msgmnb = 65535
Run the following command to change the current kernel parameters:
/sbin/sysctl -p
Add the following lines to the /etc/security/limits.conf file:
* soft nproc 16384 * hard nproc 16384 * soft nofile 65536 * hard nofile 65536
Add the following line to the /etc/pam.d/login file, if it does not already exist:
session required pam_limits.so
Setup
Install the following packages:
# From Fedora Core 1 Disk 1 cd /mnt/cdrom/Fedora/RPMS rpm -Uvh setarch-1.0-1.i386.rpm rpm -Uvh ORBit-0.5.17-10.3.i386.rpm rpm -Uvh libpng10-1.0.13-9.i386.rpm # From Fedora Core 1 Disk 2 cd /mnt/cdrom/Fedora/RPMS rpm -Uvh gnome-libs-1.4.1.2.90-35.i386.rpm # From Fedora Core 1 Disk 3 cd /mnt/cdrom/Fedora/RPMS rpm -Uvh compat-libstdc++-7.3-2.96.118.i386.rpm rpm -Uvh compat-libstdc++-devel-7.3-2.96.118.i386.rpm rpm -Uvh compat-db-4.0.14-2.i386.rpm rpm -Uvh compat-gcc-7.3-2.96.118.i386.rpm rpm -Uvh compat-gcc-c++-7.3-2.96.118.i386.rpm rpm -Uvh sysstat-4.0.7-5.i386.rpm rpm -Uvh openmotif21-2.1.30-8.i386.rpm rpm -Uvh pdksh-5.2.14-23.i386.rpm
Put gcc296 and g++296 first in $PATH variable by creating the following symbolic links:
mv /usr/bin/gcc /usr/bin/gcc323 mv /usr/bin/g++ /usr/bin/g++323 ln -s /usr/bin/gcc296 /usr/bin/gcc ln -s /usr/bin/g++296 /usr/bin/g++
Install the 3006854 patch:
unzip p3006854_9204_LINUX.zip cd 3006854 sh rhel3_pre_install.sh
Create the new groups and users:
groupadd oinstall groupadd dba groupadd oper useradd -g oinstall -G dba -s /bin/ksh oracle passwd oracle
Create the directories in which the Oracle software will be installed:
mkdir -p /u01/app/oracle/product/904_j2ee chown -R oracle.oinstall /u01
Login as root and issue the following command:
xhost +<machine-name>
Login as the oracle user and add the following lines at the end of the .profile file:
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/904_j2ee; export ORACLE_HOME
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$ORACLE_HOME/bin:$PATH; export PATH
PATH=$PATH:$ORACLE_HOME/dcm/bin:$ORACLE_HOME/opmn/bin; export PATH
PATH=$PATH:$ORACLE_HOME/Apache/Apache/bin; export PATH
#LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
#CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
LD_ASSUME_KERNEL=2.4.1; export LD_ASSUME_KERNEL
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 16384
else
ulimit -u 16384 -n 16384
fi
fi
PS1="`hostname`> "
set -o emacs
set filec
Installation
Log into the oracle user. If you are using X emulation then set the DISPLAY environmental variable:
DISPLAY=<machine-name>:0.0; export DISPLAY
Start the Oracle Universal Installer (OUI) by issuing the following command in the Disk1 directory:
./runInstaller
The AS10g installer checks for required packages. It will produce the following list of missing packeges:
>>> Package gcc-3.2.3-20 is missing >>> Package compat-gcc-7.3-2.96.122 is missing >>> Package compat-gcc-c++-7.3-2.96.122 is missing >>> Package compat-libstdc++-7.3-2.96.122 is missing >>> Package compat-libstdc++-devel-7.3-2.96.122 is missing >>> Package setarch-1.3-1 is missing >>> Package gnome-libs-1.4.1.2.90-34.1 is missing >>> Package libstdc++-3.2.3 is missing >>> Package compat-libstdc++-devel-7.3-2.96.122 is missing >>> Package compat-glibc-7.x-2.2.4.32.5 is missing
You can either quit and install these packages or continue with the installation as we8217;ve installed newer versions of them.
During the installation enter the appropriate ORACLE_HOME and name then continue with the installation.
Post Installation
With the installation complete you can perform any administration tasks using Enterprise Manager:
- Connect to the Enterprise Manager Website (http://<fully-qualified-machine-name>:1810) using the username 8220;ias_admin8221; and the password you assigned during the installation. If EM is not available start it with the 8220;emctl start iasconsole8221; command.
- Stop enterprise manager by issuing the 8220;emctl stop iasconsole8221; command.
Oracle Application Server 10g (9.0.4) Installation On Fedora Core 2 (FC2)
In this article I8217;ll describe the installation of Oracle Application Server 10g (9.0.4), Oracle8217;s J2EE Application Server, on Fedora Core 2. The article assumes you8217;ve performed the standard server installation including the development tools.
- Download Software
- Unpack Files
- Hosts File
- Set Kernel Parameters
- Setup
- Installation
- Post Installation
Download Software
Download the following software:
Unpack Files
First unzip the files:
gunzip ias904_linux_disk1.cpio.gz gunzip ias904_linux_disk2.cpio.gz gunzip ias904_linux_disk3.cpio.gz gunzip ias904_linux_disk4.cpio.gz
Next unpack the contents of the files:
cpio -idmv < ias904_linux_disk1.cpio cpio -idmv < ias904_linux_disk2.cpio cpio -idmv < ias904_linux_disk3.cpio cpio -idmv < ias904_linux_disk4.cpio
You should now have four directories (Disk1, Disk2, Disk3 & Disk4) containing installation files.
Hosts File
The /etc/hosts file must contain a fully qualified name for the server:
<IP-address> <fully-qualified-machine-name> <machine-name>
Set Kernel Parameters
Add the following lines to the /etc/sysctl.conf file:
kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 142 # semaphores: semmsl, semmns, semopm, semmni kernel.sem = 256 32000 100 142 fs.file-max = 131072 net.ipv4.ip_local_port_range = 20000 65000 kernel.msgmni = 2878 kernel.msgmax = 8192 kernel.msgmnb = 65535
Run the following command to change the current kernel parameters:
/sbin/sysctl -p
Add the following lines to the /etc/security/limits.conf file:
* soft nproc 16384 * hard nproc 16384 * soft nofile 65536 * hard nofile 65536
Add the following line to the /etc/pam.d/login file, if it does not already exist:
session required pam_limits.so
Setup
Install the following packages:
# From Fedora Core 2 Disk 1 cd /mnt/cdrom/Fedora/RPMS rpm -Uvh setarch-1.4-1.i386.rpm rpm -Uvh tcl-8.4.5-7.i386.rpm rpm -Uvh ORBit2-2.10.0-2.i386.rpm rpm -Uvh libpng-1.2.2-22.i386.rpm # From Fedora Core 2 Disk 2 cd /mnt/cdrom/Fedora/RPMS rpm -Uvh libpng10-1.0.13-13.i386.rpm rpm -Uvh gnome-libs-1.4.1.2.90-40.i386.rpm # From Fedora Core 2 Disk 3 cd /mnt/cdrom/Fedora/RPMS rpm -Uvh compat-libstdc++-7.3-2.96.126.i386.rpm rpm -Uvh compat-libstdc++-devel-7.3-2.96.126.i386.rpm rpm -Uvh compat-db-4.1.25-2.1.i386.rpm rpm -Uvh compat-gcc-7.3-2.96.126.i386.rpm rpm -Uvh compat-gcc-c++-7.3-2.96.126.i386.rpm rpm -Uvh openmotif21-2.1.30-9.i386.rpm rpm -Uvh pdksh-5.2.14-24.i386.rpm # From Fedora Core 2 Disk 4 cd /mnt/cdrom/Fedora/RPMS rpm -Uvh sysstat-5.0.1-2.i386.rpm
Put gcc296 and g++296 first in $PATH variable by creating the following symbolic links:
mv /usr/bin/gcc /usr/bin/gcc323 mv /usr/bin/g++ /usr/bin/g++323 ln -s /usr/bin/gcc296 /usr/bin/gcc ln -s /usr/bin/g++296 /usr/bin/g++
Install the 3006854 patch:
unzip p3006854_9204_LINUX.zip cd 3006854 sh rhel3_pre_install.sh
Create the new groups and users:
groupadd oinstall groupadd dba groupadd oper useradd -g oinstall -G dba -s /bin/ksh oracle passwd oracle
Create the directories in which the Oracle software will be installed:
mkdir -p /u01/app/oracle/product/904_j2ee chown -R oracle.oinstall /u01
Login as root and issue the following command:
xhost +<machine-name>
Login as the oracle user and add the following lines at the end of the .profile file:
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/904_j2ee; export ORACLE_HOME
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$ORACLE_HOME/bin:$PATH; export PATH
PATH=$PATH:$ORACLE_HOME/dcm/bin:$ORACLE_HOME/opmn/bin; export PATH
PATH=$PATH:$ORACLE_HOME/Apache/Apache/bin; export PATH
#LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
#CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
LD_ASSUME_KERNEL=2.4.1; export LD_ASSUME_KERNEL
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 16384
else
ulimit -u 16384 -n 16384
fi
fi
PS1="`hostname`> "
set -o emacs
set filec
Installation
Log into the oracle user. If you are using X emulation then set the DISPLAY environmental variable:
DISPLAY=<machine-name>:0.0; export DISPLAY
Start the Oracle Universal Installer (OUI) by issuing the following command in the Disk1 directory:
./runInstaller
The AS10g installer checks for required packages. It will produce the following list of missing packeges:
>>> Package gcc-3.2.3-20 is missing >>> Package compat-gcc-7.3-2.96.122 is missing >>> Package compat-gcc-c++-7.3-2.96.122 is missing >>> Package compat-libstdc++-7.3-2.96.122 is missing >>> Package compat-libstdc++-devel-7.3-2.96.122 is missing >>> Package setarch-1.3-1 is missing >>> Package sysstat-4.0.7 is missing >>> Package gnome-libs-1.4.1.2.90-34.1 is missing >>> Package libstdc++-3.2.3 is missing >>> Package compat-libstdc++-devel-7.3-2.96.122 is missing >>> Package compat-glibc-7.x-2.2.4.32.5 is missing
You can either quit and install these packages or continue with the installation as we8217;ve installed newer versions of them.
During the installation enter the appropriate ORACLE_HOME and name then continue with the installation.
Post Installation
With the installation complete you can perform any administration tasks using Enterprise Manager:
- Connect to the Enterprise Manager Website (http://<fully-qualified-machine-name>:1810) using the username 8220;ias_admin8221; and the password you assigned during the installation. If EM is not available start it with the 8220;emctl start iasconsole8221; command.
- Stop enterprise manager by issuing the 8220;emctl stop iasconsole8221; command.
In this article I8217;ll describe the installation of Oracle Database 10g Release 2 (10.2.0.1) on Fedora Core 3. The article is based on a Fedora Core 3 Server Installation with a minimum of 2G swap, secure Linux disabled and the following package groups installed:
- X Window System
- GNOME Desktop Environment
- Editors
- Graphical Internet
- Text-based Internet
- Server Configuration Tools
- Development Tools
- Administration Tools
- System Tools
Alternative installations may require more packages to be loaded, in addition to the ones listed below.
- Download Software
- Unpack Files
- Hosts File
- Set Kernel Parameters
- Setup
- Installation
- Post Installation
Download Software
Download the following software:
Unpack Files
Unzip the files:
unzip 10201_database_linux32.zip
You should now have a single directory containing installation files. Depending on the age of the download this may either be named 8220;db/Disk18243; or 8220;database8221;.
Hosts File
The /etc/hosts file must contain a fully qualified name for the server:
<IP-address> <fully-qualified-machine-name> <machine-name>
Set Kernel Parameters
Add the following lines to the /etc/sysctl.conf file:
kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 # semaphores: semmsl, semmns, semopm, semmni kernel.sem = 250 32000 100 128 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default=262144 net.core.rmem_max=262144 net.core.wmem_default=262144 net.core.wmem_max=262144
Run the following command to change the current kernel parameters:
/sbin/sysctl -p
Add the following lines to the /etc/security/limits.conf file:
* soft nproc 2047 * hard nproc 16384 * soft nofile 1024 * hard nofile 65536
Add the following line to the /etc/pam.d/login file, if it does not already exist:
session required pam_limits.so
Note by Kent Anderson: In the event that pam_limits.so cannot set privilidged limit settings see Bug 115442.
Disable secure linux by editing the /etc/selinux/config file, making sure the SELINUX flag is set as follows:
SELINUX=disabled
Alternatively, this alteration can be done using the GUI tool (Desktop > System Settings > Security Level). Click on the SELinux tab and disable the feature.
Setup
Install the following packages:
# From Fedora Core 3 Disk 1 cd /media/cdrom/Fedora/RPMS rpm -Uvh setarch-1* rpm -Uvh tcl-8* rpm -Uvh compat-libstdc++-8* # From Fedora Core 3 Disk 2 cd /media/cdrom/Fedora/RPMS rpm -Uvh xorg-x11-deprecated-libs-6* rpm -Uvh openmotif-2* rpm -Uvh compat-db-4* # From Fedora Core 3 Disk 3 cd /media/cdrom/Fedora/RPMS rpm -Uvh compat-libstdc++-devel-8* rpm -Uvh compat-gcc-8* rpm -Uvh compat-gcc-c++-8* rpm -Uvh libaio-0*
Create the new groups and users:
groupadd oinstall groupadd dba groupadd oper useradd -g oinstall -G dba oracle passwd oracle
Create the directories in which the Oracle software will be installed:
mkdir -p /u01/app/oracle/product/10.2.0/db_1 chown -R oracle.oinstall /u01
Login as root and issue the following command:
xhost +<machine-name>
Edit the /etc/redhat-release file replacing the current release information (Fedora Core release 3 (Heidelberg)) with the following:
redhat-3
Login as the oracle user and add the following lines at the end of the .bash_profile file:
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID=TSH1; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
#LD_ASSUME_KERNEL=2.4.1; export LD_ASSUME_KERNEL
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
Installation
Log into the oracle user. If you are using X emulation then set the DISPLAY environmental variable:
DISPLAY=<machine-name>:0.0; export DISPLAY
Start the Oracle Universal Installer (OUI) by issuing the following command in the database directory:
./runInstaller
During the installation enter the appropriate ORACLE_HOME and name then continue with a 8220;software only8221; installation. For a more detailed look at the installation process, click on the links below to see screen shots of each stage.
Post Installation
Create a new instance using the DBCA. If you get the 8220;ORA-27125: unable to create shared memory segment8221; error when using the DBCA issue the following commands as the oracle user then try again:
cd $ORACLE_HOME/bin mv oracle oracle.bin cat >oracle <<"EOF" #!/bin/bash export DISABLE_HUGETLBFS=1 exec $ORACLE_HOME/bin/oracle.bin $@ EOF chmod +x oracle
Edit the /etc/redhat-release file restoring the original release information:
Fedora Core release 3 (Heidelberg)
Finally edit the /etc/oratab file setting the restart flag for each instance to 8216;Y8217;:
TSH1:/u01/app/oracle/product/10.2.0/db_1:Y
Oracle Database 10g Release 2 (10.2.0.1) Installation On Fedora Core 4 (FC4)
In this article I8217;ll describe the installation of Oracle Database 10g Release 2 (10.2.0.1) on Fedora Core 4. The article is based on a Fedora Core 4 Server Installation with a minimum of 2G swap, secure Linux disabled and the following package groups installed:
- X Window System
- GNOME Desktop Environment
- Editors
- Graphical Internet
- Text-based Internet
- Server Configuration Tools
- Development Tools
- Administration Tools
- System Tools
Alternative installations may require more packages to be loaded, in addition to the ones listed below.
- Download Software
- Unpack Files
- Hosts File
- Set Kernel Parameters
- Setup
- Installation
- Post Installation
Download Software
Download the following software:
Unpack Files
Unzip the files:
unzip 10201_database_linux32.zip
You should now have a single directory containing installation files. Depending on the age of the download this may either be named 8220;db/Disk18243; or 8220;database8221;.
Hosts File
The /etc/hosts file must contain a fully qualified name for the server:
<IP-address> <fully-qualified-machine-name> <machine-name>
Set Kernel Parameters
Add the following lines to the /etc/sysctl.conf file:
kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 # semaphores: semmsl, semmns, semopm, semmni kernel.sem = 250 32000 100 128 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default=262144 net.core.rmem_max=262144 net.core.wmem_default=262144 net.core.wmem_max=262144
Run the following command to change the current kernel parameters:
/sbin/sysctl -p
Add the following lines to the /etc/security/limits.conf file:
* soft nproc 2047 * hard nproc 16384 * soft nofile 1024 * hard nofile 65536
Add the following line to the /etc/pam.d/login file, if it does not already exist:
session required pam_limits.so
Note by Kent Anderson: In the event that pam_limits.so cannot set privilidged limit settings see Bug 115442.
Disable secure linux by editing the /etc/selinux/config file, making sure the SELINUX flag is set as follows:
SELINUX=disabled
Alternatively, this alteration can be done using the GUI tool (Desktop > System Settings > Security Level). Click on the SELinux tab and disable the feature.
Setup
Install the following packages:
# From Fedora Core 4 Disk 1 cd /media/cdrom/Fedora/RPMS rpm -Uvh setarch-1* rpm -Uvh tcl-8* # From Fedora Core 4 Disk 2 cd /media/cdrom/Fedora/RPMS rpm -Uvh xorg-x11-deprecated-libs-6* rpm -Uvh openmotif-2* rpm -Uvh compat-db-4* # From Fedora Core 4 Disk 3 cd /media/cdrom/Fedora/RPMS rpm -Uvh compat-libstdc++-33-3* rpm -Uvh compat-gcc-32-3* rpm -Uvh libaio-0* # From Fedora Core 4 Disk 4 cd /media/cdrom/Fedora/RPMS rpm -Uvh compat-gcc-32-c++-3*
Create the new groups and users:
groupadd oinstall groupadd dba groupadd oper useradd -g oinstall -G dba oracle passwd oracle
Create the directories in which the Oracle software will be installed:
mkdir -p /u01/app/oracle/product/10.2.0/db_1 chown -R oracle.oinstall /u01
Login as root and issue the following command:
xhost +<machine-name>
Edit the /etc/redhat-release file replacing the current release information (Fedora Core release 4 (Stentz)) with the following:
redhat-4
Login as the oracle user and add the following lines at the end of the .bash_profile file:
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID=TSH1; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
#LD_ASSUME_KERNEL=2.4.1; export LD_ASSUME_KERNEL
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
Installation
Log into the oracle user. If you are using X emulation then set the DISPLAY environmental variable:
DISPLAY=<machine-name>:0.0; export DISPLAY
Start the Oracle Universal Installer (OUI) by issuing the following command in the database directory:
./runInstaller
During the installation enter the appropriate ORACLE_HOME and name then continue with the installation. For a more detailed look at the installation process, click on the links below to see screen shots of each stage.
Post Installation
Edit the /etc/redhat-release file restoring the original release information:
Fedora Core release 4 (Stentz)
Finally edit the /etc/oratab file setting the restart flag for each instance to 8216;Y8217;:
TSH1:/u01/app/oracle/product/10.2.0/db_1:Y
Oracle Database 10g Release 2 (10.2.0.1) Installation On Fedora Core 5 (FC5)
In this article I8217;ll describe the installation of Oracle Database 10g Release 2 (10.2.0.1) on Fedora Core 5. The article is based on a Fedora Core 5 (FC5 X86) Server Installation with a minimum of 2G swap, secure Linux disabled and the following package groups installed:
- Editors
- Graphical Internet
- Administration Tools
- Base
- X Window System
- System Tools
- Server Configuration Tools
- GNOME Desktop Environment
- Development Libraries
- Development Tools
- Legacy Development Support
- Legacy Server Support
Alternative installations may require more packages to be loaded, in addition to the ones listed below.
- Download Software
- Unpack Files
- Hosts File
- Set Kernel Parameters
- Setup
- Installation
- Post Installation
Download Software
Download the following software:
Unpack Files
Unzip the files:
unzip 10201_database_linux32.zip
You should now have a single directory containing installation files. Depending on the age of the download this may either be named 8220;db/Disk18243; or 8220;database8221;.
Hosts File
The /etc/hosts file must contain a fully qualified name for the server:
<IP-address> <fully-qualified-machine-name> <machine-name>
Set Kernel Parameters
Add the following lines to the /etc/sysctl.conf file:
kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 # semaphores: semmsl, semmns, semopm, semmni kernel.sem = 250 32000 100 128 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default=262144 net.core.rmem_max=262144 net.core.wmem_default=262144 net.core.wmem_max=262144
Run the following command to change the current kernel parameters:
/sbin/sysctl -p
Add the following lines to the /etc/security/limits.conf file:
* soft nproc 2047 * hard nproc 16384 * soft nofile 1024 * hard nofile 65536
Add the following line to the /etc/pam.d/login file, if it does not already exist:
session required pam_limits.so
Disable secure linux by editing the /etc/selinux/config file, making sure the SELINUX flag is set as follows:
SELINUX=disabled
Alternatively, this alteration can be done using the GUI tool (Desktop > System Settings > Security Level). Click on the SELinux tab and disable the feature.
Setup
Install the following packages:
# From Fedora Core 5 DVD cd /media/dvd/Fedora/RPMS rpm -Uvh setarch-* rpm -Uvh --force tcl-* rpm -Uvh libXp-* rpm -Uvh openmotif-2* rpm -Uvh compat-db-* rpm -Uvh compat-libstdc++-33* rpm -Uvh compat-libf2c-32-* rpm -Uvh compat-gcc-32-* rpm -Uvh libaio-* rpm -Uvh compat-gcc-32-c++-* rpm -Uvh compat-libstdc++-296* rpm -Uvh compat-libgcc-296* # From download rpm -Uvh openmotif21-2.1.30-14.i386.rpm
Create the new groups and users:
groupadd oinstall groupadd dba groupadd oper useradd -g oinstall -G dba oracle passwd oracle
Create the directories in which the Oracle software will be installed:
mkdir -p /u01/app/oracle/product/10.2.0/db_1 chown -R oracle.oinstall /u01
Login as root and issue the following command:
xhost +<machine-name>
Edit the /etc/redhat-release file replacing the current release information (Fedora Core release 5 (Bordeaux)) with the following:
redhat-4
Login as the oracle user and add the following lines at the end of the .bash_profile file:
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID=TSH1; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jre:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
Installation
Log into the oracle user. If you are using X emulation then set the DISPLAY environmental variable:
DISPLAY=<machine-name>:0.0; export DISPLAY
Start the Oracle Universal Installer (OUI) by issuing the following command in the database directory:
./runInstaller
Enter the appropriate ORACLE_HOME and name then continue with the installation.
During the installation, before the linking phase, edit the contents of the 8220;$ORACLE_HOME/bin/gennttab8221; file, amending the following entries:
# Change this...
LIB=`$ECHO ${TtoLIB} | $SED 's/ /\\
/g' | $GREP "^${T}:" | $AWK -F: '{print $2}'`
INI=`$ECHO ${TtoINI} | $SED 's/ /\\
/g' | $GREP "^${T}:" | $AWK -F: '{print $2}'`
BAS=`$ECHO ${TtoBAS} | $SED 's/ /\\
/g' | $GREP "^${T}:" | $AWK -F: '{print $2}'`
# To this...
LIB=`$ECHO ${TtoLIB} | $SED 's/ /\n/g' | $GREP "^${T}:" | $AWK -F: '{print $2}'`
INI=`$ECHO ${TtoINI} | $SED 's/ /\n/g' | $GREP "^${T}:" | $AWK -F: '{print $2}'`
BAS=`$ECHO ${TtoBAS} | $SED 's/ /\n/g' | $GREP "^${T}:" | $AWK -F: '{print $2}'`
If you don8217;t do this the ntcontab will hang indefinitely during the linking phase.
For a more detailed look at the installation process, click on the links below to see screen shots of each stage.
Post Installation
Edit the /etc/redhat-release file restoring the original release information:
Fedora Core release 5 (Bordeaux)
Finally edit the /etc/oratab file setting the restart flag for each instance to 8216;Y8217;:
TSH1:/u01/app/oracle/product/10.2.0/db_1:Y
Oracle Database 10g Release 2 (10.2.0.1) Installation On Fedora Core 6 (FC6)
In this article I8217;ll describe the installation of Oracle Database 10g Release 2 (10.2.0.1) on Fedora Core 6. The article is based on a Fedora Core 6 (FC6 X86) Server Installation with a minimum of 2G swap, secure Linux disabled and the following package groups installed:
- Editors
- Graphical Internet
- Administration Tools
- Base
- X Window System
- System Tools
- Server Configuration Tools
- GNOME Desktop Environment
- Development Libraries
- Development Tools
- Legacy Software Support
- Legacy Software Development
Alternative installations may require more packages to be loaded, in addition to the ones listed below.
- Download Software
- Unpack Files
- Hosts File
- Set Kernel Parameters
- Setup
- Installation
- Post Installation
Download Software
Download the following software:
Unpack Files
Unzip the files:
unzip 10201_database_linux32.zip
You should now have a single directory containing installation files. Depending on the age of the download this may either be named 8220;db/Disk18243; or 8220;database8221;.
Hosts File
The /etc/hosts file must contain a fully qualified name for the server:
<IP-address> <fully-qualified-machine-name> <machine-name>
Set Kernel Parameters
Add the following lines to the /etc/sysctl.conf file:
kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 # semaphores: semmsl, semmns, semopm, semmni kernel.sem = 250 32000 100 128 fs.file-max = 65536 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default=262144 net.core.rmem_max=262144 net.core.wmem_default=262144 net.core.wmem_max=262144
Run the following command to change the current kernel parameters:
/sbin/sysctl -p
Add the following lines to the /etc/security/limits.conf file:
* soft nproc 2047 * hard nproc 16384 * soft nofile 1024 * hard nofile 65536
Add the following line to the /etc/pam.d/login file, if it does not already exist:
session required pam_limits.so
Disable secure linux by editing the /etc/selinux/config file, making sure the SELINUX flag is set as follows:
SELINUX=disabled
Alternatively, this alteration can be done using the GUI tool (Desktop > System Settings > Security Level). Click on the SELinux tab and disable the feature.
Setup
Install the following packages:
# From Fedora Core 6 DVD cd /media/dvd/Fedora/RPMS rpm -Uvh setarch-* rpm -Uvh --force tcl-* rpm -Uvh --force libXau-devel-* libXp-* rpm -Uvh compat-db-* rpm -Uvh compat-libstdc++-33* rpm -Uvh compat-libf2c-34-* rpm -Uvh compat-gcc-34-* rpm -Uvh libaio-* rpm -Uvh compat-gcc-34-c++-* rpm -Uvh compat-libstdc++-296* rpm -Uvh compat-libgcc-296* # From download rpm -Uvh openmotif21-2.1.30-14.i386.rpm
Create the new groups and users:
groupadd oinstall groupadd dba groupadd oper useradd -g oinstall -G dba oracle passwd oracle
Create the directories in which the Oracle software will be installed:
mkdir -p /u01/app/oracle/product/10.2.0/db_1 chown -R oracle.oinstall /u01
Login as root and issue the following command:
xhost +<machine-name>
Edit the /etc/redhat-release file replacing the current release information (Fedora Core release 6 (Zod)) with the following:
redhat-4
Login as the oracle user and add the following lines at the end of the .bash_profile file:
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID=TSH1; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jre:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
Installation
Log into the oracle user. If you are using X emulation then set the DISPLAY environmental variable:
DISPLAY=<machine-name>:0.0; export DISPLAY
Start the Oracle Universal Installer (OUI) by issuing the following command in the database directory:
./runInstaller
Enter the appropriate ORACLE_HOME and name then continue with the installation.
For a more detailed look at the installation process, click on the links below to see screen shots of each stage.
Post Installation
Edit the /etc/redhat-release file restoring the original release information:
Fedora Core release 6 (Zod)
Finally edit the /etc/oratab file setting the restart flag for each instance to 8216;Y8217;:
TSH1:/u01/app/oracle/product/10.2.0/db_1:Y
For more information see:



















