<<Back to DB Administration Main Page
How to Install Oracle 12c Database Software in Silent Mode
This post targets the software only installation of oracle 12c Release2 (12.2.0.1) in silent mode.Step1> Download the Software
Download the software from oracle website
Step2> Transfer the Software and unzip
Transfer the software file on the server where you want to install it using winscp and unzip it using unzip utility.
$unzip linuxx64_12201_database.zip
Step3> Prepare the server for installation
Preparing the server for installation requires to create OS user to own oracle software, prepare oracle home ( location to install software), install required packages etc.
As root user Create New Groups and Users
#groupadd oinstall
#groupadd test1dba
#groupadd dba
#useradd -g oinstall -G dba,test1dba dbatest1
Modify kernal Parameters
Edit /etc/sysctl.conf and modify following parameters as shown
fs.file-max = 6815744
kernel.sem = 250 32000 100 128
kernel.shmmni = 4096
kernel.shmall = 1073741824
kernel.shmmax = 4398046511104
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576
net.ipv4.ip_local_port_range = 9000 65500
Run following command to bring the changes in effect
#/sbin/sysctl -p
Configure Parameter for dbatest1 UserAdd the following lines to the "/etc/security/limits.conf" file.
dbatest1 soft nofile 1024
dbatest1 hard nofile 65536
dbatest1 soft nproc 16384
dbatest1 hard nproc 16384
dbatest1 soft stack 10240
dbatest1 hard stack 32768
Install the following packages if they are not already Installed using rpm or yum utility. Install the possible latest version
binutils
compat-libcap1
compat-libstdc++-33
gcc
gcc-c++
glibc
glibc-devel
ksh
libgcc
libstdc++
libstdc++-devel
libaio
libaio-devel
libXext
libXtst
libX11
libXau
libxcb
libXi
make
sysstat
unixODBC
unixODBC-devel
Set secure Linux to disabled by editing the "/etc/selinux/config"
SELINUX=disabled
Disable Linux Firewall
# service iptables stop
# chkconfig iptables off
Create the required directories and change the ownership and permission
#mkdir -p /u01/dbatest1/12.2.0.1/dbp1
#chown -R dbatest1:oinstall /u01/dbatest1
#chmod -R 775 /u01/dbatest1
Step4> Prepare the Response file
The template of response file is present in software. Navigate to the directory where you have unzipped the binaries and locate db_install.rsp
backup the template before you modify it
cp /u01/dbatest1/stage/database/response/db_install.rsp /u01/dbatest1/stage/database/response/db_install.rsp.orig
Modify the following in db_install.rsp file (adopt the value according to your environment)
oracle.install.option=INSTALL_DB_SWONLY
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/oraInventory
ORACLE_HOME=/u01/dbatest1/12.2.0.1/dbp1
ORACLE_BASE=/u01/dbatest1
oracle.install.db.InstallEdition=EE
oracle.install.db.OSDBA_GROUP=test1dba
oracle.install.db.OSOPER_GROUP=test1dba
oracle.install.db.OSBACKUPDBA_GROUP=test1dba
oracle.install.db.OSDGDBA_GROUP=test1dba
oracle.install.db.OSKMDBA_GROUP=test1dba
oracle.install.db.OSRACDBA_GROUP=test1dba
Note: If you are installing oracle database version 12.1.0.2. You need to include following parameter as well in addition to the above.
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true
Step5> Perform PreReqCheck
$/u01/dbatest1/stage/database/runInstaller -silent -executePrereqs -responseFile /u01/dbatest1/stage/database/response/db_install.rsp
Note:- Ensure to fix Error/Warning before you proceed ahead. I recommend you to not to use ignorePrereqFailure if you don't know the consequence. I am ignoring some warnings because I don't have enough memory in my server
Step6> Execute silent installation
$/u01/dbatest1/stage/database/runInstaller -silent -waitforcompletion -showProgress -ignorePrereqFailure -responseFile /u01/dbatest1/stage/database/response/db_install.rsp
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 500 MB. Actual 100862 MB Passed
Checking swap space: must be greater than 150 MB. Actual 4095 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2018-06-07_12-37-38PM. Please wait ...[WARNING] [INS-13013] Target environment does not meet some mandatory requirements.
CAUSE: Some of the mandatory prerequisites are not met. See logs for details. /u01/oraInventory/logs/installActions2018-06-07_12-37-38PM.log
ACTION: Identify the list of failed prerequisite checks from the log: /u01/oraInventory/logs/installActions2018-06-07_12-37-38PM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
You can find the log of this install session at:
/u01/oraInventory/logs/installActions2018-06-07_12-37-38PM.log
Checking swap space: must be greater than 150 MB. Actual 4095 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2018-06-07_12-37-38PM. Please wait ...[WARNING] [INS-13013] Target environment does not meet some mandatory requirements.
CAUSE: Some of the mandatory prerequisites are not met. See logs for details. /u01/oraInventory/logs/installActions2018-06-07_12-37-38PM.log
ACTION: Identify the list of failed prerequisite checks from the log: /u01/oraInventory/logs/installActions2018-06-07_12-37-38PM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
You can find the log of this install session at:
/u01/oraInventory/logs/installActions2018-06-07_12-37-38PM.log
Prepare in progress.
.................................................. 8% Done.
.................................................. 8% Done.
Prepare successful.
Copy files in progress.
.................................................. 17% Done.
.................................................. 22% Done.
.................................................. 27% Done.
.................................................. 32% Done.
.................................................. 40% Done.
.................................................. 45% Done.
.................................................. 50% Done.
.................................................. 55% Done.
.................................................. 60% Done.
.................................................. 65% Done.
.................................................. 70% Done.
.................................................. 75% Done.
.................................................. 80% Done.
....................
Copy files successful.
.................................................. 17% Done.
.................................................. 22% Done.
.................................................. 27% Done.
.................................................. 32% Done.
.................................................. 40% Done.
.................................................. 45% Done.
.................................................. 50% Done.
.................................................. 55% Done.
.................................................. 60% Done.
.................................................. 65% Done.
.................................................. 70% Done.
.................................................. 75% Done.
.................................................. 80% Done.
....................
Copy files successful.
Link binaries in progress.
..........
Link binaries successful.
..........
Link binaries successful.
Setup files in progress.
..............................
Setup files successful.
..............................
Setup files successful.
Setup Inventory in progress.
Setup Inventory successful.
Finish Setup successful.
The installation of Oracle Database 12c was successful.
Please check '/u01/oraInventory/logs/silentInstall2018-06-07_12-37-38PM.log' for more details.
The installation of Oracle Database 12c was successful.
Please check '/u01/oraInventory/logs/silentInstall2018-06-07_12-37-38PM.log' for more details.
Setup Oracle Base in progress.
Setup Oracle Base successful.
.................................................. 95% Done.
.................................................. 95% Done.
As a root user, execute the following script(s):
1. /u01/dbatest1/12.2.0.1/dbp1/root.sh
1. /u01/dbatest1/12.2.0.1/dbp1/root.sh
.................................................. 100% Done.
Successfully Setup Software.
Successfully Setup Software.
When prompted run root.sh script as root user
#/u01/dbatest1/12.2.0.1/dbp1/root.sh
Check /u01/dbatest1/12.2.0.1/dbp1/install/root_test05_2018-06-07_12-51-20-471593326.log for the output of root script
# cat /u01/dbatest1/12.2.0.1/dbp1/install/root_test05_2018-06-07_12-51-20-471593326.log
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= dbatest1
ORACLE_HOME= /u01/dbatest1/12.2.0.1/dbp1
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Oracle Trace File Analyzer (TFA) is available at : /u01/dbatest1/12.2.0.1/dbp1/suptools/tfa/release/tfa_home/bin/tfactl
Comments
Post a Comment