Install Grid Infrastructure 11gR2 on Oracle VM

Created by : Hans Camu Date : 19 February 2011 http://camoraict.wordpress.com This paper is the forth in a series describing how-to install Oracle VM Server and several Oracle VM guests. In this paper I will describe how-to install Grid Infrastructure 11gR2 (GI) on 2 Oracle Virtual Machines. The steps described in this paper will be:  Create 2 virtual machines on the command line using a installation directory and a kickstart file  Configure the virtual machines to be able to successfully install GI  Install Grid Infrastructure 11gR2  Install Oracle 11g RDBMS Software  Patch GI and database software with latest GI bundle and PSU  Create an Oracle 11g RAC database The installation will take place on virtual machines with 4GB of memory. This guide is for testing purposes only. It is not supported to run a production environment with a setup like described in this paper.

Contents
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. Create Virtual Machine ................................................................................................................... 3 Create shared ASM disks ............................................................................................................... 17 Install some additional OS packages ............................................................................................. 20 Configure NTP................................................................................................................................ 21 Install Grid Infrastructure 11gR2 ................................................................................................... 22 Install Oracle 11gR2 RDBMS software........................................................................................... 47 Install Oracle 11gR2 RDBMS and GI patches ................................................................................. 57 Create ASM diskgroup for database files ...................................................................................... 61 Create RAC Database..................................................................................................................... 64 Loading Modified SQL Files into the Database .......................................................................... 75

Page 2 van 75

1. Create Virtual Machine
To install GI 11gR2 we first must create 2 virtual machines. On these virtual machines I will install OEL5.5 64-bit. The DVD ISO can be downloaded from here: http://edelivery.oracle.com/linux. There are numerous ways of creating an Oracle virtual machines. For example with virt-install, Oracle VM Manager, using Enterprise Manager Grid Control, and even in a manual way. In a previous paper I discussed how-to create a virtual machine using the command line tool virtinstall. In this paper I will discuss creating virtual machines by creating the configuration manually and the starting the installation from the command line. To make sure both virtual machines are exactly the same I will use a kickstart file. What will be present after installing using the kickstart file? OEL 5.5 64-bit with the selected packages a /u01 an Oracle user a generic oracle profile

In this example I have created an installation directory on my Oracle VM Server: /mount/OEL5u5_x86_64. This directory is a placeholder for the OEL5.5 64-bit installation files. Howto create this is discussed in paper Install Oracle VM Manager 2.2. I will now start creating the kickstart file:
##START of kickstart file install reboot text lang en_US.UTF-8 keyboard us nfs --server=192.168.0.200 --dir=/mount/OEL5u5_x86_64 network --device eth0 --bootproto query rootpw --iscrypted $1$wGAh8J7a$s3VZ07TWA8EcAUQG7esZt0 firewall --disabled authconfig --enableshadow --enablemd5 selinux --disable timezone Europe/Amsterdam bootloader --location=mbr --driveorder=xvda zerombr yes clearpart --initlabel part /boot --fstype ext3 --size=100 --ondisk=xvda part pv.100000 --size=38912 --grow --ondisk=xvda part pv.100001 --size=100000 --grow --ondisk=xvdb volgroup systemvg --pesize=32768 pv.100000 volgroup u01vg --pesize=32768 pv.100001 logvol / --fstype ext3 --name=rootlv --vgname=systemvg --size=4096 logvol swap --fstype swap --name=swaplv --vgname=systemvg --size=8192 logvol /usr --fstype ext3 --name=usrlv --vgname=systemvg --size=8192 logvol /var --fstype ext3 --name=varlv --vgname=systemvg --size=8192 logvol /tmp --fstype ext3 --name=tmplv --vgname=systemvg --size=8192 logvol /home --fstype ext3 --name=homelv --vgname=systemvg --size=2048 logvol /u01 --fstype ext3 --name=u01lv --vgname=u01vg --size=102399 services --disabled sendmail,xfs,bluetooth,cups,ip6tables,iptables %packages @base @core fipscheck

Page 3 van 75

squashfs-tools #device-mapper-multipath sgpio e4fsprogs oracle-validated createrepo audit sysstat # For 11g release 2 libaio-devel unixODBC unixODBC-devel compat-libstdc++-296-2.sh << EOF # .log { # Delete obsolete groups and users /usr/sbin/userdel -r oracle /usr/sbin/groupdel dba /usr/sbin/groupdel oinstall #rm -rf /home/oracle # create group /usr/sbin/groupadd -g 501 dba /usr/sbin/groupadd -g 502 asmadmin #oracle password is oracle /usr/sbin/useradd -c "npa" -u 500 -p '$1$wGAh8J7a$s3VZ07TWA8EcAUQG7esZt0' -g dba -G asmadmin oracle # Setup oracle profile cat > /etc/profile.96-138 %post --log=/root/ks-post.bash_profile # if [ \$USER = "oracle" ]. then if [ \$SHELL = "/bin/ksh" ].d/oracle_profile. then ulimit -u 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi ######extend search path export PATH=\$PATH:\$HOME/bin export PATH=/usr/java/default/bin:\$PATH export LD_LIBRARY_PATH=/usr/lib:/lib ####### Set some linux variables umask 022 trap 2 3 if tty -s then set -o vi export EDITOR=vi export TERM=vt100 stty erase ^? [ -s "\$MAIL" ] && echo "\$MAILMSG" fi ####### Environment variables for Oracle export ORACLE_BASE=/u01/app/oracle Page 4 van 75 .

unset ORAENV_ASK" echo -n \${sid}" " done echo fi ####### End .profile EOF # Setup sudo for oracle cat > /etc/sudoers << EOF %rootmembers ALL=NOPASSWD: /bin/su %oraclemembers.1 localhost.10)}'|sort" alias oracle="sudo su .export export export export export export ORACLE_TERM=vt100 NLS_LANG=AMERICAN_AMERICA.localdomain localhost Page 5 van 75 . ORACLE_SID=\${sid}.oracle oracle ALL=(ALL) NOPASSWD: ALL root ALL=(ALL) ALL EOF # Setup hosts file cat > /etc/hosts << EOF # Do not remove the following line.%rootmembers ALL=NOPASSWD: /bin/su .0. or various programs # that require network functionality will fail. oraenv.0. .UTF8 NLS_DATE_FORMAT='DD-MM-YYYY:HH24:MI:SS' NLS_SORT=Binary ORAADMIN=\$ORACLE_BASE/admin TNS_ADMIN=\$ORAADMIN/network/admin ###### if interactive session if tty -s then alias l="ls -al" alias ob="cd \${ORACLE_BASE}" alias oh="cd "\\\${ORACLE_HOME}"" alias oa="cd \${ORAADMIN}" alias sid="cat /etc/oratab |grep -v \"#\" |sort" alias up="ps -ef|grep pm[o]n|awk '{print substr(\\\$NF. 127.oracle" alias root="sudo su -" alias sqlplus="rlwrap sqlplus" alias dgmgrl="rlwrap dgmgrl" alias rman="rlwrap rman" alias lsnrctl="rlwrap lsnrctl" alias asmcmd="rlwrap asmcmd" alias adrci="rlwrap adrci" alias impdp="rlwrap impdp" alias expdp="rlwrap expdp" fi ####### Set unix prompt USER=\${USER:-\$LOGNAME} if tty -s then export PS1="\${USER}@\`hostname -s\`:\\\${ORACLE_SID}:\\\${PWD} $ " fi if tty -s then #create aliases for all ORACLE_SIDs echo -n aliases: for LINE in \`cat /etc/oratab| sort | grep -v "^*" | grep -v "^#" | grep -vE "^[ ]*$" | cut -f 1 -d :\` do sid=\`echo \$LINE|cut -f 1 -d :\` alias \${sid}="ORAENV_ASK=NO.

