server Receive Updates For This Category
Oracle 10g RAC On Windows 2003 Using VMware Server
This article describes the installation of Oracle 10g release 2 (10.2.0.1) RAC on Windows 2003 Server Standard Edition using VMware Server with no additional shared disk devices.
- Introduction
- Download Software
- VMware Server Installation
- Virtual Machine Setup
- Guest Operating System Installation
- Oracle Installation Prerequisites
- Install VMware Client Tools
- Create Shared Disks
- Clone the Virtual Machine
- Install the Clusterware Software
- Install the Database Software and Create an ASM Instance
- Create a Database using the DBCA
- TNS Configuration
- Check the Status of the RAC
Introduction
One of the biggest obstacles preventing people from setting up test RAC environments is the requirement for shared storage. In a production environment, shared storage is often provided by a SAN or high-end NAS device, but both of these options are very expensive when all you want to do is get some experience installing and using RAC. A cheaper alternative is to use a FireWire disk enclosure to allow two machines to access the same disk(s), but that still costs money and requires two servers. A third option is to use VMware Server to fake the shared storage.
Using VMware Server you can run multiple Virtual Machines (VMs) on a single server, allowing you to run both RAC nodes on a single machine. In additon, it allows you to set up shared virtual disks, overcoming the obstacle of expensive shared storage.
Before you launch into this installation, here are a few things to consider.
- The finished system includes the host operating system, two guest operating systems, two sets of Oracle Clusterware, two ASM instances and two Database instances all on a single server. As you can imagine, this requires a significant amount of disk space, CPU and memory. To complete this installation I used a dual 3.0G Xeon server with 4G of memory.
- This procedure provides a bare bones installation to get the RAC working. There is no redundancy in the Clusterware installation or the ASM installation. To add this, simply create double the amount of shared disks and select the 8220;Normal8221; redundancy option when it is offered. Of course, this will take more disk space.
- During the virtual disk creation, I always choose not to preallocate the disk space. This makes virtual disk access slower during the installation, but saves on wasted disk space.
- This is not, and should not be considered, a production-ready system. It8217;s simply to allow you to get used to installing and using RAC.
Download Software
Download the following software.
VMware Server Installation
For this article, I used CentOS 4.3 as the host operating systems. To use Windows as the host operating system, simply run the executable installation file and ignore the following VMware Server installation information.
First, install the VMware Server software. On Linux you do this with the following command as the root user.
# rpm -Uvh VMware-server-*.rpm Preparing... ########################################### [100%] 1:VMware-server ########################################### [100%] #
Then finish the configuration by running the vmware-config.pl script as the root user. Most of the questions can be answered with the default response by pressing the return key. The output below shows my responses to the questions.
# vmware-config.pl Making sure services for VMware Server are stopped. Stopping VMware services: Virtual machine monitor [ OK ] You must read and accept the End User License Agreement to continue. Press enter to display it. VMWARE, INC. SOFTWARE BETA TEST AGREEMENT *** Editied out license agreement *** Do you accept? (yes/no) yes Thank you. Configuring fallback GTK+ 2.4 libraries. In which directory do you want to install the mime type icons? [/usr/share/icons] What directory contains your desktop menu entry files? These files have a .desktop file extension. [/usr/share/applications] In which directory do you want to install the application's icon? [/usr/share/pixmaps] Trying to find a suitable vmmon module for your running kernel. The module bld-2.6.9-5.EL-i686smp-RHEL4 loads perfectly in the running kernel. Do you want networking for your virtual machines? (yes/no/help) [yes] Configuring a bridged network for vmnet0. The following bridged networks have been defined: . vmnet0 is bridged to eth0 All your ethernet interfaces are already bridged. Do you want to be able to use NAT networking in your virtual machines? (yes/no) [yes] Configuring a NAT network for vmnet8. Do you want this program to probe for an unused private subnet? (yes/no/help) [yes] Probing for an unused private subnet (this can take some time)... The subnet 172.16.210.0/255.255.255.0 appears to be unused. The following NAT networks have been defined: . vmnet8 is a NAT network on private subnet 172.16.210.0. Do you wish to configure another NAT network? (yes/no) [no] Do you want to be able to use host-only networking in your virtual machines? [yes] no Trying to find a suitable vmnet module for your running kernel. The module bld-2.6.9-5.EL-i686smp-RHEL4 loads perfectly in the running kernel. Please specify a port for remote console connections to use [902] Stopping xinetd: [ OK ] Starting xinetd: [ OK ] Configuring the VMware VmPerl Scripting API. Building the VMware VmPerl Scripting API. Using compiler "/usr/bin/gcc". Use environment variable CC to override. The installation of the VMware VmPerl Scripting API succeeded. Do you want this program to set up permissions for your registered virtual machines? This will be done by setting new permissions on all files found in the "/etc/vmware/vm-list" file. [no] yes Generating SSL Server Certificate In which directory do you want to keep your virtual machine files? [/var/lib/vmware/Virtual Machines] /u01/VM Do you want to enter a serial number now? (yes/no/help) [no] yes Please enter your 20-character serial number. Type XXXXX-XXXXX-XXXXX-XXXXX or 'Enter' to cancel: ENTER-YOUR-SERIAL-NUMBER Starting VMware services: Virtual machine monitor [ OK ] Virtual ethernet [ OK ] Bridged networking on /dev/vmnet0 [ OK ] Host-only networking on /dev/vmnet8 (background) [ OK ] NAT service on /dev/vmnet8 [ OK ] Starting VMware virtual machines... [ OK ] The configuration of VMware Server e.x.p build-22874 for Linux for this running kernel completed successfully. #
The VMware Server Console is started by issuing the command 8220;vmware8221; at the command prompt, or by selecting it from the 8220;System Tools8221; menu.

On the 8220;Connect to Host8221; dialog, accept the 8220;Local host8221; option by clicking the 8220;Connect8221; button.

You are then presented with the main VMware Server Console screen.

The VMware Server is now installed and ready to use.
Virtual Machine Setup
Now we must define the two virtual RAC nodes. We can save time by defining one VM, then cloning it when it is installed. In this article I use Linux as my host operating system, so all the file paths are UNIX style paths. If you are using a Windows host operating system you would expect to use Windows style paths to the various VMware files, so adjust the paths as necessary.
Click the 8220;Create a new virtual machine8221; button to start the 8220;New Virtual Machine Wizard8221;. Click the 8220;Next8221; button onthe welcome page.

Select the 8220;Custom8221; virtual machine configuration and click the 8220;Next8221; button.

Select the 8220;Windows8221; guest operating system option, and set the version to 8220;Windows Server 2003 Standard Edition8221;, then click the 8220;Next8221; button.

Enter the name 8220;RAC18243; and the location should default to 8220;/u01/VM/RAC18243;, then click the 8220;Next8221; button.

