Oracle Application Server 10g Release 2 (10.2.

0) Installation On CentOS
Created by: Nguyen Quoc Huy Email: In this article I'll describe the installation of Oracle Application Server 10g Release 2 (10.2.0) on CentOS 5. Additional steps may be necessary when starting with a different base OS installation.
   

Download Software Unpack Files Hosts File Setup

Download Software
Download the following software:
 

Oracle Application Server 10g Release 2 (10.2.0) Software Sun JDK

Unpack Files
Unpack the contents of the file:

The installation files unpack into the current directory (/tmp/oradb/).

Hosts File
The /etc/hosts file must contain a fully qualified name for the server:
<IP-address> <fully-qualified-machine-name> <machine-name>

Set Up
This section shows you how to install Oracle Database 10g R2. It will guide you through the following steps:

Install Prerequisite package

      

Create required groups and users Create directories storing oracle file Set environment for user oracle Configure Linux Kernel Parameter Set shell limits for user oracle Disable SElinux Install Oracle

1. Install Prerequisite package Depending on the products that you intend to install, verify that the following software is installed on the system  Java Runtime Environment j2re-  make-3.81  binutils-  gcc-4.1.1  libaio-0.3.106  libaio-devel-0.3.106  libstdc++-4.1.1  elfutils-libelf-devel-0.125  sysstat-7.0.0  compat-libstdc++-33-3.2.3  libgcc-4.1.1  libstdc++-devel-4.1.1  unixODBC-2.2.11  unixODBC-devel-2.2.11  pdksh-5.2.14-30  openmotif21-2.1.30-11  compat-db-4.1.25-9  compat-glibc-7.x-  compat-libstdc++-devel-7.3-2.96.128  control-center-2.8.0-12  setarch-1.6-1  libXp-1.0.0-8.1.el5 You want to check whether the packages are installed or not, run the following command:
# rpm -q make binutils gcc libaio libaio-devel libstdc++ elfutils-libelf-devel sysstat compat-libstdc++ libgcc libstdc++devel unixODBC-2.2.11 unixODBC-devel

To install the package, run command:
# yum –y install libXp

2. Create required groups and users Depending on the Oracle software being installed on this system, you need to create operating groups and users. The groups and user required to create are dba, oinstall group and oracle user. To create these groups and user, enter the following command with user root:
# groupadd oinstall # groupadd dba # useradd -m -g oinstall -G dba oracle # passwd oracle

Check user oracle is belong to oinstall and dba group:
# id oracle uid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba)

3. Create directories storing oracle files The system need directory to store data file, configuration. You create the folder /u01 and assign right to it
# mkdir -p /u01/app/oracle/product/10.2.0 # chown -R oracle:oinstall /u01/app # chmod -R 775 /u01/app

4. Set environment for user oracle Log into the oracle user. If you are using X emulation then set the DISPLAY environmental variable:
DISPLAY=<machine-name>:0.0; export DISPLAY

Edit file /home/oracle/.bash_profile and insert the following line:

#environment for oracle ORACLE_BASE=/u01/app/oracle ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1 ORACLE_SID=fsrvorcl PATH=$PATH:$ORACLE_HOME/bin LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/j lib


5. Configure Linux Kernel Parameter Using gedit to add below information to file /etc/sysctl.conf
#This lines is for Oracle Installation kernel.shmall = 2097152 kernel.shmmax = 536870912 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 fs.file-max = 6553600 net.ipv4.ip_local_port_range = 1024 65000 net.core.rmem_default = 4194304 net.core.wmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_max = 262144

Checking result, enter command:
#sysctl –p

6. Set shell limits for user oracle To improve the performance of the software on Linux system, you must increase the following shell limits for the oracle user. As root, edit file /etc/security/ limits.conf and insert some text before # End of file

oracle oracle oracle oracle

soft hard soft hard

nofile nofile nproc nproc

1024 65536 2047 16384

Verify file /etc/pam.d/system-auth to check the existing of two following lines:
session session required required /lib/security/

If you don’t see the first line, insert it. 7. Disable the SElinux Edit file /etc/selinux/config, find SELINUX and change it to


8. Install Oracle  The oracle 10gR2 is compatible with some linux :Red Hat Enterprise 3, 4 but not CentOS 5. While installing oracle, the error will prompt in installation check. You need to edit file /etc/redhat-release and change its content:

 Start the Oracle Universal Installer (OUI) by issuing the following command in the Oracle source directory:

 On installation method screen, choose Basic Installation. Check the Oracle home location and installation type. Select option Create Starter Database Enter the database name fsrvorcl and password fsrvorcl

 Click Next on Specify Inventory directory and credentials

 Oracle app check the specific Prerequisite checks. Click Next.

 On Summary screen, all components will be installed. Click Next.

 Oracle installation is in progress. Waiting for completion

 Creating Starter database is in progress

 Creating database is finished. Click Ok

 Configure assistants continues to setup. Execute Configuration scripts dialog prompts to run 2 scripts, enter the following command
$ su - root # /u01/app/oraInventory/ # /u01/app/oracle/product/11.1.0/db_1/ # exit # exit <- close terminal

Click Ok  Click Exit on End of Installation screen to complete.

 Open Oracle Enterprise Manager to view status of created database fsrvorcl

Sign up to vote on this title
UsefulNot useful