Copy the boot ramdisk and kernel to the /boot direcrory.example.0.com indy dean. First I will create the directories to store the files for the virtual machines: [root@oraovs01 /]# mkdir /OVS/running_pool/indy [root@oraovs01 /]# mkdir /OVS/running_pool/dean As you can see I will name the virtual machines indy and dean.example.com gridcl01-scan mkdir -p /u01/app/oracle/admin/network/admin chown -R oracle:dba /u01 chmod -R 775 /u01 } 1>/root/ks-post.example.212 EOF indy. For the local file system and /u01 this I not really a problem and will not lead to any performance problems. [root@oraovs01::/root]# cp /mount/OEL5u5_x86_64/images/xen/vmlinuz /boot/vmlinuz_OEL5_x86_64 [root@oraovs01::/root]# cp /mount/OEL5u5_x86_64/images/xen/initrd.## Public 192.0.220 # VIP 192.210 192. [root@oraovs01 /]# dd if=/dev/zero of=/OVS/running_pool/indy/system.168.168.0.img The last step before we can actual create the virtual machines is to create a configuration files for both virtual machines.img /boot/initrd_OEL5_x86_64.0.img bs=1G count=0 seek=100 To create a virtual machine manually you must define the ramdisk and kernel needed for the initial boot.220 ## Private 10.210 10.0.com dean-interc indy-vip.example.211 192.com indy-vip dean-vip.0.168.0.168. I choose to create spare files which will not immediately occupy all space.com dean indy-interc.0.0.cfg for virtual machine indy: Page 6 van 75 . A 2-node cluster also behaves like a twin.img bs=1G count=0 seek=40 [root@oraovs01 /]# dd if=/dev/zero of=/OVS/running_pool/indy/u01disk01.example. Now create the files for the virtual machines.img bs=1G count=0 seek=40 [root@oraovs01 /]# dd if=/dev/zero of=/OVS/running_pool/dean/u01disk01. In time it will grow until the maximum defined size.221 ## SCAN 192.example.img bs=1G count=0 seek=100 [root@oraovs01 /]# dd if=/dev/zero of=/OVS/running_pool/dean/system. so I named the nodes after my sisters twins. This is the vm.log 2>&1 ##END of kickstart file In the next few steps I will make some preparations to be able to create the virtual machines.example.com dean-vip gridcl01-scan.com indy-interc dean-interc.168.

[root@oraovs01::/root]# vi /OVS/running_pool/indy/vm.type=netfront'.img" extra = "text ks=nfs:192.cfg" #bootloader = '/usr/bin/pygrub' disk = ['file:/OVS/running_pool/indy/system. 'file:/OVS/running_pool/dean/u01disk01.mac=00:16:3E:00:01:02.168. Page 7 van 75 .cfg kernel = "/boot/vmlinuz_OEL5_x86_64" ramdisk = "/boot/initrd_OEL5_x86_64.w'.168.type=netfront'. 'bridge=xenbr1.img.0.w'.cfg Because of the -c option a console will be opened I which can perform the action to create the virtual machine.cfg for virtual machine dean: [root@oraovs01::/root]# vi /OVS/running_pool/dean/vm.200:/software/kickstart/OEL5u5_x86_64_GI.cfg kernel = "/boot/vmlinuz_OEL5_x86_64" ramdisk = "/boot/initrd_OEL5_x86_64.0.img.w' ] memory = '4096' name = 'dean' on_crash = 'restart' on_reboot = 'restart' vcpus = 1 vif = ['bridge=xenbr0.img" extra = "text ks=nfs:192. 'bridge=xenbr1. 'file:/OVS/running_pool/indy/u01disk01.type=netfront'.xvda.cfg" #bootloader = '/usr/bin/pygrub' disk = ['file:/OVS/running_pool/dean/system. ] vif_other_config = [] And this is the vm.200:/software/kickstart/OEL5u5_x86_64_GI.mac=00:16:3E:00:01:01.xvdb.mac=00:16:3E:00:02:01.xvda.mac=00:16:3E:00:02:02.img.type=netfront'. ] vif_other_config = [] Now we are ready to create the first virtual machine: [root@oraovs01::/root]# xm create -c /OVS/running_pool/indy/vm.img.xvdb.w' ] memory = '4096' name = 'indy' on_crash = 'restart' on_reboot = 'restart' vcpus = 1 vif = ['bridge=xenbr0.

Click OK. Page 8 van 75 .Action: Select eth0 as the network device to install through. Action: Enable Manual configuration for the IPv4 support. Disable IPv6 support. Click OK.

Eth1 will be configured as the private network for the clusterware communication. Click OK. Action: Select eth1 and click Edit.Action: Specify the TCP/IP configuration for the virtual machine. Page 9 van 75 .

Click OK. Click OK. Action: Select Manual address configuration and specify the TCP/IP configuration for the private network. Page 10 van 75 .Action: Select Activate on boot and Enable IPv4 support.

Page 11 van 75 . Click OK. Click OK.Action: All network devices are now configured. Action: Accept the default values for the Miscellaneous Network Settings.

Based on the specifications in the kickstart file all dependencies for the installation will be checked. Page 12 van 75 . Click OK.Action: Specify the Hostname Configuration foe the virtual machine.

4 1.2 Page 13 van 75 .5 64-bit is now installed. Check if virtual machine is running again: [root@oraovs01::/root]# xm list Name Domain-0 indy ID 0 1 Mem VCPUs 564 8 4096 1 State r-----b---Time(s) 2516. Action: The installation is now finished and the virtual machine is rebooted.OEL 5. This only takes a few minutes.