Select the required number of processors and click the 8220;Next8221; button.

Uncheck the 8220;Make this virtual machine private8221; checkbox and click the 8220;Next8221; button.

Select the amount of memory to associate with the virtual machine. Remember, you are going to need two instances, so don8217;t associate too much, but you are going to need approximately 1 Gig (1024 Meg) to compete the installation successfully.

Accept the 8220;Use bridged networking8221; option by clicking the 8220;Next8221; button.

Accept the 8220;LSI Logic8221; option by clicking the 8220;Next8221; button.

Select the 8220;Create a new virtual disk8221; option and click the 8220;Next8221; button.

Accept the 8220;SCSI8221; option by clicking the 8220;Next8221; button. It8217;s a virtual disk, so you can still use this option even if your physical disk is IDE or SATA.

Set the disk size to 8220;10.08243; GB and uncheck the 8220;Allocate all disk space now8221; option. The latter will make disk access slower, but will save you wasting disk space.

Accept 8220;RAC1.vmdk8221; as the disk file name and complete the VM creation by clicking the 8220;Finish8221; button.

On the 8220;VMware Server Console8221; screen, click the 8220;Edit virtual machine settings8221; button.

On the 8220;Virtual Machine Settings8221; screen, highlight the 8220;Floppy 18243; drive and click the 8220;- Remove8221; button.

Click the 8220;+ Add8221; button and select a hardware type of 8220;Ethernet Adapter8221;, then click the 8220;Next8221; button.

Accept the 8220;Bridged8221; option by clicking the 8220;Finish8221; button.

Click on the 8220;Options8221; tab, highlight the 8220;Startup/Shutdown8221; setting and select the 8220;Don8217;t power on virtual machine8221; in the 8220;On host startup8221; option. Finish by clicking the 8220;OK8221; button.

The virtual machine is now configured so we can start the guest operating system installation.
Guest Operating System Installation
Place the first Windows 2003 SE disk in the CD drive and start the virtual machine by clicking the 8220;Power on this virtual machine8221; button. The right pane of the VMware Server Console should display a boot loader, then the Windows installation screen.

Continue through the Windows installation as you would for a normal server. To be consistent with the rest of the article, the following information should be set during the installation:
- hostname: RAC1
- IP Address eth0: 192.168.2.101 (public address)
- IP Address eth1: 192.168.0.101 (private address)
You are free to change the IP addresses to suit your network, but remember to stay consistent with those adjustments throughout the rest of the article.
Oracle Installation Prerequisites
Perform the following steps whilst logged into the RAC1 virtual machine.
Amend the C:\windows\system32\drivers\etc\hosts file to contain the following information.
127.0.0.1 localhost.localdomain localhost # Public 192.168.2.101 rac1.localdomain rac1 192.168.2.102 rac2.localdomain rac2 #Private 192.168.0.101 rac1-priv.localdomain rac1-priv 192.168.0.102 rac2-priv.localdomain rac2-priv #Virtual 192.168.2.111 rac1-vip.localdomain rac1-vip 192.168.2.112 rac2-vip.localdomain rac2-vip
VMware sometimes creates additional network adapters, which will prevent the clusterware from loading. Delete any additional adapters as follows. Open a command prompt on RAC1 and issue the following commands.
set devmgr_show_nonpresent_devices=1 devmgmt.msc
On the resulting 8220;Device Manager8221; screen, pick the 8220;View > Show hidden devices8221; menu option.

Now check for extra network adapters. You would expect two, but if there are more than this, uninstall the greyed out adapters.

Open the 8220;Network Connections8221; screen (Start > All Programs > Accessories > Communications > Network Connections). Rename the two connections to 8220;public8221; and 8220;private8221; respectively, making sure you apply the names to the appropriate connections.

Check that the network settings are correct for both connections.

The Clusterware installation is very sensitive, so make sure you read the Checking Network Requirements section of the documentation, and make any necessary changes.
In addition to the configuration mentioned above, the documentation suggests two more configuration changes that I did not find necessary on VMware Server. Even so, it is advisable to make the changes.
First, ensure the public interface is first in the bind order:
- Open the 8220;Network Connections8221; dialog by right-clicking on the 8220;My Network Places8221; icon and selecting the 8220;Properties8221; menu option.
- Select the 8220;Advanced > Advanced Settings8230;8221; menu option.
- On the 8220;Adapters and Bindings8221; tab, make sure the public interface is the first interface listed.
- Accept any modifications by clicking on the 8220;OK8221; button and exiting the 8220;Network Connections8221; dialog.
Second, disable Windows Media Sensing for TCP/IP:
- Backup the Windows registry.
- Run the Registry Editor (Regedt32.exe) and find the following key:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters
- Add the following registry value:
Value Name: DisableDHCPMediaSense Data Type: REG_DWORD -Boolean Value: 1
- This change will not take effect until the computer is restarted.
Next, install the VMware client tools.
Install VMware Client Tools
Login on the RAC1 virtual machine, then select the 8220;VM > Install VMware Tools8230;8221; option from the main VMware Server Console menu.

Click the 8220;Install8221; button on the subsequent screen.

Click the 8220;Next8221; button to continue.

Accept the 8220;Typical8221; option by clicking the 8220;Next8221; button.

Click the 8220;Install8221; button to continue.

Set the hardware acceleration when prompted by clicking the 8220;Yes8221; button and following the instructions on the subsequent screens.

Once the installatin is complete, click the 8220;Finish8221; button.

The VMware client tools are now installed.
Create Shared Disks
Shut down the RAC1 virtual machine and create a directory on the host system to hold the shared virtual disks.
# mkdir -p /u01/VM/shared
On the VMware Server Console, click the 8220;Edit virtual machine settings8221; button. On the 8220;Virtual Machine Settings8221; screen, click the 8220;+ Add8221; button.

Select the hardware type of 8220;Hard Disk8221; and click the 8220;Next8221; button.

Accept the 8220;Create a new virtual disk8221; option by clicking the 8220;Next8221; button.

Accept the 8220;SCSI8221; option by clicking the 8220;Next8221; button.

Set the disk size to 8220;10.08243; GB and uncheck the 8220;Allocate all disk space now8221; option, then click the 8220;Next8221; button.

Set the disk name to 8220;/u01/VM/shared/ocr.vmdk8221; and click the 8220;Advanced8221; button.

Set the virtual device node to 8220;SCSI 1:18243; and the mode to 8220;Independent8221; and 8220;Persistent8221;, then click the 8220;Finish8221; button.

Repeat the previous hard disk creation steps 4 more times, using the following values:
- File Name: /u01/VM/shared/votingdisk.vmdk
Virtual Device Node: SCSI 1:2
Mode: Independent and Persistent - File Name: /u01/VM/shared/asm1.vmdk
Virtual Device Node: SCSI 1:3
Mode: Independent and Persistent - File Name: /u01/VM/shared/asm2.vmdk
Virtual Device Node: SCSI 1:4
Mode: Independent and Persistent - File Name: /u01/VM/shared/asm3.vmdk
Virtual Device Node: SCSI 1:5
Mode: Independent and Persistent
At the end of this process, the virtual machine should look something like the picture below.

Edit the contents of the 8220;/u01/VM/RAC1/RAC1.vmx8221; file using a text editor, making sure the following entries are present. Some of the tries will already be present, some will not.
disk.locking = "FALSE" diskLib.dataCacheMaxSize = "0" diskLib.dataCacheMaxReadAheadSize = "0" diskLib.dataCacheMinReadAheadSize = "0" diskLib.dataCachePageSize = "4096" diskLib.maxUnsyncedWrites = "0" scsi1.present = "TRUE" scsi1.virtualDev = "lsilogic" scsi1.sharedBus = "VIRTUAL" scsi1:1.present = "TRUE" scsi1:1.mode = "independent-persistent" scsi1:1.fileName = "/u01/VM/shared/ocr.vmdk" scsi1:1.deviceType = "plainDisk" scsi1:1.redo = "" scsi1:2.present = "TRUE" scsi1:2.mode = "independent-persistent" scsi1:2.fileName = "/u01/VM/shared/votingdisk.vmdk" scsi1:2.deviceType = "plainDisk" scsi1:2.redo = "" scsi1:3.present = "TRUE" scsi1:3.mode = "independent-persistent" scsi1:3.fileName = "/u01/VM/shared/asm1.vmdk" scsi1:3.deviceType = "plainDisk" scsi1:3.redo = "" scsi1:4.present = "TRUE" scsi1:4.mode = "independent-persistent" scsi1:4.fileName = "/u01/VM/shared/asm2.vmdk" scsi1:4.deviceType = "plainDisk" scsi1:4.redo = "" scsi1:5.present = "TRUE" scsi1:5.mode = "independent-persistent" scsi1:5.fileName = "/u01/VM/shared/asm3.vmdk" scsi1:5.deviceType = "plainDisk" scsi1:5.redo = ""
Start the RAC1 virtual machine by clicking the 8220;Power on this virtual machine8221; button on the VMware Server Console. When the server has started, log in so you can partition the disks.
Prior to partitioning the disks on Windows Server 2003, you must enable disk automounting. I didn8217;t need to do this, but I guess it makes sense to do as you8217;re told. To enable automounting do the following command at the command prompt, then restart the server.
C:\> diskpart DISKPART> automount enable DISKPART> exit C:\>
When the server restarts, open the 8220;Computer Management8221; dialog (Start > All Programs > Administrative Tools > Computer Management) and click on the Disk Management tree node. This action should initiate the 8220;Initialize and Convert Disk Wizard8221;. Click the 8220;Next8221; button to continue.

Initialize all 5 disks by clicking the 8220;Next8221; button.

Don8217;t convert any of the disks. Make sure all 5 disks are unchecked, then 8220;Next8221; button.

Complete the process by clicking the 8220;Finish8221; button.

Right-click on 8220;Disk 18243; and select the 8220;New Partition8230;8221; option to start the 8220;New Partition Wizard8221;.

Click the 8220;Next8221; button to continue.

Select the 8220;Extended partition8221; option, then click the 8220;Next8221; button.

Accept the default partition size by clicking the 8220;Next8221; button.

Complete the partition by clicking the 8220;Finish8221; button.

The partition will now be displayed with a green bar. Right-click on the partition and select the 8220;New Logical Drive8221; option to restart the 8220;New Partition Wizard8221;.

Click the 8220;Next8221; button to continue.

Accept the 8220;Logical drive8221; option by clicking the 8220;Next8221; button.

Accept the default partition size by clicking the 8220;Next8221; button.

Select the 8220;Do not assign a drive letter or drive path8221; option, then click the 8220;Next8221; button.

Select the 8220;Do not format this partition8221; option, then click the 8220;Next8221; button.

Complete the logical drive by clicking the 8220;Finish8221; button.

The drive should now be displayed as a healthy drive with a blue bar.

Repeat the previous partitioning steps for the remaining 4 disks.
The shared disks are now configured.
Clone the Virtual Machine
The current version of VMware Server does not include an option to clone a virtual machine, but the following steps illustrate how this can be achieved manually.
Shut down the RAC1 virtual machine and copy the RAC1 virtual machine using the following command.
# cp -R /u01/VM/RAC1 /u01/VM/RAC2
Edit the contents of the 8220;/u01/VM/RAC2/RAC1.vmx8221; file, making the following change.
displayName = "RAC2"
Ignore discrepancies with the file names in the 8220;/u01/VM/RAC28243; directory. This does not affect the action of the virtual machine.
In the VMware Server Console, select the File > Open menu options and browse for the 8220;/u01/VM/RAC2/RAC1.vmx8221; file. Once opened, the RAC2 virtual machine is visible on the console. Start the RAC2 virtual machine by clicking the 8220;Power on this virtual machine8221; button and click the 8220;Create8221; button on the subsequent 8220;Question8221; screen.

Open the 8220;Network Connections8221; screen (Start > All Programs > Accessories > Communications > Network Connections). Amend the IP Addresses of both connections to the correct values for the RAC2 node.

The cloning process sometimes alters the network connection setup, so repeat the steps mentioned previously for removing extra network adapters and renaming the connections.
Open the 8220;System Properties8221; dialog (Start > Control Panel > System), click on the 8220;Computer Name8221; tab and click the 8220;Change8221; button. Enter the name 8220;rac28243; then click the 8220;OK8221; button.

Click all subsequent 8220;OK8221; buttons to exit the 8220;System Properties8221; dialog and restart the server when prompted.
Once the RAC2 virtual machine has restarted, start the RAC1 virtual machine. When both nodes have started, check they can both ping all the public and private IP addresses using the following commands.
ping -c 3 rac1 ping -c 3 rac1-priv ping -c 3 rac2 ping -c 3 rac2-priv
At this point the virtual IP addresses defined in the hosts file will not work, so don8217;t bother testing them.
It8217;s a good idea to take a snapshot of the virtual machines, so you can repeat the following stages if you run into any problems. To do this, shutdown both virtual machines and issue the following commands.
# cd /u01/VM # tar -cvf RAC-PreClusterware.tar RAC1 RAC2 shared # gzip RAC-PreClusterware.tar
The virtual machine setup is now complete.
Install the Clusterware Software
Start the RAC1 and RAC2 virtual machines. The Oracle Clusterware for Windows is very sensitive, so before you start, check the network connection setup on each machine again. Remove and extra network adapters, rename the connections appropriately and check the nodes ping correctly. Make sure your network configuration matches the Checking Network Requirements section of the documentation.
Start the Oracle installer on RAC1.

