Detailed instructions on installing Oracle 10g RAC on VMware Server 2.0.2

Source: Internet
Author: User
Tags vmware server


Install Oracle 10g RAC on VMware Server 2.0.2, no error is reported at all for www.2cto.com IP planning 192.168.8.241194258.242192.168.8.248192.168.8.249 rac1-> export LANG = en_US.UTF-8 vi/etc/sysconfig/network-scripts/ifcfg-eth0vi [root @ rac2 ~] # More/etc/sysconfig/network-scripts/ifcfg-eth0 # Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] DEVICE = eth0BOOTPROTO = noneIPADDR = 192.168.8.242ONBOOT = yesHWADDR = 00: 0c: 29: 98: 38: 5 aNETMASK = 255.255.255.0GATEWAY = 192.168.8.1TYPE = EthernetUSERCTL = nostm6init = noPEERDNS = yesYou have new mail in/var/spool/mail/root service network restart [root @ rac1 ~] # Vi/etc/hosts127.0.0.1 localhost192.168.8.241 rac1.oracle.com rac1194258.248 rac1-vip.oracle.com rac1-vip10.10.10.241 rac1-priv.oracle.com rac1-priv192.168.8.242 rac2-vip.oracle.com rac2.oracle.com rac2192.168.8.249 rac2-vip10.10.10.242 rac2-priv.oracle.com rac2-priv [root @ rac2 ~] # Vi/etc/hosts127.0.0.1 localhost192.168.8.241 rac1.oracle.com rac1194258.248 rac1-vip.oracle.com rac1-vip10.10.10.241 rac1-priv.oracle.com rac1-priv192.168.8.242 rac2-vip.oracle.com rac2.oracle.com rac2192.168.8.249 rac2-vip10.10.10.242 rac2-priv.oracle.com rac2-priv rac1-> mkdir ~ /. Sshrac1-> chmod 700 ~ /. Sshrac1-> ssh-keygen-t rsarac1-> ssh-keygen-t dsa rac2-> mkdir ~ /. Sshrac2-> chmod 700 ~ /. Sshrac2-> ssh-keygen-t rsarac2-> ssh-keygen-t dsa www.2cto.com rac2-> cat ~ /. Ssh/id_rsa.pub> ~ /. Ssh/authorized_keysrac2-> cat ~ /. Ssh/id_dsa.pub> ~ /. Ssh/authorized_keysrac2-> ssh rac1 cat ~ /. Ssh/id_rsa.pub> ~ /. Ssh/authorized_keys rac2-> ssh rac1 cat ~ /. Ssh/id_dsa.pub> ~ /. Ssh/authorized_keys rac2-> scp ~ /. Ssh/authorized_keys rac1 :~ /. Ssh/authorized_keys oracle @ rac1's password: authorized_keys 100% 2032 2.0KB/s rac1-> ssh rac2 daterac1-> ssh rac2-priv daterac1-> ssh rac2.oracle.com daterac1-> ssh rac2-priv.oracle.com daterac1-> ssh rac1.oracle. comrac1-> ssh rac1rac1-> ssh rac1-priv.oracle.comrac1-> ssh rac1-priv rac2-> ssh rac1.oracle.com daterac2-> ssh rac1-priv.oracle.com daterac2-> ssh rac1 daterac2-> ssh rac1-priv daterac2-> ssh Rac2.oracle. comrac2-> ssh rac2rac2-> ssh rac2-priv.oracle.comrac2-> ssh rac2-priv [root @ rac1 ~] # Rpm-qa | grep ocfsocfs2-2.6.18-128.el5xen-1.2.9-1.el5ocfs2-2.6.18-128.el5-1.2.9-1.el5ocfs2console-1.2.7-1.el5ocfs2-2.6.18-128.el5debug-1.2.9-1.el5ocfs2-tools-devel-1.2.7-1.el5ocfs2-2.6.18-128.el5PAE-1.2.9-1.el5ocfs2-tools-1.2.7-1.el5 [root @ rac2 ~] # Rpm-qa | grep ocfsocfs2-2.6.18-128.el5xen-1.2.9-1.el5ocfs2-2.6.18-128.el5-1.2.9-1.el5ocfs2console-1.2.7-1.el5ocfs2-2.6.18-128.el5debug-1.2.9-1.el5ocfs2-tools-devel-1.2.7-1.el5ocfs2-2.6.18-128.el5PAE-1.2.9-1.el5ocfs2-tools-1.2.7-1.el5 configure cluster file system ocfs2console rac1-> more/etc/ocfs2/cluster. conf node: ip_port = 7777 ip_address = 192.168.8.241 number = 0 name = rac1 cluster = ocfs2 node: I P_port = 7777 ip_address = 192.168.8.242 number = 1 name = rac2 cluster = ocfs2 ocfs2console transfer configuration file [root @ rac2 ~] # More/etc/ocfs2/cluster. conf node: ip_port = 7777 ip_address = 192.168.8.241 number = 0 name = rac1 cluster = ocfs2 www.2cto.com node: ip_port = 7777 ip_address = 192.168.8.242 number = 1 name = rac2 cluster = ocfs2 cluster: node_count = 2 name = ocfs2 cluster: node_count = 2 name = ocfs2 [root @ rac1 ~] #/Etc/init. d/o2cb unload [root @ rac2 ~] #/Etc/init. d/o2cb unload configure heartbeat [root @ rac1 ~] #/Etc/init. d/o2cb configure [root @ rac2 ~] #/Etc/init. d/o2cb configure [root @ rac1 ~] #/Etc/init. d/o2cb statusModule "configfs": LoadedFilesystem "configfs": MountedModule "ocfs2_nodemanager": LoadedModule "plugin": LoadedModule "plugin": LoadedFilesystem "plugin": MountedChecking O2CB cluster ocfs2: online Heartbeat dead threshold: 1200 Network idle timeout: 30000 Network keepalive delay: 2000 Network reconnect delay: 2000 Checking O2CB heartbeat: Not active [root @ rac2 ~] #/Etc/init. d/o2cb statusModule "configfs": LoadedFilesystem "configfs": MountedModule "ocfs2_nodemanager": LoadedModule "plugin": LoadedModule "plugin": LoadedFilesystem "plugin": MountedChecking O2CB cluster ocfs2: online Heartbeat dead threshold: 1200 Network idle timeout: 30000 Network keepalive delay: 2000 Network reconnect delay: 2000 Checking O2CB heartbeat: Not active [root @ rac1 ~] # Fdisk-lDisk/dev/sdb: 536 MB, 536870912 bytes64 heads, 32 sectors/track, 512 cylindersUnits = cylinders of 2048*512 = 1048576 bytes ocfs2console formatting/dev/sdb mounting [root @ rac1 ~] # Mount-t ocfs2-o datavolume, nointr/dev/sdb1/ocfs [root @ rac2 ~] # Mount-t ocfs2-o datavolume, nointr/dev/sdb1/ocfs [root @ rac1 ~] # Vi/etc/fstab [root @ rac2 ~] # Vi/etc/fstab/dev/sdb1/ocfs ocfs2 _ netdev, datavolume, nointr 0 0 [root @ rac1 ~] # Df-h [root @ rac2 ~] # Df-h [root @ rac1 ~] # Cd/ocfs [root @ rac1 ocfs] # lltotal 1drwxr-xr-x 2 root 1024 Aug 12 00:51 lost + found [root @ rac1 ocfs] # mkdir cluster [root @ rac1 ocfs] # chown -R oracle: dba/ocfs [root @ rac2 soft] # cd/ocfs [root @ rac2 ocfs] # lltotal 2drwxr-xr-x 2 oracle dba 1024 Aug 12 0clusterdrwxr-xr-x 2 oracle dba 1024 Aug 12 lost + found rac1-> cd/softrac1-> lltotal 12 drwxrwxrwx 9 oracle oinstall 4096 Jun 3 cluster Waredrwxrwxrwx 6 oracle oinstall 4096 Jul 3 2005 databasedrwxr-xr-x 3 root 4096 Nov 22 2009 rac rac1-> more ~ /. Bash_profilerac2-> more ~ /. Bash_profile PATH = $ PATH: $ HOME/bin export PS1 = "'/bin/hostname-S'->" export EDITOR = vimexico port ORACLE_SID = devdb1export ORACLE_BASE =/u01/app/oracleexport ORACLE_HOME = $ ORACLE_BASE/product /10.2.0/db_1export ORA_CRS_HOME = $ ORACLE_BASE/product/10.2.0/crs_1export LD_LIBRARY_PATH = $ ORACLE_HOME/lib export PATH = $ ORACLE_HOME/bin: $ ORA_CRS_HOME/bin:/usr/
Sbin:/usr/local/bin: /usr/X11R6/binumask 022 export LANG = en_US.UTF-8 rac1-> export LANG = enrac1-> cd/softrac1-> cd clusterware/rac1-> pwd/soft/clusterwarerac1-> lltotal 36 drwxrwxrwx 2 oracle oinstall 4096 Jun 3 listen 6 oracle oinstall 4096 Jun 3 docdrwxrwxrwx 4 oracle oinstall 4096 Jun 3 listen 2 oracle oinstall 4096 Jun 3 responsedrwxrwxrwx 2 oracle oinstall 4096 Jun 3 rpm-rwxrwxrwx 1 oracle oinstall 1328 Jun 3 Issue 9 oracle oinstall 4096 Jun 3 Issue 2 oracle oinstall 4096 Jun 3 Update-rwxrwxrwx 1 oracle oinstall 3445 Jun 3 welcome.html ocr disk: /ocfs/cluster/ocrvote disk:/ocfs/cluster/votingdisk [root @ rac1 ~] #/U01/app/oracle/oraInventory/orainstRoot. sh [root @ rac2 ~] #/U01/app/oracle/oraInventory/orainstRoot. sh [root @ rac1 ~] # Cd/u01/app/oracle/product/10.2.0/crs_1/bin [root @ rac1 bin] # ls-l vipca-rwxr-xr-x 1 oracle oinstall 5014 Aug 12 vipca [root @ rac1 bin] # vi vipcaunset LD_ASSUME_KERNEL [root @ rac1 bin] # vim srvctlunset kernel [root @ rac2 bin] # vi vipcaunset kernel [root @ rac2 bin] # vim srvctlunset LD_ASSUME_KERNEL [root @ rac1 bin] #/u01/app/oracle/product/10.2.0/crs_1/root. sh [root @ rac2 bin] #/u 01/app/oracle/product/10.2.0/crs_1/root. shdding daemons to inittabExpecting the CRS daemons to be up within 600 seconds. CSS is active on these nodes. rac1 rac2CSS is active on all nodes. waiting for the Oracle CRSD and EVMD to startWaiting for the Oracle CRSD and EVMD to startOracle CRS stack installed and running under init (1 M) running vipca (silent) Grouping nodeappsError 0 (Native: listNetInterfaces: [3]) [Error 0 (Native: listNetInterfaces: [3])] www.2cto.com vipca alias [root @ rac1 ~] # Route-nKernel IP routing tableDestination Gateway Genmask Flags Metric Ref Use route 0.0.0.0 255.255.255.0 U 0 0 0 255.0.0.0.0 255.0.0 U 0 0 0 eth110.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth1 [root @ rac1 ~] # Route add default gw 192.168.8.1 [root @ rac1 ~] # Route-nKernel IP routing tableDestination Gateway Genmask Flags Metric Ref Use route 0.0.0.0 255.255.255.0 U 0 0 0 255.0.0.0.0 255.255.0.0 U 0 0 255.0.0.0.0 255.0.0.0 U 0 0 255.192.168.8.1 0.0.0.0 UG 0 0 0 0 eth0 [root @ rac2 ~] # Route-nKernel IP routing tableDestination Gateway Genmask Flags Metric Ref Use route 0.0.0.0 255.255.255.0 U 0 0 0 255.0.0.0.0 255.255.0.0 U 0 0 0 eth110.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth [root @ rac2 ~] # Route add default gw 192.168.8.1 [root @ rac2 ~] # Route-nKernel IP routing tableDestination Gateway Genmask Flags Metric Ref Use route 0.0.0.0 255.255.255.0 U 0 0 0 255.0.0.0.0 255.255.0.0 U 0 0 255.0.0.0.0 255.0.0.0 U 0 0 255.192.168.8.1 0.0.0.0 UG 0 0 0 0 eth0 [root @ rac2 bin] #. /oifcfg setif-global eth0/192.168.8.0: public [root @ rac2 bin] #. /oifcfg setif-global eth1/10.10.10.0: cluster_interconnect [roo T @ rac2 bin] #. /oifcfg iflisteth0 192.168.8.0eth1 10.0.0.0 [root @ rac1 bin] #. /oifcfg getifeth0 192.168.8.0 global publiceth1 10.10.0 global cluster_interconnect rac1-> rpm-qa | grep oracleasmrac2-> rpm-qa | grep oracleasm [root @ rac1 rac1] #/etc/init. d/oracleasm configureConfiguring the Oracle ASM library driver. this will configure the on-boot properties of the Oracle ASM librarydriver. the follo Wing questions will determine whether the driver isloaded on boot and what permissions it will have. the current valueswill be shown in brackets ('[]'). hitting <ENTER> without typing anananswer will keep that current value. ctrl-C will abort. default user to own the driver interface []: oracleDefault group to own the driver interface []: dbaStart Oracle ASM library driver on boot (y/n) [n]: yScan f Or Oracle ASM disks on boot (y/n) [y]: yWriting Oracle ASM library driver configuration: doneInitializing the Oracle ASMLib driver: [OK] Scanning the system for Oracle ASMLib disks: [OK] [root @ rac2 ~] #/Etc/init. d/oracleasm configureConfiguring the Oracle ASM library driver. this will configure the on-boot properties of the Oracle ASM librarydriver. the following questions will determine whether the driver isloaded on boot and what permissions it will have. the current valueswill be shown in brackets ('[]'). hitting <ENTER> without typing anananswer will keep that current value. ctrl-C will abort. Default user to own the driver interface []: oracleDefault group to own the driver interface []: dbaStart Oracle ASM library driver on boot (y/n) [n]: yScan for Oracle ASM disks on boot (y/n) [y]: yWriting Oracle ASM library driver configuration: doneInitializing the Oracle ASMLib driver: [OK] Scanning the system for Oracle ASMLib disks: [OK] [root @ rac1 rac1] #/etc/init. d/oracleasm createdisk VOL1/dev/sdc1Marking disk "VOL1" as an ASM disk: [OK] [root @ rac1 rac1] #/etc/init. d/oracleasm createdisk VOL1/dev/sdc1Marking disk "VOL1" as an ASM disk: [OK] [root @ rac1 rac1] #/etc/init. d/oracleasm createdisk VOL2/dev/sdd1Marking disk "VOL2" as an ASM disk: [OK] [root @ rac1 rac1] #/etc/init. d/oracleasm createdisk VOL3/dev/sde1Marking disk "VOL3" as an ASM disk: [OK] [root @ rac1 rac1] #/etc /Init. d/oracleasm listdisksVOL1VOL2VOL3 [root @ rac2 ~] #/Etc/init. d/oracleasm listdisks [root @ rac2 ~] #/Etc/init. d/oracleasmUsage:/etc/init. d/oracleasm {start | stop | restart | enable | disable | configure |
Createdisk | deletedisk | querydisk |
Listdisks | scandisks | status} [root @ rac2 ~] #/Etc/init. d/oracleasm scandisksScanning the system for Oracle ASMLib disks: [OK] [root @ rac2 ~] #/Etc/init. d/oracleasm listdisksVOL1VOL2VOL3 [root @ rac1 ~] #/U01/app/oracle/product/10.2.0/db_1/root. sh [root @ rac2 ~] #/U01/app/oracle/product/10.2.0/db_1/root. sh

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.