cfg" bootloader = '/usr/bin/pygrub' disk = ['file:/OVS/running_pool/indy/system.type=netfront'.w'.w' ] memory = '4096' name = 'indy' on_crash = 'restart' on_reboot = 'restart' vcpus = 1 vif = ['bridge=xenbr0. To stop this stop your console session with ctrl] ( control + ] ) Now stop the virtual machine: [root@oraovs01::/root]# xm destroy indy OR [root@oraovs01::/root]# xm shutdown indy Now modify the virtual machines configuration file.0. 'bridge=xenbr1.Open the console to check what is happening [root@oraovs01::/root]# xm console indy Action: This is default behavior.img.img" #extra = "text ks=nfs:192.200:/software/kickstart/OEL5u5_x86_64_GI.xvda. 'file:/OVS/running_pool/indy/u01disk01.xvdb.168.img.cfg #kernel = "/boot/vmlinuz_OEL5_x86_64" #ramdisk = "/boot/initrd_OEL5_x86_64. ] vif_other_config = [] Page 14 van 75 .mac=00:16:3E:00:01:01.mac=00:16:3E:00:01:02. The virtual machines restart and will start the installation procedure again.type=netfront'. You must deactivate the kernel. ramdisk and extra lines and activate the bootloader line: [root@oraovs01::/root]# vi /OVS/running_pool/indy/vm.

Just wait for a short time until it's started completely. Page 15 van 75 . Action: You can now login and check if the installation is performed as expected.cfg The virtual machine is being started.Now start the virtual machine again: [root@oraovs01::/root]# xm create -c /OVS/running_pool/indy/vm.

You now have one node for your cluster. Page 16 van 75 . Now repeat the steps to create the second virtual machine called dean.

img bs=1M count=4096 /]# dd if=/dev/zero of=/OVS/sharedDisk/asmdisk3. This can be accomplished with the xm block-attach command: [root@oraovs01::/root]# xm block-attach indy file:/OVS/sharedDisk/asmocrvote.img /dev/xvdc w! [root@oraovs01::/root]# xm block-attach indy file:/OVS/sharedDisk/asmdisk1.img.1 root disk disk disk disk disk disk disk disk disk 202.img.cfg disk = ['file:/OVS/running_pool/indy/system.img bs=1M /]# dd if=/dev/zero of=/OVS/sharedDisk/asmdisk1. 'file:/OVS/running_pool/indy/u01disk01.img.img.img.img /dev/xvdd w! [root@oraovs01::/root]# xm block-attach indy file:/OVS/sharedDisk/asmdisk2.xvdb.xvde. 202.w'.xvdc.w!'. 'file:/OVS/sharedDisk/asmdisk1.xvda.img.w!'.img /dev/xvdf w! Repeat this step for virtual machine dean! After attaching the shared disks check if the devices are available: root@indy::/root $ ls -l /dev/xvd* brw-r----. ] The shared disks can be attached to the virtual machines online. 202. In this chapter I will create these shared disks.img bs=1M count=4096 To be able to use these newly created shared disks the configuration file vm. 202. 0 1 2 16 17 32 48 64 80 Feb Feb Feb Feb Feb Feb Feb Feb Feb 19 19 19 19 19 19 19 19 19 14:13 14:13 14:13 14:13 14:13 14:49 14:50 14:50 14:50 /dev/xvda /dev/xvda1 /dev/xvda2 /dev/xvdb /dev/xvdb1 /dev/xvdc /dev/xvdd /dev/xvde /dev/xvdf Page 17 van 75 . 202. 202.img /dev/xvde w! [root@oraovs01::/root]# xm block-attach indy file:/OVS/sharedDisk/asmdisk3.1 root brw-r----. 'file:/OVS/sharedDisk/asmdisk3. 'file:/OVS/sharedDisk/asmdisk2.xvdf.w!'.1 root brw-r----.w!'.img bs=1M count=4096 /]# dd if=/dev/zero of=/OVS/sharedDisk/asmdisk2. 202.1 root brw-r----.1 root brw-r----.2.img. Create shared ASM disks To be able to install Grid Infrastructure 11gR2 you must have disks which can be shared between the nodes in the cluster.cfg of both virtual machines must be modified: [root@oraovs01::/root]# vi /OVS/running_pool/indy/vm.img. It is not needed to stop the virtual machines first.xvdd.1 root brw-r----.1 root brw-r----. A new feature in GI 11gR2 is that you can now store the OCR and votingdisks in ASM.1 root brw-r----.1 root brw-r----. [root@oraovs01 count=1024 [root@oraovs01 [root@oraovs01 [root@oraovs01 /]# dd if=/dev/zero of=/OVS/sharedDisk/asmocrvote. This will definitely improve the performance of the virtual machines. 'file:/OVS/sharedDisk/asmocrvote. The files created in the next steps will be used to store the OCR and votingdisk and to create a ASM diskgroup to store database files in.img. 202. Unlike the previous created files it is recommended not create sparse files but fully allocate the files for ASM usage.w'. 202.

1 root brw-r----. Syncing disks.1 root brw-r----.1 root brw-r----. /dev/xvde and /dev/xvdf. Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-130.1 root brw-r----. 202. until you decide to write them.1 root brw-r----. After that. 202. 202.1 root brw-r----.1 root disk disk disk disk disk disk disk disk disk disk disk disk disk 202.1 root brw-r----. 202. 202. SGI or OSF disklabel Building a new DOS disklabel. 202.1 root brw-r----. of course. default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-130.1 root brw-r----. Partition the devices on only 1 virtual machine: root@::/root $ fdisk /dev/xvdc Device contains neither a valid DOS partition table.1 root brw-r----. Repeat this for devices /dev/xvdd.1 root brw-r----. 202.1 root brw-r----. default 130): Using default value 130 Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. nor Sun. 202. Before you can use the devices they must be partitioned first. 0 1 2 16 17 32 33 48 49 64 65 80 81 Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb Feb 19 19 19 19 19 19 19 19 19 19 19 19 19 14:17 14:18 14:17 14:17 14:17 14:55 14:55 14:58 14:58 14:58 14:58 14:58 14:58 /dev/xvda /dev/xvda1 /dev/xvda2 /dev/xvdb /dev/xvdb1 /dev/xvdc /dev/xvdc1 /dev/xvdd /dev/xvdd1 /dev/xvde /dev/xvde1 /dev/xvdf /dev/xvdf1 Now run the partprobe command to update the kernel with the modified partition table. 202. 202. Perform a quick check to see if the partitions are available: root@indy::/root $ ls -l /dev/xvd* brw-r----. root@indy::/root $ partprobe /dev/xvdc root@indy::/root $ partprobe /dev/xvdd root@indy::/root $ partprobe /dev/xvde root@indy::/root $ partprobe /dev/xvdf Repeat this step for virtual machine dean! Page 18 van 75 .The new disks are now available as devices /dev/xvdc-e. 202. 202. the previous content won't be recoverable. Changes will remain in memory only.

NAME="asmocrvote1p1". GROUP="asmadmin".rules dean:/etc/udev/rules. MODE="0660" KERNEL=="xvdd1". Otherwise they can't be used while installing Grid Infrastructure. ASMLib and multipath rules. MODE="0660" Copy this file to virtual machine dean: root@indy::/root $ scp /etc/udev/rules.rules Now activate the UDEV rules (on both nodes indy and dean): root@indy::/root $ /sbin/udevcontrol reload_rules root@indy::/root $ /sbin/start_udev Starting udev: [ OK ] Check if the permissions are set through correctly and if the devices are created: $ l /dev/asm* brw-rw---. NAME="asmdisk1p1". Page 19 van 75 .d/99oracle-asmdevices.1 oracle brw-rw---. 49 65 81 33 Feb Feb Feb Feb 20 20 20 20 12:41 12:41 12:41 12:41 /dev/asmdisk1p1 /dev/asmdisk2p1 /dev/asmdisk3p1 /dev/asmocrvote1p1 If you want to check if the configuration from above steps will also function correctly after a node reboot then this is the time to test this. 202.d/99-oracle-asmdevices. GROUP="asmadmin". NAME="asmdisk2p1". OWNER="oracle". OWNER="oracle". I will use UDEV rules to set the permissions but also to give the devices a logical name.Now the devices are ready they must be given the correct permissions.d/99-oracle-asmdevices. GROUP="asmadmin". MODE="0660" KERNEL=="xvde1".1 oracle brw-rw---. GROUP="asmadmin". NAME="asmdisk3p1". OWNER="oracle".1 oracle asmadmin asmadmin asmadmin asmadmin 202. MODE="0660" KERNEL=="xvdf1". OWNER="oracle". There are multiple ways to accomplish this like UDEV rules.rules KERNEL=="xvdc1". 202. First create the UDEV permissions file for the ASM disk devices: root@indy::/root $ vi /etc/udev/rules.1 oracle brw-rw---. 202.

Install some additional OS packages In this chapter I will install some additional OS packages.rpm: Header V3 DSA signature: NOKEY.37-1. Download rlwrap from here: rlwrap. rman and so on. root@indy::/root $ rpm -ivh /software/Linux/rpm/rlwrap-0.. The first is the command line wrapper rlwrap.x86_64. ########################################### [100%] 1:rlwrap ########################################### [100%] Page 20 van 75 .3. key ID 217521f6 Preparing.37-1.el5..x86_64. With this tool it is possible to track back previous commands in command line tools like sqlplus.el5.rpm warning: /software/Linux/rpm/rlwrap-0.

conf xen.independent_wallclock parameter to the /etc/sysctl.4.independent_wallclock = 1 To activate the parameter: root@indy::/root $ sysctl -p The NTP skewing option must be configured. Configure NTP For an Oracle cluster to function correctly is is of most importance that some kind of time synchronization is in place. Also prevent syncing the hardware clock to avoid NTP start errors: root@indy::/root $ vi /etc/sysconfig/ntpd OPTIONS="-u ntp:ntp -p /var/run/ntpd. This is possible with the new CTSS (Cluster Time Synchronization Service) daemon. If prefer to configure NTP on the hosts. This is done by adding the xen.pid -x" SYNC_HWCLOCK=no root@indy::/root $ chmod -x /sbin/hwclock Now the NTP daemon can be starten: root@indy::/root $ service ntpd start ntpd: Synchronizing with time server: Starting ntpd: [ [ OK OK ] ] NTP must also be started when the node has te be rebooted. First make sure the guest will not synchronize with dom0.conf file: root@indy::/root $ vi /etc/sysctl. This can be accomplished with the chkconfig utility: root@indy::/root $ chkconfig ntpd on And with the same chkconfig you can check the modifications: root@indy::/root $ chkconfig --list ntpd ntpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off Page 21 van 75 .

0. This package is available as part of p10098816_112020_Linuxx86-64_3of7. Page 22 van 75 . To prepare the OS to install GI without additional steps during the installation the cvudisk package must be installed before installation.2. In this paper I use version 11. For this installation you only need to download: p10098816_112020_Linux-x86-64_1of7.zip Database binaries part 1 p10098816_112020_Linux-x86-64_2of7.zip Database binaries part 2 p10098816_112020_Linux-x86-64_3of7. First we hace to download the software.zip Grid Infrastructure binaries Unzip the files in your staging area after downloading the files.5.2 which can only be download as patch from My Oracle Support (patch 10098816). Install Grid Infrastructure 11gR2 We are now almost ready to start installing Grid Infrastructure.zip.

root@indy::/root $ export CVUQDISK_GRP=dba root@indy::/root $ rpm -ivh /software/Database/11.2.0.2/grid/rpm/cvuqdisk-1.0.9-1.rpm Preparing... ########################################### [100%] 1:cvuqdisk ########################################### [100%]

Now we can start installing GI 11gR2. Set the DISPLAY parameter and start runInstaller.sh.
oracle@indy::/home/oracle $ export DISPLAY=192.168.0.105:0.0 oracle@indy::/software $ cd /software/Database/11.2.0.2/grid/ oracle@indy::/software/Database/11.2.0.2/grid $ ./runInstaller

Action: Select Skip software updates. Click Next.

Page 23 van 75

Action: Select Install and Configure Oracle Grid Infrastructure fo a Cluster. Click Next.

Action: Select Advanced Installation. Click Next. Page 24 van 75

Action: Select the language of your choice. Click Next.

Action: SCAN is a new 11gR2 feature. SCAN (Single Client Access Name) makes it possible to resolve up to 3 IP addresses with 1 single name. Best practice is to configure your SCAN IP addresses in DNS. Page 25 van 75

Because of this choice it is only possible to resolve 1 IP address. SCAN Name and SCAN Port. Action: Click Edit. Deselect Configure GNS.For this paper I will use the local /etc/hosts file to resolve the SCAN address. We not use the GNS (Global Naming Service) feature in this paper. Action: Specify the Cluster Name. Click Next. At this point of the installation you don't have to take additional steps to configure the /etc/hosts file because this was already taken care of while installing the virtual machine. Page 26 van 75 . This was one of the steps defined in the kickstart file.

Action: Click Add to add the 2nd virtual machine to the cluster. Page 27 van 75 .Action: Remove domain name from the entries. Click OK.

Action: Specify the Hostname and the Virtual IP Name. Action: At this point is it possible to let the installer configure the SSH Connectivity between the nodes. Page 28 van 75 . Click SSH Connectivity. Click OK.

Page 29 van 75 . Action: Wait until the SSH Connectivity is setup. Click Setup.Action: Specify the oracle OS Password.

Action: Click OK. Action: Click Next. Page 30 van 75 .

Click Next. Page 31 van 75 . Action: Select Oracle Automatic Storage Management (Oracle ASM).Action: The network interfaces are configured correctly. Click Next.

but they are there! Click Change Discovery Path.Action: At this point no disks are displayed. Click OK. Action: Specify the Disk Discovery Path as /dev/asm*. Page 32 van 75 .

