Oracle RAC 11g Database on Linux Using VirtualBox.



Comments



Description

Oracle RAC 11g Database on Linux Using VirtualBoxhttp://www.lab128.com/rac_installation_using_vb/article_text.html Home lab128 Oracle RAC 11g Database on Linux Using VirtualBox By Sergei Romanenko August - December, 2012 Like 210 people like lab128. Facebook social plugin This article describes the installation of Oracle Database 11g release 2 (11.2 64-bit) RAC on Linux (Oracle Linux 6.3 64-bit) using VirtualBox (4.1.14+). See also: Oracle RAC 12c Database on Linux Using VirtualBox. Introduction System Requirements Download Software Virtual Machine Setup Guest Operating System Installation Check Internet Access Oracle Clusterware Installation Prerequisites. Part 1 Install Guest Additions Oracle Clusterware Installation Prerequisites. Part 2 Network Setup Downloaded Oracle Installation Files Clone the Virtual Machine Create Shared Disks Install the Grid Infrastructure Install the Database Check the Status of the RAC Making Images of the RAC Database Restoring RAC from Saved Files Post Installation Optimization Clusterware and Database Monitoring Introduction If you want to get through all steps of the Oracle RAC installation and your laptop or desktop computer has 8 GB or more of RAM, then this is entirely feasible using Oracle VirtualBox as demonstrated in this article. You can get a running RAC system which can host a small test database. The created system is not, and should not be considered, a production-ready system. It's simply to allow you to get used to installing and using RAC and test various administration procedures. The article also explains how to save the images and restore RAC from the images in a matter of minutes. Even if you break your test system, it will be easy to restore. This article uses the 64-bit versions of Oracle Linux, version 6.3, and Oracle 11g Release 2, version 11.2.0.3. Using VirtualBox you can run multiple Virtual Machines (VMs) on a single server, allowing you to run both RAC nodes on a single machine. In addition, it allows you to set up shared virtual disks. The finished system includes two guest operating systems, two sets of Oracle Grid Infrastructure (Clusterware + ASM) and two Database instances all on a single server. The amount of disk space needed is about 32 GB, if you want to save images of the finished RAC, another 12 GB of the disk space will be needed. This article was originally inspired by the article "Oracle Database 11g Release 2 RAC On Linux Using VirtualBox" written by Tim Hall and published in his blog. Then it was almost entirely revised and reworked, now this article seems to have very little resemblance with the original work. Note. When this article was written, Oracle Database 11g Release 2 (11.2.0.3) for Linux 64-bit (both clusterware and database) was available through the Oracle support to licensed customers only. As happened in the past, the Oracle corporation was making the latest version available to general public pretty soon. So I thought that using the latest and greatest version at the moment, with many bugs fixed, will be the best way to go. But now is end of 2012 and 11.2.0.3 is still unavailable to general public, while this version is really much better than any older version. I apologize for this inconvenience and suggest to find any possible way to get this version. It doesn't make sense to fight issues and research workarounds for bugs already fixed. Ask your 1 of 84 12/9/2013 4:12 PM Oracle RAC 11g Database on Linux Using VirtualBox http://www.lab128.com/rac_installation_using_vb/article_text.html friends who have access to Oracle support to help. And, if you can, bother the Oracle corporation to make the latest version available for download. As of now, 11.2.0.3 can be downloaded in Oracle support site, in "Patches & Updates", then select "Latest Patchsets", then select "Oracle Database", then select "Linux x86-64", then select "11.2.0.3.0". The number of this patch set is 10404530, it is possible to jump to the download page using this number. This patch set is a full installation of the Oracle Database software. This means that you do not need to install Oracle Database 11g Release 2 (11.2.0.1) before installing Oracle Database 11g Release 2 (11.2.0.3). For installing RAC database you will need only 3 files: Oracle Database (includes Oracle Database and Oracle RAC), part 1: p10404530_112030_Linux-x86-64_1of7.zip 1.3G Oracle Database (includes Oracle Database and Oracle RAC), part 2: p10404530_112030_Linux-x86-64_2of7.zip 1.1G Oracle Grid Infrastructure (includes Oracle ASM, Oracle Clusterware): p10404530_112030_Linux-x86-64_3of7.zip 933M System Requirements 8 GB of RAM; 32 GB of free space on the hard disk; This procedure was tested on 64-bit Windows 7. Although there should be no problems using VirtualBox on other Host OSes. Please let me know if you had success or problems in other OSes; Download Software Download the following software. Oracle Linux; VirtualBox (Must be version 4.1.14 or later); Oracle 11g Release 2 (11.2) Software (64 bit). Please read the note about Oracle version in the Introduction section above. Virtual Machine Setup In this exercise, we are using VirtualBox installed on 64-bit Windows 7. Now we must define the two virtual RAC nodes. We can save time by defining one VM, then cloning it when it is installed. Start VirtualBox and click the "New" button on the toolbar. Click the "Next" button on the first page of the Virtual Machine Wizard. Enter the name "rac1", OS "Linux" and Version "Oracle (64 bit)", and then click the "Next" button: 2 of 84 12/9/2013 4:12 PM Oracle RAC 11g Database on Linux Using VirtualBox http://www.lab128.com/rac_installation_using_vb/article_text.html If you have 16 GB of RAM in your host system, then set Base Memory to 3072 MB, otherwise use 2048 MB, as in the screenshot below, then click the "Next" button: Accept the default option to create a new virtual hard disk by clicking the "Next" button: 3 of 84 12/9/2013 4:12 PM Oracle RAC 11g Database on Linux Using VirtualBox http://www.lab128.com/rac_installation_using_vb/article_text.html Accept the default VDI type and click the "Next" button on the Virtual Disk Creation Wizard welcome screen: Accept the default "Dynamically allocated" option by clicking the "Next" button: 4 of 84 12/9/2013 4:12 PM Oracle RAC 11g Database on Linux Using VirtualBox http://www.lab128.com/rac_installation_using_vb/article_text.html Accept the default location and set the size to "16G" and click the "Next" button: Press the "Create" button on the Create New Virtual Disk Summary screen: 5 of 84 12/9/2013 4:12 PM . lab128.com/rac_installation_using_vb/article_text.html Press the "Create" button on the Create New Virtual Machine Summary screen: The "rac1" VM will appear on the left hand pane. Click on the "Network" link on the right side: 6 of 84 12/9/2013 4:12 PM .Oracle RAC 11g Database on Linux Using VirtualBox http://www. com/rac_installation_using_vb/article_text. More about networking will be explained later.html Make sure "Adapter 1" is enabled. On the screenshot below "Internal Network" is selected and name "pubnet" was given to this network: 7 of 84 12/9/2013 4:12 PM . for connection to the RAC datbase from other applications.Oracle RAC 11g Database on Linux Using VirtualBox http://www. for example. attached to "Internal Network" or "Host-only Adapter". This inetrface will be used for public network.lab128. Name this network "privnet": 8 of 84 12/9/2013 4:12 PM .Oracle RAC 11g Database on Linux Using VirtualBox http://www.html Then click on the "Adapter 2" tab. Make sure "Adapter 2" is enabled and attach to "Internal Network".lab128.com/rac_installation_using_vb/article_text. and attach to "Bridged Adapter" or "NAT".lab128.iso image and place it into the virtual DVD.com/rac_installation_using_vb/article_text. This adapter will be used for internet. Select "Storage" link on the right hand pane of the VirtualBox Manager screen to open "Storage" screen. Then press "OK" button: Optionally. Then select DVD drive in the "Storage Tree" section: 9 of 84 12/9/2013 4:12 PM . You can do that in "System" settings. To exit. press Right Control key on the keyboard. Guest Operating System Installation Please note that during installation Virtual Box will be keeping the mouse pointer inside VM area. Place the Oracle Linux 6. This will probably save some amount of space and avoid potential problems related to audio settings. If you don't have DVD. Also if your system has 4 CPU cores or more. download the .html Then finally click on the "Adapter 3". The virtual machine is now configured so we can start the guest operating system installation.3 (or newer) DVD in the DVD drive and skip next two screenshots. it will make sense to allocate 2 CPUs to the Virtual Machine. you can disable the audio card using "Audio" link.Oracle RAC 11g Database on Linux Using VirtualBox http://www. enable it. com/rac_installation_using_vb/article_text.lab128.html In "Attributes" section click on the DVD disk icon and choose DVD .Oracle RAC 11g Database on Linux Using VirtualBox http://www. Note that name of the file shows in the Storage Tree.iso file. Then press 'OK": 10 of 84 12/9/2013 4:12 PM . Choose "Skip" button: Start the virtual machine by clicking the "Start" button on the toolbar. Proceed with the "Install or upgrade an existing system": Do not perform the media test.Oracle RAC 11g Database on Linux Using VirtualBox http://www.com/rac_installation_using_vb/article_text.html Start the virtual machine by clicking the "Start" button on the toolbar. The resulting console window will contain the Oracle Linux boot screen. The resulting console window will contain the Oracle Linux boot screen. 11 of 84 12/9/2013 4:12 PM .lab128. Oracle RAC 11g Database on Linux Using VirtualBox http://www.html Continue through the Oracle Linux installation as you would for a normal server. Keyboard. On next three screens select Language.lab128. which will be used for public network. and press "Edit": 12 of 84 12/9/2013 4:12 PM .localdomain and press "Configure Network": In the Network Connections screen select "System eth0" interface. Set "Hostname" to rac1. Confirm to discard any data. and Basic Storage Devices type.com/rac_installation_using_vb/article_text. 255.255.html Make sure that "Connect automatically" is checked. Netmask: 255.56.Oracle RAC 11g Database on Linux Using VirtualBox http://www.0.168.0.0. Then check the box "Connect automatically". Press "Add" and fill Address: 192. Press "Add" and fill Address: 192.0. Select "IPv4 Settings" tab.0. In "IPv6 Settings" tab make sure the Method is set to "Ignore". Netmask: 255. Select "IPv4 Settings" tab. Gateway: 0.168.71.1. change Method to "Manual".255. In "IPv6 Settings" tab make sure the Method is set to "Ignore". this will be used for private network.0. Gateway: 0.lab128. change Method to "Manual".10.0.0. When done. then press "Edit".255.com/rac_installation_using_vb/article_text. Press "Apply" then done: In the Network Connections screen select "System eth1" interface. press "Apply": 13 of 84 12/9/2013 4:12 PM . Select "IPv4 Settings" tab make sure the Method is set to "Automatic (DHCP)".html Finally select "System eth2" interface. In "IPv6 Settings" tab make sure the Method is set to "Ignore".com/rac_installation_using_vb/article_text. Press "Apply" button: 14 of 84 12/9/2013 4:12 PM . then press "Edit". Check the box "Connect automatically". this will be used for Internet.Oracle RAC 11g Database on Linux Using VirtualBox http://www.lab128. com/rac_installation_using_vb/article_text.html Close Network Connections screen and proceed to next setup screen. Select "Use All Space" type of installation and check "Review and modify partitioning layout": Edit size of lv_swap device to 1500 MB.lab128. then edit size of lv_root to 14380 MB. Press "Next": 15 of 84 12/9/2013 4:12 PM .Oracle RAC 11g Database on Linux Using VirtualBox http://www. Select time zone. Type in Root Password: oracle. In the software type installation screen select "Database Server" and check "Customize now" button. Keep defaults in Boot loader screen.com/rac_installation_using_vb/article_text.lab128.Oracle RAC 11g Database on Linux Using VirtualBox http://www.html Confirm through warnings and create partitions. Press Next: 16 of 84 12/9/2013 4:12 PM . Part 1 All actions in this section must be performed by the root user.com If ping doesn't work. Open terminal and try to ping any Internet site. If you made changes in Network Connections.lab128. Congratulations! The Linux has been installed. troubleshoot the problem using 'ifconfig' command and making changes in Network Connections (Linux desktop Main menu | System | Preferences | Network Connections). then press Next and finish installation.Oracle RAC 11g Database on Linux Using VirtualBox http://www. for example: ping yahoo. Check Internet Access We will need Internet access because additional packages will be installed online. Reboot. this will be done later.html In the Customization screen select Database and uncheck all items. restart interface by rebooting VM or running these two commands: # ifdown eth0 # ifup eth0 Then check the ping again.com/rac_installation_using_vb/article_text. there will be more setup screens obvious to handle. Oracle Clusterware Installation Prerequisites. 17 of 84 12/9/2013 4:12 PM . select Desktops and check "Desktop" and "Graphical Administration Tools". Don't create 'oracle' account. When it comes back. This package performs prerequisites including kernel parameter change and creation of Linux oracle account: # yum install oracle-rdbms-server-11gR2-preinstall Note. So you will have to type it manually. Go through the download until you see DVD Autorun screen: Press "OK". This will configure the on-boot properties of the Oracle ASM library driver.com/rac_installation_using_vb/article_text. Also install another package: 'yum install gcc'. The current values will be shown in brackets ('[]').html Run Automatic Setup by installing 'oracle-rdbms-server-11gR2-preinstall' package. We are going to fix that shortly by installing Guest Additions. then "Run" to start installation. Default user to own the driver interface []: oracle Default group to own the driver interface []: oinstall Start Oracle ASM library driver on boot (y/n) [n]: y Scan for Oracle ASM disks on boot (y/n) [y]: Writing Oracle ASM library driver configuration: done # Install Guest Additions Guest Additions are optional. and clicking "Open Autorun Prompt" button. The remaining of this document assumes that Guest Additions are installed. The following questions will determine whether the driver is loaded on boot and what permissions it will have. Note. For now just type those commands. Probably you will not be able to paste and copy this command. reboot just created VM. Guest Additions allow better integration of mouse support and clipboard bidirectional copying. Then in the window menu select Devices | Install Guest Additions.that's why we need Internet access. Then reinstall Guest Additions by double-clicking on VBOXADDITIONS DVD icon on the desktop. Install ASMLib: # yum install oracleasm # yum install oracleasm-support Configure ASMLib running this command and answering questions: # oracleasm configure -i Configuring the Oracle ASM library driver. Hitting <ENTER> without typing an answer will keep that current value. login as root. Another important feature is support of shared folders making files in Host OS visible to Guest. In order to install Guest Additions. The installation can fail complaining on missing kernel-uek-devel package providing a 'yum' command to install this package.lab128. Run this command . Reboot the machine. Now you should be much happier about the VirtualBox! 18 of 84 12/9/2013 4:12 PM .Oracle RAC 11g Database on Linux Using VirtualBox http://www. Ctrl-C will abort. but highly recommended. The VirtualBox is also running DHCP server on this subnet reserving address range 100-254. Part 2 Create the directory in which the Oracle software will be installed. Even if you don't need to connect from the Host OS to the RAC. # service ntpd stop Shutting down ntpd: # chkconfig ntpd off # mv /etc/ntp. New password: BAD PASSWORD: it is based on a dictionary word BAD PASSWORD: is too simple Retype new password: passwd: all authentication tokens updated successfully. making sure the SELINUX flag is set as follows.0 is a default configuration used by the VirtualBox as Host-only network connecting the host OS and virtual machines.conf /etc/ntp.orig # rm /var/run/ntpd. and you used VB "Internal Network" for Adapter1. or make sure it is not configured so the Oracle Cluster Time Synchronization Service (ctssd) can synchronize the times of the RAC nodes. In this case we will deconfigure NTP. Please note that the subnet 192. # Disable secure linux by editing the "/etc/selinux/config" file. Below is TCP layout of addresses used in public and private networks. make corresponding adjustments and remember to stay consistent with those adjustments throughout the rest of the article.conf.168.lab128. You can verify these settings in: Main menu | File | Preferences | Network. If you need to use another addresses.vboxsf oracle Reset oracle user password to oracle: # passwd oracle Changing password for user oracle.8 GB is used: # df -k Filesystem 1K-blocks /dev/mapper/vg_rac1-lv_root 14493616 tmpfs 1027556 /dev/sda1 495844 # Used Available Use% Mounted on 2865472 272 77056 10891888 1027284 393188 21% / 1% /dev/shm 17% /boot [FAILED] Network Setup All actions in this section must be performed by the root user. SELINUX=disabled Either configure NTP.com/rac_installation_using_vb/article_text.56. The vboxsf group was created by VirtualBox Guest Additions and will allow oracle user access folders in the Host OS: # usermod -G dba. Edit "/etc/hosts" file by appending the following information: 19 of 84 12/9/2013 4:12 PM .html Oracle Clusterware Installation Prerequisites. So it is safe to use addresses below 100 for static addresses. you still can use proposed layout without making changes. We are using this subnet for the RAC public network. about 2.pid Cleanup YUM repositories: # yum clean all Check file system usage. mkdir -p /u01 chown -R oracle:oinstall /u01 chmod -R 775 /u01/ Add oracle account to dba and vboxsf groups.Oracle RAC 11g Database on Linux Using VirtualBox http://www. then check the properties of the Host-only network. localdomain rac1 rac2 rac1-vip.localdomain rac1-vip rac2-vip rac-scan.168.71 192.1 192.168. Now we need to disable the firewall: Linux Main menu | System | Administration | Firewall.168. Downloaded Oracle Installation Files There are two options to handle Oracle downloads: Downloading or transferring files into VM and uncompressing them in VM. then on "Apply". For this installation. then comment out lines with SCAN addresses. But if you need to change something.2 # Public 192.168.56.82 # SCAN 192.localdomain rac2-vip.56.html # Private 192. you can do so with the Network Connections tool: Linux desktop Main menu | System | Preferences | Network Connections. Obviously second option is much better because it doesn't use virtual disk of Guest VM and will result in smaller final image.localdomain rac2-priv.56. Instead is should be defined on the DNS to round-robin between 3 addresses on the same subnet as the public IPs.56. Downloading and uncompressing in the Host OS. 20 of 84 12/9/2013 4:12 PM .localdomain rac-scan.168.168. we will compromise and use the hosts file.92 192. If you followed the instructions.lab128. Click on "Disable" icon.10.56.localdomain rac-scan.56. We already set IP addresses of all adapters during Linux unstallation.93 rac1-priv.Oracle RAC 11g Database on Linux Using VirtualBox http://www. The SCAN address should not really be defined in the hosts file.56. If you are using DNS.91 192.10.localdomain rac2.168.localdomain rac1-priv rac2-priv rac1. there is no need to change anything.com/rac_installation_using_vb/article_text. then making folders accessible to VM filesystem.72 # Virtual 192.localdomain rac-scan rac-scan rac-scan Note.168.168.81 192. and check both boxes "Read-only" and "Auto-mount": Note You can use any name in "Folder Name". In our example these folders are in "C:\TEMP\oracle_sw" folder. In VirtualBox Manager click on "Shared Folders" link in the right-hand pane.this is where VirtualBox maps Host OS shared 21 of 84 12/9/2013 4:12 PM . Press "OK" to save this setting.Oracle RAC 11g Database on Linux Using VirtualBox http://www. It is assumed that you already downloaded oracle installation files and uncompressed them into the "grid" and "database" folders. Add shared folder by pressing "plus" icon.lab128.com/rac_installation_using_vb/article_text. Now Shared Folders should look like this: Restart VM and login as oracle user. If you have oracle installation files at different location. This will make easier to follow steps below. In this section we are going to setup VirtualBox Shared Folders. C:\TEMP\oracle_sw>dir -l total 0 drwx------+ 1 sromanenko Domain Users 0 Aug drwx------+ 1 sromanenko Domain Users 0 Aug 5 18:10 database 5 03:08 grid Shutdown VM.html Also installation files can be easily reused in another installation exercise. Change directory to "/media/sf_oracle_sw" . Then select path to the location of oracle software. you can overwrite that name to "oracle_sw". Install it from the Oracle grid/rpm directory as root user: $ su root Password: # cd /media/sf_oracle_sw/grid/rpm # rpm -Uvh cvuqdisk* Clone the Virtual Machine Shutdown the VM.lab128. then you can use "Internal Network" type of adapter.html folder. this can be added after RAC is installed. if you need Internet access in future. see "Virtual Networking" chapter in the VirtualBox documentation. Then press "Next": Keep default "Full Clone" option selected and press "Clone": 22 of 84 12/9/2013 4:12 PM .Oracle RAC 11g Database on Linux Using VirtualBox http://www. in Network settings for the Adapter 1. In the VirtualBox Manager window start clone wizard: Main menu | Machine | Clone. change the network type it is attached to from the "Bridged Adapter" to the "Host-only Adapter". see Adding Internet Access. Make sure that "Reinitialize the MAC address of all network cards" is not checked. Optionally. Type "rac2" for the name of new machine. In the VirtualBox Manager. Note that VirtualBox added prefix "sf_" to the name of the folder. List 'ls' content of the folder: $ cd /media/sf_oracle_sw $ ls database grid $ There is one package 'cvuqdisk' that should be installed before the installation. For more details about type of Network adapters. The RAC will be accessible from all other Virtual Machines in both cases.com/rac_installation_using_vb/article_text. Note. If you don't need access to the RAC database from the Host OS. In running rac2 node. we will pick up three new unused addresses and set them for eth0. but not both of them at the same time because MAC address must be unique. The screenshot below shows where to set MAC address.10.168. '01'. At the moment we have two VMs with the same set of MAC addresses. We can run one machine or another. Just make sure that these addresses don't collide with the MAC addresses of rac1.168. Now we need to change MAC address for all three interfaces.lab128.html Start cloned VM rac2 and login as root user. No changes will be made to rac1.56. and eth2 in rac2. for example. Then change hostname by editing file "/etc/sysconfig/network". Reboot system.Oracle RAC 11g Database on Linux Using VirtualBox http://www. HOSTNAME parameter: HOSTNAME=rac2.2 correspondingly. Don't forget to change MAC addresses for all three interfaces.72 and 192. If the last two characters are already '00'. 23 of 84 12/9/2013 4:12 PM . then change to something else.localdomain Start "Network Connections" tool (Main menu | System | Preferences | Network Connections). eth1.com/rac_installation_using_vb/article_text. Please note that your setup will have a different set of MAC addresses because they are random-generated by VirtualBox. The easiest way to do that is to change just last two characters of the address. We are going to change them to '00'. open "Network Connections" and edit MAC address in the "Wired" tab. Edit eth0 and eth1 interfaces and set in IPv4 addresses 192. com/rac_installation_using_vb/article_text. Don't forget to change MAC addresses for all three adapters. return to the VirtualBox Manager. select rac2 VM and edit "Network" settings. then shutdown the machine.lab128.html Write down the new MAC addresses for all three interfaces.Oracle RAC 11g Database on Linux Using VirtualBox http://www. Make same changes to the MAC addresses. 24 of 84 12/9/2013 4:12 PM . Save new settings pressing "Apply" button. After shutdown. right-click on the "SATA Controller" and select "Add Hard Disk".Oracle RAC 11g Database on Linux Using VirtualBox http://www. If not sure. We need to create a new virtual disk.lab128. change its attribute to Shareable and add to both VMs. then click on "Storage" link. then correct the problem using "Network Connections" tool. Press "Create new disk": Accept the default VDI type and click the "Next" button on the Virtual Disk Creation Wizard welcome screen: 25 of 84 12/9/2013 4:12 PM . on rac1: $ ping rac2 $ ping rac2-priv If you have problems. which icon to use.com/rac_installation_using_vb/article_text. Select "SATA Controller" and click on "Add Hard Disk" icon. use 'ifconfig' command to check the configuration. the only way to create a new disk in the GUI is through the "Storage" page in the virtual machine's settings. Select either rac1 or rac2 VM. For example. same action is available through the popup menu. Create Shared Disks Shut down both virtual machines. In the current version of VirtualBox.html Start both machines and check that they can ping each other using both public and private network. regardless of what you decide now.\VirtualBox VMs". place it in ". it will be possible to add more shared disks to the ASM group after everything is installed.. because this disk is shared..lab128. you can choose the bigger size.the folder of a selected VM. Although. Set the size to "2400 MB" .html Select "Fixed size" option and press the "Next" button: Change the name and location of this disk. instead of ".com/rac_installation_using_vb/article_text.. So. You can keep this file in the default location . it will be better to put it in the parent directory.\VirtualBox VMs\rac1" directory. And.Oracle RAC 11g Database on Linux Using VirtualBox http://www. 26 of 84 12/9/2013 4:12 PM . If you will need more space.this will result in about of 400 MB of free space in the ASM group when everything is installed.. You will see in the disk Information that the type of this disk is "Normal".Oracle RAC 11g Database on Linux Using VirtualBox http://www.html Create the new disk and this disk will be already attached to VM.there is a new disk registered to VirtualBox. We will use Virtual Media Manager (Main menu | File | Virtual Media Manager) to change its attributes.com/rac_installation_using_vb/article_text.lab128. What is different now . Select this new disk. this attribute cannot be changed. This is a limitation of GUI so we have to work around it: click on "Remove Attachment" icon. Close the "Storage" page. Select this new disk in the Virtual Media Manager: 27 of 84 12/9/2013 4:12 PM . There was no option in the previous dialog windows to create new disk as "Shareable". And once it is attached. Therefore this VM returns back to the previous storage configuration. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u').Oracle RAC 11g Database on Linux Using VirtualBox http://www. After that. Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-305.com/rac_installation_using_vb/article_text.G} (1-305.html Click on "Modify" icon and select "Shareable": Attach this existing disk to each VM using "Storage" page. SGI or OSF disklabel Building a new DOS disklabel with disk identifier 0xd724aa83. Changes will remain in memory only. Don't forget to select correct controller before attaching the disk and use "Choose existing disk" option. +cylinders or +size{K. of course. until you decide to write them. default 1): Using default value 1 Last cylinder. # fdisk /dev/sdb Device contains neither a valid DOS partition table. nor Sun. The current disks can be seen by issuing the following commands. default 305): Using default value 305 28 of 84 12/9/2013 4:12 PM . the previous content won't be recoverable. # ls /dev/sd* /dev/sda /dev/sda1 # /dev/sda2 /dev/sdb Use the "fdisk" command to partition the new disk "sdb". Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) WARNING: DOS-compatible mode is deprecated.M.lab128. In the end the "Storage" section of both VMs should be looking like this: Start either of the machines and log in as root. # We can see the disk is now visible to ASM using the "listdisks" command. Syncing disks.. press "Next": 29 of 84 12/9/2013 4:12 PM .lab128.. # ls /dev/sd* /dev/sda /dev/sda1 # /dev/sda2 /dev/sdb /dev/sdb1 Mark the new shared disk in the ASMLib as follows. "p".com/rac_installation_using_vb/article_text. "Return" and "w". # oracleasm scandisks Reloading disk partitions: done Cleaning any stale ASM disks. Scanning system for ASM disks.Oracle RAC 11g Database on Linux Using VirtualBox http://www. then login to "rac1" or switch the user to oracle and start the Oracle installer. Check that the shared disk is visible to ASM using the "listdisks" command. the result can be seen by repeating the previous "ls" command.. # oracleasm listdisks DISK1 # Start another VM and log in as root..html Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. # oracleasm listdisks DISK1 # The virtual machines and shared disks are now configured for the grid infrastructure! Install the Grid Infrastructure Make sure the "rac1" and "rac2" virtual machines are started. "Return". # The sequence of answers is "n". Once the new disk is partitioned. "1"./runInstaller Select "Skip software updates" option. $ cd /media/sf_oracle_sw/grid $ . # oracleasm createdisk DISK1 /dev/sdb1 Writing disk header: done Instantiating disk: done # Run the "scandisks" command to refresh the ASMLib disk configuration. 30 of 84 12/9/2013 4:12 PM .lab128.com/rac_installation_using_vb/article_text.Oracle RAC 11g Database on Linux Using VirtualBox http://www. then press the "Next" button.html Select the "Install and Configure Grid Infrastructure for a Cluster" option. html Select the "Advanced Installation" option. then click the "Next" button.lab128.Oracle RAC 11g Database on Linux Using VirtualBox http://www.com/rac_installation_using_vb/article_text. 31 of 84 12/9/2013 4:12 PM . html On the "Grid Plug and Play information" screen.localdomain".Oracle RAC 11g Database on Linux Using VirtualBox http://www.com/rac_installation_using_vb/article_text. 32 of 84 12/9/2013 4:12 PM . uncheck "Configure GNS" box.lab128. then press the "Next" button. change Cluster Name to "rac-cluster" and SCAN Name to "rac-scan. Oracle RAC 11g Database on Linux Using VirtualBox http://www.com/rac_installation_using_vb/article_text. 33 of 84 12/9/2013 4:12 PM .html On the "Cluster Node Configuration" screen.lab128. click the "Add" button. then click the "OK" button. and the "Test" button to test it once it is complete.Oracle RAC 11g Database on Linux Using VirtualBox http://www.html Enter the details of the second node in the cluster..lab128. Then press "Next". 34 of 84 12/9/2013 4:12 PM . Click the "SSH Connectivity." button and enter the password for the "oracle" user.. Click the "Setup" button to configure SSH connectivity.com/rac_installation_using_vb/article_text. Oracle RAC 11g Database on Linux Using VirtualBox http://www.html On the "Specify Network Interface Usage" screen check the public and private networks are specified correctly. 35 of 84 12/9/2013 4:12 PM .com/rac_installation_using_vb/article_text. Press the "Next" button.lab128. Oracle RAC 11g Database on Linux Using VirtualBox http://www.html On the "Storage Option Information" screen keep Oracle ASM option selected and press "Next".com/rac_installation_using_vb/article_text.lab128. 36 of 84 12/9/2013 4:12 PM . html On the "Create ASM Disk Group" screen click on "Change Discovery Path" button: 37 of 84 12/9/2013 4:12 PM .Oracle RAC 11g Database on Linux Using VirtualBox http://www.lab128.com/rac_installation_using_vb/article_text. Oracle RAC 11g Database on Linux Using VirtualBox http://www.lab128.html Then enter "/dev/oracleasm/disks" and press "OK": Keep "Disk Group Name" unchanged. Select "External" redundancy option. Check "/dev/oracleasm/disks/DISK1" in the "Add Disks" section.com/rac_installation_using_vb/article_text. press "Next". 38 of 84 12/9/2013 4:12 PM . When done. 39 of 84 12/9/2013 4:12 PM .com/rac_installation_using_vb/article_text.lab128.html On the "Specify ASM Password" screen select "Use same passwords for these accounts" option and type in "oracle" password. Ignore warnings about password weakness. then press "Next".Oracle RAC 11g Database on Linux Using VirtualBox http://www. Oracle RAC 11g Database on Linux Using VirtualBox http://www.lab128.com/rac_installation_using_vb/article_text. 40 of 84 12/9/2013 4:12 PM .html Keep defaults on the "Failure Isolation Support" and press "Next". lab128.Oracle RAC 11g Database on Linux Using VirtualBox http://www.html Keep defaults on the "Privileged Operating System Groups" and press "Next". 41 of 84 12/9/2013 4:12 PM .com/rac_installation_using_vb/article_text. lab128.html Keep suggested paths unchanged on the "Specify Installation Location" and press "Next".Oracle RAC 11g Database on Linux Using VirtualBox http://www. 42 of 84 12/9/2013 4:12 PM .com/rac_installation_using_vb/article_text. html Keep suggested path unchanged on the "Create Inventory" and press "Next".Oracle RAC 11g Database on Linux Using VirtualBox http://www.com/rac_installation_using_vb/article_text. 43 of 84 12/9/2013 4:12 PM .lab128. You should see two warnings and one failure. The failure was caused by inability to lookup SCAN in DNS and that should be expected. Check "Ignore All" box and press "Next".lab128.Oracle RAC 11g Database on Linux Using VirtualBox http://www.html The results of prerequisite checks are shown on the next screen.com/rac_installation_using_vb/article_text. 44 of 84 12/9/2013 4:12 PM . 45 of 84 12/9/2013 4:12 PM .html Press "Install" on the Summary screen.com/rac_installation_using_vb/article_text.Oracle RAC 11g Database on Linux Using VirtualBox http://www.lab128. 46 of 84 12/9/2013 4:12 PM ..html Wait while the setup takes place.Oracle RAC 11g Database on Linux Using VirtualBox http://www.com/rac_installation_using_vb/article_text..lab128. Oracle RAC 11g Database on Linux Using VirtualBox http://www.lab128.com/rac_installation_using_vb/article_text.html When prompted, run the configuration scripts on each node. Execute scripts as root user, first in rac1, then in rac2. # /u01/app/oraInventory/orainstRoot.sh # /u01/app/11.2.0/grid/root.sh # When running root.sh you will be asked about location of bin directory, press Enter in response. The output of the root.sh should 47 of 84 12/9/2013 4:12 PM Oracle RAC 11g Database on Linux Using VirtualBox http://www.lab128.com/rac_installation_using_vb/article_text.html finish with "Configure Oracle Grid Infrastructure for a Cluster ... succeeded". If the script fails, correct the problem and restart it. Once the scripts have completed, return to the "Execute Configuration Scripts" screen on "rac1", click the "OK" button and wait for the configuration assistants to complete. We expect the verification phase to fail with an error relating to the SCAN: Here are the offending lines from the log file: INFO: INFO: INFO: INFO: INFO: INFO: INFO: INFO: INFO: INFO: INFO: INFO: INFO: INFO: INFO: Checking Single Client Access Name (SCAN)... Checking TCP connectivity to SCAN Listeners... TCP connectivity to SCAN Listeners exists on all cluster nodes Checking name resolution setup for "rac-scan.localdomain"... ERROR: PRVG-1101 : SCAN name "rac-scan.localdomain" failed to resolve ERROR: PRVF-4657 : Name resolution setup check for "rac-scan.localdomain" (IP address: ERROR: PRVF-4657 : Name resolution setup check for "rac-scan.localdomain" (IP address: ERROR: PRVF-4657 : Name resolution setup check for "rac-scan.localdomain" (IP address: ERROR: PRVF-4664 : Found inconsistent name resolution entries for SCAN name "rac-scan. Verification of SCAN VIP and Listener setup failed Provided this is the only error, it is safe to ignore this and continue by clicking the "Next" button. Close the Configuration Assistant on the next screen. Check the status of running clusterware. On rac1 as root user: # . oraenv ORACLE_SID = [oracle] ? +ASM1 The Oracle base has been set to /u01/app/oracle 48 of 84 12/9/2013 4:12 PM Oracle RAC 11g Database on Linux Using VirtualBox http://www.lab128.com/rac_installation_using_vb/article_text.html # crsctl status resource -t -------------------------------------------------------------------------------NAME TARGET STATE SERVER STATE_DETAILS -------------------------------------------------------------------------------Local Resources -------------------------------------------------------------------------------ora.DATA.dg ONLINE ONLINE rac1 ONLINE ONLINE rac2 ora.LISTENER.lsnr ONLINE ONLINE rac1 ONLINE ONLINE rac2 ora.asm ONLINE ONLINE rac1 Started ONLINE ONLINE rac2 Started ora.gsd OFFLINE OFFLINE rac1 OFFLINE OFFLINE rac2 ora.net1.network ONLINE ONLINE rac1 ONLINE ONLINE rac2 ora.ons ONLINE ONLINE rac1 ONLINE ONLINE rac2 -------------------------------------------------------------------------------Cluster Resources -------------------------------------------------------------------------------ora.LISTENER_SCAN1.lsnr 1 ONLINE ONLINE rac2 ora.LISTENER_SCAN2.lsnr 1 ONLINE ONLINE rac1 ora.LISTENER_SCAN3.lsnr 1 ONLINE ONLINE rac1 ora.cvu 1 ONLINE ONLINE rac1 ora.oc4j 1 ONLINE ONLINE rac1 ora.rac1.vip 1 ONLINE ONLINE rac1 ora.rac2.vip 1 ONLINE ONLINE rac2 ora.scan1.vip 1 ONLINE ONLINE rac2 ora.scan2.vip 1 ONLINE ONLINE rac1 ora.scan3.vip 1 ONLINE ONLINE rac1 # You should see various clusterware components running on both nodes. The grid infrastructure installation is now complete! Check filesystem usage, about 6.5 GB are used: $ df -k Filesystem 1K-blocks /dev/mapper/vg_rac1-lv_root 14493616 tmpfs 1027552 /dev/sda1 495844 $ Used Available Use% Mounted on 6462704 204708 77056 7294656 822844 393188 47% / 20% /dev/shm 17% /boot Install the Database Make sure the "rac1" and "rac2" virtual machines are started, then login to "rac1" or switch the user to oracle and start the Oracle installer. 49 of 84 12/9/2013 4:12 PM Oracle RAC 11g Database on Linux Using VirtualBox http://www.lab128.com/rac_installation_using_vb/article_text.html $ cd /media/sf_oracle_sw/database $ ./runInstaller Uncheck the "I wish to receive security updates..." checkbox and press the "Next" button: Check "Skip software updates" checkbox and press the "Next" button: 50 of 84 12/9/2013 4:12 PM Oracle RAC 11g Database on Linux Using VirtualBox http://www.html Accept the "Create and configure a database" option and press the "Next" button: 51 of 84 12/9/2013 4:12 PM .com/rac_installation_using_vb/article_text.lab128. lab128.html Accept the "Server Class" option and press the "Next" button: 52 of 84 12/9/2013 4:12 PM .com/rac_installation_using_vb/article_text.Oracle RAC 11g Database on Linux Using VirtualBox http://www. and then press the "Next" button.Oracle RAC 11g Database on Linux Using VirtualBox http://www.com/rac_installation_using_vb/article_text.html Make sure "Oracle Real Application Cluster database installation" is chosen and both nodes are selected. 53 of 84 12/9/2013 4:12 PM .lab128. html Select the "Advanced install" option and press the "Next" button: 54 of 84 12/9/2013 4:12 PM .com/rac_installation_using_vb/article_text.lab128.Oracle RAC 11g Database on Linux Using VirtualBox http://www. Oracle RAC 11g Database on Linux Using VirtualBox http://www.lab128. Accept "Enterprise Edition" option and press the "Next" button: 55 of 84 12/9/2013 4:12 PM .html Select Language on next screen and press the "Next" button.com/rac_installation_using_vb/article_text. com/rac_installation_using_vb/article_text.Oracle RAC 11g Database on Linux Using VirtualBox http://www.lab128.html Accept default installation locations and press the "Next" button: 56 of 84 12/9/2013 4:12 PM . com/rac_installation_using_vb/article_text.Oracle RAC 11g Database on Linux Using VirtualBox http://www.lab128.html Accept "General Purpose / Transaction Processing" option and press the "Next" button: 57 of 84 12/9/2013 4:12 PM . Oracle RAC 11g Database on Linux Using VirtualBox http://www.com/rac_installation_using_vb/article_text.lab128.html You can keep default "orcl" database name or define your own. We used "ractp": 58 of 84 12/9/2013 4:12 PM . You are free to explore other tabs and set whatever suits your needs.com/rac_installation_using_vb/article_text.Oracle RAC 11g Database on Linux Using VirtualBox http://www.html On the "Configuration Options" screen reduce the amount of allocated memory to 750 MB .lab128.this will avoid excessive swapping and will run smoother. 59 of 84 12/9/2013 4:12 PM . Oracle RAC 11g Database on Linux Using VirtualBox http://www.lab128.com/rac_installation_using_vb/article_text.html Accept default Management option and press the "Next" button: 60 of 84 12/9/2013 4:12 PM . Oracle RAC 11g Database on Linux Using VirtualBox http://www.lab128. then press the "Next" button: 61 of 84 12/9/2013 4:12 PM .com/rac_installation_using_vb/article_text.html Accept "Oracle Automatic Storage Management" option and type in "oracle" password. com/rac_installation_using_vb/article_text.lab128.html Accept default "Do not enable automated backups" option and press the "Next" button: 62 of 84 12/9/2013 4:12 PM .Oracle RAC 11g Database on Linux Using VirtualBox http://www. Oracle RAC 11g Database on Linux Using VirtualBox http://www.com/rac_installation_using_vb/article_text.html Review ASM Disk Group Name which will be used by the database and press the "Next" button: 63 of 84 12/9/2013 4:12 PM .lab128. Oracle RAC 11g Database on Linux Using VirtualBox http://www.html Select "Use the same password for all accounts" option.lab128.com/rac_installation_using_vb/article_text. then press the "Next" button: 64 of 84 12/9/2013 4:12 PM . type in "oracle" password. com/rac_installation_using_vb/article_text. then press the "Next" button: 65 of 84 12/9/2013 4:12 PM .Oracle RAC 11g Database on Linux Using VirtualBox http://www.lab128.html Select "oinstall" group for both Database Administrator and Database Operator groups. or check the "Ignore All" checkbox and click the "Next" button.Oracle RAC 11g Database on Linux Using VirtualBox http://www.lab128. 66 of 84 12/9/2013 4:12 PM .com/rac_installation_using_vb/article_text. either fix them.html Wait for the prerequisite check to complete. If there are any problems. com/rac_installation_using_vb/article_text. 67 of 84 12/9/2013 4:12 PM . click the "Install" button.Oracle RAC 11g Database on Linux Using VirtualBox http://www.lab128.html If you are happy with the summary information. 68 of 84 12/9/2013 4:12 PM .html Wait while the installation takes place.lab128.com/rac_installation_using_vb/article_text.Oracle RAC 11g Database on Linux Using VirtualBox http://www. Once the Database Configuration Assistant (DBCA) has finished.Oracle RAC 11g Database on Linux Using VirtualBox http://www.lab128. 69 of 84 12/9/2013 4:12 PM .html Once the software installation is complete the Database Configuration Assistant (DBCA) will start automatically. click the "OK" button.com/rac_installation_using_vb/article_text. Oracle RAC 11g Database on Linux Using VirtualBox http://www.html When prompted. run the configuration scripts on each node.0/dbhome_1/root.lab128. When the scripts have been run on each node.com/rac_installation_using_vb/article_text.2. click the "OK" button.sh # Click the "Close" button to exit the installer. Execute scripts as root user in both nodes: # /u01/app/oracle/product/11. 70 of 84 12/9/2013 4:12 PM . 0/dbhome_1 Oracle user: oracle Spfile: +DATA/ractp/spfileractp.ora Domain: localdomain Start options: open Stop options: immediate Database role: PRIMARY Management policy: AUTOMATIC Server pools: ractp Database instances: ractp1. The srvctl utility shows the current configuration and status of the RAC database.2. oraenv ORACLE_SID = [oracle] ? ractp The Oracle base has been set to /u01/app/oracle $ srvctl config database -d ractp Database unique name: ractp Database name: ractp Oracle home: /u01/app/oracle/product/11.com/rac_installation_using_vb/article_text.lab128. $ .Oracle RAC 11g Database on Linux Using VirtualBox http://www.html The RAC database creation is now complete! Check the Status of the RAC There are several ways to check the status of the RAC.ractp2 Disk Groups: DATA Mount point paths: Services: Type: RAC Database is administrator managed $ srvctl status database -d ractp Instance ractp1 is running on node rac1 71 of 84 12/9/2013 4:12 PM . the shared disk is attached to the imported VMs as an extra step. oraenv ORACLE_SID = [oracle] ? ractp The Oracle base has been set to /u01/app/oracle $ srvctl stop database -d ractp $ Shutdown the clusterware on the first node. Let's perform all these actions. CRS-4133: Oracle High Availability Services has been stopped. $ export ORACLE_SID=ractp1 [oracle@rac1 Desktop]$ sqlplus / as sysdba SELECT inst_name FROM v$active_instances.. As oracle user execute on any node: $ ..Oracle RAC 11g Database on Linux Using VirtualBox http://www. oraenv ORACLE_SID = [ractp1] ? +ASM1 The Oracle base remains unchanged with value /u01/app/oracle # crsctl stop crs . As root user execute: # . the shared disk can be easily attached back to the nodes. Here we are going to save images of the newly created Oracle RAC system which we can restore in the same system or even hand over to another location and restore in a matter of few minutes! The export of VM is a straightforward process and saving RAC images would be an easy task if not dealing with the shared disk. INST_NAME -------------------------------------------------------------------------------rac1... In my view the simplest way to handle that is by detaching shared disk from both nodes and taking care of these three parts (two self-contained VMs and one Shared disk) separately.lab128. Clean Shutdown of RAC But first. Shutdown the database. oraenv ORACLE_SID = [ractp1] ? +ASM2 The Oracle base remains unchanged with value /u01/app/oracle # crsctl stop crs . These three files can be further zipped by your favorite archiver into one file which can be used for storage or transfer. CRS-4133: Oracle High Availability Services has been stopped. After export is done.localdomain:ractp1 rac2. In the end there will be three files: two files for VMs and a file representing the shared disk.localdomain:ractp2 exit $ Making Images of the RAC Database At any point earlier we could save the image of created virtual machine and then restore it at will.html Instance ractp2 is running on node rac2 $ The V$ACTIVE_INSTANCES view can also display the current status of the instances. we need to shutdown servers in nice and clean manner because we want save them in a robust state.com/rac_installation_using_vb/article_text. # 72 of 84 12/9/2013 4:12 PM . As root user execute: # . # Shutdown the clusterware on the second node. Same is true for the import of VMs back into VirtualBox along with the copy of shared disk . Note that this disk now shows as "Not attached".lab128. 73 of 84 12/9/2013 4:12 PM . Click on "Copy" to start Disk Copying Wizard.vdi).com/rac_installation_using_vb/article_text.html Shutdown both virtual machines. Wait until all VM windows are closed. Note that this disk shows as attached to rac1 and rac2 VMs: Click on "Release" icon and then confirm in the pop-up window. Then select the disk used by the RAC (rac_shared_disk1. Detach Shared Disk and Make a Copy Of It In the VirtualBox Manager open Virtual Media Manager: Main menu | File | Virtual Media Manager.Oracle RAC 11g Database on Linux Using VirtualBox http://www. 74 of 84 12/9/2013 4:12 PM .com/rac_installation_using_vb/article_text. Select "Fixed size" and press "Next".Oracle RAC 11g Database on Linux Using VirtualBox http://www. Accept Virtual disk file type as VDI and press "Next".html Accept Virtual disk to copy and press "Next".lab128. When done. Note. On the Summary screen review details and press "Copy" to complete copying. the new UID is assigned automatically.com/rac_installation_using_vb/article_text.lab128.html On the next screen you can set location and name of the new file.vdi file because the copy will retain same disk UID and VirtualBox will refuse to use it because there is already such disk.Oracle RAC 11g Database on Linux Using VirtualBox http://www. Do not try to copy . press "Next". Close the Media Manager when copying is done. When copying trough the Virtual Media Manager. Export VMs 75 of 84 12/9/2013 4:12 PM . vdi. Export both VMs. Open Appliance Import Wizard: Main menu | File | Import Appliance.Oracle RAC 11g Database on Linux Using VirtualBox http://www. Once Shared disk is attached to both VMs.lab128.html In the VirtualBox Manager select VM. Don't forget to select correct controller before attaching the disk: Press "Add Hard Disk" icon and use "Choose Existing Disk" to attach rac_shared_disk1.com/rac_installation_using_vb/article_text. Exporting is generally as simple as saving a file. Restoring RAC from Saved Files In this section we will import RAC from the saved files creating a second RAC system. Don't run both RAC at the same time because they will have same network attributes. Now you should have 3 files that can be further zipped into a single file with the size about 12 GB. Choose the file and press "Next": 76 of 84 12/9/2013 4:12 PM . the RAC is ready to run. Re-attach Shared Disk to the Original RAC Setup Fix our current working RAC setup by re-attaching shared disk to rac1 and rac2 VM using "Storage" page. then call Appliance Export Wizard: Main menu | File | Export Appliance. com/rac_installation_using_vb/article_text. It is interesting to note.Oracle RAC 11g Database on Linux Using VirtualBox http://www.lab128.html On the Appliance Import Settings different attributes of new VM can be changed. We are going to accept settings unchanged. that disks are going to be imported in VMDK format different from the original VDI format. 77 of 84 12/9/2013 4:12 PM . This disk could be attached to both machines.Oracle RAC 11g Database on Linux Using VirtualBox http://www. but unfortunately current version (4.com/rac_installation_using_vb/article_text.18) of VirtualBox doesn't preserve type of the disk then making a copy.html Wait until the VM is imported: Import both VMs and copy Shared Disk rac_shared_disk1_copy. Attach this disk to the either of imported VM. then select it and review disk information: 78 of 84 12/9/2013 4:12 PM .lab128.vdi file into the parent directory (Virtual VMs).1. and you can proceed to another VM.html In the VirtualBox 4. You can check that by starting top. oraenv ORACLE_SID = [oracle] ? ractp The Oracle base has been set to /u01/app/oracle $ srvctl start database -d ractp $ The RAC should be well and running! Post Installation Optimization (Optional) It had been noticed that after a while. the copied disk has "Normal" type. de-attach the disk.1. You will need to bring up the database.lab128. then pressing 'c' key (cmd name/line): 79 of 84 12/9/2013 4:12 PM . then go to the Virtual Media Manager and change the disk type to "Shareable" as has been described above. If not. If you have a newer version and the type is "Shareable" then this bug has been fixed. Start new VMs. the ologgerd process can consume excessive CPU resource.18.Oracle RAC 11g Database on Linux Using VirtualBox http://www. Login as the oracle user and execute: $ . then return to the Virtual machines and attached the Shared disk. The clusterware should start automatically.com/rac_installation_using_vb/article_text. The installation is simple: unzip files into some folder. By default. then run lab128fw. then execute: # crsctl delete resource ora. but this is beyond the scope of this article.crf -init . select Adapter 3. the Oracle listener is not listening on these IP addresses. Restart the VM and check that you can ping outside world in the terminal window: ping yahoo. 80 of 84 12/9/2013 4:12 PM . that using Bridged Adapter makes your VMs accessible on the same local area network where your workstation / laptop is connected.com Repeat all these actions with another node. Clusterware and Database Monitoring You can check the status of clusterware by issuing this command: # crsctl status resource -t But it is much easier using a tool which will run same command on pre-defined time interval and organize output into the tabular form.html The ologgerd is part of Oracle Cluster Health Monitor and used by Oracle Support to troubleshoot RAC problems. For this we are going to use a freeware tool Lab128 Freeware.Oracle RAC 11g Database on Linux Using VirtualBox http://www. make sure it is enabled and attached to "Bridged Adapter". Therefore same rules apply to the network configuration of VMs. Please note. these IPs can be added to the listener. In the Network section of settings. you can stop it by executing on both nodes: # crsctl stop resource ora.lab128. VMs will be using your local network DHCP to obtain IP address. Adding Internet Access (Optional) Shutdown virtual machine.com/rac_installation_using_vb/article_text. Even though your VMs will be accessible to any computers on the LAN.exe executable file. If ologgerd process is consuming a lot of CPU.crf -init If you want to disable ologgerd permanently. If needed. Optionally you can assign static addresses. 71. The Clusterware Commander window presents the status of clusterware components in a tabular view.91 rac-scan.93 rac-scan.56. press F1 key.56.72 rac-scan rac-scan rac-scan rac1 rac2 Start Lab128." box. the RAC should be accessible to the host OS. Then press "Connect".localdomain 192.168. Name.localdomain 192. This view is refreshed automatically with the rate defined in the "Refresh Rate.56.56. 81 of 84 12/9/2013 4:12 PM .92 rac-scan.168. If you need more information about this window. Left columns present the Component/Resource Type.html Since we will be running the monitoring tool in the host OS (Windows).56.168.lab128. The tabular view content can be customized by filtering out less important components.56. The remaining columns to the right represent nodes in the cluster with the values showing the state of the component on that node.168.71 192. If you did everything as described above.168.168.com/rac_installation_using_vb/article_text. Target and Online node counts.168.168.localdomain #rac1 node 192.56.72 It will make sense to add these IP addresses to the %SystemRoot%\System32\drivers\etc\hosts file: #ORACLE SCAN LISTENER 192.56. then connect through SSH to one node: Main menu | Clusterware | Clusterware Commander. Optionally give the "Alias name" to this connection and save it by pressing "Store" button.Oracle RAC 11g Database on Linux Using VirtualBox http://www. then enter User: oracle. you should have Adapter 1 on both VMs attached to "Host-only Adapter" and you should be able to ping both nodes: ping 192. sec.71 ping 192. Password: oracle. Hostname/IP: 192. Then press "Connect" button to open Lab128 monitor: 82 of 84 12/9/2013 4:12 PM .com/rac_installation_using_vb/article_text. It is recommended to name this monitor in the "Alias Name" box (we named it RACTP1) and saved it pressing the "Store" button. Password: oracle. see the picture above. Right-click on the cell in the node area.lab128. Additionally. Depending on the context of the selected component and the node.html The tabular view can be used to manage the components through the pop-up menu. The example of Login window is shown below. you can start Lab128 monitor for a specific database instance with many connection details filled up automatically. the menu will offer various commands. Just enter in User: sys. This will save our efforts next time when connecting to the same instance.Oracle RAC 11g Database on Linux Using VirtualBox http://www. Can you please help me in doing the process. 2013 at 03:29. 2013 at 04:25.com/rac_installation_using_vb/article_text. Thank you very much.Oracle RAC 11g Database on Linux Using VirtualBox http://www. very detailed and practical steps for the successful implementation. 2013 at 04:22..html You can read more about database monitoring with Lab128 using this link Welcome to the World of Lab128. GMT I am facing issues with shared disk. Then during ASM configuration press "Change Discovery Path" button and change it to "/dev/oracleasm/disks" and the disk should show up. Sergei Romanenko says: November 17. GMT Make sure that 'oracleasm listdisks' shows DISK1 on both nodes (see end of "Create Shared Disks" section). Comments krishna chaitanya says: November 15. GMT Great post.shared disk is showing in command prompt but not showing while installing grid. Sergei Romanenko says: November 17.lab128. GMT Nice to hear about that! Thank you. MABARI says: November 17. 2013 at 00:21. Manish says: 83 of 84 12/9/2013 4:12 PM . That's it! Please send your feedback to: Back to the Top. internal The default routing will go through eth0 We'll see.pubnet.Internet. GMT Thanks for this write-up! Did you or anyone have issues with the networking? On the guest machines.0" for eth0 and eth1. line by line.. private) and leave eth2 (Internet) up. Sergei Romanenko says: December 3. followed step wise .. 2013 at 04:17. GMT Very nice document . without having to specify routes. If I bring down eth0 and eth1 (public.html November 21. If that is the case. Please solve the math problem: 1487 * (12 . Just reorder your interfaces: eth0 .11) = Copyright © 128 Consulting LLC 84 of 84 12/9/2013 4:12 PM . nin says: December 5. i was able to install RAC on Laptop in one go. you can try to restore this setting. GMT Hello.Oracle RAC 11g Database on Linux Using VirtualBox http://www. In this case it worked even when gateway was set for eth1 or eth2. It works for me.) This is a simple anti-spam measure. I'm still working on setting up the nodes so I don't know how grid install will like this setup. GMT I think I found a simple solution. Thanks. I had similar problems when gateway setting was different from "0.. you can use eth0 for Internet.privnet. bmazi says: November 30. thanks Nin says: December 3. bridged. 2013 at 03:11..lab128.0. then it works. As alternative. 2013 at 00:44. Thanks! Leave your comment: Your Name * E-mail * Website (include http://. 2013 at 00:42.. sometimes it doesn't. sometimes going out to the Internet works.com/rac_installation_using_vb/article_text. dhcp eth1 . internal eth2 . 2013 at 23:10. GMT Yes.0. Documents Similar To Oracle RAC 11g Database on Linux Using VirtualBox.Skip carouselcarousel previouscarousel nextConvert 11gR2 Database To RAC using RconfigInstallation Oracle RAC - AIXOracle 10gr2 RAC on VmwareOracle Database 10g - RAC for Administrators - V1Practical Guide RacStep by Step Guide for Installing Oracle RAC 11gR2 on LinuxSimple Installation of Oracle RAC 11gR2 on OEL 6Oracle RAC KapurOracle RAC 10g Best PracticesOracle Rac Commands_v147763763-RACOracle Racoracle RAC+ASNoracle rac Oracle RAC Add New NodeOracle-RAC-11gR2-NICE.pdfVirtual Box User ManualD50311GC40_ag.pdfCRS RAC Troubleshooting Build Two Node Oracle Rac 11gr2 11-2-0 3 With Gns DNS Dhcp and Haip1Understanding Oracle RAC InternalsOracle RAC Administration Controlling With CRS CommandsD50311GC40_TOCOracle 11g Rac on Linux Using Oracle ASMGenymotion 2.6.0 User GuideD72896GC30_ag.pdf9i to 10g RAC Upgrade on Linuxbitcurator installOracle RAC Performance TuningUser ManualFooter MenuBack To TopAboutAbout ScribdPressOur blogJoin our team!Contact UsJoin todayInvite FriendsGiftsLegalTermsPrivacyCopyrightSupportHelp / FAQAccessibilityPurchase helpAdChoicesPublishersSocial MediaCopyright © 2018 Scribd Inc. .Browse Books.Site Directory.Site Language: English中文EspañolالعربيةPortuguês日本語DeutschFrançaisTurkceРусский языкTiếng việtJęzyk polskiBahasa indonesiaSign up to vote on this titleUsefulNot usefulYou're Reading a Free PreviewDownloadClose DialogAre you sure?This action might not be possible to undo. Are you sure you want to continue?CANCELOK
Copyright © 2024 DOKUMEN.SITE Inc.