oracle 11gR2 RAC Client 配置

RAC环境:

1. Cent OS (基于vmware workstation):

第一台主机:rac01.smartoffice.com:    (充当DNS)

public IP:  192.168.226.146        

private IP:  192.168.1.109

VIP :           192.168.226.150

public Name:  rac01.smartoffice.com

private Name: rac01-priv.smartoffice.com

VIP Name:       rac01-vip.smartoffice.com

第二台主机:rac02.smartoffice.com

public IP:  192.168.226.149     

private IP:  192.168.1.110

VIP :           192.168.226.151

public Name:  rac02.smartoffice.com

private Name: rac02-priv.smartoffice.com

VIP Name:       rac02-vip.smartoffice.com

SCAN Name & IP address: 

 SCANRAC.smartoffice.com    192.168.226.201

SCANRAC.smartoffice.com      192.168.226.202

SCANRAC.smartoffice.com      192.168.226.203

2. Oracle 11gR2  ( grid infrastructure $ database )

3.  openfiler共享存储服务器


4. 使用主机windows server 2003来访问虚拟机中的RAC,需要配置c:/windows/system32/drivers/etc/hosts和$ORACLE_HOME/network/admin/tnsnames.ora

tnsnames.ora:

ORCL11G =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.226.151)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = orcl.smartoffice.com)
    )
  )

ORCL =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.226.150)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = orcl.smartoffice.com)
    )
  )

SCANRAC=
    (DESCRIPTION =
           (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.226.201)(PORT = 1521))
       (CONNECT_DATA =
       (SERVER = DEDICATED)
       (SERVICE_NAME = orcl.smartoffice.com)
    )
  )

hosts文件:

127.0.0.1       localhost
#   public rac nodes IP addresses

192.168.226.146    rac01.smartoffice.com rac01
192.168.226.149    rac02.smartoffice.com rac02

#   private rac nodes IP addresses

192.168.1.109           rac01-priv.smartoffice.com rac01-priv
192.168.1.110           rac02-priv.smartoffice.com rac02-priv

#   Scanrac nodes

192.168.226.201     scanrac.smartoffice.com    scanrac
192.168.226.202     scanrac.smartoffice.com    scanrac
192.168.226.203    scanrac.smartoffice.com    scanrac

#   VIP addresses

192.168.226.150     rac01-vip.smartoffice.com  rac01-vip
192.168.226.151    rac02-vip.smartoffice.com rac02-vip

你可能感兴趣的:(vmware,oracle,server,tcp,service,database)