Action: Specify the passwords for the SYS and ASMSNMP accounts. Page 33 van 75 . Click Next. the Redundancy as External and select the Candidate Disk used for the ASM diskgroup to store the OCR ans votingdisk. Click Next.Action: Specify the Disk Group Name.

Page 34 van 75 . Click Next.Action: Select Do not use Intelligent Platform Management Interface (IPNI). Action: Specify dba as the Oracle ASM Operator (OSOPER for ASM) Group. Click Next.

Click Next.Action: Click Yes. Action: Specify the Oracle Base and Software Location for the GI home. Page 35 van 75 .

Action: Click Yes.Action: Specify the Inventory Directory. Click Next. Page 36 van 75 .

The Device Checks for ASM point out to Bug 10357213: ASM DEVICE CHECK FAILS WITH PRVF-5184 DURING GI INSTALL and can be ignored. Page 37 van 75 . This will have no impact on the installation.Action: Wait until some checks are performed. 2 checks are returned with errors.

Page 38 van 75 . Action: Select Ignore All and Click Next. Action: Click Install. So I will ignore this error. But I also want to use the Automatic Memory Management feature for the database and this feature is not compatible with Huge Pages.Because the OS memory is greater than 4GB oracle recommends to configure Huge Pages.

Page 39 van 75 .Action: Wait while GI gets installed. Action: Execute the scripts as user root on the local node first and then on the second node.

successful root wallet root wallet cert root cert export peer wallet profile reader wallet pa wallet peer wallet keys pa wallet keys peer cert request pa cert request peer cert pa cert peer root cert TP profile reader root cert TP pa root cert TP peer pa cert TP pa peer cert TP profile reader pa cert TP profile reader peer cert TP peer user cert pa user cert Adding daemon to inittab ACFS-9200: Supported ACFS-9300: ADVM/ACFS distribution files found. ACFS-9327: Verifying ADVM/ACFS devices. Copying oraenv to /usr/local/bin . ACFS-9323: Creating module dependencies .0.. OLR initialization . ACFS-9309: ADVM/ACFS installation correctness verified.2/root. Entries will be added to the /etc/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root script. privgrp 'root'. Copying coraenv to /usr/local/bin .. Adding read. ACFS-9308: Loading installed ADVM/ACFS drivers. ACFS-9307: Installing requested ADVM/ACFS software.2.write permissions for group.. ACFS-9321: Creating udev for ADVM/ACFS.2. Using configuration parameter file: /u01/app/grid/11. Operation successful. Removing read. Creating /etc/oratab file.....execute permissions for world.2/crs/install/crsconfig_params Creating trace directory LOCAL ADD MODE Creating OCR keys for user 'root'.mdnsd' on 'indy' Page 40 van 75 . root@indy::/root $ /u01/app/grid/11.0..2 Enter the full pathname of the local bin directory: [/usr/local/bin]: Copying dbhome to /usr/local/bin . The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /u01/app/grid/11. Changing groupname of /u01/app/oracle/oraInventory to dba...sh Changing permissions of /u01/app/oracle/oraInventory. The execution of the script is complete.sh Running Oracle 11g root script.this may take some time. CRS-2672: Attempting to start 'ora..2. Now product-specific root actions will be performed.write.0.First node (indy): root@indy::/root $ /u01/app/oracle/oraInventory/orainstRoot.

----------------------------..registry.diskmon' on 'indy' succeeded Start of 'ora.CRS-2676: CRS-2672: CRS-2676: CRS-2672: CRS-2672: CRS-2676: CRS-2676: CRS-2672: CRS-2672: CRS-2676: CRS-2676: Start of 'ora..2..execute permissions for world.sh Creating the Oracle inventory pointer file (/etc/oraInst. succeeded First node (dean): root@dean::/root $ /u01/app/oracle/oraInventory/orainstRoot.2.0. Creating /etc/oratab file.cssdmonitor' on 'indy' Attempting to start 'ora. Disk Group DGGRID created successfully.mdnsd' on 'indy' succeeded Attempting to start 'ora.gipcd' on 'indy' Start of 'ora. Removing read.dg' on 'indy' CRS-2676: Start of 'ora.cssd' on 'indy' Attempting to start 'ora..acfs' on 'indy' succeeded Configure Oracle Grid Infrastructure for a Cluster .loc) Changing permissions of /u01/app/oracle/oraInventory.--------1.asm' on 'indy' succeeded CRS-2672: Attempting to start 'ora...registry.gipcd' on 'indy' succeeded Attempting to start 'ora. Copying coraenv to /usr/local/bin .2 Enter the full pathname of the local bin directory: [/usr/local/bin]: Copying dbhome to /usr/local/bin . Changing groupname of /u01/app/oracle/oraInventory to dba. root@dean::/root $ /u01/app/grid/11.asm' on 'indy' CRS-2676: Start of 'ora.cssd' on 'indy' succeeded ASM created and started successfully. CRS-4256: Updating the profile Successful addition of voting disk aa4ddcf9ff744fd7bfd127b4f208f37a . Creating OCR keys for user 'root'.write permissions for group.0... privgrp 'root'.acfs' on 'indy' CRS-2676: Start of 'ora.sh Running Oracle 11g root script. Operation successful.dg' on 'indy' succeeded ACFS-9200: Supported ACFS-9200: Supported CRS-2672: Attempting to start 'ora.2/root. Adding read. CRS-2672: Attempting to start 'ora. Copying oraenv to /usr/local/bin . The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /u01/app/grid/11. The execution of the script is complete.. clscfg: -install mode specified Successfully accumulated necessary OCR keys.gpnpd' on 'indy' succeeded Attempting to start 'ora.DGGRID.cssdmonitor' on 'indy' succeeded Start of 'ora. CRS-4256: Updating the profile CRS-4266: Voting file(s) successfully replaced ## STATE File Universal Id File Name Disk group -. ONLINE aa4ddcf9ff744fd7bfd127b4f208f37a (/dev/asmocrvotedisk1p1) [DGGRID] Located 1 voting disk(s)..write.gpnpd' on 'indy' Start of 'ora.diskmon' on 'indy' Start of 'ora.. Entries will be added to the /etc/oratab file as needed by Page 41 van 75 .DGGRID... Successfully replaced voting disk group with +DGGRID.

CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node indy.successful Adding daemon to inittab ACFS-9200: Supported ACFS-9300: ADVM/ACFS distribution files found. Using configuration parameter file: /u01/app/grid/11. ACFS-9321: Creating udev for ADVM/ACFS.2. ACFS-9309: ADVM/ACFS installation correctness verified. number 1. restarting to join the cluster Configure Oracle Grid Infrastructure for a Cluster .0. OLR initialization . Operation successful..this may take some time. privgrp 'root'. ACFS-9323: Creating module dependencies . ACFS-9308: Loading installed ADVM/ACFS drivers.. ACFS-9327: Verifying ADVM/ACFS devices. Action: Wait until some the last configuration steps are being performed. succeeded Now click OK.. ACFS-9307: Installing requested ADVM/ACFS software. and is terminating An active cluster was found during exclusive startup. Page 42 van 75 .2/crs/install/crsconfig_params Creating trace directory LOCAL ADD MODE Creating OCR keys for user 'root'. Now product-specific root actions will be performed.Database Configuration Assistant when a database is created Finished running generic part of root script.

