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
Installing the Oracle Database Software and Creating a Database
database. If you plan to use Oracle RAC One Node, then you must first install the Oracle RAC software without creating a database. After the installation completes, you use Database Configuration Assistant (DBCA) to create the Oracle RAC One Node database.
To install Oracle Database software on your cluster and create a database: 1. As the oracle user, use the following commands to start OUI, where staging_
area is the location of the staging area on disk, or the location of the mounted installation disk:
cd /staging_area
./runInstaller
When you start Oracle Universal Installer, the Configure Security Updates window appears.
2. (Optional) Enter your email address and My Oracle Support password, then click
Next to continue.
If you want to receive notification by email of any newly discovered security issues related to the software you are installing, then enter an email address in the
Email field. If you also want to receive the security updates through My Oracle Support, then use the same email address that is registered with My Oracle Support, select the I wish to receive security updates via My Oracle Support
option, and enter your My Oracle Support login password in the My Oracle Support Password field.
If you provide an email address, then the Oracle Configuration Manager (OCM) tool with also be installed. This utility provides Oracle Support Services with configuration information about your system when creating service requests. You can disable the OCM tool after installation, but Oracle strongly discourages this. OCM does not access, collect, or store any personal information (except for technical support contact information), or any business data files residing in your software environment. For more information about OCM, see
http://www.oracle.com/technetwork/documentation/ocm-092152.html. After you click Next, the Select Installation Option window appears.
3. If you want to create an Oracle RAC database, then select Create and configure a database. If you want to create an Oracle RAC One Node database, then select
Install database software only. Click Next to continue. The System Class window appears.
4. Choose Server Class, then click Next.
If you choose the Desktop Class option, then OUI installs a single-instance database, not a clustered database.
The Node Selection screen appears.
5. Select the Real Application Clusters database installation type.
Select the nodes on which you want to install Oracle Database software and create an Oracle RAC instance. All the available nodes in the cluster are selected by default.
Note: Select both nodes during installation, even if you are creating an Oracle RAC One Node database.
Installing the Oracle Database Software and Creating a Database
Click the SSH Connectivity button at the bottom of the window. The bottom panel of the window displays the SSH Connectivity information.
6. Because you configured SSH connectivity between the nodes for the Oracle Grid Infrastructure for a cluster installation, select the Reuse private and public keys existing in user home option. If you are using a network user with home directory on shared storage, then also select the "User home if shared by the selected nodes" option. Click Test.
A message window appears, indicating that passwordless SSH connectivity has been established between the cluster nodes. Click OK to continue.
7. When returned to the Node Selection window, click Next to continue. The Select Install Type window appears.
8. Choose the Typical install option, and click Next.
A typical installation requires minimal input. It installs the software and optionally creates a general-purpose database. If you choose the Advanced installation type (not documented in this guide), then you are prompted to provide more information about how the database should be configured. For example, you could set passwords for each user account individually, choose a different template for the starter database, choose a nondefault language for the database, and so on.
The Typical Install Configuration window appears.
9. In this window, you must provide the following information:
■ Oracle base location: The default value is /u01/app/oracle/. If you did not set the ORACLE_BASE environment variable and the default location is different from the directory location you have chose, then enter the directory for your Oracle base or click the Browse button to change the directory path.
■ Software location: If you did not set the ORACLE_HOME environment variable before starting the installation, then enter the directory for your Oracle home or click the Browse button to change the directory path.
■ Storage Type: In this drop-down list, choose Automatic Storage Management
(ASM). If you do not want to use Oracle ASM, then choose File System. Because Oracle ASM was installed with the Oracle Grid Infrastructure for a cluster, Oracle Automatic Storage Management is the default value.
■ Database file location: Choose the disk group to use for storing the database
files. You can use the same disk group that Oracle Clusterware uses. If you do not want to use the same disk group that is currently being used to store the Oracle Clusterware files, then you must exit the installation and create a new disk group using Oracle ASM utilities. Refer to "Creating Additional Oracle ASM Disk Groups" on page 3-11 for more information on creating a disk group.
If you chose the File System storage type, then enter the directory location of the shared storage where the database files will be created.
■ ASMSNMP Password: Enter the password for the ASMSNMP user. The
ASMSNMP user is used primarily by Oracle Enterprise Manager to monitor Oracle ASM instances. See Oracle Automatic Storage Management
Administrator's Guide for more information about the ASMSNMP user. If you chose File System for the Storage Type, then this field is disabled.
Installing the Oracle Database Software and Creating a Database
■ Database edition: From this drop-down list choose either Enterprise Edition
or Standard Edition. The number in parentheses next to your choice indicates the amount of disk space required.
■ OSDBA Group: From this drop-down list select the operating system group
used for database administration, for example, dba.
■ Global database name: Enter the fully qualified global name for your
database. The global database name is in the form ORACLE_SID.DB_DOMAIN, for example, orcl.example.com.
■ Administrative password: Enter the password to be used for the
administrative account, such as SYS, SYSTEM, and DBSNMP.
■ Confirm Password: Enter the same password in this field.
After you have provided all the necessary information, click Next. The Perform Prerequisite Checks window appears.
10. After a short period, the Summary window appears. Review the information on this screen, then click Finish to continue.
If any of the information in the Summary window is incorrect, then use the Back button to return to a previous window and correct it.
After you click Finish, OUI displays a progress indicator to show that the installation has begun. This step takes several minutes to complete.
11. After the software is installed on each node, if you select the option to create a database, then OUI starts the Database Configuration Assistant (DBCA). This utility creates the database using the global database name specified in Step 9. At the end of the database creation, you see the DBCA window with the database configuration information displayed, including the URL for the Database Control console.
There is also a Password Management button that you can click to unlock the database user accounts, or change their default passwords.
After making note of the information in this window, click OK.
OUI configures Oracle Configuration Management, if you provided the information in Step 2.
If you chose to perform a software-only installation, then the database
configuration assistants are not started. You must run DBCA separately to create the Oracle RAC One Node database.
12. In the last step of the installation process, you are prompted to perform the task of running the root.sh script on both nodes, as specified in the Execute
Configuration Scripts window. Do not click OK until you have run the scripts on all nodes.
Note: The first eight characters of the ORACLE_SID must be a unique identifier for each database. The SID prefix cannot contain underscore (_), dollar ($), or pound (#) characters. The total length of the ORACLE_ SID cannot exceed eight characters for Oracle RAC databases.
See Also: Oracle Real Application Clusters Installation Guide for Linux and UNIX or other platform for information about creating an Oracle RAC One Node database using DBCA
Installing the Oracle Database Software and Creating a Database
Perform the following steps to run the root.sh script (note that for clarity, the examples show the current user, node and directory in the prompt):
a. Open a terminal window. As the oracle user on the first node. Change directories to your Oracle home directory, and then switch to the root user by entering the following commands:
[oracle@racnode1 oracle]$ cd /u01/app/oracle/product/11.2.0/dbhome_1 [oracle@racnode1 dbhome_1]$ su
b. Enter the password for the root user, and then run the script specified in the Execute Configuration scripts window:
[root@racnode1 dbhome_1]# ./root.sh
c. As the root.sh script runs, it prompts you for the path to the local bin
directory. The information displayed in the brackets is the information it has obtained from your system configuration. It also writes the dbhome, oraenv,
and coraenv files in the /usr/local/bin directory. If these files exist, then you
are asked to overwrite them. After responding to prompt, press the Enter key. To accept the default choice, press the Enter key without entering any text.
d. Enter commands similar to the following to run the script on the other nodes:
[root@racnode1 dhome_1]# exit
[oracle@racnode1 dhome_1]$ ssh racnode2
[oracle@racnode2 ~]$ cd /u01/app/oracle/product/11.2.0/dbhome_1 [oracle@racnode2 dbhome_1]$ su
e. Enter the password for the root user, and then run the script specified in the Execute Configuration scripts window:
[root@racnode2 dbhome_1]# ./root.sh
Note: You can run the root.sh script simultaneously on all nodes in the cluster for Oracle RAC installations or upgrades.
Installing the Oracle Database Software and Creating a Database
f. After responding to each prompt, press the Enter key.
g. When the root.sh script completes, the following messages are displayed:
After you finish executing the script on all nodes, return to the Execute Configuration scripts window and click OK.
The Install Product window is displayed.
13. Click Next to complete the installation.
The Finish window is displayed, with the URL for Enterprise Manager Database Control displayed.
14. Click Close to exit the installer.