INSTALL ORACLE DATABASE 19C WITH AUTOMATIC ROOT SCRIPTS EXECUTION

INSTALL ORACLE DATABASE 19C WITH AUTOMATIC ROOT SCRIPTS EXECUTION

 

Before You Begin

This 15-minute tutorial shows you how to install the Oracle Database 19c with automated root scripts execution.

Background

In Oracle Database 18c, the installation of the Oracle Database software requires root scripts to be executed manually.

What Do You Need?

·      Oracle Database 19c software appropriate for your platform that you store in a staging directory


section 1 Prepare the Directory

1.   Log in to your server as root and create the directory dedicated for the Oracle Database 19c software.

2.   mkdir -p /u01/app/oracle/product/19.0.0/dbhome_2

3.   Go to the directory.

4.   cd /u01/app/oracle/product/19.0.0/dbhome_2

5.   Unzip db_home.zip to the directory dedicated for the Oracle Database 19c installation.

6.   unzip /staging/db_home.zip

7.   Change the group and owner ownership of the directories where the files are unzipped.

cd /u01

chown -R oracle *

chgrp -R oinstall *

8.   Quit the root session.

exit


section 2 Install Oracle Database 19c

In this section, you install the Oracle Database 19c using the Oracle Universal Installer and the automatic root scripts execution.

1.   Log in to your server as oracle and go to the directory dedicated for the Oracle Database 19c software.

cd /u01/app/oracle/product/19.0.0/dbhome_2

2.   Launch runInstaller.

./runInstaller

3.   In the Select Configuration Option page, select Set Up Software Only .

4.   In the Select Database Installation Option page, click Next.

5.   In the Select Database Edition page, click Next.

6.   In the Specify Installation Location page, click Next.

7.   In the Privileged Operating System Groups page, click Next.

8.   In the Root script execution configuration page, check Automatically run configuration scripts, and provide the password for the root user. Click Next.

9.   In the Perform Prerequisite Checks page, check Ignore All and click Next. If there is a warning message, choose Yes.

10.  In the Summary page, click the Save Response File… . This allows you to observe the way the root scripts automatic execution is recorded in the response file. Select the /tmp directory to save the db.rsp response file. Click Save and then Install.

11.  In the Install Product page, the Progress displays the steps executed until the following message appears:
Warning messageDescription of the illustration [root.png]Click Yes.

12.  In the Finish page, click Close. The installation is complete.


section 3 Read the Response File

1.   Go to the directory where the response file is created.

cd /tmp

2.   Read the response file.

cat db.rsp

Use the db.rsp to view the resulting response file.

3.   Read the information that is relevant for the feature.

4.   oracle.install.db.rootconfig.executeRootScript=true

5.   #--------------------------------------------------------------------------------------

6.   # Specify the configuration method to be used for automatic root script execution.

7.   #

8.   # Following are the possible choices:

9.   #   - ROOT

10.      #   - SUDO

11.      #--------------------------------------------------------------------------------------

oracle.install.db.rootconfig.configMethod=ROOT


section 4 Clean Up the Software Installed

1.   If the OBE was a test for an installation, and if you want to deinstall the installed software, go to the directory where the Oracle Database 19c sotfware is installed.

cd /u01/app/oracle/product/19.0.0/dbhome_2/deinstall

2.   Launch deinstall.

Related Posts: