Enabling a Read-Only Oracle Home
Configure your Oracle home as a read-only Oracle home after you have performed a software-only Oracle Database installation.
To enable a read-only Oracle home:
-
Perform a software-only Oracle Database installation.
-
Run the
roohctl -enablescript. -
Run Oracle Database Configuration Assistant (Oracle DBCA) to create a database.
Software-Only Database Installation
-
Log in as the Oracle installation owner user account (
oracle) that you want to own the software binaries. -
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 the 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/18.0.0/dbhome_1 $ chown oracle:oinstall /u01/app/oracle/product/18.0.0/dbhome_1 $ cd /u01/app/oracle/product/18.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. -
From the Oracle home directory, run the
runInstallercommand to start the Oracle Database installer. -
In the Select Configuration Option screen, select Set Up Software Only.
-
Select your installation type. Installation screens vary depending on the installation option you select. Respond to the configuration prompts as needed.
Note:
Click Help if you have any questions about the information you are asked to submit during installation.Run the roohctl Script
-
Go to the
bindirectory$ cd /u01/app/oracle/product/18.0.0/dbhome_1/bin -
Run the
roohctlscript to enable read-only Oracle home.$ ./roohctl -enable -
On Oracle Real Application Clusters (Oracle RAC) installations, run the preceding
roohctlscript on every node of the cluster. Alternatively, run theroohctlscript with thenodelistoption and provide the list of cluster nodes:$ ./roohctl –enable –nodelist comma_separated_list_of_nodes
Run Oracle Database Configuration Assistant
-
Ensure that you are still in the
bindirectory and run Oracle DBCA.$ ./dbca -
In the Select Database Operation screen, select Create a Database.
-
The configuration screens vary depending on the options you select. Respond to the prompts as needed.
Note:
Click Help if you have any questions about the information you are asked to submit during database creation.Related Topics
Parent topic: Configuring Read-Only Oracle Homes