Red Hat Receive Updates For This Category
Oracle 10g Grid Control Installation On Red Hat Enterprise Linux 3 (RHEL3)
In this article I8217;ll describe the installation of Oracle 10g Grid Control on Red Hat Enterprise Linux 3 (RHEL3). The article is based on a server installation with a minimum of 2G swap 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
The Oracle 10g Grid Control allows you to monitor all aspects of your infrastructure including database and application servers. Like the Oracle9i Management Server it replaces, the grid control requires a database repository. Oracle prefer you to consider the grid control as a separate product and as such advise you to install the Oracle 9.0.1 database it comes shipped with. The reason for this unusual server version is that the grid control is built using Oracle Application Server 10g components which still rely on the 9i database for a metadata repository. Version 10.1.0.3.0 of the grid control can use a 10g database as a repository, but for most platforms there is no natural install path directly to 10g so I think it8217;s better to stick with the product as it is shipped.
The grid control uses agents on each server to enable monitoring and interaction. As a result, once the grid control is installed it is necessary to install an agent on each server you wish to monitor. The installation of an agent is described in it8217;s owner section. All other tasks relate only to the grid control.
- Download Software
- Unpack Files
- Hosts File
- Set Kernel Parameters
- Setup
- Grid Control Installation
- Starting and Stopping Grid Control Services
- Agent Installation
- Starting and Stopping Agent Services
- Issues
Download Software
Download the following software:
For convenience you may want to download the agent distribution separately. If you are monitoring servers on different platforms the relevant agents must be downloaded.
Unpack Files
First unzip the grid control installation files:
gunzip linux_grid_control_10_1_0_2_Disk1.cpio.gz gunzip linux_grid_control_10_1_0_2_Disk2.cpio.gz gunzip linux_grid_control_10_1_0_2_Disk3.cpio.gz
Next unpack the contents of the files:
cpio -idmv < linux_grid_control_10_1_0_2_Disk1.cpio cpio -idmv < linux_grid_control_10_1_0_2_Disk2.cpio cpio -idmv < linux_grid_control_10_1_0_2_Disk3.cpio
You should now have four directories (Disk1, Disk2 & Disk3) containing installation files.
Next unzip the grid control patch:
unzip p3731593_10103_LINUX.zip
You should now see a directory called 8220;37315938243; which contains a Disk1 directory.
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 = 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 RedHat AS3 Disk 2
cd /mnt/cdrom/RedHat/RPMS
rpm -Uvh setarch-1.3-1.i386.rpm
rpm -Uvh sysstat-4.0.7-4.i386.rpm
# From RedHat AS3 Disk 3
cd /mnt/cdrom/RedHat/RPMS
rpm -Uvh openmotif21-2.1.30-8.i386.rpm
rpm -Uvh ORBit-0.5.17-10.4.i386.rpm
rpm -Uvh libpng10-1.0.13-8.i386.rpm
rpm -Uvh gnome-libs-1.4.1.2.90-34.1.i386.rpm
rpm -Uvh compat-glibc-7.x-2.2.4.32.5.i386.rpm
compat-gcc-7.3-2.96.122.i386.rpm
compat-gcc-c++-7.3-2.96.122.i386.rpm
compat-libstdc++-7.3-2.96.122.i386.rpm
compat-libstdc++-devel-7.3-2.96.122.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++
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/10.1.0/oms mkdir -p /u01/app/oracle/product/10.1.0/agent 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/10.1.0/oms; export ORACLE_HOME
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:/opt/IBMJava2-131/bin:$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
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
Grid Control 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
During the installation select the appropriate ORACLE_HOME for the grid control (oms) and select the new database option. The installation will automatically install an agent in the agent home.
Once the installation is complete stop the grid control and the agent using the following commands:
/u01/app/oracle/product/10.1.0/agent/bin/emctl stop agent /u01/app/oracle/product/10.1.0/oms/opmn/bin/opmnctl stopall /u01/app/oracle/product/10.1.0/oms/bin/emctl stop agent
Then issue the following command from the 8220;./3731593/Disk18243; directory:
./runInstaller
During the patch installation select the same ORACLE_HOME for the grid control (oms). Once complete make sure the grid control is up using the following commands:
/u01/app/oracle/product/10.1.0/oms/bin/emctl start agent /u01/app/oracle/product/10.1.0/oms/opmn/bin/opmnctl startall /u01/app/oracle/product/10.1.0/agent/bin/emctl start agent
On completion the grid control will be available via a browser using the following style of URL:
http://<server-name>:<port>/em
The server name and port should be adjusted to the values specified in the $ORACLE_HOME/sysman/setupinfo.txt files.
Starting and Stopping Grid Control Services
To start the grid control you must start the agent and the web components in the oms home along with the agent in the agent home:
# Start everything /u01/app/oracle/product/10.1.0/oms/bin/emctl start agent /u01/app/oracle/product/10.1.0/oms/opmn/bin/opmnctl startall /u01/app/oracle/product/10.1.0/agent/bin/emctl start agent # Stop everything /u01/app/oracle/product/10.1.0/agent/bin/emctl stop agent /u01/app/oracle/product/10.1.0/oms/opmn/bin/opmnctl stopall /u01/app/oracle/product/10.1.0/oms/bin/emctl stop agent
Agent Installation
This agent installation assumes you are using a doing an installation on a Linux machine which already has a database or application server installed. As such there are no prerequisites as they should match those of the original product installation.
First, unzip the agent installation and patch set:
gunzip linux_grid_control_agentdwn_10_1_0_2.cpio.gz cpio -idmv < linux_grid_control_agentdwn_10_1_0_2.cpio unzip p3731593_10103_LINUX.zip
Make an appropriate directory for the agent software to be loaded into, like:
mkdir -p /u01/app/oracle/product/10.1.0/agent chown oracle.oinstall /u01/app/oracle/product/10.1.0/agent
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 8220;./linux/agent8221; directory:
./runInstaller
During the installation select the appropriate ORACLE_HOME for the agent (agent) and enter the machine name of the grid control server.
Once the installation is complete stop the agent using the following command:
/u01/app/oracle/product/10.1.0/agent/bin/emctl stop agent
Then issue the following command from the 8220;./3731593/Disk18243; directory:
./runInstaller
During the patch installation select the same ORACLE_HOME for the agent (agent). Once complete make sure the agent is up using the following command:
/u01/app/oracle/product/10.1.0/agent/bin/emctl start agent
With the installation complete the server should now be visible on the grid controls list of targets.
Starting and Stopping Agent Services
The following commands can be used to start and stop the agent:
# Start Agent /u01/app/oracle/product/10.1.0/agent/bin/emctl start agent # Stop Agent /u01/app/oracle/product/10.1.0/agent/bin/emctl stop agent
Issues
At the time of writing I noticed a few issues relating to the grid control:
- As explained earlier, the grid control requires an Oracle9i (9.0.1) database. I think this is really poor since the old OMS was not subject to this restriction. I understand the reasons for this, but it doesn8217;t mean I have to like it.
- The agents can sometimes take up a considerable amount of CPU and memory. The amusing thing is they actually alert the grid control about this. I8217;ve seen this happen with agents running on both Linux and Tru64 which implies to me that there is something dodgy going on somewhere.
- The normal Enterprise Manager products must be running on each server for administration to be done. By this I mean that the iasconsole and dbconsole must be running on application servers and database servers respectively. As a result you have both the agent and the local enterprise manager product using memory on each server. This can be a massive drain on server resources.
Oracle 10g Release 2 Grid Control Installation On Red Hat Enterprise Linux and CentOS
In this article I8217;ll describe the installation of Oracle 10g Release 2 Grid Control on Red Hat Enterprise Linux and CentOS. The article is based on a 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
The Oracle 10g Grid Control allows you to monitor all aspects of your infrastructure including database and application servers. Like the Oracle9i Management Server it replaces, the grid control requires a database repository. A complete installation includes a repository in a 10.1.0.4.0 database. It is possible to install the repository in an existing database of a different version, but I try to install the product as it is shipped.
The grid control uses agents on each server to enable monitoring and interaction. As a result, once the grid control is installed it is necessary to install an agent on each server you wish to monitor. The installation of an agent is described in it8217;s owner section. All other tasks relate only to the grid control.
- Download Software
- Unpack Files
- Hosts File
- Set Kernel Parameters
- Setup
- Grid Control Installation
- Starting and Stopping Grid Control Services
- Agent Installation
- Starting and Stopping Agent Services
Download Software
Download the following software:
For convenience you may want to download the agent distribution separately. If you are monitoring servers on different platforms the relevant agents must be downloaded.
Unpack Files
First unzip the grid control installation files:
unzip Linux_Grid_Control_full_102010_disk1.zip unzip Linux_Grid_Control_full_102010_disk2.zip unzip Linux_Grid_Control_full_102010_disk3.zip
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
Modify the /etc/sysctl.conf file to include the lines appropriate to your operating system:
# Red Hat Enterprise Linux 3.0 and CentOS 3.x kernel.shmmax = 2147483648 kernel.shmmni = 4096 kernel.shmall = 2097152 kernel.shmmin = 1 kernel.shmseg = 10 # semaphores: semmsl, semmns, semopm, semmni kernel.sem = 250 32000 100 128 fs.file-max = 65536 # Red Hat Enterprise Linux 4.0 and CentOS 4.x kernel.shmmax = 536870912 kernel.shmmni = 4096 kernel.shmall = 2097152 # 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
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 (Applications > System Settings > Security Level). Click on the SELinux tab and disable the feature.
Setup
The documentation states that the following packages are required by the relevant operating systems:
# Red Hat Enterprise Linux 3.0 and CentOS 3.x glibc-2.2.4-31.7 make-3.79 binutils-2.11.90.0.8-12 gcc-2.96 openmotif21-2.1.30-11 # Red Hat Enterprise Linux 4.0 and CentOS 4.x glibc-2.3.4-2.9 make-3.79 binutils-2.15.92.0.2-13 gcc-3.4.3-22.1 libaio-0.3.96 glibc-common-2.3.4-2.9 setarch-1.6-1 pdksh-5.2.14-30 openmotif21-2.1.30-11 sysstat-5.0.5-1 gnome-libs-1.4.1.2.90-44.1 libstdc++-3.4.3-22.1 libstdc++devel-3.4.3-22.1 compat-libstdc++-296-2.96-132.7.2 compat-db-4.1.25-9 control-center-2.8.0-12 xscreensaver-4.18-5.rhel4.2
Depending on the update/respin version of Red Hat or CentOS, the exact package versions and locations may vary. The installation of the required packages is shown below, with the versions and locations relevant for CentOS 4.1. The commented packages represent those that are already loaded.
# From CentOS 4.1 Disk 1 cd /media/cdrom/CentOS/RPMS #rpm -Uvh glibc-2.3.4-2.9.i386.rpm #rpm -Uvh glibc-common-2.3.4-2.9.i386.rpm #rpm -Uvh make-3.80-5.i386.rpm #rpm -Uvh binutils-2.15.92.0.2-13.i386.rpm #rpm -Uvh setarch-1.6-1.i386.rpm #rpm -Uvh pdksh-5.2.14-30.i386.rpm #rpm -Uvh libstdc++-3.4.3-22.1.i386.rpm rpm -Uvh compat-libstdc++-33-3.2.3-47.3.i386.rpm # From CentOS 4.1 Disk 2 cd /media/cdrom/CentOS/RPMS #rpm -Uvh gcc-3.4.3-22.1.i386.rpm #rpm -Uvh gnome-libs-1.4.1.2.90-44.1.i386.rpm #rpm -Uvh libstdc++-devel-3.4.3-22.1.i386.rpm #rpm -Uvh compat-db-4.1.25-9.i386.rpm #rpm -Uvh control-center-2.8.0-12.i386.rpm #rpm -Uvh xscreensaver-4.18-5.rhel4.2.i386.rpm # From CentOS 4.1 Disk 3 cd /media/cdrom/CentOS/RPMS rpm -Uvh libaio-0.3.103-3.i386.rpm rpm -Uvh openmotif21-2.1.30-11.RHEL4.4.i386.rpm rpm -Uvh sysstat-5.0.5-1.i386.rpm rpm -Uvh compat-libstdc++-296-2.96-132.7.2.i386.rpm
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/10.2.0/oms10g mkdir -p /u01/app/oracle/product/10.2.0/db10g mkdir -p /u01/app/oracle/product/10.2.0/agent10g 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/10.2.0/db10g; export ORACLE_HOME ORACLE_SID=emrep; export ORACLE_SID 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 PS1="`hostname`> " set -o emacs set filec
Grid Control 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 installation software directory:
./runInstaller
During the installation select the appropriate ORACLE_HOME for the grid control (oms) and select the new database option. The installation will automatically install an agent in the agent home. For a more detailed look at the installation process, click on the links below to see screen shots of each stage.
On completion the grid control will be available via a browser using the following style of URL:
http://<server-name>:<port>/em
The server name and port (typically 4889) should be adjusted to the values specified in the $ORACLE_HOME/sysman/setupinfo.txt files.
Starting and Stopping Grid Control Services
The following script shows how the whole grid control is started and stopped:
# Start everything /u01/app/oracle/product/10.2.0/db10g/bin/dbstart /u01/app/oracle/product/10.2.0/oms10g/opmn/bin/opmnctl startall /u01/app/oracle/product/10.2.0/agent10g/bin/emctl start agent # Stop everything /u01/app/oracle/product/10.2.0/agent10g/bin/emctl stop agent /u01/app/oracle/product/10.2.0/oms10g/opmn/bin/opmnctl stopall /u01/app/oracle/product/10.2.0/db10g/bin/dbshut
The dbstart and dbshut commands require the 8220;/etc/oratab8221; file to be editied to allow auto startup/shutdown.
By default, the database supporting the repository is in NOARCHIVELOG mode.
Agent Installation
This agent installation assumes you are using a doing an installation on a Linux machine which already has a database or application server installed. As such there are no prerequisites as they should match those of the original product installation.
First, unpack the agent installation:
gunzip Linux_Grid_Control_agent_download_10_2_0_1.cpio.gz cpio -idmv < Linux_Grid_Control_agent_download_10_2_0_1.cpio
If one doesn8217;t already exist, make an appropriate directory for the agent software to be loaded into, like:
mkdir -p /u01/app/oracle/product chown -R oracle:oinstall /u01
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 8220;./linux/agent8221; directory:
chmod -R u+x * cd linux/agent ./runInstaller
During the installation, select the 8220;Additional Management Agent8221; option, enter the installation base directory of 8220;/u01/app/oracle/product/10.2.08243; and grid control srver when prompted. The agent will be installed in the 8220;/u01/app/oracle/product/10.2.0/agent10g8221; directory. For a more detailed look at the installation process, click on the links below to see screen shots of each stage.
With the installation complete the server should now be visible on the grid controls list of targets.
Starting and Stopping Agent Services
The following commands can be used to start and stop the agent:
# Start Agent /u01/app/oracle/product/10.2.0/agent10g/bin/emctl start agent # Stop Agent /u01/app/oracle/product/10.2.0/agent10g/bin/emctl stop agent
Oracle Application Server 10g (9.0.4) Installation On Red Hat Enterprise Linux 3 (RHEL3)
In this article I8217;ll describe the installation of Oracle Application Server 10g (9.0.4), Oracle8217;s J2EE Application Server, on Red Hat Enterprise Linux 3 (RHEL3). The article assumes you8217;ve performed the standard advanced 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 RedHat AS3 Disk 2
cd /mnt/cdrom/RedHat/RPMS
rpm -Uvh setarch-1.3-1.i386.rpm
rpm -Uvh sysstat-4.0.7-4.i386.rpm
# From RedHat AS3 Disk 3
cd /mnt/cdrom/RedHat/RPMS
rpm -Uvh openmotif21-2.1.30-8.i386.rpm
rpm -Uvh ORBit-0.5.17-10.4.i386.rpm
rpm -Uvh libpng10-1.0.13-8.i386.rpm
rpm -Uvh gnome-libs-1.4.1.2.90-34.1.i386.rpm
rpm -Uvh compat-glibc-7.x-2.2.4.32.5.i386.rpm
compat-gcc-7.3-2.96.122.i386.rpm
compat-gcc-c++-7.3-2.96.122.i386.rpm
compat-libstdc++-7.3-2.96.122.i386.rpm
compat-libstdc++-devel-7.3-2.96.122.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:/opt/IBMJava2-131/bin:$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
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
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 RedHat Advanced Server 2.1
In this article I8217;ll describe the installation of Oracle Application Server 10g (9.0.4), Oracle8217;s J2EE Application Server, on RedHat Advanced Server 2.1. The article assumes you8217;ve performed the standard advanced server installation including the development tools. The base release of the kernel does not support Oracle AS 10g so you must run up2date before proceeding.
- 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 RedHat AS2.1 Disk 1 cd /mnt/cdrom/RedHat/RPMS rpm -Uvh openmotif-2.1.30-11.i386.rpm # From RedHat AS2.1 Disk 2 cd /mnt/cdrom/RedHat/RPMS rpm -Uvh pdksh-5.2.14-13.i386.rpm rpm -Uhh compat-glibc-6.2-2.1.3.2.i386.rpm
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:/opt/IBMJava2-131/bin:$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
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
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) Portal Installation On RedHat Advanced Server 2.1
In this article I8217;ll describe the installation of Oracle Application Server 10g (9.0.4) Portal, Oracle8217;s standards-based portal development and deployment solution, on RedHat Advanced Server 2.1. The article assumes you8217;ve performed the standard advanced server installation including the development tools. The base release of the kernel does not support Oracle AS 10g so you must run up2date before proceeding.
- Download Software
- Unpack Files
- Hosts File
- Set Kernel Parameters
- Setup
- Infrastructure Installation
- Post Infrastructure Installation
- Portal Installation
- Post Portal Installation
- Portal Usage
- Starting and Stopping Services
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 RedHat AS2.1 Disk 1 cd /mnt/cdrom/RedHat/RPMS rpm -Uvh openmotif-2.1.30-11.i386.rpm # From RedHat AS2.1 Disk 2 cd /mnt/cdrom/RedHat/RPMS rpm -Uvh pdksh-5.2.14-13.i386.rpm rpm -Uhh compat-glibc-6.2-2.1.3.2.i386.rpm
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_infra mkdir -p /u01/app/oracle/product/904_portal 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_infra; export ORACLE_HOME
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:/opt/IBMJava2-131/bin:$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
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
Infrastructure 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
During the installation select the appropriate ORACLE_HOME for infrastructure (904_infra) and select the infrastructure installation.
Post Infrastructure Installation
On completion of the infrastructure installation 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. Check that all the components are started before proceeding to the portal installation.
Portal 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
During the installation select the appropriate ORACLE_HOME for portal (904_portal) and select the application server installation, with the portal and wireless option.
Post Portal Installation
On completion of the portal installation connect to enterprise manager and check the portal components are all started before you proceed to test portal.
Portal Usage
With all the services running you can start using portal at the following URL:
http://<fully-qualified-machine-name>:7778/pls/portal
The port number for portal can vary depending on the installation but it is recorded in the 8220;904_portal/Apache/Apache/setupinfo.txt8221; file.
Once at this page you can login using either 8220;portal8221;, the portal DBA user, or 8220;portal_admin8221;, the portal administrator user. The passwords will be the value assigned during the installation.
Starting and Stopping Services
It is recommended that the services are always started and stopped using Enterprise Manager Website. If this cannot be done for some reason they can be started and stopped manually as follows:
# Start everything dbstart lsnrctl start agentctl start oidmon start oidctl server=oidldapd instance=1 configset=1 start dcmctl start -cl emctl start iasconsole # Stop everything emctl stop iasconsole dcmctl shutdown oidctl server=oidldapd instance=1 configset=1 stop oidmon stop agentctl stop lsnrctl stop dbshut
Oracle Application Server 10g (9.0.4) Portal Installation On RedHat Advanced Server 3.0
In this article I8217;ll describe the installation of Oracle Application Server 10g (9.0.4) Portal, Oracle8217;s standards-based portal development and deployment solution, on RedHat Advanced Server 3.0. The article assumes you8217;ve performed the standard advanced server installation including the development tools.
- Download Software
- Unpack Files
- Hosts File
- Set Kernel Parameters
- Setup
- Infrastructure Installation
- Post Infrastructure Installation
- Portal Installation
- Post Portal Installation
- Portal Usage
- Starting and Stopping Services
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 RedHat AS3 Disk 2
cd /mnt/cdrom/RedHat/RPMS
rpm -Uvh setarch-1.3-1.i386.rpm
rpm -Uvh sysstat-4.0.7-4.i386.rpm
# From RedHat AS3 Disk 3
cd /mnt/cdrom/RedHat/RPMS
rpm -Uvh openmotif21-2.1.30-8.i386.rpm
rpm -Uvh ORBit-0.5.17-10.4.i386.rpm
rpm -Uvh libpng10-1.0.13-8.i386.rpm
rpm -Uvh gnome-libs-1.4.1.2.90-34.1.i386.rpm
rpm -Uvh compat-glibc-7.x-2.2.4.32.5.i386.rpm
compat-gcc-7.3-2.96.122.i386.rpm
compat-gcc-c++-7.3-2.96.122.i386.rpm
compat-libstdc++-7.3-2.96.122.i386.rpm
compat-libstdc++-devel-7.3-2.96.122.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_infra mkdir -p /u01/app/oracle/product/904_portal 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_infra; export ORACLE_HOME
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:/opt/IBMJava2-131/bin:$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
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
Infrastructure 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
During the installation select the appropriate ORACLE_HOME for infrastructure (904_infra) and select the infrastructure installation.
Post Infrastructure Installation
On completion of the infrastructure installation 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. Check that all the components are started before proceeding to the portal installation.
Portal 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
During the installation select the appropriate ORACLE_HOME for portal (904_portal) and select the application server installation, with the portal and wireless option.
Post Portal Installation
On completion of the portal installation connect to enterprise manager and check the portal components are all started before you proceed to test portal.
Portal Usage
With all the services running you can start using portal at the following URL:
http://<fully-qualified-machine-name>:7778/pls/portal
The port number for portal can vary depending on the installation but it is recorded in the 8220;904_portal/Apache/Apache/setupinfo.txt8221; file.
Once at this page you can login using either 8220;portal8221;, the portal DBA user, or 8220;portal_admin8221;, the portal administrator user. The passwords will be the value assigned during the installation.
Starting and Stopping Services
It is recommended that the services are always started and stopped using Enterprise Manager Website. If this cannot be done for some reason they can be started and stopped manually as follows:
# Start everything dbstart lsnrctl start agentctl start oidmon start oidctl server=oidldapd instance=1 configset=1 start dcmctl start -cl emctl start iasconsole # Stop everything emctl stop iasconsole dcmctl shutdown oidctl server=oidldapd instance=1 configset=1 stop oidmon stop agentctl stop lsnrctl stop dbshut
Oracle Application Server 10g Release 2 (10.1.2) Installation On RedHat Advanced Server 3.0 (Update 3)
In this article I8217;ll describe the installation of Oracle Application Server 10g Release 2 (10.1.2), Oracle8217;s J2EE Application Server, on RedHat Advanced Server 3.0 (update 3). The article assumes you8217;ve performed the standard advanced server installation including the development tools.
- Download Software
- Unpack Files
- Hosts File
- Set Kernel Parameters
- Setup
- Installation
- Post Installation
Note. I8217;ve experienced issues with installations on systems that are updated beyond Update 3, which is the version certified by Oracle.
Download Software
Download the following software:
Unpack Files
Unpack the contents of the file:
cpio -idmv < as_linux_x86_core_101200.cpio
You should now have a directory (Disk1) 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 = 4096 # semaphores: semmsl, semmns, semopm, semmni kernel.sem = 256 32000 100 142 fs.file-max = 131072 net.ipv4.ip_local_port_range = 10000 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 2047 * hard nproc 16384 * soft nofile 2048 * 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 RedHat AS3 Disk 2
cd /mnt/cdrom/RedHat/RPMS
rpm -Uvh setarch-1.3-1.i386.rpm
rpm -Uvh sysstat-4.0.7-4.EL3.3.i386.rpm
# From RedHat AS3 Disk 3
cd /mnt/cdrom/RedHat/RPMS
rpm -Uvh openmotif21-2.1.30-8.i386.rpm
rpm -Uvh ORBit-0.5.17-10.4.i386.rpm
rpm -Uvh libpng10-1.0.13-15.i386.rpm
rpm -Uvh gnome-libs-1.4.1.2.90-34.1.i386.rpm
rpm -Uvh compat-glibc-7.x-2.2.4.32.6.i386.rpm
compat-gcc-7.3-2.96.128.i386.rpm
compat-gcc-c++-7.3-2.96.128.i386.rpm
compat-libstdc++-7.3-2.96.128.i386.rpm
compat-libstdc++-devel-7.3-2.96.128.i386.rpm
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/j2ee_10_1_2 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/j2ee_10_1_2; 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
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
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 Release 3 (10.1.3) Installation On RedHat Advanced Server and CentOS
In this article I8217;ll describe the installation of Oracle Application Server 10g Release 3 (10.1.3), Oracle8217;s J2EE Application Server, on RedHat Advanced Server and CentOS. The article is based on a 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
Additional steps may be necessary when starting with a different base OS installation.
- Download Software
- Unpack Files
- Hosts File
- Setup
- Installation
- Post Installation
Download Software
Download the following software:
Unpack Files
Unpack the contents of the file:
cpio -idmv < as_linux_x86_101300_disk1.cpio
The installation files unpack into the current directory.
Hosts File
The /etc/hosts file must contain a fully qualified name for the server:
<IP-address> <fully-qualified-machine-name> <machine-name>
Setup
Add the following lines to the /etc/security/limits.conf file:
* soft nproc 2047 * hard nproc 16384 * soft nofile 2048 * 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
The installation guide for the core application server makes no reference to kernel parameters, suggesting that the default values are adequate.
If installing version 10.1.3.1, you must comment out the ANT_HOME line from the 8220;/etc/ant.conf8221; file, or rename the file so it is not detected.
The documentation states that the following packages are required by the relevant operating systems:
# Red Hat Enterprise Linux 3.0 and CentOS 3.x (Update 3) glibc-2.3.2-95.27 glibc-common-2.3.2-95.27 binutils-2.14.90.0.4-35 compat-glibc-7.x-2.2.4.32.6 compat-libstdc++-7.3-2.96.128 compat-libstdc++-devel-7.3-2.96.128 gcc-3.2.3-42 gcc-c++-3.2.3-42 libstdc++-3.2.3-42 libstdc++-devel-3.2.3-42 openmotif21-2.1.30-8 pdksh-5.2.14-21 setarch-1.3-1 make-3.79.1-17 gnome-libs-1.4.1.2.90-34.1 sysstat-4.0.7-4.EL3.3 compat-db-4.0.14-5 # Red Hat Enterprise Linux 4.0 and CentOS 4.x (Update 1) glibc-2.3.4-2.9 glibc-common-2.3.4-2.9 binutils-2.15.92.0.2-13 compat-libstdc++-296-2.96-132.7.2 gcc-3.4.3-22.1 gcc-c++-3.4.3-22.1 libstdc++-3.4.3-22.1 libstdc++-devel-3.4.3-22.1 openmotif21-2.1.30-11.RHEL4.4 pdksh-5.2.14-30 setarch-1.6-1 make-3.80-5 gnome-libs-1.4.1.2.90-44.1 sysstat-5.0.5-1 compat-db-4.1.25-9 compat-libstdc++-devel-7.3-2.96.128 compat-glibc-7.x-2.2.4.32.6 compat-libstdc++-7.3-2.96.128 control-center-2.8.0-12 xscreensaver-4.18-5.rhel4.2
Depending on the update/respin version of Red Hat or CentOS, the exact package versions and locations may vary. The installation of the required packages is shown below, with the locations relevant for Red Hat 4.
# RHEL4 Disk 2 cd /media/cdrom/RedHat/RPMS rpm -Uvh glibc-2* rpm -Uvh glibc-common-2* rpm -Uvh binutils-2* rpm -Uvh libstdc++-3* rpm -Uvh pdksh-5* rpm -Uvh setarch-1* rpm -Uvh make-3* # RHEL4 Disk 3 cd /media/cdrom/RedHat/RPMS rpm -Uvh compat-libstdc++-296* rpm -Uvh gcc-3* rpm -Uvh gcc-c++-3* rpm -Uvh libstdc++-devel-3* rpm -Uvh openmotif21-2* rpm -Uvh gnome-libs-1* rpm -Uvh compat-db-4* rpm -Uvh control-center-2* rpm -Uvh xscreensaver-4* # RHEL4 Disk 3 cd /media/cdrom/RedHat/RPMS rpm -Uvh sysstat-5*
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/10.1.3 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/10.1.3/OracleAS_1; 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
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
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
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
With the installation complete you can perform any administration tasks using the Enterprise Manager Website (http://<fully-qualified-machine-name>:7777/em). Log in using the username 8220;oc4jadmin8221; and the password you assigned during the installation.
Red Hat Enterprise Linux 5 and CentOS 5 Installation
This article provides a pictorial guide for performing a default installation of
Red Hat Enterprise Linux 5 and CentOS 5.
- Boot from the CD or DVD. At the boot screen, press the 8220;Enter8221; key.

- Press the 8220;tab8221; key to move focus to the 8220;Skip8221; key, then press the 8220;Enter8221; key to continue.

- On the 8220;Welcome8221; screen, click the 8220;Next8221; button.

- Select the appropriate language, then click the 8220;Next8221; button.

- Select the relevant keyboard setting, then click the 8220;Next8221; button.

- Click the 8220;OK8221; button on the disk partitioning warning dialog.

- Check the 8220;Review and modify partitioning layout8221; option, then allow the installer to automatically partition the disk by clicking on the 8220;Next8221; button.

- Click the 8220;Yes8221; button on the subsequent warning dialog.

- The installer will list the default partitioning scheme for your size disk.

The following screen shots show the actions I take for small test installations
- Edit the 8220;/boot8221; partition, setting it to 8220;150M8221; and 8220;Fixed size8221;, then click the 8220;OK8221; button.

- The 8220;/root8221; and 8220;/swap8221; partitions are part of a volume group.

- Edit the 8220;/root8221; partition, setting it to 8220;8000 MB8221;, then click the 8220;OK8221; button.

- Edit the 8220;swap8221; partition, setting it to 8220;2048M8221;, then click the 8220;OK8221; button.

If you need additional swap space, simply make this partition bigger.
- The partitions screen should now looks something like the following picture, then click the 8220;Next8221; button.

- Accept the boot loader settings by clicking the 8220;Next8221; button.

- Configure the network interface with the apropriate settings. This can be done automatically using DHCP, or manually.

- If you are not using DHCP, enter the appropriate IP addess and subnet mask, then click the 8220;OK8221; button.

- If you are not using DHCP, enter the host name, gateway and DNS information, then click the 8220;Next8221; button.

- Select the relevant region by clicking on the map.

- Select the relevant city by clicking on the map. Click on the 8220;Next8221; button to proceed.

- Enter a root password for the server, then click the 8220;Next8221; button to proceed.

- Select the 8220;Customize now8221; option and the appropriate installation type and click the 8220;Next8221; button.

- The 8220;Package Group Selection8221; screen allows you to select the required package groups, and individual packages within the details section. When you8217;ve made your selection, click the 8220;Next8221; button.

- On the 8220;About to Install8221; screen, click the 8220;Next8221; button.

- Click the 8220;Continue8221; button on the 8220;Required Install Media8221; screen.

- During the installation phase, enter the appropriate CDs as requested.

- Click the 8220;Reboot8221; button to complete the installation.

- On the 8220;Welcome8221; screen, click the 8220;Forward8221; button.

- Accept the license agreement and click the 8220;Forward8221; button.

- On the Firewall screen, choose the 8220;Disabled8221; option and click the 8220;Forward8221; button.

- Click the 8220;Yes8221; button on the subsequent warning screen.

- On the SELinux screen, choose the 8220;Disabled8221; option and click the 8220;Forward8221; button.

- Click the 8220;Yes8221; button on the subsequent warning screen.

- Accept the default setting on the Kdump screen by clicking the 8220;Forward8221; button.

- Adjust the Date and Time settings if necessary, and click the 8220;Forward8221; Button.

- If you have a Red Hat Network account, you can enter it here and register your system. Alternatively, you can pick the 8220;No, I prefer to register at a later time8221; option and click the 8220;Forward8221; button to avoid this step.

- Click the 8220;No thanks, I8217;ll connect later8221; button.

- Finish the setup of software updates by clicking the 8220;Forward8221; button.

- Create an additional system user if required, and click the 8220;Next8221; button.

- If you chose not to define an additional system user, click the 8220;Continue8221; button on the resulting warning dialog.

- On the sound card screen, click the 8220;Forward8221; button.

- On the 8220;Additional CDs8221; screen, click the 8220;Forward8221; button.

- Click the 8220;OK8221; button on the reboot request dialog.

- Once the system has rebooted, you are presented with the login screen.

- Once logged in, you are ready to use the desktop.












