On the 8220;Welcome8221; screen, click the 8220;Next8221; button.

Accept the default inventory location by clicking the 8220;Next8221; button.

Enter the appropriate name and path for the Oracle Home and click the 8220;Next8221; button.

Wait while the prerequisite checks are done. If you have any failures correct them and retry the tests before clicking the 8220;Next8221; button.

The 8220;Specify Cluster Configuration8221; screen shows only the RAC1 node in the cluster. Click the 8220;Add8221; button to continue.

Enter the details for the RAC2 node and click the 8220;OK8221; button.

Click the 8220;Next8221; button to continue.

The 8220;Specific Network Interface Usage8221; screen defines how each network interface will be used. Highlight the 8220;public8221; interface and click the 8220;Edit8221; button.

Set the 8220;public8221; interface type to 8220;Public8221; and click the 8220;OK8221; button.

Leave the 8220;private8221; interface as private and click the 8220;Next8221; button.

On the 8220;Cluster Configuration Storage8221; screen, highlight disk 1 and click the 8220;Edit8221; button.

Select the 8220;Place OCR(Primary) on this Partition8221; option and click the 8220;OK8221; button.

Highlight disk 2 and click the 8220;Edit8221; button. Select the 8220;Place Voting Disk on this Partition8221; option and click the 8220;OK8221; button.

On the 8220;Cluster Configuration Storage8221; screen, click the 8220;Next8221; button and ignore the redundancy warnings by clicking the 8220;OK8221; button.

On the 8220;Summary8221; screen, click the 8220;Install8221; button to continue.

Wait while the installation takes place.

Wait while the configuration assistants run.

The VIPCA will fail, so click the 8220;OK8221; button on the resulting error screen.

Click the 8220;Next8221; button and accept the subsequent warning, then click the 8220;Exit8221; button to leave the installer.

On the RAC1 virtual machine, run the VIPCA manually by issuing the following commands in a command prompt.
cd c:\oracle\product\10.2.0\crs\bin vipca.bat
Click the 8220;Next8221; button on the VIPCA welcome screen.

Highlight the 8220;public8221; interface and click the 8220;Next8221; button.

Enter the vitual IP alias and address for each node. Once you enter the first alias, the remaining values should default automatically. Click the 8220;Next8221; button to continue.

Accept the summary information by clicking the 8220;Finish8221; button.

Wait until the configuration is complete, then click the 8220;OK8221; button.

Accept the VIPCA results by clicking the 8220;Exit8221; button.

The status of the finished cluster can be checked by running the cluvfy.bat script as shown below.
C:\oracle\product\10.2.0\crs\BIN>cluvfy.bat stage -post crsinst -n rac1,rac2 Performing post-checks for cluster services setup Checking node reachability... Node reachability check passed from node "rac1". Checking user equivalence... User equivalence check passed for user "Administrator". Checking Cluster manager integrity... Checking CSS daemon... Daemon status check passed for "CSS daemon". Cluster manager integrity check passed. Checking cluster integrity... Cluster integrity check passed Checking OCR integrity... Checking the absence of a non-clustered configuration... All nodes free of non-clustered, local-only configurations. Uniqueness check for OCR device passed. Checking the version of OCR... OCR of correct Version "2" exists. Checking data integrity of OCR... Data integrity check for OCR passed. OCR integrity check passed. Checking CRS integrity... Checking daemon liveness... Liveness check passed for "CRS daemon". Checking daemon liveness... Liveness check passed for "CSS daemon". Checking daemon liveness... Liveness check passed for "EVM daemon". Checking CRS health... CRS health check passed. CRS integrity check passed. Checking node application existence... Checking existence of VIP node application (required) Check passed. Checking existence of ONS node application (optional) Check passed. Checking existence of GSD node application (optional) Check passed. Post-check for cluster services setup was successful. C:\oracle\product\10.2.0\crs\BIN>
It8217;s a good idea to take a snapshot of the virtual machines, so you can repeat the following stages if you run into any problems. To do this, shutdown both virtual machines and issue the following commands.
# cd /u01/VM # tar -cvf RAC-PostClusterware.tar RAC1 RAC2 shared # gzip RAC-PostClusterware.tar
The clusterware installation is now complete.
Install the Database Software and Create an ASM Instance
Start the RAC1 and RAC2 virtual machines, login to RAC1 and start the Oracle installer.

On the 8220;Welcome8221; screen, click the 8220;Next8221; button.

Select the 8220;Enterprise Edition8221; option and click the 8220;Next8221; button.

Enter the name and path for the Oracle Home and click the 8220;Next8221; button.

Select the 8220;Cluster Installation8221; option and make sure both RAC nodes are selected, then click the 8220;Next8221; button.

Wait while the prerequisite checks are done. If you have any failures correct them and retry the tests before clicking the 8220;Next8221; button.

Select the 8220;Configure Automatic Storage Management (ASM)8221; option, enter the SYS password for the ASM instance, then click the 8220;Next8221; button.

Select the 8220;External8221; redundancy option (no mirroring) and click the 8220;Stamp Disks8230;8221; button.

Select the 8220;Add or change label8221; option and click the 8220;Next8221; button.

Highlight disks 3-5 and click the 8220;Next8221; button. Remember, disk0 is the OS, disk1 is the OCR location and disk2 is the voting disk.

Confirm your selection by clicking the 8220;Next8221; button.

Complete the disk stamp by clicking the 8220;Finish8221; button.

Select the candidate disks and click the 8220;Next8221; button.

On the 8220;Summary8221; screen, click the 8220;Install8221; button to continue.

Wait while the database software installs.

Once the installation is complete, wait while the configuration assistants run.

When the installation is complete, click the 8220;Exit8221; button to leave the installer.

It8217;s a good idea to take a snapshot of the virtual machines, so you can repeat the following stages if you run into any problems. To do this, shutdown both virtual machines and issue the following commands.
# cd /u01/VM # tar -cvf RAC-PostASM.tar RAC1 RAC2 shared # gzip RAC-PostASM.tar
The database software installation and ASM creation step is now complete.
Create a Database using the DBCA
Start the RAC1 and RAC2 virtual machines, login to RAC1 start the Database Configuration Assistant (Start > All Programs > Oracle 8211; db_1 > Configuration and Migration Tools > Database Configuration Assistant).
On the 8220;Welcome8221; screen, select the 8220;Oracle Real Application Clusters database8221; option and click the 8220;Next8221; button.

Select the 8220;Create a Database8221; option and click the 8220;Next8221; button.

Highlight both RAC nodes and click the 8220;Next8221; button.

Select the 8220;Custom Database8221; option and click the 8220;Next8221; button.

Enter the values 8220;RAC.WORLD8221; and 8220;RAC8221; for the Global Database Name and SID Prefix respectively, then click the 8220;Next8221; button.

