Running RPM Packages to Install Oracle Database

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.
    # yum -y install oracle-database-server-18c-preinstall
  3. Access the software download page for Oracle Database RPM-based installation from:
  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_rpm_name

    Where oracle_rpm_name is the name of the Oracle Database RPM.

    For example:

    # 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 

    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.

    See Also:

    Oracle Database Administrator’s Guide for more information about running Oracle DBCA in silent mode.