INFO: TCP connectivity to SCAN Listeners exists on all cluster nodes INFO: Checking name resolution setup for "gridcl01-scan". INFO: Checking TCP connectivity to SCAN Listeners.This error is returned because I didn't setup DNS for the SCAN feature but added it to the host file.. INFO: ERROR: INFO: PRVF-4664 : Found inconsistent name resolution entries for SCAN name "gridcl01-scan" INFO: ERROR: INFO: PRVF-4657 : Name resolution setup check for "gridcl01-scan" (IP address: 192..168. For this reason this error can safely be ignored. INFO: Checking Single Client Access Name (SCAN). Page 43 van 75 .212) failed INFO: ERROR: INFO: PRVF-4664 : Found inconsistent name resolution entries for SCAN name "gridcl01-scan" INFO: Verification of SCAN VIP and Listener setup failed Action: Click OK..0....

Page 44 van 75 . Action: Click Next.Action: Click Skip.

lsnr ONLINE ONLINE dean Page 45 van 75 . Perform a quick check to see if all GI processes are available oracle@indy::/home/oracle $ .dg ONLINE ONLINE dean ONLINE ONLINE indy ora.DGGRID. oraenv ORACLE_SID = [oracle] ? +ASM1 The Oracle base remains unchanged with value /u01/app/oracle oracle@indy:+ASM1:/home/oracle $ crsctl stat res -t -------------------------------------------------------------------------------NAME TARGET STATE SERVER STATE_DETAILS -------------------------------------------------------------------------------Local Resources -------------------------------------------------------------------------------ora. Action: Click Close.Action: Click Yes.LISTENER.

ONLINE ora.acfs 1 ONLINE ONLINE indy ora.cssd 1 ONLINE ONLINE indy ora.gpnpd 1 ONLINE ONLINE indy ora.gipcd 1 ONLINE ONLINE indy ora.ons ONLINE ONLINE dean ONLINE ONLINE indy ora. Page 46 van 75 .oc4j 1 ONLINE ONLINE indy ora.acfs ONLINE ONLINE dean ONLINE ONLINE indy -------------------------------------------------------------------------------Cluster Resources -------------------------------------------------------------------------------ora.ctssd 1 ONLINE ONLINE indy OBSERVER ora.haip 1 ONLINE ONLINE indy ora.mdnsd 1 ONLINE ONLINE indy At this point the base installation of the GI software is completed.LISTENER_SCAN1.cluster_interconnect.asm ONLINE ONLINE ora.indy.vip 1 ONLINE ONLINE indy oracle@indy:+ASM1:/home/oracle $ crsctl stat res -t -init -------------------------------------------------------------------------------NAME TARGET STATE SERVER STATE_DETAILS -------------------------------------------------------------------------------Cluster Resources -------------------------------------------------------------------------------ora.evmd 1 ONLINE ONLINE indy ora.diskmon 1 ONLINE ONLINE indy ora.crsd 1 ONLINE ONLINE indy ora.vip 1 ONLINE ONLINE dean ora.lsnr 1 ONLINE ONLINE indy ora.network ONLINE ONLINE dean ONLINE ONLINE indy ora.dean.drivers.cvu 1 ONLINE ONLINE indy ora.crf 1 ONLINE ONLINE indy ora.scan1.gsd ONLINE ONLINE ONLINE indy dean indy Started OFFLINE OFFLINE dean OFFLINE OFFLINE indy ora.asm 1 ONLINE ONLINE indy Started ora.vip 1 ONLINE ONLINE indy ora.cssdmonitor 1 ONLINE ONLINE indy ora.net1.registry.

2.2.6.105:0.2/database oracle@indy::/software/Database/11.0. oracle@indy::/home/oracle $ export DISPLAY=192. Set the DISPLAY parameter and start runInstaller. Like the GI software I will use Oracle RDBMS version 11. In a previous step I already downloaded the software needed for this step.0.sh. Click Next.0.2.0 oracle@indy::/software $ cd /software/Database/11. Page 47 van 75 .2.0.168. Install Oracle 11gR2 RDBMS software We are now ready to continue with the installation of the Oracle 11g RDBMS software so we can create a RAC-database ina next step./runInstaller Action: Deselect I wish to receive security updates via My Oracle Support.2/database $ .

Click Next.Action: Click Yes. Page 48 van 75 . Action: Select Skip software updates.

Page 49 van 75 . Action: Make sure all nodes are selected. Click Next. Click Next.Action: Select Install database software only.

Page 50 van 75 .Action: Select the language of your choice. Click Next. Action: Click Select Options.

Click Select All and then click OK. Page 51 van 75 .Action: Because I want to be able to play with all available options I will install all options. Action: Click Next.

Page 52 van 75 .Action: Specify the Oracle Base and the database Software Location. Click Next. Action: Select dba as the Database Operator (OSOPER) Group. Click Next.

Page 53 van 75 .Action: Wait until some checks are performed. Action: Click Install to start the database software installation.

Page 54 van 75 . Action: Execute the script as user root on the local node first and then on the second node.Action: Wait while the database software is being installed.

Entries will be added to the /etc/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root script.0.. The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /u01/app/oracle/product/11. The contents of "coraenv" have not changed.. Second node (dean): root@dean::/root $ /u01/app/oracle/product/11. No need to overwrite.2/db_000/root. The contents of "oraenv" have not changed. Now product-specific root actions will be performed. No need to overwrite. The contents of "coraenv" have not changed.0.2. No need to overwrite.sh Running Oracle 11g root script.2. No need to overwrite.0. Entries will be added to the /etc/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root script.2/db_000 Enter the full pathname of the local bin directory: [/usr/local/bin]: The contents of "dbhome" have not changed. No need to overwrite. The contents of "oraenv" have not changed. Now Click OK..2/db_000/root.First node (indy): root@indy::/root $ /u01/app/oracle/product/11.2/db_000 Enter the full pathname of the local bin directory: [/usr/local/bin]: The contents of "dbhome" have not changed.. Page 55 van 75 . The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /u01/app/oracle/product/11. Now product-specific root actions will be performed. No need to overwrite.2.sh Running Oracle 11g root script. Finished product-specific root actions.2. Finished product-specific root actions.0.

Page 56 van 75 . At this point the base installation of the database software is completed.Action: Click Close.

