Oracle database software silent installation


This is very simple installation of Oracle software in my Personal laptop to test the silent installation of oracle software. I will put posts for silent installation of listener and database in further posts.

I am using REDHAT Linux 5. Below parameters I have set according to that.
 
1) Setting minimum parameters

RAM : 1.3 GB (1 GB is minimum , 2 GB recommended)
SWAP SPACE : 5 GB

configure tmpfs , if you want to use the AMM(Automatic memory management in 11g). Refer below link for the same(tmpfs).

http://srinivasoguri.blogspot.in/2016/02/what-is-tmpfs-and-ramfs-in-linux.html

/tmp should have 1GB of free space or export the TMPDIR or TMP variable with location where more than 1GB space is there.
 
If your system is 64 bit system like mine , we need to have 5GB of space for the Oracle data files and software. So select(create) file system accordingly.

Install below packages :-

binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3 (32 bit)
coreutils-5.97-23.el5_4.1
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
gcc-4.1.2
gcc-c++-4.1.2
glibc-2.5-24
glibc-2.5-24 (32 bit)
glibc-common-2.5
glibc-devel-2.5
glibc-devel-2.5 (32 bit)
glibc-headers-2.5
ksh-20060214
libaio-0.3.106
libaio-0.3.106 (32 bit)
libaio-devel-0.3.106
libaio-devel-0.3.106 (32 bit)
libgcc-4.1.2
libgcc-4.1.2 (32 bit)
libstdc++-4.1.2
libstdc++-4.1.2 (32 bit)
libstdc++-devel 4.1.2
make-3.81
sysstat-7.0.2

install using command “rpm -ivh “

Create Required Users and groups :-

/usr/sbin/groupadd oinstall
/usr/sbin/groupadd -g 502 dba
/usr/sbin/groupadd -g 503 oper
/usr/sbin/useradd -u 502 -g oinstall -G dba,oper oracle

Add below lines to the file “/etc/security/limits.conf”.

oracle          soft     nofile         1024
oracle          hard     nofile         65536
oracle          soft     nproc          2047
oracle          hard     nproc          16384
oracle          soft     stack          10240
oracle          hard     stack          32768

Configuring Kernel Parameters for Linux :-

edit the file “/etc/sysctl.conf” and enter the values or modify the values if present with below.

fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 4294967295
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576

Execute “/sbin/sysctl -p ” command to make the values effect.

Create required directories :-

ORACLE BASE DIRECTORY :

/mount_point/app/software_owner

mkdir /u01/app/oracle

ORACLE INVENTORY :

mkdir /u01/app/oraInventory

ORACLE HOME :

oracle_base/product/11.1.0/dbhome_1

mkdir /u01/app/oracle/product/11.1.0/dbhome_1

# chown -R oracle:oinstall /u01/app/oracle
# chmod -R 775 /u01/app/oracle

2) Create a response file with below content.

[oracle@node2 database]$ cat ./response/db_install.rsp

oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=localhost
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oraInventory
SELECTED_LANGUAGES=en
ORACLE_HOME=/u01/app/oracle/product/11.1.0/dbhome_1
ORACLE_BASE=/u01/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.isCustomInstall=true
oracle.install.db.customComponents=oracle.server:11.2.0.1.0,oracle.sysman.ccr:10.2.7.0.0,oracle.xdk:11.2.0.1.0,oracle.rdbms.oci:11.2.0.1.0,oracle.network:11.2.0.1.0,oracle.network.listener:11.2.0.1.0,oracle.rdbms:11.2.0.1.0,oracle.options:11.2.0.1.0,oracle.rdbms.partitioning:11.2.0.1.0,oracle.oraolap:11.2.0.1.0,oracle.rdbms.dm:11.2.0.1.0,oracle.rdbms.dv:11.2.0.1.0,orcle.rdbms.lbac:11.2.0.1.0,oracle.rdbms.rat:11.2.0.1.0
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=oper
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true

3) Install the database software using the response file

[oracle@node2 database]$ ./runInstaller -silent -responseFile /u01/SOFTWARE/database/response/db_install.rsp
Starting Oracle Universal Installer…

Checking Temp space: must be greater than 120 MB.   Actual 2320 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 5122 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2016-03-02_11-09-53PM. Please wait …[oracle@node2 database]$ You can find the log of this install session at:
 /u01/app/oraInventory/logs/installActions2016-03-02_11-09-53PM.log
The following configuration scripts need to be executed as the “root” user.
 #!/bin/sh
 #Root scripts to run

/u01/app/oraInventory/orainstRoot.sh
/u01/app/oracle/product/11.1.0/dbhome_1/root.sh

To execute the configuration scripts:
         1. Open a terminal window
         2. Log in as “root”
         3. Run the scripts
         4. Return to this window and hit “Enter” key to continue

Successfully Setup Software.

We need to execute two scripts “orainstRoot.sh , root.sh” using root user by separate window as mentioned above.

Now the software is installed successfully.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s