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
Prepare the Directory
- Log in to your server as
root
and create the directory dedicated for the Oracle Database 19c software.mkdir -p /u01/app/oracle/product/19.0.0/dbhome_2
- Go to the directory.
cd /u01/app/oracle/product/19.0.0/dbhome_2
- Unzip
db_home.zip
to the directory dedicated for the Oracle Database 19c installation.unzip /staging/db_home.zip
- Change the group and owner ownership of the directories where the files are unzipped.
cd /u01
chown -R oracle *
chgrp -R oinstall *
- Quit the
root
session.exit
Install Oracle Database 19c
In this section, you install the Oracle Database 19c using the Oracle Universal Installer and the automatic root
scripts execution.
- 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
- Launch
runInstaller
../runInstaller
- In the
Select Configuration Option
page, selectSet Up Software Only
. - In the
Select Database Installation Option
page, click Next. - In the
Select Database Edition
page, click Next. - In the
Specify Installation Location
page, click Next. - In the
Privileged Operating System Groups
page, click Next. - In the
Root script execution configuration
page, checkAutomatically run configuration scripts
, and provide the password for theroot
user. Click Next. - In the
Perform Prerequisite Checks
page, checkIgnore All
and click Next. If there is a warning message, choose Yes. - In the
Summary
page, click theSave Response File…
. This allows you to observe the way theroot
scripts automatic execution is recorded in the response file. Select the/tmp
directory to save thedb.rsp
response file. Click Save and then Install. - In the
Install Product
page, theProgress
displays the steps executed until the following message appears: Click Yes. - In the
Finish
page, click Close. The installation is complete.
Read the Response File
- Go to the directory where the response file is created.
cd /tmp
- Read the response file.
cat db.rsp
Use the db.rsp to view the resulting response file.
- Read the information that is relevant for the feature.
oracle.install.db.rootconfig.executeRootScript=true #-------------------------------------------------------------------------------------- # Specify the configuration method to be used for automatic root script execution. # # Following are the possible choices: # - ROOT # - SUDO #-------------------------------------------------------------------------------------- oracle.install.db.rootconfig.configMethod=ROOT
Clean Up the Software Installed
Specify the list of database names that are configured in this Oracle home []:
- 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
- Launch
deinstall
../deinstall
- Answer the first question during the deinstallation.
- Enter return because you did not create any database after the installation.
- Answer the second question during the deinstallation.
Oracle Home selected for deinstall is: /u01/app/oracle/product/19.0.0/dbhome_2 Inventory Location where the Oracle home registered is: /u01/app/oraInventory Do you want to continue (y - yes, n - no)? [n]: y
- Read the deinstall_output.txt file to ensure that the deinstallation completed successfully.
Oracle Universal Installer cleanup was successful. ... Oracle deinstall tool successfully cleaned up temporary directories. ############# ORACLE DEINSTALL TOOL END #############
- Quit the session.
EXIT