Email address/User Name: You have not provided an email address for notification of security issues.zip p10157506_112020_Linux-x86-64. Install Oracle 11gR2 RDBMS and GI patches I recommend downloading and installing at least the following patches: Grid INfrastructure: Opatch GI Bundle #1 Database: Opatch PSU 11.log Detected Oracle Clusterware install Page 57 van 75 .2.2/OPatch/ocm/ocm_platforms.2./cfgtoollogs/opatchauto2011-02-20_15-0507.2.0. [r]ename: A inflating: /u01/app/grid/11..2.0.txt extracting: /u01/app/grid/11. Do you wish to remain uninformed of security issues ([Y]es..2/OPatch/crs/.. [N]o) [N]: Y The OCM configuration response file (ocm.2. Oracle and/or its affiliates.2.2. inflating: /u01/app/grid/11.3.2/crs/install/crsconfig_params opatch auto log file location is /u01/app/grid/11. The next steps must be performed on all nodes: oracle@indy::/home/oracle $ +ASM1 The Oracle base remains unchanged with value /u01/app/oracle oracle@indy:+ASM2:/home/oracle $ cd /u01/app/grid/11.com/support/policies. Visit http://www.0.0./.2.2.2/OPatch/README.0.2 -patchn 10157506 -oh /u01/app/oracle/product/11. replace /u01/app/grid/11.zip extracting: /u01/app/grid/11. install and initiate Oracle Configuration Manager.txt? [y]es.2/10157506 -oh /u01/app/grid/11.2.2/Patches/GI/11. [N]one. Easier for you if you use your My Oracle Support Email address/User Name..2.2/OPatch/ocm/ocm_platforms.0.0.zip p6880880_112000_Linux-x86-64.2 Archive: p6880880_112000_Linux-x86-64. [A]ll. All rights reserved.2/OPatch/ocm/bin $ /u01/app/grid/11..2.2.zip .pl -patchdir /software/Database/11..0.0.rsp) was successfully created.1.0.0.0.1 p6880880_112000_Linux-x86-64.0 .0..2.txt Repeat this for $ORACLE_HOME /u01/app/oracle/product/11.2/OPatch/opatch auto /software/Database/11.2/Patches/GI/11.2.2.2.0..0.2/db_000 -paramfile /u01/app/grid/11.2.0.2.2/OPatch/ocm/bin oracle@indy:+ASM2:/u01/app/grid/11.2. [n]o.2.2/OPatch/ocm/ocm.2.2/OPatch/crs/log/dummy . root@indy::/root $ /u01/app/grid/11.0.oracle. 2009..7.2/db_000 Now I will Install GI Bundle #1.2/OPatch/crs/patch112.Production Copyright (c) 2005.zip -d /u01/app/grid/11.html for details.0.0.zip First refresh OPatch (must be performed on ALL nodes) oracle@indy::/home/oracle $ cd /software/OPatch/ oracle@indy::/software/OPatch $ unzip p6880880_112000_Linux-x86-64. Provide your email address to be informed of security issues..0.2.2 Executing /usr/bin/perl /u01/app/grid/11.0.2/OPatch/ocm/bin/emocmrsp OCM Installation Response Generator 10.zip p10248523_112020_Linux-x86-64.

0.2.2. install and initiate Oracle Configuration Manager.0.0.2.2.2.2/db_000 Central Inventory : /u01/app/oracle/oraInventory from : /etc/oraInst.Using configuration parameter file: /u01/app/grid/11..2/crs/install/crsconfig_params OPatch is bundled with OCM. Oracle Home : /u01/app/oracle/product/11. [N]o) [N]: Y OPatch detected the node list and the local node from the inventory. Easier for you if you use your My Oracle Support Email address/User Name.2/db_000/cfgtoollogs/opatch/opatch_history.loc OPatch version : 11.1./cfgtoollogs/opatchauto2011-02-20_15-0507.2/10248523 oracle@indy::/software/Database/11.2/OPatch/crs/patch112. Oracle Corporation.2/10248523 $ /u01/app/oracle/product/11.2/Patches/GI/11.2/Patches/GI/11.4 Oracle Interim Patch Installer version 11.0.0.pl -patchdir /software/Database/11.0.0.2.2/db_000' Interim patch 10248523 is a superset of the patch(es) [ 10158965 ] in the Oracle Home OPatch will rollback the subset patches and apply the given patch.0.2/db_000 -paramfile /u01/app/grid/11.0.1.0.2.2. All rights reserved.0.rsp root@indy::/root $ /u01/app/grid/11. Email address/User Name: You have not provided an email address for notification of security issues.2/OPatch/ocm/bin/ocm.0..2/db_000 Executing /usr/bin/perl /u01/app/grid/11.0..html for details. Running prerequisite checks.2.0. Visit http://www.0.2.oracle.2/OPatch/crs/.2.2.0.2/OPatch/opatch auto /software/Database/11.2.0.2.2/db_000/oui Log file location : /u01/app/oracle/product/11.2/db_000/OPatch/opatch apply Invoking OPatch 11.0.2.0.0.2/crs/install/crsconfig_params opatch auto log file location is /u01/app/grid/11.0 OUI location : /u01/app/oracle/product/11.0.2.2.4 OUI version : 11. Do you wish to remain uninformed of security issues ([Y]es.2. Provide your email address to be informed of security issues. patch the local system then propagate the patch to the remote nodes.0.2.0.2.2.log Patch history file: /u01/app/oracle/product/11.2/db_000/cfgtoollogs/opatch/opatch2011-02-20_15-1040PM.0.com/support/policies.2./.2.txt ApplySession applying interim patch '10248523' to OH '/u01/app/oracle/product/11.2.4 Copyright (c) 2010.2.0.2.2/Patches/Database/11.2.0.2.2 -patchn 10157506 -oh /u01/app/oracle/product/11.0.2.rsp To install latest database PSU (this must be executed on only 1 node): $ cd /software/Database/11. Enter the absolute OCM response file path: /u01/app/grid/11.2/OPatch/ocm/bin/ocm. Enter the absolute OCM response file path: /u01/app/grid/11.0..2/Patches/Database/11.1.log Detected Oracle Clusterware install Using configuration parameter file: /u01/app/grid/11.2/crs/install/crsconfig_params OPatch is bundled with OCM. OPatch will Page 58 van 75 .2/10157506 -oh /u01/app/oracle/product/11.

