Install Oracle 11g in Silent Mode on Linux CentOS

Oracle 11g

Install Oracle 11g in silent mode shouldnít be a complex task but due to some bugs it turns out in a tricky activity.

Iím using a Linux CentOS 6 as the operating system. The procedures to install into Red Hat should be same.

Iíve created a step by step on how to do that and added some samples as well

1- Download Oracle 11g from the website in the link below

http://www.oracle.com/technetwork/database/enterprise-edition/downloads/112010-linuxsoft-085393.html

Remember, if you downloaded from a different machine you should transfer it to the linux server before move on.

2- Unzip both zip files in the same directory

unzip

When done you should have a new directory called ìdatabaseî

3- Create users and groups

Create the groups oinstall and dba as follows

groupadd oinstall

groupadd dba

Create user oracle and set the dba group as the userís primary group and oinstall as the secondary

useradd oracle

usermod -g dba -G oinstall oracle

4- Create the file systems paths

Regarding this step this is just a guide according Oracle OFA (Optimal Flexible Architecture)

Create the directories as follows

ORACLE_BASE: /u01/app/oracle/

ORACLE_HOME: /u01/app/oracle/product/11.2.0/db1

5- Prerequisites for installation

You should read carefully and follow the Oracle guide for all the prerequisites otherwise the installation might fail.

Use the following link to check it all

http://docs.oracle.com/cd/E11882_01/install.112/e24321/pre_install.htm#autoId40

Pay attention specifically in the following sections

ñ Checking the Software Requirements

ñ Checking Resource Limits for the Oracle Software Installation Users

ñ Configuring Kernel Parameters for Linux

6- Create the response file

Within the ìdatabase/responseî directory, edit the response file db_install.rsp for my installation I have used the following parameters.

Make sure the directories mentioned in the file are created before the installation.

I have highlighted the parameters I actually set, the others I used the default or left blank.

oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/etc/oraInv
SELECTED_LANGUAGES=en
oracle.install.db.InstallEdition=EE
oracle.install.db.isCustomInstall=false
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=dba
oracle.install.db.CLUSTER_NODES=
oracle.install.db.config.starterdb.type=GENERAL_PURPOSE
oracle.install.db.config.starterdb.globalDBName=db1
oracle.install.db.config.starterdb.SID=db1
oracle.install.db.config.starterdb.characterSet=AL32UTF8
oracle.install.db.config.starterdb.memoryOption=true
oracle.install.db.config.starterdb.memoryLimit=
oracle.install.db.config.starterdb.installExampleSchemas=false
oracle.install.db.config.starterdb.enableSecuritySettings=true
oracle.install.db.config.starterdb.password.ALL=manager
oracle.install.db.config.starterdb.password.SYS=
oracle.install.db.config.starterdb.password.SYSTEM=
oracle.install.db.config.starterdb.password.SYSMAN=
oracle.install.db.config.starterdb.password.DBSNMP=
oracle.install.db.config.starterdb.control=DB_CONTROL
oracle.install.db.config.starterdb.gridcontrol.gridControlServiceURL=
oracle.install.db.config.starterdb.dbcontrol.enableEmailNotification=false
[email protected]something.com
[email protected]mething.com
oracle.install.db.config.starterdb.automatedBackup.enable=false
oracle.install.db.config.starterdb.automatedBackup.osuid=
oracle.install.db.config.starterdb.automatedBackup.ospwd=
oracle.install.db.config.starterdb.storageType=
oracle.install.db.config.starterdb.fileSystemStorage.dataLocation=
oracle.install.db.config.starterdb.fileSystemStorage.recoveryLocation=
oracle.install.db.config.asm.diskGroup=
oracle.install.db.config.asm.ASMSNMPPassword=
MYORACLESUPPORT_USERNAME=
MYORACLESUPPORT_PASSWORD=
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true
PROXY_HOST=
PROXY_PORT=
PROXY_USER=
PROXY_PWD=
Ensure the parameters SECURITY_UPDATES_VIA_MYORACLESUPPORT and DECLINE_SECURITY are correctly otherwise you may get the ì[SEVERE] ñ Email Address Not Specifiedî error.

7- Run the root.sh file

After the installation run the root.sh file as root (you will be prompted by the installation).

Your installation is done. To create a database, prepare the init.ora file (located in the ORACLE_HOME/dbs and set the ORACLE_SID environment variable.
Then run sqlplus as sysdba and start the database in no mount mode.

When your instance is up you just have to create the database. You check how to do this in my post Creating an Oracle Database