Skip to content
Home » Oracle » How Oracle 11g Silent Install Software Only

How Oracle 11g Silent Install Software Only

  • Oracle

With a Response File

First of all, we have prepared a response file for installing Oracle software only as following. Let's see the effective content of the response file.

[oracle@ora11g ~]$ egrep -v "(^(#|$)|=$)" install-software-only-for-11g.rsp
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=ora11g
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oraInventory
SELECTED_LANGUAGES=en,zh_TW
ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1
ORACLE_BASE=/u01/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.EEOptionsSelection=false
oracle.install.db.DBA_GROUP=dba
oracle.install.db.isRACOneInstall=false
oracle.install.db.config.starterdb.type=GENERAL_PURPOSE
oracle.install.db.config.starterdb.memoryOption=false
oracle.install.db.config.starterdb.installExampleSchemas=false
oracle.install.db.config.starterdb.enableSecuritySettings=true
oracle.install.db.config.starterdb.control=DB_CONTROL
oracle.install.db.config.starterdb.automatedBackup.enable=false
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true
oracle.installer.autoupdates.option=SKIP_UPDATES

It seems that everything is ready in this file. Now we can install Oracle software in silent mode.

[oracle@ora11g ~]$ cd /tmp/database
[oracle@ora11g database]$ ./runInstaller -silent -noconfig -responseFile /home/oracle/install-software-only.rsp
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB.   Actual 49853 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 3967 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2019-03-06_01-55-11PM. Please wait ...[oracle@ora11g database]$ You can find the log of this install session at:
 /u01/app/oraInventory/logs/installActions2019-03-06_01-55-11PM.log
The installation of Oracle Database 11g was successful.
Please check '/u01/app/oraInventory/logs/silentInstall2019-03-06_01-55-11PM.log' for more details.

As a root user, execute the following script(s):
        1. /u01/app/oraInventory/orainstRoot.sh
        2. /u01/app/oracle/product/11.2.0/dbhome_1/root.sh


Successfully Setup Software.

Without a Response File

We can just add key-value pairs in the command to install Oracle software only without a response file.

[oracle@ora11g database]$ ./runInstaller -silent -noconfig oracle.install.option=INSTALL_DB_SWONLY ORACLE_HOSTNAME=ora11g UNIX_GROUP_NAME=oinstall INVENTORY_LOCATION=/u01/app/oraInventory SELECTED_LANGUAGES=en,zh_TW ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1 ORACLE_BASE=/u01/app/oracle oracle.install.db.InstallEdition=EE oracle.install.db.EEOptionsSelection=false oracle.install.db.DBA_GROUP=dba oracle.install.db.isRACOneInstall=false SECURITY_UPDATES_VIA_MYORACLESUPPORT=false DECLINE_SECURITY_UPDATES=true oracle.installer.autoupdates.option=SKIP_UPDATES
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB.   Actual 49430 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 3967 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2019-03-06_03-38-47PM. Please wait ...[oracle@ora11g database]$ You can find the log of this install session at:
 /u01/app/oraInventory/logs/installActions2019-03-06_03-38-47PM.log
The installation of Oracle Database 11g was successful.
Please check '/u01/app/oraInventory/logs/silentInstall2019-03-06_03-38-47PM.log' for more details.

As a root user, execute the following script(s):
        1. /u01/app/oraInventory/orainstRoot.sh
        2. /u01/app/oracle/product/11.2.0/dbhome_1/root.sh


Successfully Setup Software.

Conclusions

Both ways work well and no difference. Just don't forget to run orainstRoot.sh and root.sh by root after installation.

Response file seems a little familiar? Yes, it's somewhat like PARFILE in data pump. They can collect all key-value pairs in a file for shortening the command lines. In addition, they become distributable and portable for DBA to do repeated jobs.

Please note that, the response file that we introduced in this post is only for Oracle 11g database. This is because there're some differences in parameters of response file from version to version.

For more response file templates, you can find them in the database installation source. In this case, they are in /tmp/database/response/. [oracle@ora11g ~]$ cd /tmp/database/response/
[oracle@ora11g response]$ ll
total 80
-rwxr-xr-x. 1 oracle oinstall 44533 Aug 27  2013 dbca.rsp
-rw-r--r--. 1 oracle oinstall 25116 Aug 27  2013 db_install.rsp
-rwxr-xr-x. 1 oracle oinstall  5871 Aug 27  2013 netca.rsp

After the installation of Oracle software, you may think about installing a database in silent mode by DBCA.

Leave a Reply

Your email address will not be published. Required fields are marked *