oracle 11gR2 RAC Client 配置

來源:互聯網
上載者:User

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

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.