By design, we split the entire installation into several clear sections and make the job easy to troubleshoot.
- Install Oracle Software Only in Silent Mode
- Configure a Listener by NETCA in Silent Mode
- Create a Database by DBCA in Silent Mode
This is the first section of Oracle installation in silent mode.
OUI Silent Mode
In case that GUI cannot be an option to install Oracle home, we need to know how to do it in silent mode, either with or without a response file.
Additionally, I want to talk about root execution for a conclusion.
Before we actually install Oracle home, we should perform an OUI prerequisite check to make sure that the environment is ready.
Response File
First of all, let's take a look at the content of the response file.
[oracle@test ~]$ ls -l db-19c-software-only-installation.rsp
-rwx------ 1 oracle oinstall 605 Aug 1 10:24 db-19c-software-only-installation.rsp
[oracle@test ~]$ cat db-19c-software-only-installation.rsp
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v19.0.0
oracle.install.option=INSTALL_DB_SWONLY
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oraInventory
ORACLE_BASE=/u01/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.OSDBA_GROUP=dba
oracle.install.db.OSOPER_GROUP=oper
oracle.install.db.OSBACKUPDBA_GROUP=backupdba
oracle.install.db.OSDGDBA_GROUP=dgdba
oracle.install.db.OSKMDBA_GROUP=kmdba
oracle.install.db.OSRACDBA_GROUP=racdba
oracle.install.db.rootconfig.executeRootScript=true
oracle.install.db.rootconfig.configMethod=ROOT
For simplified environments, you may use DBA to set OSBACKUPDBA, OSDGDBA, OSKMDBA, OSRACDBA. There's no need to create OS groups for them.
Next, we install Oracle 19c software with the response file in silent mode.
[oracle@test ~]$ $ORACLE_HOME/runInstaller -silent -noconfig -ignorePreReq -responseFile /home/oracle/db-19c-software-only-installation.rsp
Launching Oracle Database Setup Wizard...
Enter password for 'root' user:
The response file for this session can be found at:
/u01/app/oracle/product/19.0.0/dbhome_1/install/response/db_2019-08-01_10-32-36AM.rsp
You can find the log of this install session at:
/tmp/InstallActions2019-08-08_07-32-36PM/installActions2019-08-01_10-32-36AM.log
Successfully Setup Software.
Moved the install session logs to:
/u01/app/oraInventory/logs/InstallActions2019-08-01_10-32-36AM
There're some flags are used in the command.
-silent
With specifying -silent, OUI will do it in the background silently without popping up an GUI.
-noconfig
With specifying -noconfig, OUI will ignore configurations related to database creation. That is to say, it will be a software-only installation.
-ignorePreReq
To ignore any runInstaller prerequisites failure, you should add -ignorePreReq or -ignorePrereqFailure instead of old flag -ignoreSysPrereqs to the command.
Command Line
Without response file, we have to put all arguments in the command line.
[oracle@test ~]$ $ORACLE_HOME/runInstaller -silent -noconfig -ignorePreReq oracle.install.option=INSTALL_DB_SWONLY UNIX_GROUP_NAME=oinstall INVENTORY_LOCATION=/u01/app/oraInventory ORACLE_BASE=/u01/app/oracle oracle.install.db.InstallEdition=EE oracle.install.db.OSDBA_GROUP=dba oracle.install.db.OSOPER_GROUP=oper oracle.install.db.OSBACKUPDBA_GROUP=backupdba oracle.install.db.OSDGDBA_GROUP=dgdba oracle.install.db.OSKMDBA_GROUP=kmdba oracle.install.db.OSRACDBA_GROUP=racdba oracle.install.db.rootconfig.executeRootScript=true oracle.install.db.rootconfig.configMethod=ROOT
Launching Oracle Database Setup Wizard...
Enter password for 'root' user:
The response file for this session can be found at:
/u01/app/oracle/product/19.0.0/dbhome_1/install/response/db_2019-08-01_10-50-17AM.rsp
You can find the log of this install session at:
/tmp/InstallActions2019-08-08_07-50-17PM/installActions2019-08-01_10-50-17AM.log
Successfully Setup Software.
Moved the install session logs to:
/u01/app/oraInventory/logs/InstallActions2019-08-01_10-50-17AM
The only information I need to provide is the root password in order to run orainstRoot.sh and root.sh automatically during post-installation.
Root Execution
The feature of executing root scripts automatically during installation is really good for DBA to simplify the whole process. In Linux, AIX and Solaris, it performs steadily and smoothly during installation of a single-instance.
In case that you found something is different or difficult, you have the choice to do it manually. To manually execute root scripts in silent mode, we should set the attribute executeRootScript to false:
oracle.install.db.rootconfig.executeRootScript=false
Next, let's see How to Run NETCA in Silent Mode.
Very interesting. Is there any way to provide also the root password to have it all running silently?
I don’t see any attribute to set root password either.
Hi. Would it be worth mentioning that you had already set your ORACLE_HOME?
Good point! Since the absolute location of runInstaller may vary from one case to anther, so I use $ORACLE_HOME to indicate the relative path of the file, which can never fail us to execute it in any case.
And OK, I’ll mention it in the post. Thanks for your comment.