Accept the management options by clicking the 8220;Next8221; button. If you are attempting the installation on a server with limited memory, you may prefer not to configure Enterprise Manager at this time.

Enter database passwords then click the 8220;Next8221; button.

Select the 8220;Automatic Storage Management (ASM)8221; option, then click the 8220;Next8221; button.

Select the 8220;DATA8221; disk group, then click the 8220;Next8221; button.

Accept the 8220;Use Oracle-Managed Files8221; database location by the 8220;Next8221; button.

Check both the 8220;Specify Flash Recovery Area8221; and 8220;Enable Archiving8221; options. Enter 8220;+DATA8221; as the Flash Recovery Area, then click the 8220;Next8221; button.

Uncheck all but the 8220;Enterprise Manager Repository8221; option, then click the 8220;Standard Database Components8230;8221; button.

Uncheck all but the 8220;Oracle JVM8221; option, then click the 8220;OK8221; button, followed by the 8220;Next8221; button on the previous screen. If you are attempting the installation on a server with limited memory, you may prefer not to install the JVM at this time.

Accept the current database services configuration by clicking the 8220;Next8221; button.

Select the 8220;Custom8221; memory management option and accept the default settings by clicking the 8220;Next8221; button.

Accept the database storage settings by clicking the 8220;Next8221; button.

Accept the database creation options by clicking the 8220;Finish8221; button.

Accept the summary information by clicking the 8220;OK8221; button.

Wait while the database is created.

Once the database creation is complete you are presented with the following screen. Make a note of the information on the screen and click the 8220;Exit8221; button.

The RAC database creation is now complete.
TNS Configuration
Once the installation is complete, the 8220;%ORACLE_HOME%\network\admin\listener.ora8221; file on each RAC node will contain entries similar to the following.
LISTENER_RAC1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
(ADDRESS = (PROTOCOL = TCP)(HOST = rac1-vip.localdomain)(PORT = 1521)(IP = FIRST))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.101)(PORT = 1521)(IP = FIRST))
)
)
SID_LIST_LISTENER_RAC1 =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
)
)
The 8220;%ORACLE_HOME%\network\admin\tnsnames.ora8221; file on each RAC node will contain entries similar to the following.
RAC =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac1-vip.localdomain)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = rac2-vip.localdomain)(PORT = 1521))
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = RAC.WORLD)
)
)
LISTENERS_RAC =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac1-vip.localdomain)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = rac2-vip.localdomain)(PORT = 1521))
)
RAC2 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac2-vip.localdomain)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = RAC.WORLD)
(INSTANCE_NAME = RAC2)
)
)
RAC1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac1-vip.localdomain)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = RAC.WORLD)
(INSTANCE_NAME = RAC1)
)
)
This configuration allows direct connections to specific instance, or using a load balanced connection to the main service.
C:\>sqlplus / as sysdba SQL*Plus: Release 10.2.0.1.0 - Production on Thu Apr 20 16:58:37 2006 Copyright (c) 1982, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With the Partitioning, Real Application Clusters, OLAP and Data Mining options SQL> CONN sys/password@rac1 AS SYSDBA Connected. SQL> SELECT instance_name, host_name FROM v$instance; INSTANCE_NAME HOST_NAME ---------------- ---------------------------------------------------------------- rac1 RAC1 SQL> CONN sys/password@rac2 AS SYSDBA Connected. SQL> SELECT instance_name, host_name FROM v$instance; INSTANCE_NAME HOST_NAME ---------------- ---------------------------------------------------------------- rac2 RAC2 SQL> CONN sys/password@rac AS SYSDBA Connected. SQL> SELECT instance_name, host_name FROM v$instance; INSTANCE_NAME HOST_NAME ---------------- ---------------------------------------------------------------- rac2 RAC2 SQL>
Check the Status of the RAC
There are several ways to check the status of the RAC. The srvctl utility shows the current configuration and status of the RAC database.
C:\>srvctl config database -d RAC rac1 RAC1 C:\oracle\product\10.2.0\db_1 rac2 RAC2 C:\oracle\product\10.2.0\db_1 C:\> C:\>srvctl status database -d RAC Instance RAC1 is running on node rac1 Instance RAC2 is running on node rac2 C:\>
The V$ACTIVE_INSTANCES view can also display the current status of the instances.
C:\>sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Thu Apr 20 16:58:37 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
SQL> SELECT * FROM v$active_instances;
INST_NUMBER INST_NAME
----------- ------------------------------------------------------------
1 RAC1:rac1
2 RAC2:rac2
SQL>
Finally, the GV$ allow you to display global information for the whole RAC.
SQL> SELECT inst_id, username, sid, serial# FROM gv$session WHERE username IS NOT NULL;
INST_ID USERNAME SID SERIAL#
---------- ------------------------------ ---------- ----------
2 SYSMAN 126 12
2 DBSNMP 127 41
2 SYS 128 13
2 SYS 130 339
2 SYS 131 2
2 SYS 132 2
2 SYS 133 3
2 DBSNMP 135 43
2 SYS 153 13
1 SYSMAN 119 36
1 SYSMAN 120 7
INST_ID USERNAME SID SERIAL#
---------- ------------------------------ ---------- ----------
1 SYSMAN 121 25
1 SYS 122 1
1 SYS 123 3
1 SYS 124 4
1 SYSMAN 125 12
1 SYSMAN 130 5
1 SYSMAN 132 3
1 DBSNMP 133 1
1 DBSNMP 137 11
1 SYS 143 126
1 SYS 152 30
22 rows selected.
SQL>
If you have configured Enterprise Manager, it can be used to view the configuration and current status of the database.

