Professional Documents
Culture Documents
0)
Installation On CentOS
Created by: Nguyen Quoc Huy Email: nguyen.quoc.huy@hotmail.com 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 X
Unpack Files X
Hosts File X
Setup X
Download Software
Download the following software:
Unpack Files
Unpack the contents of the file: unzip 10201_database_linux32.zip 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
make-3.81
binutils-2.17.50.0.6
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
2. compat-db-4.1.25-9
compat-glibc-7.x-2.2.4.32.6
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
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)
oracle soft nofile 1024 oracle hard nofile 65536 oracle soft
nproc 2047 oracle hard nproc 16384
Verify file /etc/pam.d/system-auth to check the existing of two following lines:
session required /lib/security/pam_limits.so session required
pam_limits.so
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:
redhat-4
Start the Oracle Universal Installer (OUI) by issuing the following command in the Oracle source directory:
./runInstaller
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
Configure assistants continues to setup. Execute Configuration scripts dialog prompts to run 2 scripts, enter
the following command
$ su - root # /u01/app/oraInventory/orainstRoot.sh #
/u01/app/oracle/product/11.1.0/db_1/root.sh # exit # exit
<- close terminal
Click Ok