— Check the Oracle version
[oracle@srv1 database]$ cat ./dbca.rsp | grep “RESPONSEFILE_VERSION =”RESPONSEFILE_VERSION = “12.1.0”
— Create all the directories and files
— ORACLE_BASE
[root@srv1 u01]# mkdir -p /u01/app/oracle
export $ORACLE_BASE=/u01/app/oracle
— ORACLE_HOME
[root@srv1 u01]# mkdir -p /u01/app/oracle/product/12.1.0/dbhome_1
export $ORACLE_HOME=$ORACLE_BASE/product/12.1.0/dbhome_1
— Create the /etc/oraInst.loc file
[root@srv1 u01]# touch /etc/oraInst.loc
[root@srv1 u01]# chown oracle:oinstall oraInst.loc
[root@srv1 u01]# chmod 664 oraInst.loc
[root@srv1 u01]# mkdir -p /u01/app/oraInventory
— entries
inventory_loc=/u01/app/oraInventory
inst_group=oinstall
— Create all the groups
[root@srv1 u01]# /usr/sbin/groupadd -g 54321 oinstall
[root@srv1 u01]# /usr/sbin/groupadd -g 54322 dba
[root@srv1 u01]# /usr/sbin/groupadd -g 54323 oper
[root@srv1 u01]# /usr/sbin/groupadd -g 54324 backupdba
[root@srv1 u01]# /usr/sbin/groupadd -g 54325 dgdba
[root@srv1 u01]# /usr/sbin/groupadd -g 54326 kmdba
[root@srv1 u01]# /usr/sbin/groupadd -g 54327 asmdba
[root@srv1 u01]# /usr/sbin/groupadd -g 54328 asmoper
[root@srv1 u01]# /usr/sbin/groupadd -g 54329 asmadmin
[root@srv1 u01]# /usr/sbin/groupadd -g 54330 racdba
— Add oracle user to all the groups
[root@srv1 database]# usermod -a -G oinstall,dba,oper,backupdba,dgdba,kmdba oracle
— Check the oracle user added
[oracle@srv1 response]$ cat /etc/group | grep dba
dba:x:54322:oracle
dgdba:x:54325:oracle
kmdba:x:54326:oracle
dbabackup:x:54324:oracle
[oracle@srv1 response]$ cat /etc/group | grep oinstall
oinstall:x:54321:oracle
[oracle@srv1 response]$ cat /etc/group | grep oper
oper:x:54323:oracle
[oracle@srv1 response]$
— Find the response file and edit
[oracle@srv1 software]$ ls -ltr
total 2625084
drwxr-xr-x. 7 oracle oinstall 4096 Jul 7 2014 database
[oracle@srv1 software]$ cd database/
[oracle@srv1 database]$ ls
install response rpm runInstaller sshsetup stage welcome.html
[oracle@srv1 database]$ cd response/
[oracle@srv1 response]$ ls
dbca.rsp db_install.rsp netca.rsp
[oracle@srv1 response]$ cp db_install.rsp db_install_e.rsp
[oracle@srv1 response]$ vi db_install_e.rsp
—-Pieces to edit in the response file
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=sko.localdomain
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oraInventory
SELECTED_LANGUAGES=en
ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1
ORACLE_BASE=/u01/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=oper
oracle.install.db.BACKUPDBA_GROUP=backupdba
oracle.install.db.DGDBA_GROUP=dgdba
oracle.install.db.KMDBA_GROUP=kmdba
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true
— Perform the install of the software only
./runInstaller -ignoreSysPrereqs -ignorePrereq -waitforcompletion -showProgress -silent -responseFile db_install_e.rsp
— To ensure that your commands for the oracle binaries will work
[oracle@srv1 database]$ export ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1
[oracle@srv1 database]$ export PATH=$ORACLE_HOME/bin:$PATH.
[oracle@srv1 database]$ dbca
Activity 1
Install Oracle software silent mode
No responses yet