Starting with Oracle Database 18c, you can use the Oracle Preinstallation RPM and the rpm -ivh command to perform an RPM-based single-instance Oracle Database or Oracle Database Client installation.

Note: An RPM-based Oracle Database installation is supported only on Oracle Linux systems.

Use RPM packages to perform a single-instance, Oracle Database installation on Oracle Linux machines.

  1. Log in as root
  2. Install the Oracle Preinstallation RPM to prepare your Oracle Linux machine for the RPM-based Oracle Database installation.
[root@18c sf_shared]# rpm -ivh oracle-database-server-18c-preinstall-1.0-1.el7.src.rpm 
warning: oracle-database-server-18c-preinstall-1.0-1.el7.src.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Updating / installing...
1:oracle-database-server-18c-preins################################# [100%]

3. Access the software download page for Oracle Database RPM-based installation from OTN.

4. Download the .rpm file required for performing an RPM-based installation to a directory of your choice. For example, download the oracle-ee-db-18.1.0.0.0-1.x86_64.rpm file to the /tmp directory.

5. Ensure that the /opt directory is owned by the user oracle and group oinstall.

# ls -l /opt
# chown -R oracle:oinstall /opt

6. Go to the rpm directory and run the rpm -ivh command to perform the RPM-based installation.

# cd /tmp/rpm
# rpm -ivh oracle-ee-db-18.1.0.0.0-1.x86_64.rpm

This command creates the Oracle home at the location /opt/oracle/product/18.0.0.0.0-1/dbhome_1.

7. The screen displays information that prompts you to create a database by using Oracle Database Configuration Assistant (Oracle DBCA) in silent mode.

For information about database creation options execute the following command as the oracle user:
/opt/oracle/product/18.1.0.0.0-1/dbhome_1/bin/dbca -silent -createDatabase -help

8. Log in as the oracle user and run Oracle DBCA in silent mode to create the database.

The following example creates a non-CDB database by passing command-line arguments to Oracle DBCA:

# su oracle
$ /opt/oracle/product/18.1.0.0.0-1/dbhome_1/bin/dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbname orcl -sid orcl -createListener LISTENER:1521

9. The screen prompts you to enter the passwords for the SYS and SYSTEM users.

Oracle DBCA creates the Oracle Database listener, the Oracle Database instance, starts the instance, and completes the Oracle Database creation process. Review the status information that is displayed on your screen.

Stay tuned for More articles on Oracle 18c 

Thank you for giving your valuable time to read the above information.

If you want to be updated with all our articles send us the Invitation or Follow us:

Skant Gupta’s LinkedIn: www.linkedin.com/in/skantali/

Joel Perez’s LinkedIn: Joel Perez’s Profile

Anuradha’s LinkedIn: Anuradha’s Profile

LinkedIn Group: Oracle Cloud DBAAS

Facebook Page: OracleHelp

About The Author

Leave a Reply

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