Installing the Oracle Database Software
This page explains how to run Oracle Universal Installer to perform most database installations.
Note:
- If you plan to use Oracle Restart or Oracle ASM, then you must install Oracle Grid Infrastructure for a standalone server before you install and create the database. Otherwise, you must manually register the database with Oracle Restart.
- You can install Oracle Database by using the silent or response file installation method, without the GUI. This method is useful to perform multiple installations of Oracle Database.
Setup Wizard Installation Options for Creating Images
Before you start the setup wizards for your Oracle Database or Oracle Grid Infrastructure installation, decide if you want to use any of the available image-creation options.
In image-based installations, you can start your Oracle Database installation or Oracle Grid Infrastructure installations by running the setup wizards runInstaller and gridSetup.sh respectively. Both these wizards come with the following image-creation options.
Table: Image-Creation Options for Setup Wizard
| Option | Description |
|---|---|
-createGoldImage | Creates a gold image from the current Oracle home. |
-destinationLocation | Specify the complete path, or location, where the gold image will be created. |
-exclFiles | Specify the complete paths to the files to be excluded from the newly created gold image. |
-help | Displays help for all the available options. |
For example:
cd $ORACLE_HOME
./runInstaller -createGoldImage -destinationLocation /tmp/my_db_images -exclFiles /u01/app/oracle/product/19.0.0/dbhome_1/relnotes
cd Grid_home
./gridSetup.sh -createGoldImage -destinationLocation /tmp/my_grid_images -exclFiles /u01/app/oracle/product/19.0.0/dbhome_1/relnotes
Where:
/tmp/my_db_images is a temporary file location where the image zip file is created.
/tmp/my_grid_images is a temporary file location where the image zip file is created.
/u01/app/oracle/product/19.0.0/dbhome_1/relnotes is the file to be excluded from the newly created gold image.
Applying Patches During an Oracle Database Installation or Upgrade
Starting with Oracle Database 18c, you can download and apply Release Updates (RUs) during an Oracle Database installation or upgrade.
- Download the patches you want to apply from My Oracle Support:
- Select the Patches and Updates tab to locate the patch.
Oracle recommends that you select Recommended Patch Advisor, and enter the product group, release, and platform for your software.
- Move the patches to an accessible directory like
/tmp. Change to the Oracle Database home directory:
$ cd $ORACLE_HOMEApply Release Updates (RUs) during the installation or upgrade process:
$ ./runInstaller -applyRU patch_directory_location- Complete the remaining steps in the Oracle Database configuration wizard to complete the installation or upgrade.
Running Oracle Database Setup Wizard to Install Oracle Database
Extract the database image files and use the runInstaller command to start the installation.
Have all the information you need to provide regarding users groups, and storage paths before you start installation. Oracle recommends that you have your My Oracle Support credentials available during installation. You should also be prepared to run root scripts or provide information to automate root scripts.
- Log in as the Oracle installation owner user account (
oracle) that you want to own the software binaries. If this is the first time you are installing Oracle software, then create the Oracle base and the Oracle inventory directories as per the Oracle Optimal Flexible Architecture (OFA) recommendations. Specify the correct owner, group, and permissions for these directories.
# mkdir -p /u01/app/oracle # mkdir -p /u01/app/oraInventory # chown -R oracle:oinstall /u01/app/oracle # chown -R oracle:oinstall /u01/app/oraInventory # chmod -R 775 /u01/app- Download the Oracle Database installation image files (
db_home.zip) to a directory of your choice. For example, you can download the image files to the/tmpdirectory. Create an OFA-compliant Oracle home directory and extract the image files that you have downloaded in to this Oracle home directory. For example:
$ mkdir -p /u01/app/oracle/product/19.0.0/dbhome_1 $ cd /u01/app/oracle/product/19.0.0/dbhome_1 $ unzip -q /tmp/db_home.zipNote:
- Ensure that the Oracle home directory path you create is in compliance with the Oracle Optimal Flexible Architecture recommendations. Also, unzip the installation image files only in this Oracle home directory that you created.
- Oracle home or Oracle base cannot be
symlinks, nor can any of their parent directories, all the way to up to therootdirectory.
From the Oracle home directory, run the
runInstallercommand to start the Oracle Database Setup Wizard.$ cd /u01/app/oracle/product/19.0.0/dbhome_1 $ ./runInstallerNote:
- Run the
runInstallercommand from the Oracle home directory only. Do not use therunInstallercommand that resides at$ORACLE_HOME/oui/bin/, or any other location, to install Oracle Database, Oracle Database Client, or Oracle Grid Infrastructure. - Use the
runInstallercommand with the-applyRUoption to install Release Updates (RUs) during an Oracle Database installation or upgrade.
- Run the
- In the Select Configuration Option screen, select Create and configure a single instance database.
- Select your installation type.
Installation screens vary depending on the installation option you select. Respond to the configuration prompts as needed.
Provide information to automate root scripts, or run scripts as root when prompted by the setup wizard.
If you configure automation for running root scripts, and a root script fails, then you can fix the problem manually, and click Retry to run the root script again.
Note:
Click Help if you have any questions about the information you are asked to submit during installation.
Related Topics