11g RAC on win 2003

  • Upload
    dm

  • View
    229

  • Download
    0

Embed Size (px)

Citation preview

  • 7/31/2019 11g RAC on win 2003

    1/78

    o Homeo Articleso Scriptso Forumso Blogo Certificationo Misco Searcho Abouto Printer Friendly

    Oracle 8i|Oracle 9i|Oracle 10g|Oracle 11g|Oracle 12c|Miscellaneous|PL/SQL|SQL|Oracle RAC|Oracle Apps|Linux

    HomeArticles11g Here

    Oracle 11g RAC On Windows 2003 Using

    VMware Server

    This article describes the installation of Oracle 11g release 1 (11.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

    http://www.oracle-base.com/index.phphttp://www.oracle-base.com/index.phphttp://www.oracle-base.com/articles/articles.phphttp://www.oracle-base.com/articles/articles.phphttp://www.oracle-base.com/dba/scripts.phphttp://www.oracle-base.com/dba/scripts.phphttp://www.oracle-base.com/forums/http://www.oracle-base.com/forums/http://www.oracle-base.com/blog/http://www.oracle-base.com/blog/http://www.oracle-base.com/misc/ocp-certification.phphttp://www.oracle-base.com/misc/ocp-certification.phphttp://www.oracle-base.com/misc/miscellaneous.phphttp://www.oracle-base.com/misc/miscellaneous.phphttp://www.oracle-base.com/searchhttp://www.oracle-base.com/searchhttp://www.oracle-base.com/misc/site-info.phphttp://www.oracle-base.com/misc/site-info.phphttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php?display_type=printablehttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php?display_type=printablehttp://www.oracle-base.com/articles/8i/articles-8i.phphttp://www.oracle-base.com/articles/8i/articles-8i.phphttp://www.oracle-base.com/articles/9i/articles-9i.phphttp://www.oracle-base.com/articles/9i/articles-9i.phphttp://www.oracle-base.com/articles/9i/articles-9i.phphttp://www.oracle-base.com/articles/10g/articles-10g.phphttp://www.oracle-base.com/articles/10g/articles-10g.phphttp://www.oracle-base.com/articles/10g/articles-10g.phphttp://www.oracle-base.com/articles/11g/articles-11g.phphttp://www.oracle-base.com/articles/11g/articles-11g.phphttp://www.oracle-base.com/articles/11g/articles-11g.phphttp://www.oracle-base.com/articles/12c/articles-12c.phphttp://www.oracle-base.com/articles/12c/articles-12c.phphttp://www.oracle-base.com/articles/12c/articles-12c.phphttp://www.oracle-base.com/articles/misc/articles-misc.phphttp://www.oracle-base.com/articles/misc/articles-misc.phphttp://www.oracle-base.com/articles/misc/articles-misc.phphttp://www.oracle-base.com/articles/plsql/articles-plsql.phphttp://www.oracle-base.com/articles/plsql/articles-plsql.phphttp://www.oracle-base.com/articles/plsql/articles-plsql.phphttp://www.oracle-base.com/articles/sql/articles-sql.phphttp://www.oracle-base.com/articles/sql/articles-sql.phphttp://www.oracle-base.com/articles/sql/articles-sql.phphttp://www.oracle-base.com/articles/rac/articles-rac.phphttp://www.oracle-base.com/articles/rac/articles-rac.phphttp://www.oracle-base.com/articles/apps/articles-apps.phphttp://www.oracle-base.com/articles/apps/articles-apps.phphttp://www.oracle-base.com/articles/apps/articles-apps.phphttp://www.oracle-base.com/articles/linux/articles-linux.phphttp://www.oracle-base.com/articles/linux/articles-linux.phphttp://www.oracle-base.com/articles/linux/articles-linux.phphttp://www.oracle-base.com/http://www.oracle-base.com/http://www.oracle-base.com/articleshttp://www.oracle-base.com/articleshttp://www.oracle-base.com/articleshttp://www.oracle-base.com/articles/11ghttp://www.oracle-base.com/articles/11ghttp://www.oracle-base.com/articles/11ghttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#introductionhttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#introductionhttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#download_softwarehttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#download_softwarehttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#vmware_server_installationhttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#vmware_server_installationhttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#vm_setuphttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#vm_setuphttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#guest_os_installationhttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#guest_os_installationhttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#oracle_installation_prerequisiteshttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#oracle_installation_prerequisiteshttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#install_vmware_client_toolshttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#install_vmware_client_toolshttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#create_shared_diskshttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#create_shared_diskshttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#clone_the_vmhttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#clone_the_vmhttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#install_clusterwarehttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#install_clusterwarehttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#install_db_create_asmhttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#install_db_create_asmhttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#create_db_using_dbcahttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#create_db_using_dbcahttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#tns_confighttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#tns_confighttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#check_status_of_rachttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#check_status_of_rachttp://www.oracle-base.com/index.phphttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#check_status_of_rachttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#tns_confighttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#create_db_using_dbcahttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#install_db_create_asmhttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#install_clusterwarehttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#clone_the_vmhttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#create_shared_diskshttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#install_vmware_client_toolshttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#oracle_installation_prerequisiteshttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#guest_os_installationhttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#vm_setuphttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#vmware_server_installationhttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#download_softwarehttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php#introductionhttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.phphttp://www.oracle-base.com/articles/11ghttp://www.oracle-base.com/articleshttp://www.oracle-base.com/http://www.oracle-base.com/articles/linux/articles-linux.phphttp://www.oracle-base.com/articles/apps/articles-apps.phphttp://www.oracle-base.com/articles/rac/articles-rac.phphttp://www.oracle-base.com/articles/sql/articles-sql.phphttp://www.oracle-base.com/articles/plsql/articles-plsql.phphttp://www.oracle-base.com/articles/misc/articles-misc.phphttp://www.oracle-base.com/articles/12c/articles-12c.phphttp://www.oracle-base.com/articles/11g/articles-11g.phphttp://www.oracle-base.com/articles/10g/articles-10g.phphttp://www.oracle-base.com/articles/9i/articles-9i.phphttp://www.oracle-base.com/articles/8i/articles-8i.phphttp://www.oracle-base.com/articles/11g/oracle-db-11gr1-rac-installation-on-windows-2003-using-vmware.php?display_type=printablehttp://www.oracle-base.com/misc/site-info.phphttp://www.oracle-base.com/searchhttp://www.oracle-base.com/misc/miscellaneous.phphttp://www.oracle-base.com/misc/ocp-certification.phphttp://www.oracle-base.com/blog/http://www.oracle-base.com/forums/http://www.oracle-base.com/dba/scripts.phphttp://www.oracle-base.com/articles/articles.phphttp://www.oracle-base.com/index.php
  • 7/31/2019 11g RAC on win 2003

    2/78

    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 bya 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 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 upshared 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, twosets of Oracle Clusterware, two ASM instances and two Database instances all on asingle 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 "Normal" 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. Thismakes 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. It's simply to allowyou to get used to installing and using RAC.

    Download Software

    Download the following software.

    VMware Server Oracle 11g Release 1 (11.1) CRS and DB software

    VMware Server Installation

    For this article, I used CentOS 5 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 asthe root user.

    # rpm -Uvh VMware-server-*.rpmPreparing... ###########################################[100%]

    http://www.vmware.com/download/server/http://www.vmware.com/download/server/http://www.oracle.com/technology/software/products/database/oracle11g/111060_linuxsoft.htmlhttp://www.oracle.com/technology/software/products/database/oracle11g/111060_linuxsoft.htmlhttp://www.oracle.com/technology/software/products/database/oracle11g/111060_linuxsoft.htmlhttp://www.vmware.com/download/server/
  • 7/31/2019 11g RAC on win 2003

    3/78

    1:VMware-server ###########################################[100%]#

    Then finish the configuration by running the vmware-config.pl script as the root user. Most ofthe questions can be answered with the default response by pressing the return key. The output

    below shows my responses to the questions.

    # vmware-config.plMaking 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 runningkernel.

    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]

  • 7/31/2019 11g RAC on win 2003

    4/78

    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 runningkernel.

    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 virtualmachines? This will be done by setting new permissions on all files found inthe "/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 ]

  • 7/31/2019 11g RAC on win 2003

    5/78

    The configuration of VMware Server e.x.p build-22874 for Linux for thisrunningkernel completed successfully.

    #

    The VMware Server Console is started by issuing the command "vmware" at the command

    prompt, or by selecting it from the "System Tools" menu.

    On the "Connect to Host" dialog, accept the "Local host" option by clicking the "Connect"button.

  • 7/31/2019 11g RAC on win 2003

    6/78

    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 "Create a new virtual machine" button to start the "New Virtual Machine Wizard".

    Click the "Next" button onthe welcome page.

  • 7/31/2019 11g RAC on win 2003

    7/78

    Select the "Custom" virtual machine configuration and click the "Next" button.

  • 7/31/2019 11g RAC on win 2003

    8/78

    Select the "Windows" guest operating system option, and set the version to "Windows Server

    2003 Standard Edition", then click the "Next" button.

    Enter the name "RAC1" and the location should default to "/u01/VM/RAC1", then click the

    "Next" button.

  • 7/31/2019 11g RAC on win 2003

    9/78

    Select the required number of processors and click the "Next" button.

  • 7/31/2019 11g RAC on win 2003

    10/78

    Uncheck the "Make this virtual machine private" checkbox and click the "Next" button.

    Select the amount of memory to associate with the virtual machine. Remember, you are going to

    need two instances, so don't associate too much, but you are going to need approximately 1 Gig

    (1024 Meg) to compete the installation successfully.

  • 7/31/2019 11g RAC on win 2003

    11/78

    Accept the "Use bridged networking" option by clicking the "Next" button.

  • 7/31/2019 11g RAC on win 2003

    12/78

    Accept the "LSI Logic" option by clicking the "Next" button.

    Select the "Create a new virtual disk" option and click the "Next" button.

  • 7/31/2019 11g RAC on win 2003

    13/78

    Accept the "SCSI" option by clicking the "Next" button. It's a virtual disk, so you can still use

    this option even if your physical disk is IDE or SATA.

  • 7/31/2019 11g RAC on win 2003

    14/78

    Set the disk size to "10.0" GB and uncheck the "Allocate all disk space now" option. The latter

    will make disk access slower, but will save you wasting disk space.

    Accept "RAC1.vmdk" as the disk file name and complete the VM creation by clicking the

    "Finish" button.

  • 7/31/2019 11g RAC on win 2003

    15/78

    On the "VMware Server Console" screen, click the "Edit virtual machine settings" button.

    On the "Virtual Machine Settings" screen, highlight the "Floppy 1" drive and click the "-

    Remove" button.

  • 7/31/2019 11g RAC on win 2003

    16/78

    Click the "+ Add" button, select a hardware type of "Ethernet Adapter", then click the "Next"button.

    Accept the "Bridged" option by clicking the "Finish" button.

  • 7/31/2019 11g RAC on win 2003

    17/78

    Finish by clicking the "OK" button on the Virtual Machine Settings dialog.

    The virtual machine is now configured so we can start the guest operating system installation.

    Guest Operating System Installation

  • 7/31/2019 11g RAC on win 2003

    18/78

  • 7/31/2019 11g RAC on win 2003

    19/78

    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 issuethe following commands.

    set devmgr_show_nonpresent_devices=1devmgmt.msc

    On the resulting "Device Manager" screen, pick the "View > Show hidden devices" menu option.

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

    uninstall the greyed out adapters.

  • 7/31/2019 11g RAC on win 2003

    20/78

    Open the "Network Connections" screen (Start > All Programs > Accessories > Communications

    > Network Connections). Rename the two connections to "public" and "private" respectively,

    making sure you apply the names to the appropriate connections.

    Check that the network settings are correct for both connections.

  • 7/31/2019 11g RAC on win 2003

    21/78

    The Clusterware installation is very sensitive, so make sure you read the Checking Network

    Requirementssection 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 "Network Connections" dialog by right-clicking on the "My Network Places"icon and selecting the "Properties" menu option.

    Select the "Advanced > Advanced Settings..." menu option. On the "Adapters and Bindings" tab, make sure the public interface is the first interface

    listed.

    Accept any modifications by clicking on the "OK" button and exiting the "NetworkConnections" 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

    http://download-east.oracle.com/docs/cd/B19306_01/install.102/b14207/prewin.htm#sthref208http://download-east.oracle.com/docs/cd/B19306_01/install.102/b14207/prewin.htm#sthref208http://download-east.oracle.com/docs/cd/B19306_01/install.102/b14207/prewin.htm#sthref208http://download-east.oracle.com/docs/cd/B19306_01/install.102/b14207/prewin.htm#sthref208http://download-east.oracle.com/docs/cd/B19306_01/install.102/b14207/prewin.htm#sthref208http://download-east.oracle.com/docs/cd/B19306_01/install.102/b14207/prewin.htm#sthref208
  • 7/31/2019 11g RAC on win 2003

    22/78

    Data Type: REG_DWORD -BooleanValue: 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 "VM > Install VMware Tools..." option from

    the main VMware Server Console menu.

    Click the "Install" button on the subsequent screen.

  • 7/31/2019 11g RAC on win 2003

    23/78

    Click the "Next" button to continue.

    Accept the "Typical" option by clicking the "Next" button.

  • 7/31/2019 11g RAC on win 2003

    24/78

    Click the "Install" button to continue.

    Set the hardware acceleration when prompted by clicking the "Yes" button and following the

    instructions on the subsequent screens.

  • 7/31/2019 11g RAC on win 2003

    25/78

  • 7/31/2019 11g RAC on win 2003

    26/78

    Click the "Next" button on the welcome screen, then select the hardware type of "Hard Disk" andclick the "Next" button.

    Accept the "Create a new virtual disk" option by clicking the "Next" button.

  • 7/31/2019 11g RAC on win 2003

    27/78

  • 7/31/2019 11g RAC on win 2003

    28/78

    Set the disk name to "/u01/VM/shared/ocr.vmdk" and click the "Advanced" button.

    Set the virtual device node to "SCSI 1:1" and the mode to "Independent" and "Persistent", thenclick the "Finish" button.

  • 7/31/2019 11g RAC on win 2003

    29/78

    Repeat the previous hard disk creation steps 4 more times, using the following values.

    File Name: /u01/VM/shared/votingdisk.vmdkVirtual Device Node: SCSI 1:2

    Mode: Independent and Persistent

    File Name: /u01/VM/shared/asm1.vmdkVirtual Device Node: SCSI 1:3Mode: Independent and Persistent

    File Name: /u01/VM/shared/asm2.vmdkVirtual Device Node: SCSI 1:4

    Mode: Independent and Persistent

    File Name: /u01/VM/shared/asm3.vmdkVirtual Device Node: SCSI 1:5Mode: Independent and Persistent

    At the end of this process, the virtual machine should look something like the picture below.

  • 7/31/2019 11g RAC on win 2003

    30/78

  • 7/31/2019 11g RAC on win 2003

    31/78

    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 "Power on this virtual machine" 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. Ididn't need to do this, but I guess it makes sense to do as you're told. To enable automounting do

    the following command at the command prompt, then restart the server.

    C:\> diskpartDISKPART> automount enableDISKPART> exitC:\>

    When the server restarts, open the "Computer Management" dialog (Start > All Programs >

    Administrative Tools > Computer Management) and click on the Disk Management tree node.

    This action should initiate the "Initialize and Convert Disk Wizard". Click the "Next" button to

    continue.

  • 7/31/2019 11g RAC on win 2003

    32/78

    Initialize all 5 disks by clicking the "Next" button.

    Don't convert any of the disks. Make sure all 5 disks are unchecked, then "Next" button.

  • 7/31/2019 11g RAC on win 2003

    33/78

  • 7/31/2019 11g RAC on win 2003

    34/78

    Click the "Next" button to continue.

    Select the "Extended partition" option, then click the "Next" button.

  • 7/31/2019 11g RAC on win 2003

    35/78

  • 7/31/2019 11g RAC on win 2003

    36/78

    The partition will now be displayed with a green bar. Right-click on the partition and select the

    "New Logical Drive" option to restart the "New Partition Wizard".

    Click the "Next" button to continue.

  • 7/31/2019 11g RAC on win 2003

    37/78

    Accept the "Logical drive" option by clicking the "Next" button.

    Accept the default partition size by clicking the "Next" button.

  • 7/31/2019 11g RAC on win 2003

    38/78

    Select the "Do not assign a drive letter or drive path" option, then click the "Next" button.

    Select the "Do not format this partition" option, then click the "Next" button.

  • 7/31/2019 11g RAC on win 2003

    39/78

    Complete the logical drive by clicking the "Finish" button.

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

  • 7/31/2019 11g RAC on win 2003

    40/78

    Repeat the previous partitioning steps for the remaining 4 disks.

    The shared disks are now configured.

    Clone the Virtual MachineThe 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 "/u01/VM/RAC2/RAC1.vmx" file, making the following change.

    displayName = "RAC2"

    Ignore discrepancies with the file names in the "/u01/VM/RAC2" 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"/u01/VM/RAC2/RAC1.vmx" file. Once opened, the RAC2 virtual machine is visible on the

  • 7/31/2019 11g RAC on win 2003

    41/78

    console. Start the RAC2 virtual machine by clicking the "Power on this virtual machine" button

    and click the "Create" button on the subsequent "Question" screen.

    Open the "Network Connections" 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 stepsmentioned previously for removing extra network adapters and renaming the connections.

    Open the "System Properties" dialog (Start > Control Panel > System), click on the "ComputerName" tab and click the "Change" button. Enter the name "rac2" then click the "OK" button.

  • 7/31/2019 11g RAC on win 2003

    42/78

    Click all subsequent "OK" buttons to exit the "System Properties" dialog and restart the server

    when prompted.

    Once the RAC2 virtual machine has restarted, start the RAC1 virtual machine. When both nodeshave started, check they can both ping all the public and private IP addresses using the following

    commands.

    ping -c 3 rac1ping -c 3 rac1-privping -c 3 rac2ping -c 3 rac2-priv

    At this point the virtual IP addresses defined in the hosts file will not work, so don't bother

    testing them.

    It'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 followingcommands.

    # cd /u01/VM# tar -cvf RAC-PreClusterware.tar RAC1 RAC2 shared# gzip RAC-PreClusterware.tar

    The virtual machine setup is now complete.

  • 7/31/2019 11g RAC on win 2003

    43/78

    Install the Clusterware Software

    Start the RAC1 and RAC2 virtual machines. The Oracle Clusterware for Windows is verysensitive, 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 theChecking NetworkRequirementssection of the documentation.

    Start the Oracle installer on RAC1.

    On the "Welcome" screen, click the "Next" button.

    http://download-east.oracle.com/docs/cd/B19306_01/install.102/b14207/prewin.htm#sthref208http://download-east.oracle.com/docs/cd/B19306_01/install.102/b14207/prewin.htm#sthref208http://download-east.oracle.com/docs/cd/B19306_01/install.102/b14207/prewin.htm#sthref208http://download-east.oracle.com/docs/cd/B19306_01/install.102/b14207/prewin.htm#sthref208http://download-east.oracle.com/docs/cd/B19306_01/install.102/b14207/prewin.htm#sthref208http://download-east.oracle.com/docs/cd/B19306_01/install.102/b14207/prewin.htm#sthref208
  • 7/31/2019 11g RAC on win 2003

    44/78

  • 7/31/2019 11g RAC on win 2003

    45/78

    The "Specify Cluster Configuration" screen shows only the RAC1 node in the cluster. Click the"Add" button to continue.

    Enter the details for the RAC2 node and click the "OK" button.

  • 7/31/2019 11g RAC on win 2003

    46/78

    Click the "Next" button to continue.

    The "Specific Network Interface Usage" screen defines how each network interface will be used.

    Highlight the "public" interface and click the "Edit" button.

  • 7/31/2019 11g RAC on win 2003

    47/78

    Set the "public" interface type to "Public" and click the "OK" button.

    Leave the "private" interface as private and click the "Next" button.

  • 7/31/2019 11g RAC on win 2003

    48/78

    On the "Cluster Configuration Storage" screen, highlight disk 1 and click the "Edit" button.

    Select the "Place OCR(Primary) on this Partition" option and click the "OK" button.

  • 7/31/2019 11g RAC on win 2003

    49/78

    Highlight disk 2 and click the "Edit" button. Select the "Place Voting Disk on this Partition"

    option and click the "OK" button.

    On the "Cluster Configuration Storage" screen, click the "Next" button and ignore the

    redundancy warnings by clicking the "OK" button.

    On the "Summary" screen, click the "Install" button to continue.

  • 7/31/2019 11g RAC on win 2003

    50/78

    Wait while the installation takes place.

    Wait while the configuration assistants run.

  • 7/31/2019 11g RAC on win 2003

    51/78

    Click the "Exit" button to leave the installer.

  • 7/31/2019 11g RAC on win 2003

    52/78

    It'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 followingcommands.

    # 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 "Welcome" screen, click the "Next" button.

  • 7/31/2019 11g RAC on win 2003

    53/78

    Select the "Enterprise Edition" option and click the "Next" button.

    Enter the path for the Oracle Base along with the name and path for the Oracle Home and click

    the "Next" button.

  • 7/31/2019 11g RAC on win 2003

    54/78

    Select the "Cluster Installation" option and make sure both RAC nodes are selected, then clickthe "Next" button.

  • 7/31/2019 11g RAC on win 2003

    55/78

    Wait while the prerequisite checks are done. If you have any failures correct them and retry the

    tests before clicking the "Next" button.

    Select the "Configure Automatic Storage Management (ASM)" option, enter the SYS password

    for the ASM instance, then click the "Next" button.

  • 7/31/2019 11g RAC on win 2003

    56/78

    Select the "External" redundancy option (no mirroring) and click the "Stamp Disks..." button.

    Select the "Add or change label" option and click the "Next" button.

  • 7/31/2019 11g RAC on win 2003

    57/78

    Highlight disks 3-5 and click the "Next" button. Remember, disk0 is the OS, disk1 is the OCR

    location and disk2 is the voting disk.

    Confirm your selection by clicking the "Next" button.

  • 7/31/2019 11g RAC on win 2003

    58/78

    Complete the disk stamp by clicking the "Finish" button.

    Select the candidate disks and click the "Next" button.

  • 7/31/2019 11g RAC on win 2003

    59/78

    Click the "Next" button to avoid the Oracle Configuration Manager registration.

    On the "Summary" screen, click the "Install" button to continue.

  • 7/31/2019 11g RAC on win 2003

    60/78

    Wait while the database software installs.

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

  • 7/31/2019 11g RAC on win 2003

    61/78

  • 7/31/2019 11g RAC on win 2003

    62/78

    It'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 followingcommands.

    # 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 - OraDb11g_home1 > Configuration and Migration

    Tools > Database Configuration Assistant).

    On the "Welcome" screen, select the "Oracle Real Application Clusters database" option andclick the "Next" button.

    Select the "Create a Database" option and click the "Next" button.

  • 7/31/2019 11g RAC on win 2003

    63/78

    Highlight both RAC nodes and click the "Next" button.

    Select the "Custom Database" option and click the "Next" button.

  • 7/31/2019 11g RAC on win 2003

    64/78

    Enter the values "RAC.WORLD" and "RAC" for the Global Database Name and SID Prefix

    respectively, then click the "Next" button.

    Accept the management options by clicking the "Next" button. If you are attempting the

    installation on a server with limited memory, you may prefer not to configure EnterpriseManager at this time.

  • 7/31/2019 11g RAC on win 2003

    65/78

    Enter database passwords then click the "Next" button.

    Select the "Automatic Storage Management (ASM)" option, then click the "Next" button.

  • 7/31/2019 11g RAC on win 2003

    66/78

  • 7/31/2019 11g RAC on win 2003

    67/78

    Check both the "Specify Flash Recovery Area" and "Enable Archiving" options. Enter "+DATA"

    as the Flash Recovery Area, then click the "Next" button.

    Uncheck all but the "Enterprise Manager Repository" option, then click the "Standard Database

    Components..." button.

  • 7/31/2019 11g RAC on win 2003

    68/78

    Uncheck all but the "Oracle JVM" and "Oracle XML DB" options, then click the "OK" button,

    followed by the "Next" button on the previous screen. If you are attempting the installation on a

    server with limited memory, you may prefer not to install these at this time.

    Accept the "Typical" memory management option by clicking the "Next" button.

  • 7/31/2019 11g RAC on win 2003

    69/78

    Accept the enhanced security settings by clicking the "Next" button.

    Accept the enabled automatic maintenance tasks by clicking the "Next" button.

  • 7/31/2019 11g RAC on win 2003

    70/78

    Accept the database storage settings by clicking the "Next" button.

    Accept the database creation options by clicking the "Finish" button.

  • 7/31/2019 11g RAC on win 2003

    71/78

    Accept the summary information by clicking the "OK" button.

  • 7/31/2019 11g RAC on win 2003

    72/78

    Wait while the database is created.

  • 7/31/2019 11g RAC on win 2003

    73/78

    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 "Exit" button.

    The RAC database creation is now complete.

    TNS Configuration

    Once the installation is complete, the "%ORACLE_HOME%\network\admin\listener.ora" file on

    each RAC node will contain entries similar to the following.

    LISTENER_RAC1 =

  • 7/31/2019 11g RAC on win 2003

    74/78

    (DESCRIPTION_LIST =(DESCRIPTION =

    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))(ADDRESS = (PROTOCOL = TCP)(HOST = rac1-vip)(PORT = 1521)(IP = FIRST))(ADDRESS = (PROTOCOL = TCP)(HOST = 10.1.10.191)(PORT = 1521)(IP =

    FIRST)))

    )

    The "%ORACLE_HOME%\network\admin\tnsnames.ora" file on each RAC node will contain

    entries similar to the following.

    RAC =(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = rac1-vip)(PORT = 1521))(ADDRESS = (PROTOCOL = TCP)(HOST = rac2-vip)(PORT = 1521))(LOAD_BALANCE = yes)(CONNECT_DATA =

    (SERVER = DEDICATED)

    (SERVICE_NAME = RAC.WORLD))

    )

    LISTENERS_RAC =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = rac1-vip)(PORT = 1521))(ADDRESS = (PROTOCOL = TCP)(HOST = rac2-vip)(PORT = 1521))

    )

    RAC2 =(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = rac2-vip)(PORT = 1521))(CONNECT_DATA =

    (SERVER = DEDICATED)(SERVICE_NAME = RAC.WORLD)(INSTANCE_NAME = RAC2)

    ))

    RAC1 =(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = rac1-vip)(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 11.1.0.6.0 - Production on Wed Oct 24 18:53:22 2007

  • 7/31/2019 11g RAC on win 2003

    75/78

    Copyright (c) 1982, 2007, Oracle. All rights reserved.

    Connected to:Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - ProductionWith the Partitioning, Real Application Clusters, OLAP, Data Miningand Real Application Testing options

    SQL> CONN sys/password@rac1 AS SYSDBAConnected.SQL> SELECT instance_name, host_name FROM v$instance;

    INSTANCE_NAME HOST_NAME---------------- ----------------------------------------------------------------rac1 RAC1

    SQL> CONN sys/password@rac2 AS SYSDBAConnected.

    SQL> SELECT instance_name, host_name FROM v$instance;

    INSTANCE_NAME HOST_NAME---------------- ----------------------------------------------------------------rac2 RAC2

    SQL> CONN sys/password@rac AS SYSDBAConnected.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 currentconfiguration and status of the RAC database.

    C:\>srvctl config database -d RACrac1 RAC1 C:\oracle\product\11.1.0\db_1

    rac2 RAC2 C:\oracle\product\11.1.0\db_1

    C:\>

    C:\>srvctl status database -d RACInstance RAC1 is running on node rac1Instance RAC2 is running on node rac2

    C:\>

  • 7/31/2019 11g RAC on win 2003

    76/78

    The V$ACTIVE_INSTANCES view can also display the current status of the instances.

    C:\>sqlplus / as sysdba

    SQL*Plus: Release 11.1.0.6.0 - Production on Wed Oct 24 18:53:22 2007

    Copyright (c) 1982, 2007, Oracle. All rights reserved.

    Connected to:Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - ProductionWith the Partitioning, Real Application Clusters, OLAP, Data Miningand Real Application Testing options

    SQL> SELECT * FROM v$active_instances;

    INST_NUMBER INST_NAME----------- ------------------------------------------------------------

    1 RAC1:rac12 RAC2:rac2

    SQL>

    Finally, the GV$ allow you to display global information for the whole RAC.

    SQL> SELECT inst_id, program, sid, serial# FROM gv$session;

    INST_ID PROGRAM SID SERIAL#---------- ------------------------------- ---------- ----------

    1 ORACLE.EXE (q001) 110 1..

    1 racgimon.exe 170 142 ORACLE.EXE (PZ99) 111 87..

    2 racgimon.exe 170 11

    83 rows selected.

    SQL>

    If you have configured Enterprise Manager, it can be used to view the configuration and current

    status of the database using a URL like "https://rac1.localdomain:1158/em".

  • 7/31/2019 11g RAC on win 2003

    77/78

  • 7/31/2019 11g RAC on win 2003

    78/78