I must thank my fellow DBA Franky Weber Faust for his publication in his blog.
This is an article about Installing Oracle Database 12cR2 in text mode using the response file.

Oracle Database 12cR2 Installation Process via response file

This is the response file I used, feel free to download it: db_install.rsp. Adjust the response file according to your editing needs, directories, OS groups, etc.

Remember all the settings that must be made in the operating system before performing this step.

Let’s go to the Oracle Database 12cR2 installation process … Execute with the oracle user the Oracle Universal Installer (runInstaller.sh) passing the -silent parameter to start it in text mode, -showProgress to show the installation progress e -responseFile With the absolute path to the db_install.rsp file.

 [oracle@oracle-srv database]$ ./runInstaller -silent -showProgress -responseFile /home/oracle/database/response/db_install.rsp
Starting Oracle Universal Installer...Checking Temp space: must be greater than 500 MB. Actual 35051 MB Passed
Checking swap space: must be greater than 150 MB. Actual 6149 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2017-06-09_11-48-27PM.
Please wait ...
You can find the log of this install session at:
/u01/app/oraInventory/logs/installActions2017-06-09_11-48-27PM.logPrepare in progress.
.................................................. 8% Done.
Prepare successfully.

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.

Link binaries in progress.
..........
Link binaries successful.

Setup files in progress.
..............................
Setup files successful.

Setup Inventory in progress.

Setup Inventory successful.

Finish Setup successful.
The installation of Oracle Database 12c was successful.
Please check '/u01/app/oraInventory/logs/silentInstall2017-06-09_11-48-27PM.log' for more details.

Setup Oracle Base in progress.

Setup Oracle Base successful.
.................................................. 95% Done.

As a root user, execute the following script(s):
1. /u01/app/oracle/product/12.2.0.1/db_1/root.sh

.................................................. 100% Done.
Successfully Setup Software.

[oracle@oracle-srv database]$

Run the root.sh script with root (in this case I did not need to run orainstroot.sh because Oracle Database 12cR1 was already installed):

 [root@oracle-srv ~]# /u01/app/oracle/product/12.2.0.1/db_1/root.sh Check /u01/app/oracle/product/12.2.0.1/db_1/install/root_oracle-srv.localdomain_2017-06-09_23-52-46-732246412.log for the output of root script
Check the root.sh log and verify that it has successfully completed:

 

[root@oracle-srv ~]# cat /u01/app/oracle/product/12.2.0.1/db_1/install/root_oracle-srv.localdomain_2017-06-09_23-52-46-732246412.log Performing root user operation.The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /u01/app/oracle/product/12.2.0.1/db_1 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/app/oracle/product/12.2.0.1/db_1/suptools/tfa/release/tfa_home/bin/tfactl [root@oracle-srv ~]#

 

I hope it will be useful for any installations you may need to do. Any questions just leave a comment. In the next article we will see how to create the Listener and the database in text mode.

About The Author

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.