Monday, November 28, 2011

Oracle 11g R1 Clusterware installation

Provided that Clusterware installation requirements have been met as discussed in the post
http://www.bash-dba.com/2011/11/oracle-11g-clusterware-installation.html
and also cluster is verified as discussed in http://www.bash-dba.com/2011/11/verifying-oracle-cluster-prerequisites.html , we are going to proceed with two-node Oracle 11g R1 clusterware and RAC software (RDBMS, ASM) installation procedures.

Two Phase Installation :

There would be two phases of RAC installation.
  1. Oracle Clusterware configuration
  2. Oracle RAC installation (RDBMS,ASM)
It is important to setup ORACLE_BASE environmental variable on the OS before initiating the installation process.

Step 1:

To begin the Clusterware configuration launch  the Oracle Universal Installer (OUI) either from the Oracle 11g R1 Clusterware staged software area or from the installation DVD/CD source as below

./runInstaller 

On the Welcome screen click on Next to proceed further.The below screen will appear if this is the first installation then 'Oracle Inventory Location' needs to be specified along with OS primary group.Note that if proper environmental variables have already been set then Oracle will just display the recommend Inventory location.

Step 2:

Specify Clusterware Home name and the location of the clusterware binaries. Then hit Next


Step 3:

OUI performs necessary prerequisite checks. The checks like kernel parameters value, physical memory, OS packages and settings are ensured 


Step 4:

In below mentioned screen, OUI detects and displays the local node's Public, Private, and VIP name details under the Cluster Name section, as configured in DNS or as mentioned in the /etc/hosts file. In order to add more node details that are likely to be part of the Clusterware installation, click on the Add button and enter the Public, Private, and VIP names for each node, as shown in the following screenshot:



Step 5:

Add a unique Cluster Name and add nodes  under the Cluster Name section and Click Next to proceed further as shown below



 Step 6:

As shown in the below screenshot, configure the network interface types for the public and the private
communication. By default, the public and private interfaces are configured to private interface type. However, do not worry; select the correct interface from the list for the public interface (that is, eth0 in our demonstration) and click on Edit to configure the appropriate type for this interface


 Step 7:

On the Edit private interconnect type dialog box, choose the Public option for eth0 interface and click OK. Also set Do Not use option in-case there is any additional network interface name other than eth0 and eth1. Then click on Next to proceed further.



Step 8:


Enter the path for OCR on the Specify Oracle Cluster Registry (OCR) Location screen, as shown in the following screenshot:



Step 9:

Specify the Voting Disk location

Step 9:


Once the installation begins on the local node, OUI displays the progress installation bar, as shown in the following screenshot:


Step 10:


When the installation progress bar reaches 100% status, OUI then brings up a pop-up Execute Configuration scripts window, as shown in the following screenshot:




When the root.sh script is executed successfully across the nodes, click on OK to complete the Oracle Clusterware Installation process and proceed to the final stage.




After the preceding configuration is completed successfully, click on Exit on the End of Installation screen to quit the installation process

Installing Oracle 11g R1 RAC software:


For Oracle 11g R1, oracle recommends  separete homes for ASM and database. Therefore the RAC installation process has to be done twice. The installation process of installing Oracle Clusterware is discussed in http://www.bash-dba.com/2011/11/oracle-11g-r1-clusterware-installation.html.

Now before initiating the installation for Oracle ASM and DB, perform the prerequisite check using CLUVRY utility as discussed in the following post

http://www.bash-dba.com/2011/11/verifying-oracle-cluster-prerequisites.html


we will need to perform the installation twice to have separate ASM and DB homes. Now, to begin the RAC software installation for the ASM home, navigate through the database software directory and initiate the ./runInstaller command either from the Oracle 11g R1 database staged software area or from the installation DVD/CD source.

It is recommended that you always initiate any installation or other installation related to pivotal actions from Node 1 of a cluster.

The steps are as follows:
1.  Click on Next on the Welcome screen.

2.  On the Select Installation Type screen, select the type of installation that you require according to your Oracle License. After you make your choice, click on Next to continue further.

3.  Accept the default location if OUI shows the right location and enter the name and path for the software location on the Specify Home Details screen. For example, enter OraAsm11g_home for name and the path as /u01/app/oracle/product/11.1.0/asm for the software location. Click on Next to continue further.

4.  Ensure that all nodes of the cluster appear in the list on the Specify Hardware Cluster Installation Mode under the Cluster Installation choice (the default choice). Don't select the Local Installation option as we intend to perform cluster-level configuration. If all the nodes of the cluster do not appear in the list, hold the installation for a while and check the cluster status on nodes that are not in the list. Click the Select All button to select the listed nodes and click on Next to continue further.

5.  OUI then performs the product-specific prerequisite checks on the Product Specific Prerequisite Checks screen. After the prerequisites checks are performed, ensure that all the flagged status checks are passed. Press Next to continue further.

6.  For the time being, select the Install Software option on the Select Configuration Option screen and click on Next to continue further.

7.  Review the summary on the Summary screen and click on Install to begin the software installation
process.

8.  OUI then starts the installation process on the Install screen where it also shows the progress bar. Once the software is installed on the local server (node), OUI carries out remote operations where it clones the software binaries to other servers (nodes)


9.  Once the progress bar reaches 100%, it opens the Execute Configuration scripts dialog box and instructs you to execute the script (root.sh) as root user across the nodes. Open a new window on the local node, log in as root user and execute the script. The script sets the Oracle base and homes and prompts you to enter the full pathname of the local bin directory, (/usr/local/bin); simply accept the default setting and press the Enter key.

10.  After executing the scripts across all nodes, press OK and click on Exit on the End of Installation screen.

At this point, we should have a successful RAC software installation of ASM home.

Now, let's perform a similar action for DB home as well. You must follow the same sequence of actions outlined earlier. However, use a different Name and Path on the Specify Home Details screen. For example, you may choose OraDB11g_home as the Name and /u01/app/oracle/product/11.1.0/db_1 as the path for the software.


reference: 11g R1 R2 RAC essentials


No comments:

Post a Comment