Oracle Application Server 10g (9.0.4) Installation On Red Hat Enterprise Linux 3 (RHEL3)
In this article I8217;ll describe the installation of Oracle Application Server 10g (9.0.4), Oracle8217;s J2EE Application Server, on Red Hat Enterprise Linux 3 (RHEL3). The article assumes you8217;ve performed the standard advanced server installation including the development tools.
- Download Software
- Unpack Files
- Hosts File
- Set Kernel Parameters
- Setup
- Installation
- Post Installation
Download Software
Download the following software:
Unpack Files
First unzip the files:
gunzip ias904_linux_disk1.cpio.gz gunzip ias904_linux_disk2.cpio.gz gunzip ias904_linux_disk3.cpio.gz gunzip ias904_linux_disk4.cpio.gz
Next unpack the contents of the files:
cpio -idmv < ias904_linux_disk1.cpio cpio -idmv < ias904_linux_disk2.cpio cpio -idmv < ias904_linux_disk3.cpio cpio -idmv < ias904_linux_disk4.cpio
You should now have four directories (Disk1, Disk2, Disk3 & Disk4) containing installation files.
Hosts File
The /etc/hosts file must contain a fully qualified name for the server:
<IP-address> <fully-qualified-machine-name> <machine-name>
Set Kernel Parameters
Add the following lines to the /etc/sysctl.conf file:
kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 142 # semaphores: semmsl, semmns, semopm, semmni kernel.sem = 256 32000 100 142 fs.file-max = 131072 net.ipv4.ip_local_port_range = 20000 65000 kernel.msgmni = 2878 kernel.msgmax = 8192 kernel.msgmnb = 65535
Run the following command to change the current kernel parameters:
/sbin/sysctl -p
Add the following lines to the /etc/security/limits.conf file:
* soft nproc 16384 * hard nproc 16384 * soft nofile 65536 * hard nofile 65536
Add the following line to the /etc/pam.d/login file, if it does not already exist:
session required pam_limits.so
Setup
Install the following packages:
# From RedHat AS3 Disk 2
cd /mnt/cdrom/RedHat/RPMS
rpm -Uvh setarch-1.3-1.i386.rpm
rpm -Uvh sysstat-4.0.7-4.i386.rpm
# From RedHat AS3 Disk 3
cd /mnt/cdrom/RedHat/RPMS
rpm -Uvh openmotif21-2.1.30-8.i386.rpm
rpm -Uvh ORBit-0.5.17-10.4.i386.rpm
rpm -Uvh libpng10-1.0.13-8.i386.rpm
rpm -Uvh gnome-libs-1.4.1.2.90-34.1.i386.rpm
rpm -Uvh compat-glibc-7.x-2.2.4.32.5.i386.rpm
compat-gcc-7.3-2.96.122.i386.rpm
compat-gcc-c++-7.3-2.96.122.i386.rpm
compat-libstdc++-7.3-2.96.122.i386.rpm
compat-libstdc++-devel-7.3-2.96.122.i386.rpm
Put gcc296 and g++296 first in $PATH variable by creating the following symbolic links:
mv /usr/bin/gcc /usr/bin/gcc323 mv /usr/bin/g++ /usr/bin/g++323 ln -s /usr/bin/gcc296 /usr/bin/gcc ln -s /usr/bin/g++296 /usr/bin/g++
Install the 3006854 patch:
unzip p3006854_9204_LINUX.zip cd 3006854 sh rhel3_pre_install.sh
Create the new groups and users:
groupadd oinstall groupadd dba groupadd oper useradd -g oinstall -G dba -s /bin/ksh oracle passwd oracle
Create the directories in which the Oracle software will be installed:
mkdir -p /u01/app/oracle/product/904_j2ee chown -R oracle.oinstall /u01
Login as root and issue the following command:
xhost +<machine-name>
Login as the oracle user and add the following lines at the end of the .profile file:
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/904_j2ee; export ORACLE_HOME
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:/opt/IBMJava2-131/bin:$ORACLE_HOME/bin:$PATH; export PATH
PATH=$PATH:$ORACLE_HOME/dcm/bin:$ORACLE_HOME/opmn/bin; export PATH
PATH=$PATH:$ORACLE_HOME/Apache/Apache/bin; export PATH
#LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
#CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 16384
else
ulimit -u 16384 -n 16384
fi
fi
PS1="`hostname`> "
set -o emacs
set filec
Installation
Log into the oracle user. If you are using X emulation then set the DISPLAY environmental variable:
DISPLAY=<machine-name>:0.0; export DISPLAY
Start the Oracle Universal Installer (OUI) by issuing the following command in the Disk1 directory:
./runInstaller
During the installation enter the appropriate ORACLE_HOME and name then continue with the installation.
Post Installation
With the installation complete you can perform any administration tasks using Enterprise Manager:
- Connect to the Enterprise Manager Website (http://<fully-qualified-machine-name>:1810) using the username 8220;ias_admin8221; and the password you assigned during the installation. If EM is not available start it with the 8220;emctl start iasconsole8221; command.
- Stop enterprise manager by issuing the 8220;emctl stop iasconsole8221; command.
Oracle Application Server 10g (9.0.4) Installation On RedHat Advanced Server 2.1
In this article I8217;ll describe the installation of Oracle Application Server 10g (9.0.4), Oracle8217;s J2EE Application Server, on RedHat Advanced Server 2.1. The article assumes you8217;ve performed the standard advanced server installation including the development tools. The base release of the kernel does not support Oracle AS 10g so you must run up2date before proceeding.
- Download Software
- Unpack Files
- Hosts File
- Set Kernel Parameters
- Setup
- Installation
- Post Installation
Download Software
Download the following software:
Unpack Files
First unzip the files:
gunzip ias904_linux_disk1.cpio.gz gunzip ias904_linux_disk2.cpio.gz gunzip ias904_linux_disk3.cpio.gz gunzip ias904_linux_disk4.cpio.gz
Next unpack the contents of the files:
cpio -idmv < ias904_linux_disk1.cpio cpio -idmv < ias904_linux_disk2.cpio cpio -idmv < ias904_linux_disk3.cpio cpio -idmv < ias904_linux_disk4.cpio
You should now have four directories (Disk1, Disk2, Disk3 & Disk4) containing installation files.
Hosts File
The /etc/hosts file must contain a fully qualified name for the server:
<IP-address> <fully-qualified-machine-name> <machine-name>
Set Kernel Parameters
Add the following lines to the /etc/sysctl.conf file:
kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 142 # semaphores: semmsl, semmns, semopm, semmni kernel.sem = 256 32000 100 142 fs.file-max = 131072 net.ipv4.ip_local_port_range = 20000 65000 kernel.msgmni = 2878 kernel.msgmax = 8192 kernel.msgmnb = 65535
Run the following command to change the current kernel parameters:
/sbin/sysctl -p
Add the following lines to the /etc/security/limits.conf file:
* soft nproc 16384 * hard nproc 16384 * soft nofile 65536 * hard nofile 65536
Add the following line to the /etc/pam.d/login file, if it does not already exist:
session required pam_limits.so
Setup
Install the following packages:
# From RedHat AS2.1 Disk 1 cd /mnt/cdrom/RedHat/RPMS rpm -Uvh openmotif-2.1.30-11.i386.rpm # From RedHat AS2.1 Disk 2 cd /mnt/cdrom/RedHat/RPMS rpm -Uvh pdksh-5.2.14-13.i386.rpm rpm -Uhh compat-glibc-6.2-2.1.3.2.i386.rpm
Create the new groups and users:
groupadd oinstall groupadd dba groupadd oper useradd -g oinstall -G dba -s /bin/ksh oracle passwd oracle
Create the directories in which the Oracle software will be installed:
mkdir -p /u01/app/oracle/product/904_j2ee chown -R oracle.oinstall /u01
Login as root and issue the following command:
xhost +<machine-name>
Login as the oracle user and add the following lines at the end of the .profile file:
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/904_j2ee; export ORACLE_HOME
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:/opt/IBMJava2-131/bin:$ORACLE_HOME/bin:$PATH; export PATH
PATH=$PATH:$ORACLE_HOME/dcm/bin:$ORACLE_HOME/opmn/bin; export PATH
PATH=$PATH:$ORACLE_HOME/Apache/Apache/bin; export PATH
#LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
#CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 16384
else
ulimit -u 16384 -n 16384
fi
fi
PS1="`hostname`> "
set -o emacs
set filec
Installation
Log into the oracle user. If you are using X emulation then set the DISPLAY environmental variable:
DISPLAY=<machine-name>:0.0; export DISPLAY
Start the Oracle Universal Installer (OUI) by issuing the following command in the Disk1 directory:
./runInstaller
During the installation enter the appropriate ORACLE_HOME and name then continue with the installation.
Post Installation
With the installation complete you can perform any administration tasks using Enterprise Manager:
- Connect to the Enterprise Manager Website (http://<fully-qualified-machine-name>:1810) using the username 8220;ias_admin8221; and the password you assigned during the installation. If EM is not available start it with the 8220;emctl start iasconsole8221; command.
- Stop enterprise manager by issuing the 8220;emctl stop iasconsole8221; command.
Oracle Application Server 10g (9.0.4) Portal Installation On RedHat Advanced Server 2.1
In this article I8217;ll describe the installation of Oracle Application Server 10g (9.0.4) Portal, Oracle8217;s standards-based portal development and deployment solution, on RedHat Advanced Server 2.1. The article assumes you8217;ve performed the standard advanced server installation including the development tools. The base release of the kernel does not support Oracle AS 10g so you must run up2date before proceeding.
- Download Software
- Unpack Files
- Hosts File
- Set Kernel Parameters
- Setup
- Infrastructure Installation
- Post Infrastructure Installation
- Portal Installation
- Post Portal Installation
- Portal Usage
- Starting and Stopping Services
Download Software
Download the following software:
Unpack Files
First unzip the files:
gunzip ias904_linux_disk1.cpio.gz gunzip ias904_linux_disk2.cpio.gz gunzip ias904_linux_disk3.cpio.gz gunzip ias904_linux_disk4.cpio.gz
Next unpack the contents of the files:
cpio -idmv < ias904_linux_disk1.cpio cpio -idmv < ias904_linux_disk2.cpio cpio -idmv < ias904_linux_disk3.cpio cpio -idmv < ias904_linux_disk4.cpio
You should now have four directories (Disk1, Disk2, Disk3 & Disk4) containing installation files.
Hosts File
The /etc/hosts file must contain a fully qualified name for the server:
<IP-address> <fully-qualified-machine-name> <machine-name>
Set Kernel Parameters
Add the following lines to the /etc/sysctl.conf file:
kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 142 # semaphores: semmsl, semmns, semopm, semmni kernel.sem = 256 32000 100 142 fs.file-max = 131072 net.ipv4.ip_local_port_range = 20000 65000 kernel.msgmni = 2878 kernel.msgmax = 8192 kernel.msgmnb = 65535
Run the following command to change the current kernel parameters:
/sbin/sysctl -p
Add the following lines to the /etc/security/limits.conf file:
* soft nproc 16384 * hard nproc 16384 * soft nofile 65536 * hard nofile 65536
Add the following line to the /etc/pam.d/login file, if it does not already exist:
session required pam_limits.so
Setup
Install the following packages:
# From RedHat AS2.1 Disk 1 cd /mnt/cdrom/RedHat/RPMS rpm -Uvh openmotif-2.1.30-11.i386.rpm # From RedHat AS2.1 Disk 2 cd /mnt/cdrom/RedHat/RPMS rpm -Uvh pdksh-5.2.14-13.i386.rpm rpm -Uhh compat-glibc-6.2-2.1.3.2.i386.rpm
Create the new groups and users:
groupadd oinstall groupadd dba groupadd oper useradd -g oinstall -G dba -s /bin/ksh oracle passwd oracle
Create the directories in which the Oracle software will be installed:
mkdir -p /u01/app/oracle/product/904_infra mkdir -p /u01/app/oracle/product/904_portal chown -R oracle.oinstall /u01
Login as root and issue the following command:
xhost +<machine-name>
Login as the oracle user and add the following lines at the end of the .profile file:
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/904_infra; export ORACLE_HOME
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:/opt/IBMJava2-131/bin:$ORACLE_HOME/bin:$PATH; export PATH
PATH=$PATH:$ORACLE_HOME/dcm/bin:$ORACLE_HOME/opmn/bin; export PATH
PATH=$PATH:$ORACLE_HOME/Apache/Apache/bin; export PATH
#LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
#CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 16384
else
ulimit -u 16384 -n 16384
fi
fi
PS1="`hostname`> "
set -o emacs
set filec
Infrastructure Installation
Log into the oracle user. If you are using X emulation then set the DISPLAY environmental variable:
DISPLAY=<machine-name>:0.0; export DISPLAY
Start the Oracle Universal Installer (OUI) by issuing the following command in the Disk1 directory:
./runInstaller
During the installation select the appropriate ORACLE_HOME for infrastructure (904_infra) and select the infrastructure installation.
Post Infrastructure Installation
On completion of the infrastructure installation connect to the Enterprise Manager Website (http://<fully-qualified-machine-name>:1810) using the username 8220;ias_admin8221; and the password you assigned during the installation. If EM is not available start it with the 8220;emctl start iasconsole8221; command. Check that all the components are started before proceeding to the portal installation.
Portal Installation
Log into the oracle user. If you are using X emulation then set the DISPLAY environmental variable:
DISPLAY=<machine-name>:0.0; export DISPLAY
Start the Oracle Universal Installer (OUI) by issuing the following command in the Disk1 directory:
./runInstaller
During the installation select the appropriate ORACLE_HOME for portal (904_portal) and select the application server installation, with the portal and wireless option.
Post Portal Installation
On completion of the portal installation connect to enterprise manager and check the portal components are all started before you proceed to test portal.
Portal Usage
With all the services running you can start using portal at the following URL:
http://<fully-qualified-machine-name>:7778/pls/portal
The port number for portal can vary depending on the installation but it is recorded in the 8220;904_portal/Apache/Apache/setupinfo.txt8221; file.
Once at this page you can login using either 8220;portal8221;, the portal DBA user, or 8220;portal_admin8221;, the portal administrator user. The passwords will be the value assigned during the installation.
Starting and Stopping Services
It is recommended that the services are always started and stopped using Enterprise Manager Website. If this cannot be done for some reason they can be started and stopped manually as follows:
# Start everything dbstart lsnrctl start agentctl start oidmon start oidctl server=oidldapd instance=1 configset=1 start dcmctl start -cl emctl start iasconsole # Stop everything emctl stop iasconsole dcmctl shutdown oidctl server=oidldapd instance=1 configset=1 stop oidmon stop agentctl stop lsnrctl stop dbshut
Oracle Application Server 10g (9.0.4) Portal Installation On RedHat Advanced Server 3.0
In this article I8217;ll describe the installation of Oracle Application Server 10g (9.0.4) Portal, Oracle8217;s standards-based portal development and deployment solution, on RedHat Advanced Server 3.0. The article assumes you8217;ve performed the standard advanced server installation including the development tools.
- Download Software
- Unpack Files
- Hosts File
- Set Kernel Parameters
- Setup
- Infrastructure Installation
- Post Infrastructure Installation
- Portal Installation
- Post Portal Installation
- Portal Usage
- Starting and Stopping Services
Download Software
Download the following software:
Unpack Files
First unzip the files:
gunzip ias904_linux_disk1.cpio.gz gunzip ias904_linux_disk2.cpio.gz gunzip ias904_linux_disk3.cpio.gz gunzip ias904_linux_disk4.cpio.gz
Next unpack the contents of the files:
cpio -idmv < ias904_linux_disk1.cpio cpio -idmv < ias904_linux_disk2.cpio cpio -idmv < ias904_linux_disk3.cpio cpio -idmv < ias904_linux_disk4.cpio
You should now have four directories (Disk1, Disk2, Disk3 & Disk4) containing installation files.
Hosts File
The /etc/hosts file must contain a fully qualified name for the server:
<IP-address> <fully-qualified-machine-name> <machine-name>
Set Kernel Parameters
Add the following lines to the /etc/sysctl.conf file:
kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 142 # semaphores: semmsl, semmns, semopm, semmni kernel.sem = 256 32000 100 142 fs.file-max = 131072 net.ipv4.ip_local_port_range = 20000 65000 kernel.msgmni = 2878 kernel.msgmax = 8192 kernel.msgmnb = 65535
Run the following command to change the current kernel parameters:
/sbin/sysctl -p
Add the following lines to the /etc/security/limits.conf file:
* soft nproc 16384 * hard nproc 16384 * soft nofile 65536 * hard nofile 65536
Add the following line to the /etc/pam.d/login file, if it does not already exist:
session required pam_limits.so
Setup
Install the following packages:
# From RedHat AS3 Disk 2
cd /mnt/cdrom/RedHat/RPMS
rpm -Uvh setarch-1.3-1.i386.rpm
rpm -Uvh sysstat-4.0.7-4.i386.rpm
# From RedHat AS3 Disk 3
cd /mnt/cdrom/RedHat/RPMS
rpm -Uvh openmotif21-2.1.30-8.i386.rpm
rpm -Uvh ORBit-0.5.17-10.4.i386.rpm
rpm -Uvh libpng10-1.0.13-8.i386.rpm
rpm -Uvh gnome-libs-1.4.1.2.90-34.1.i386.rpm
rpm -Uvh compat-glibc-7.x-2.2.4.32.5.i386.rpm
compat-gcc-7.3-2.96.122.i386.rpm
compat-gcc-c++-7.3-2.96.122.i386.rpm
compat-libstdc++-7.3-2.96.122.i386.rpm
compat-libstdc++-devel-7.3-2.96.122.i386.rpm
Put gcc296 and g++296 first in $PATH variable by creating the following symbolic links:
mv /usr/bin/gcc /usr/bin/gcc323 mv /usr/bin/g++ /usr/bin/g++323 ln -s /usr/bin/gcc296 /usr/bin/gcc ln -s /usr/bin/g++296 /usr/bin/g++
Install the 3006854 patch:
unzip p3006854_9204_LINUX.zip cd 3006854 sh rhel3_pre_install.sh
Create the new groups and users:
groupadd oinstall groupadd dba groupadd oper useradd -g oinstall -G dba -s /bin/ksh oracle passwd oracle
Create the directories in which the Oracle software will be installed:
mkdir -p /u01/app/oracle/product/904_infra mkdir -p /u01/app/oracle/product/904_portal chown -R oracle.oinstall /u01
Login as root and issue the following command:
xhost +<machine-name>
Login as the oracle user and add the following lines at the end of the .profile file:
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/904_infra; export ORACLE_HOME
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:/opt/IBMJava2-131/bin:$ORACLE_HOME/bin:$PATH; export PATH
PATH=$PATH:$ORACLE_HOME/dcm/bin:$ORACLE_HOME/opmn/bin; export PATH
PATH=$PATH:$ORACLE_HOME/Apache/Apache/bin; export PATH
#LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
#CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 16384
else
ulimit -u 16384 -n 16384
fi
fi
PS1="`hostname`> "
set -o emacs
set filec
Infrastructure Installation
Log into the oracle user. If you are using X emulation then set the DISPLAY environmental variable:
DISPLAY=<machine-name>:0.0; export DISPLAY
Start the Oracle Universal Installer (OUI) by issuing the following command in the Disk1 directory:
./runInstaller
During the installation select the appropriate ORACLE_HOME for infrastructure (904_infra) and select the infrastructure installation.
Post Infrastructure Installation
On completion of the infrastructure installation connect to the Enterprise Manager Website (http://<fully-qualified-machine-name>:1810) using the username 8220;ias_admin8221; and the password you assigned during the installation. If EM is not available start it with the 8220;emctl start iasconsole8221; command. Check that all the components are started before proceeding to the portal installation.
Portal Installation
Log into the oracle user. If you are using X emulation then set the DISPLAY environmental variable:
DISPLAY=<machine-name>:0.0; export DISPLAY
Start the Oracle Universal Installer (OUI) by issuing the following command in the Disk1 directory:
./runInstaller
During the installation select the appropriate ORACLE_HOME for portal (904_portal) and select the application server installation, with the portal and wireless option.
Post Portal Installation
On completion of the portal installation connect to enterprise manager and check the portal components are all started before you proceed to test portal.
Portal Usage
With all the services running you can start using portal at the following URL:
http://<fully-qualified-machine-name>:7778/pls/portal
The port number for portal can vary depending on the installation but it is recorded in the 8220;904_portal/Apache/Apache/setupinfo.txt8221; file.
Once at this page you can login using either 8220;portal8221;, the portal DBA user, or 8220;portal_admin8221;, the portal administrator user. The passwords will be the value assigned during the installation.
Starting and Stopping Services
It is recommended that the services are always started and stopped using Enterprise Manager Website. If this cannot be done for some reason they can be started and stopped manually as follows:
# Start everything dbstart lsnrctl start agentctl start oidmon start oidctl server=oidldapd instance=1 configset=1 start dcmctl start -cl emctl start iasconsole # Stop everything emctl stop iasconsole dcmctl shutdown oidctl server=oidldapd instance=1 configset=1 stop oidmon stop agentctl stop lsnrctl stop dbshut
