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

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

Time Required: 20 minutes

Class Materials:

  • none

Next we need to configure the Linux kernel to support Oracle 11gR2.

Before we can install Oracle 11gR2 on our new VM, we need configure the Linux kernel. The following steps modify key settings to allow Oracle to execute. These steps are taken from the Oracle install guide located at the following URL:

Linux Kernel Parameters for Oracle 11gR2 on RHEL 5

Continue reading

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

Time Required: 20 minutes

Class Materials:

  • Red Hat Enterprise Linux 5.5 64-bit install media

Next we need to add additional RPMs to support the Oracle database and grid installs.

Before we can install Oracle 11gR2 on our new VM, we need to load additional RPM packages that are required by the Oracle database and grid. Oracle publishes a list of the required VMs broken down by the supported Linux distributions at the following URL:

RPMs Required for Oracle 11gR2 on RHEL 5

Continue reading

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

Time Required: 60 minutes

Class Materials:

  • 10GB of free disk
  • An operational VMware Workstation 8 or later install
  • Red Hat Enterprise Linux 5.5 64-bit install media

To create our Oracle RAC database on VMware Workstation 8, we first need to create a Linux VM.

In this example I have the Red Hat Enterprise Linux 5.5 64-bit install software as an ISO image of the DVD install media. Having a single ISO image allows VMware to use its Easy Install feature that pretty much automates the OS install entire process.

Continue reading

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

It has long been an ambition of mine to have my very own RAC cluster database.

My former TUSC colleague and good friend John Smiley over at Amazon.com created a white paper some years back where he showed how to create a two node RAC cluster out of a couple of spare x86 Linux boxes and as I recall, some scotch tape, glue and pixie dust. It really was very cool and definitely worth a Blue Peter badge.

Continue reading

Linux – rescanning the SCSI bus

When new SCSI devices are added to a Linux system, it is necessary to re-scan the SCSI bus so that the OS can add them to the device list:

[root@localhost ~]# ls /dev/sd*
/dev/sda /dev/sda1 /dev/sda2 /dev/sda3

[root@localhost ~]# su -c 'for hst in $(ls /sys/class/scsi_host) ; do echo "- - -" > /sys/class/scsi_host/$hst/scan ; done'

[root@localhost ~]# ls /dev/sd*
 /dev/sda /dev/sda1 /dev/sda2 /dev/sda3 /dev/sdb

[root@localhost ~]#

Disassembling The Oracle Data Block

Back in 2005 I got interested in reverse engineering the Oracle data block.

I had already spent far too much time breaking apart the redo blocks, and had published an interesting paper on the matter called Disassembling the Redo Block which Frank Naude over at orafaq was kind enough to host for me. This was back before “blogging” became the ubiquitous pass time of Oracle DBAs it appears to be today.

Rich Niemiec at TUSC forwarded to me an interesting article on the Terilingua Block Viewer for Oracle, and so after a lot of searching around I found the BBED tool. What’s more, BBED was included in the standard Oracle distribution for Windows and Linux. On Linux all you had to do was link it.

And so armed with an old IBM Aptiva running Linux 8 Pro and a copy of Oracle 9i, I set about trying to figure out how the blocks of a database held together.

The result was a detailed analysis of BBED and how to use it. Although obsolete today, the article is still interesting to those DBAs who want to understand the inner working of Oracle. At the time it was quite popular, being cited by Pete Finnegan and Don Burlseon among others.

I include it here for posterity.

And no, you still have to work out the password for yourself 🙂

BBED – Disassembling the Oracle Data Block