Oracle 11gR2 RAC – sshUserSetup.sh script to swap ssh keys between hosts

Oracle 11gR2 RAC Grid install includes a useful script to establish and exchange ssh keys between hosts of the cluster.

The process to set up and exchange ssh keys between hosts to facilitate unchallenged logins between trusted users has been well documented already. Oracle simply provides a handy wrapper script over the whole process.

Although the main Grid install process will set up ssh keys, this is a useful verification step to ensure all nodes are reachable, as well as a prerequisite to having the cluvfy script succeed.

Continue reading →

Oracle 11gR2 – clean up after failed database install

So your Oracle database install crashes and burns and you are left with a mess to clean up.

Oracle now provides some canned de-install scripts to try to do this for you, but in my experience they are about as useful as a chocolate teapot.

First, let’s verify where Oracle did the install.  Check the oraInst.loc file in the /etc directory:

Continue reading →

Oracle 11gR2 RAC install – installer hangs at 65%

During the install of Oracle 11gR2 RAC Grid, the installer hangs at 65%, with no errors on screen or in the log file.

The problem is the Linux firewall interfering with the install.

Before running the runInstaller script, make sure the firewall is disabled on ALL nodes. Connect as root and disable it as follows:

[root@tbird1 ~]# service iptables stop
Flushing firewall rules: [  OK  ]
Setting chains to policy ACCEPT: filter [  OK  ]
Unloading iptables modules: [  OK  ]

 

To make sure it stays permanently disabled use the following:

[root@tbird1 init.d]# chkconfig iptables off

Oracle 11gR2 RAC Install – cleaning up a failed install on Linux

Despite all the updates to the Oracle RAC installer, it is still an extremely brittle install process that frequently goes pear shaped.

A common problem is pilot-error, and a regular mistake is running the root.sh script on secondary nodes before it has fully completed on the primary node.

Oracle now provides the rootcrs.pl script in the Grid home crs/install directory.

To execute the script, connect to your first node and execute as follows:

Continue reading →

Oracle 11gR2 2-node RAC on VMware Workstation 8 – Part VIII

Time Required: 60 minutes

Class Materials:

  • 5GB of disk space
  • an ASCII text editor

Next we are going to add some shared disk to our new freshly minted VMs

VMware Workstation makes the allocation of shared disk to VMs very simple. Shared disk has been the biggest obstacle to create Oracle RAC clusters at home, but now VMware gives us a reliable and portable solution that does not require fire-wire hacks, your own NFS server or a SCSI disk array.

Best of all this whole solution can exist on a single laptop, so you can take your RAC on the road.

Continue reading →

Oracle 11gR2 2-node RAC on VMware Workstation 8 – Part VII

Time Required: 60 minutes

Class Materials:

  • none

Next we are going to give our two new VMs identities.

As discussed in the previous section, I have decided to name my VMs Orpheus and Eurydice. In this section we will give each machine a hostname plus static IP address on the VMnet2 and VMnet3 networks we created earlier.

This will allow our two operatic lovers to communicate both publicly and privately.

Continue reading →

Oracle 11gR2 2-node RAC on VMware Workstation 8 – Part VI

Time Required: 60 minutes

Class Materials:

  • none

Next we are going to create two networks for our RAC system to talk on.

The Oracle RAC system requires at least two network connections between cluster nodes. One network will be the public IP and the second will be a private IP reserved for inter-cluster traffic.

Continue reading →

Oracle 11gR2 2-node RAC on VMware Workstation 8 – Part V

Time Required: 20 minutes

Class Materials:

  • oracleasm-support-2.1.7-1.el5.x86_64.rpm
  • oracleasm-2.6.18-194.el5-2.0.5-1.el5.x86_64.rpm
  • oracleasmlib-2.0.4-1.el5.x86_64.rpm

Next we will install the ASMLib drivers that simplify management of ASM on Linux.

ASMLib is an interface between block devices presented to Linux, and the Oracle ASM software that executes as the Oracle user.

Continue reading →

Oracle 11gR2 2-node RAC on VMware Workstation 8 – Part IV

Time Required: 20 minutes

Class Materials:

  • none

Next we need to create the Oracle user account, OS groups and mount point.

The Oracle software will be installed and owned by the oracle user account. In additional several OS groups are created that allow other non oracle OS users privileged access to the database and grid resources.

Continue reading →