.. Updating archive file "/u01/app/oracle/product/11.patch_storage/10248523_Dec_16_2010_23_39_ 23/rac/make_cmds.txt" MP = "/u01/app/oracle/product/11.rdbms.0.txt" RC = "/u01/app/oracle/product/11.0.2.2/db_000/lib/libserver11. Files check OK: Files from Patch ID 10248523 are present in Oracle Home. This might take a while.2.2.a" with "lib/libserver11..2..This node is part of an Oracle Real Application Cluster.2/db_000/. 11.2.2/db_000/.0.2/db_000/.txt" DR = "/u01/app/oracle/product/11.patch_storage/10248523_Dec_16_2010_23_39_ 23/rac/copy_files.0..txt" DP = "/u01/app/oracle/product/11.2. (Oracle Home = '/u01/app/oracle/product/11.0.a/kfdp.txt" Auto-Rollback-related files are: FR = "/u01/app/oracle/product/11.2.2/db_000' Patching component oracle. Page 59 van 75 .0..2. (Oracle Home = '/u01/app/oracle/product/11.patch_storage/10248523_Dec_16_2010_23_39_ 23/rac/remove_files.0.0.o" …… Verifying the update.0. Inventory check OK: Patch ID 10248523 is registered in Oracle Home inventory with proper meta-data..2/db_000') Is the local system ready for patching? [y|n] y User Responded with: Y Backing up files and inventory (not for auto-rollback) for the Oracle Home Backing up files affected by the patch '10248523' for restore. Remote nodes: 'dean' Local node: 'indy' Please shutdown Oracle instances running out of this ORACLE_HOME on the local system. The local system has been patched. This might take a while. Please shutdown Oracle instances running out of this ORACLE_HOME on 'dean'. Backing up files affected by the patch '10158965' for restore.patch_storage/10248523_Dec_16_2010_23_39_ 23/rac/remote_cmds.2/db_000/.2/db_000') Is the node ready for patching? [y|n] y User Responded with: Y Updating nodes 'dean' Apply-related files are: FP = "/u01/app/oracle/product/11.2.2.txt" …… You can restart Oracle instances on it. The node 'dean' will be patched next.patch_storage/10248523_Dec_16_2010_23_39_ 23/rac/remove_dirs.2/db_000/. Patching in rolling mode.2.0.patch_storage/10248523_Dec_16_2010_23_39_ 23/rac/copy_dirs..2.0. ApplySession rolling back interim patch '10158965' from OH '/u01/app/oracle/product/11.0.2/db_000/.

OPatch completed with warnings. an error. but this one we can ignore because it only tells us that a subset of the patch is not installed which was already installed while installing the database section of the GI bundle #1. You can restart Oracle instances on it. OK. …… -------------------------------------------------------------------------------The following warnings have occurred during OPatch execution: 1) OUI-67620:Interim patch 10248523 is a superset of the patch(es) [ 10158965 ] in the Oracle Home -------------------------------------------------------------------------------OPatch Session completed with warnings.The node 'dean' has been patched. Page 60 van 75 .

168. Page 61 van 75 . but first we have to create an ASM diskgroup to store the database files. Set the DISPLAY parameter and environment and start asmca oracle@indy::/home/oracle $ export DISPLAY=192.105:0. I will use the utility asmca for this purpose. Create ASM diskgroup for database files We are almost ready to create a RAC-database.8.0.0 oracle@indy::/home/oracle $ +ASM1 The Oracle base remains unchanged with value /u01/app/oracle oracle@indy:+ASM1:/home/oracle $ asmca Action: Click Create.

Page 62 van 75 .Action: Specify the Disk Group Name. Action: Wait while the ASM diskgroup is being created. Click OK. Redundancy as External (None) and select the Candidate Disks to be part of the ASM diskgroup.

Action: Click Exit. Page 63 van 75 . Action: Click Yes.Action: Click OK.

2. I will give an example by creating a database using the dbca utility and some options.2/db_000/bin/dbca Action: Select Oracle Real Application Clusters (RAC) database.0 oracle@indy::/home/oracle oracle@indy::/home/oracle $ /u01/app/oracle/product/11. Which options you must choose is dependent of your needs. Create RAC Database And finally we are now able to create an Oracle RAC-database.9. Set the DISPLAY parameter and environment and start asmca oracle@indy::/home/oracle $ export DISPLAY=192.0.0.105:0. Click Next. Page 64 van 75 .168.

Action: Select Custom Database. Page 65 van 75 . Next Next.Action: Select Create a Database. Click Next.

Click Next. Click Select All. Action: Deselect Configure Enterprise Manager. Page 66 van 75 . Specify the Global Database Name and SID Prefix.Action: Specify Admin-Managed as Configuration Type. Click Next.

Action: Select Use Oracle-Managed Files and +DGDATA as Database Area. Click Next. Click Next. Page 67 van 75 .Action: Specify the Passwords for the SYS and SYSTEM accounts.

Action: Specify +DGDATA as Archive Log Destination.Action: Deselect Specify Fast Recovery Area. Click OK. Page 68 van 75 . Select Enable Archiving and click Edit Archive Mode Parameters.

Action: Select all the options you want to install in your database. Click Next.Action: Click Next. Page 69 van 75 .

Click tab Character Sets. Click Next. A minimum size of 1024 MB is recommended. This will also avoid that you will get some ORA-04031 errors while creating the database. Select Use Automatic Memory Management.Action: Under Typical specify the Memory Size (SGA and PGA). Action: Select Use Unicode (AL32UTF8) as Database Character Set and UTF8 as National Character Set. Page 70 van 75 .

Action: If you are curious about the scripts generated by the dbca utility then select Generate Database Creation Scripts. Click Finish to start creating the RAC database. Page 71 van 75 .Action: Click Next.

Action: Click OK. Action: Click OK. Page 72 van 75 .

Action: Click Exit.Action: Wait while the RAC database is being created. Page 73 van 75 .

Check if all instances are running $ srvctl status database -d odba1 Instance ODBA12 is running on node dean Instance ODBA11 is running on node indy Once the database is created.0.2.2.0.2/db_000:N Page 74 van 75 . First node (indy): ODBA11:/u01/app/oracle/product/11. edit the /etc/oratab file and add the instance.2/db_000:N Second node (dean): ODBA12:/u01/app/oracle/product/11.

2/db_000 The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11. Loading Modified SQL Files into the Database In chapter 7 Install Oracle 11gR2 RDBMS and GI patches we installed the latest PSU.2.0. Oracle.2. oraenv ORACLE_SID = [oracle] ? ODBA11 ORACLE_HOME = [/home/oracle] ? /u01/app/oracle/product/11.0 Production on Sat Jan 29 20:29:21 2011 Copyright (c) 1982.0 .2.2.2.0. All rights reserved. To load the modified SQL files in the database follow the next steps: oracle@indy::/home/oracle $ .0. Connected to: Oracle Database 11g Enterprise Edition Release 11.10. 2010.2.2/db_000 is /u01/app/oracle oracle@indy::/home/oracle $ cd $ORACLE_HOME/rdbms/admin/ oracle@indy::/home/oracle $ sqlplus / as sysdba SQL*Plus: Release 11.64bit Production With the Partitioning option SQL> @catbundle psu apply SQL> exit Page 75 van 75 .0.

Sign up to vote on this title
UsefulNot useful