• No results found

Using Oracle Universal Installer to Install the Oracle Grid Infrastructure for a Cluster

As the Oracle Grid Infrastructure for a cluster software owner (oracle) user on the first node, install the Oracle Grid Infrastructure for a cluster for your 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.

To install the Oracle Grid Infrastructure for a cluster software:

1. Use the following command to start OUI, where staging_area is the location of the staging area on disk, or the root level of the installation media:

cd /staging_area/clusterware/Disk1 ./runInstaller

After a few minutes, the Select Installation Option window appears.

2. Choose the Install and Configure Grid Infrastructure for a Cluster option, then click Next.

The Select Installation Type window appears.

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 Chapter 2, "Preparing Your Cluster" are met to ensure a successful 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.

Installing the Oracle Grid Infrastructure for a Cluster Software

3. Select Typical Installation, then click Next.

The Specify Cluster Configuration window appears.

4. In the SCAN Name field, enter a name for your cluster that is unique throughout your entire enterprise network. For example, you might choose a name that is based on the node names' common prefix. This guide uses the SCAN name

docrac.

In the Hostname column of the table of cluster nodes, you should see your local node, for example racnode1.example.com. Click Add to add another node to the cluster.

The Add Cluster Node Information pop-up window appears.

5. Enter the second node's public name (racnode2), and virtual IP name

(racnode2-vip), and then click OK.

You are returned to the Specify Cluster Configuration window.

6. You should now see both nodes listed in the table of cluster nodes. Click the

Identify Network Interfaces button. In the Identify Network Interfaces window, verify that each interfaces has the correct interface type (Public or Private) associated with it. If you have network interfaces that should not be used by Oracle Clusterware, then set the network interface type to Do Not Use.

Make sure both nodes are selected, then click the SSH Connectivity button at the bottom of the window.

The bottom panel of the window displays the SSH Connectivity information.

7. Enter the operating system username and password for the Oracle software owner

(oracle). Select the option If you have configured SSH connectivity between the

nodes, then select the Reuse private and public keys existing in user home option. Click Setup.

A message window appears, indicating that it might take several minutes to configure SSH connectivity between the nodes. After a short period, another message window appears indicating that passwordless SSH connectivity has been established between the cluster nodes. Click OK to continue.

8. When returned to the Specify Cluster Configuration window, click Next to continue.

After several checks are performed, the Specify Install Locations window appears.

9. Perform the following actions on this page:

■ For the Oracle base field, make sure it is set to the location you chose for your

Oracle Base directory, for example /u01/app/oracle/. If not, then click

Browse. In the Choose Directory window, go up the path until you can select the /u01/app/oracle/ directory, then click Choose Directory.

■ For the Software Location field, make sure it is set to the location you chose for

your Grid home, for example /u01/app/11.2.0/grid. If not, then click

Browse. In the Choose Directory window, go up the path until you can select

/u01/app/11.2.0/grid, then click Choose Directory.

Note: Specify both nodes during installation even if you plan to use Oracle RAC One Node.

Installing the Oracle Grid Infrastructure for a Cluster Software

■ For the Cluster Registry Storage Type, choose Automatic Storage

Management.

■ Enter a password for a SYSASM user in the SYSASM Password and Confirm

Password fields. This password is used for managing Oracle ASM after installation, so make note of it in a secure place.

■ For the OSASM group, use the drop-down list to choose the operating system

group for managing Oracle ASM, for example, dba.

After you have specified information for all the fields on this page, click Next. The Create ASM Disk Group page appears.

10. In the Disk Group Name field, enter a name for the disk group, for example DATA. Choose the Redundancy level for this disk group, and then in the Add Disks section, choose the disks to add to this disk group.

In the Add Disks section you should see the disks that you configured using the ASMLIB utility in Chapter 2.

When you have finished selecting the disks for this disk group, click Next. If you have not installed Oracle software previously on this computer, then the Create Inventory page appears.

11. Change the path for the inventory directory, if required. If you are using the same directory names as this book, then it should show a value of

/u01/app/oraInventory. The oraInventory group name should show oinstall.

Click Next. The Perform Prerequisite Checks window appears.

12. If any of the checks have a status of Failed and a value of Yes in the Fixable column, then select that check, for example OS Kernel Parameter:file-max, and then click the Fix & Check Again button. This instructs the installer to create a shell script to fix the problem. You must run the specified script on the indicated nodes as the root user to fix the problem. When you have finished running the script on each node, click OK.

Repeat until all the fixable checks have a status of Succeeded.

Note: The path displayed for the inventory directory should be the

oraInventory subdirectory of the directory one level above the Oracle

base directory. For example, if you set the ORACLE_BASE environment variable to /u01/app/oracle/ before starting OUI, then the

Installing the Oracle Grid Infrastructure for a Cluster Software

If there are other checks that failed, but are do not have a value of Yes in the Fixable field, then you must configure the node to meet these requirements in another window. After you have made the necessary adjustments, return to the OUI window and click Check Again. Repeat as needed until all the checks have a status of Succeeded. Click Next.

The Summary window appears.

13. Review the contents of the Summary window and then click Finish.

OUI displays a progress indicator allowing you to monitor the installation process.

14. As part of the installation process, you are required to run certain scripts as the

root user, as specified in the Execute Configuration Scripts window appears. Do

Installing the Oracle Grid Infrastructure for a Cluster Software

The Execute Configuration Scripts window shows configuration scripts, and the path where the configuration scripts are located. Run the scripts on all nodes as directed, in the order shown. For example, on Oracle Linux you perform the following steps (note that for clarity, the examples show the current user, node and directory in the prompt):

a. As the oracle user on racnode1, open a terminal window, and enter the following commands:

[oracle@racnode1 oracle]$ cd /u01/app/oraInventory [oracle@racnode1 oraInventory]$ su

b. Enter the password for the root user, and then enter the following command to run the first script on racnode1:

[root@racnode1 oraInventory]# ./orainstRoot.sh

c. After the orainstRoot.sh script finishes on racnode1, open another terminal window, and as the oracle user, enter the following commands:

[oracle@racnode1 oracle]$ ssh racnode2

[oracle@racnode2 oracle]$ cd /u01/app/oraInventory [oracle@racnode2 oraInventory]$ su

d. Enter the password for the root user, and then enter the following command to run the first script on racnode2:

[root@racnode2 oraInventory]# ./orainstRoot.sh

e. After the orainstRoot.sh script finishes on racnode2, go to the terminal window you opened in Step 15a. As the root user on racnode1, enter the following commands to run the second script, root.sh:

[root@racnode1 oraInventory]# cd /u01/app/11.2.0/grid [root@racnode1 grid]# ./root.sh

Installing the Oracle Grid Infrastructure for a Cluster Software

f. After the root.sh script finishes on racnode1, go to the terminal window you opened in Step 15c. As the root user on racnode2, enter the following

commands:

[root@racnode2 oraInventory]# cd /u01/app/11.2.0/grid [root@racnode2 grid]# ./root.sh

Press Enter at the prompt to accept the default value.

After the root.sh script completes, return to the OUI window where the Installer prompted you to run the orainstRoot.sh and root.sh scripts. Click OK.

The software installation monitoring window reappears.

15. Continue monitoring the installation until the Finish window appears. Then click

Close to complete the installation process and exit the installer

Related documents