Before installing Oracle Real Application Clusters (Oracle RAC) and Oracle RAC One Node using Oracle Universal Installer (OUI), you must first install the Oracle Grid Infrastructure for a cluster software, which consists of Oracle Clusterware and Oracle Automatic Storage Management (Oracle ASM).
rconfig
, Oracle Enterprise Manager, or Database Configuration Assistant (DBCA) to assist you with the task of converting a single-instance database installation to an Oracle Real Application Clusters (Oracle RAC) database.As part of the database provisioning solution, Oracle Enterprise Manager Cloud Control enables you to provision Oracle Databases (also known as single-instance databases) and Oracle Real Application Clusters (Oracle RAC) databases.
Using Oracle Enterprise Manager Cloud Control, you can extend or delete Oracle RAC nodes, and provision Oracle RAC One node databases. Oracle Enterprise Manager Cloud Control also helps in setting up the environment for provisioning and does various pre-checks on the host to verify provisioning is successful. Before you can use Oracle Enterprise Manager Cloud Control to provision your Oracle software, you must perform the following system configuration tasks:
Discover all host by installing the Enterprise Manager Agent on all nodes.
Configure named and preferred credentials in Enterprise Manager.
Configure a software library and setup roles.
Download software from Oracle Technology Network to create installation media components in Enterprise Manager. Optionally, you can create a Provisioning Profile (similar to a gold image) from an existing system.
Details on how to perform these tasks, and how to provision your Oracle Grid Infrastructure and Oracle RAC software using Oracle Enterprise Manager Cloud Control are available in Oracle Enterprise Manager Lifecycle Management Administrator's Guide.
Prepare a staging area for the installation files.
Oracle Clusterware is installed as part of Oracle Grid Infrastructure for a cluster. OUI installs Oracle Clusterware into a directory structure called the Grid_home. This home is separate from the home directories of other Oracle software products installed on the same server. Because Oracle Clusterware works closely with the operating system, you must have system administrator privileges for some installation tasks. In addition, some Oracle Clusterware processes must run as the special operating system user, root
. OUI also installs Oracle Automatic Storage Management (Oracle ASM) in the Grid home directory.
You install the Oracle RAC software from the Oracle Database 12c installation media. By default, the standard Oracle Database 12c software installation process installs the Oracle RAC option when OUI recognizes that you are performing the installation on a cluster. OUI installs Oracle RAC into a directory structure called the Oracle_home. This home is separate from the home directories of other Oracle software products installed on the same server.
To prepare to install the Oracle software:
When you first start OUI, you are prompted to enter your e-mail address and My Oracle Support password.
By entering this information, you enable the following features:
Oracle Configuration Manager is installed and configured. This option enables you to associate information about your Oracle RAC configuration with your My Oracle Support account. In the event that you must place a service request with Oracle Support, that configuration information can help provide a more rapid resolution to the service issue.
You can receive e-mail notification of security alerts from My Oracle Support.
Automatic download and application of the most recent patches to the newly installed Oracle software (with Oracle Grid Infrastructure for a cluster or Oracle Database). The software updates that can be downloaded include patches, critical patch updates, installer updates, and patch sets.
If you choose to enable these features, then you must supply your My Oracle Support account name (your e-mail address) and your password. You may have to configure the proxy settings before your computer can connect to My Oracle Support.
If you have downloaded the software updates, then during installation you can enter the directory ___location where the files are stored on the local server instead of downloading them from My Oracle Support. The software updates are applied to the installed software during the installation process.
See Also:
The software for Oracle Grid Infrastructure for a cluster consists of Oracle Clusterware and Oracle Automatic Storage Management (Oracle ASM).
Before starting the installer, you should set and unset environment variables.
You run OUI from the grid
or oracle
user account. Before you start OUI to install Oracle Grid Infrastructure for a cluster, you do not have to configure the environment of the grid
user. You can specify the directories to use for the central inventory and the Grid home during the installation process.
However, you can set the ORACLE_BASE
environment variable to the directory in which you want the Oracle Inventory files located. For example, if you plan to make the Oracle Database home directory /u01/app/oracle/product/12.1.0/dbhome_1
, then you would set ORACLE_BASE
to the directory /u01/app/oracle/
. If you set the ORACLE_BASE
directory before installation, then this becomes the default ___location for the central inventory displayed by OUI.
You can also set the ORACLE_HOME
environment variable to the ___location chosen for the Grid home. If you set the ORACLE_HOME
directory before installation, then this becomes the default ___location for the Grid home displayed by OUI.
(Optional) To modify the user environment before installing Oracle Grid Infrastructure for a cluster on Oracle Linux:
During installation on Linux and UNIX platforms, for certain prerequisite check failures, you can click Fix & Check Again to generate a fixup script.
The installer detects when the minimum requirements for an installation are not met, and creates shell scripts, called Fixup scripts, to finish incomplete system configuration steps. If the installer detects an incomplete task, then it generates a Fixup script (runfixup.sh
). You also can have CVU generate Fixup scripts before installation.
Fixup scripts do the following:
If necessary, set kernel parameters to values required for successful installation, including:
Shared memory parameters.
Open file descriptor and UDP send/receive parameters.
Create and set permissions on the Oracle Inventory (central inventory) directory.
Create or reconfigure primary and secondary group memberships for the installation owner, if necessary, for the Oracle Inventory directory and the operating system privileges groups.
Set shell limits if necessary to required values.
You can run the script after you click Fix and Check Again. You are prompted by the installer to run the fixup script as the root
user in a separate session or you can specify through the installer interface that the scripts should be run automatically. You must run the script on all the nodes specified by the installer.
Modifying the contents of the generated fixup script is not recommended.
Note:
Using fixup scripts does not ensure that all the required prerequisites for installing Oracle Grid Infrastructure for a cluster and Oracle RAC are satisfied. You must still verify that all the requirements listed in Preparing Your Cluster are met to ensure a successful installation.
You use Oracle Universal Installer (OUI) to install the software on one node in the cluster, and the installer copies the software to the other cluster nodes.
As the user that owns the software for Oracle Grid Infrastructure for a cluster (grid)
on the first node, install Oracle Grid Infrastructure for a cluster. Note that OUI uses Secure Shell (SSH) to copy the binary files from this node to the other nodes during the installation. OUI can configure SSH for you during installation.
Note:
If you are installing Oracle Clusterware on a server that has a single-instance Oracle Database 11g installation, then stop the existing Oracle ASM instances, if any. After Oracle Clusterware is installed, start the Oracle ASM instances again. When you restart the single-instance Oracle database and the Oracle ASM instances, the Oracle ASM instances use the Cluster Synchronization Services Daemon (CSSD) instead of the daemon for the single-instance Oracle database.
To install the software for Oracle Grid Infrastructure for a cluster:
Caution:
After installation is complete, do not remove manually or run cron
jobs that remove /tmp/.oracle
or /var/tmp/.oracle
directories or their files while Oracle software is running on the server. If you remove these files, then the Oracle software can encounter intermittent hangs. Oracle Clusterware installations can fail with the error:
CRS-0184: Cannot communicate with the CRS daemon
.
After you have installed Oracle Clusterware, verify that the node applications are started.
Depending on which operating system you use, you may have to perform some postinstallation tasks to configure the Oracle Clusterware components properly.
To complete the Oracle Clusterware configuration on Oracle Linux:
Note:
Avoid changing host names after you complete the Oracle Clusterware installation, including adding or deleting ___domain qualifications. Nodes with changed host names must be deleted from the cluster and added back with the new name.
After Oracle Grid Infrastructure for a cluster is functional, you can install the Oracle Database software on the nodes of your cluster.
Oracle Universal Installer (OUI) installs the software on the local node and then copies the binary files from the local node to all the other nodes in the cluster.
oracle
user account. You don’t have to configure the environment of the oracle
user before you start OUI.You run Oracle Universal Installer (OUI) from the oracle
user account. You don’t have to configure the environment of the oracle
user before you start OUI.
You can set the ORACLE_BASE
environment variable to the directory in which you want the Oracle Inventory files for the Oracle Database software located. For example, if you plan to make the Oracle Database home directory /u01/app/oracle/product/12.1.0/dbhome_1
, then you would set ORACLE_BASE
to the directory /u01/app/oracle/
. If you set the ORACLE_BASE
environment variable before installation, then the path specified becomes the default ___location for the central inventory displayed by OUI.
You can also set the ORACLE_HOME
environment variable to the ___location chosen for the Oracle Database home. If you set the ORACLE_HOME
environment variable before installation, then the path specified becomes the default ___location for the Oracle home displayed by OUI.
(Optional) To modify the user environment before installing Oracle Database software on Oracle Linux:
If you want to use a separate disk group for your Oracle database files or for the fast recovery area, then you must create the additional Oracle ASM disk groups before installing Oracle Database software.
If you chose to store the Oracle Clusterware files on Oracle ASM during the Oracle Grid Infrastructure for a cluster installation, then a single disk group was created in Oracle ASM. You can use this same disk group to store the data files for your Oracle database, or you can create a separate disk group for the Oracle Database files.
To create an additional disk group using ASMCA:
After you have configured the operating system environment, you can use Oracle Universal Installer to install the Oracle RAC software and create an Oracle RAC database.
To install Oracle Database software on your cluster and to create a database:
If you chose to create an Oracle RAC database during installation, then verify that all the database services are up and running.
To verify the Oracle RAC database services are started:
Caution:
After installation is complete, do not remove manually or run cron
jobs that remove /tmp/.oracle
or /var/tmp/.oracle
directories or their files while Oracle software is running on the server. If you remove these files, then the Oracle software can encounter intermittent hangs. Oracle Clusterware installations will fail with the error:
CRS-0184: Cannot communicate with the CRS daemon.
See Also:
After you have installed the Oracle Real Application Clusters (Oracle RAC) software and created an Oracle RAC database there are additional tasks to perform before your cluster database is ready for use. These steps are recommended, but are not required.
See Also:
Use Cluster Verification Utility (CVU) to verify that your installation is configured correctly.
After the Oracle Clusterware installation is complete, OUI automatically runs Cluster Verification Utility (CVU) as a configuration assistant to verify that the Oracle Clusterware installation has been completed successfully.
If CVU reports problems with your configuration, then correct these errors before proceeding.
See Also:
Oracle Clusterware Administration and Deployment Guide for more information about using CVU and resolving configuration problems
The Database Configuration Assistant (DBCA) utility is used to create Oracle Databases.
If you did not select the option to create an Oracle Real Application Clusters (Oracle RAC) database during installation, then you will need to create one using DBCA after you have verified that the installation of the Oracle RAC software was successful. The steps for creating an Oracle RAC database are documented in Oracle Real Application Clusters Installation Guide for Linux and UNIX.
Certain files used during installation are very important to the operation of the installed software.
It is important to back up these files and keep them in a separate ___location from the installed software in case of hardware failure.
root.sh
script after you complete an installation.emkey.ora
file after you complete an installation.Oracle recommends that you back up the root.sh
script after you complete an installation.
If you install other products in the same Oracle home directory, then OUI updates the contents of the existing root.sh
script during the installation. If you require information contained in the original root.sh
script, then you can recover it from the root.sh
backup copy.
Oracle recommends that you back up the emkey.ora
file after you complete an installation.
During the installation described in this guide, the Enterprise Manager Database Control management repository is placed in secure mode. All Enterprise Manager data is encrypted using the encryption key stored in the file emkey.ora
. If this file is damaged or lost, and cannot be restored from a backup, then you are no longer able to use the existing Enterprise Manager repository.
The emkey.or
a file is located in the Oracle_home/node_name_Database_name/sysman/config
directory. For example, on the racnode2
server, the encryption key file for the orcl.example.com
database would be located at /u01/app/oracle/product/12.1.0/dbhome_1
/racnode2_orcl/sysman/config/emkey.ora
directory.
When you create an Oracle RAC database and choose Database Control for your database management, the Enterprise Manager Database Control utility is installed and configured automatically.
To verify Oracle Enterprise Manager Database Control has been started in your new Oracle RAC environment:
Ensure that you run the latest patch set of the installed software.
Periodically, Oracle issues bug fixes for its software called patches. Patch sets are a collection of bug fixes that were produced up to the time of the patch set release. Patch sets are fully tested product fixes. Application of a patch set affects the software residing in your Oracle home.
If you configured access to My Oracle Support during installation, then the latest patches should have been downloaded and applied during installation.
If you did not configure access to My Oracle Support within OUI, then you should apply the latest patch set for your release and any necessary patches that are not included in a patch set. Information about downloading and installing patches and patch sets is covered in Managing Oracle Software and Applying Patches.
See Also:
Oracle Grid Infrastructure Installation Guide for Linux for detailed instructions on how to locate and download patches and patch sets
You can use different operating system accounts for accessing and managing your Oracle RAC database.
The oracle
user operating system account is the account that you used to install the Oracle Database software. You can modify the shell configuration file to set environment variables such as ORACLE_HOME
whenever you log in as that operating system user.
See Also:
About Operating System Users and GroupsIf you have a single-instance database and you want to convert to Oracle RAC or Oracle RAC One Node, then you can use rconfig
, Oracle Enterprise Manager, or Database Configuration Assistant (DBCA) to assist you with the task of converting a single-instance database installation to an Oracle Real Application Clusters (Oracle RAC) database.
rconfig
is a command line utility. The Convert to Cluster Database option in Oracle Enterprise Manager Cloud Control provides a GUI conversion tool. Additionally, after you have converted your single-instance database to an Oracle RAC database, you can use the srvctl
utility to convert the database to an Oracle RAC One Node database.
rconfig
utility.rconfig
utility to convert a single-instance Oracle database into a single-node Oracle RAC database, you can use the srvctl
utility to convert the database into an Oracle RAC One Node database.Before you start the process of converting your database to a cluster database, your database environment must meet certain prerequisites.
The existing database and the target Oracle RAC database must be on the same release of Oracle Database 12c and must be running on the same platform.
The hardware and operating system software used to implement your Oracle RAC database must be certified for use with the release of the Oracle RAC software you are installing.
You must configure shared storage for your Oracle RAC database. You will need additional shared storage for the Oracle Clusterware files, such as the Oracle Cluster Registry, the voting files, and the Grid Infrastructure Management Repository.
You must verify that any applications that run against the Oracle RAC database do not need any additional configuration before they can be used successfully with the cluster database. This applies to both Oracle applications and database features, such as Oracle Streams, and applications and products that do not come from Oracle.
Backup procedures should be available before converting from a single-instance Oracle Database to Oracle RAC.
For archiving in Oracle RAC environments, the archive log file format requires a thread number.
The archived redo log files from all instances of an Oracle RAC database are required for media recovery. If you archive to a file and you do not use a cluster file system, or some other means to provide shared file systems, then you require a method of accessing the archived redo log files from all nodes on which the cluster database has instances.
Note:
For information about using individual Oracle Database 12c database products or options, refer to the product documentation library, which is available on the Oracle Help Center website at http://docs.oracle.com/en/database/
You can convert a single-instance database to an Oracle RAC database using Oracle Enterprise Manager Cloud Control.
This section summarizes the process of converting a single-instance database to an Oracle RAC database:
Complete the prerequisite tasks for converting to an Oracle RAC database:
Oracle Clusterware and Oracle Database software is installed on all target nodes.
Oracle Clusterware is started.
The Oracle Database binary is enabled for Oracle RAC on all target nodes.
Shared storage is configured and accessible from all nodes.
User equivalency is configured for the operating system user performing the conversion.
Enterprise Manager agents are configured and running on all nodes, and are configured with the cluster and host information.
The database being converted has been backed up successfully.
Access the Database Home page for the database you want to convert. For instructions on navigating to the Database Home page, see "Accessing the Database Home Page" in the Oracle Database 2 Day DBAGuide.
From the Availability menu, select Convert to Cluster Database.
Provide the necessary credentials.
Select the host nodes that should contain instances of the new database.
Provide listener and instance configuration information.
Specify the ___location of the shared storage to be used for the data files.
Submit the job.
Complete the post-conversion tasks.
The resulting Oracle RAC database uses a server pool instead of a fixed configuration.
See Also:
Oracle Real Application Clusters Administration and Deployment Guide for a complete description of this process
This topic provides an outline of the process of converting a single-instance database to an Oracle RAC database using the rconfig
utility.
Complete the prerequisite tasks for converting to an Oracle RAC database.
Oracle Clusterware and Oracle Database software is installed on all target nodes.
Oracle Clusterware is started.
The Oracle Database binary is enabled for Oracle RAC on all target nodes.
Shared storage is configured and accessible from all nodes.
User equivalency is configured for the operating system user performing the conversion.
The database being converted has been backed up successfully.
Using rconfig
, you can convert a single-instance database to either an administrator-managed cluster database or a policy-managed cluster database. Modify the parameters in either the ConvertToRAC_AdminManaged.xml
or ConvertToRAC_PolicyManaged.xml
sample file, as appropriate for your environment, then save the file to a new ___location. Both files are located in the Oracle_home/assistants/rconfig/sampleXMLs
directory.
Run the rconfig
command, supplying the name of the modified XML file as input.
Complete the post-conversion tasks.
You can also use the rconfig
utility to convert single-instance Oracle ASM to clustered Oracle ASM.
See Also:
Oracle Real Application Clusters Administration and Deployment Guide for a complete description of this process
After you use the rconfig
utility to convert a single-instance Oracle database into a single-node Oracle RAC database, you can use the srvctl
utility to convert the database into an Oracle RAC One Node database.
To convert your database to an Oracle RAC One Node database, use the following command:
srvctl convert database -db database_name -dbtype RACONENODE
An Oracle RAC One Node database must be part of a multi-node cluster to support failover or online database relocation. You must either install Oracle Grid Infrastructure for a cluster and Oracle RAC on at least two nodes, or add a node to your existing single-node Oracle RAC database.
See Also:
"Adding and Deleting Nodes and Instances " for more information about adding nodes
"About Oracle RAC One Node" for more information about Oracle RAC One Node