中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

Oracle RAC和SCAN同時對外提供服務的配制方法

發布時間:2020-08-11 06:48:32 來源:ITPUB博客 閱讀:116 作者:kisslfcr 欄目:關系型數據庫
1,  tnsnames.ora on two nodes:
RACTEST =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = racscan.test.com)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = RACTEST.test.com)
    )
  )






RAC1_LOCAL = 
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = rac1vip.test.com)(PORT = 1529))
  )




RAC2_LOCAL = 
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = rac2vip.test.com)(PORT = 1529))
  )




RAC_REMOTE =
          (DESCRIPTION= 
            (ADDRESS_LIST=
                (ADDRESS=(PROTOCOL=tcp)(HOST=rac1vip.test.com)(PORT=1529))
                (ADDRESS=(PROTOCOL=tcp)(HOST=rac2vip.test.com)(PORT=1529))
            )
          )






RAC_BALANCE=
        (DESCRIPTION= 
            (ADDRESS_LIST=
                (LOAD_BALANCE=YES)
                (FAILOVER=YES)
                (ADDRESS=(PROTOCOL=tcp)(HOST=rac1vip.test.com)(PORT=1529))
                (ADDRESS=(PROTOCOL=tcp)(HOST=rac2vip.test.com)(PORT=1529))
            )
            (CONNECT_DATA=
                (SERVICE_NAME=RACTEST.test.com)
            )
        )




2,listener.ora on two nodes:
node1:RAC= 
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac1vip.test.com)(PORT = 1529))
)




SID_LIST_RAC=
(SID_LIST=
(SID_DESC = (ORACLE_HOME =/dbfs/app/oracle/product/11.2.0/dbhome_1)(SID_NAME=RACTEST1))
)


node2:RAC= 
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac2vip.test.com)(PORT = 1529))
)




SID_LIST_RAC=
(SID_LIST=
(SID_DESC = (ORACLE_HOME =/dbfs/app/oracle/product/11.2.0/dbhome_1)(SID_NAME=RACTEST2))
)




3,  參數:
node1:
SQL> show parameter local_listener
NAME     TYPE VALUE
------------------------------------ ----------- ------------------------------
local_listener     string RAC1_LOCAL


SQL> show parameter remote_listener
NAME     TYPE VALUE
------------------------------------ ----------- ------------------------------
remote_listener     string racscan.test.com:1521


------------------------------------ ----------- --------------------------------------------------------------------------------------------------------------------------------------------------------------


node2:
SQL> show parameter local_listener
NAME     TYPE VALUE
------------------------------------ ----------- ------------------------------
local_listener     string RAC2_LOCAL


SQL> show parameter remote_listener
NAME     TYPE VALUE
------------------------------------ ----------- ------------------------------
remote_listener     string racscan.test.com:1521


4,參數文件:
pfile:
[oratest@rac1 dbs]$ cat initRACTEST1.ora
spfile='+DATA/RACTEST/spfileractest.ora'


[oratest@rac2 dbs]$ cat initRACTEST2.ora
spfile='+DATA/RACTEST/spfileractest.ora'
根據pfile創建spfile:
create spfile='+DATA/RACTEST/spfileractest.ora' from pfile;


5, 參數修改命令:
alter system set local_listener='RAC1_LOCAL' sid='RACTEST1' scope=both;
alter system set local_listener='RAC2_LOCAL' sid='RACTEST2' scope=both;
向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

祁连县| 绍兴市| 阿荣旗| 南城县| 德江县| 天水市| 黑河市| 泽州县| 石屏县| 濮阳县| 神池县| 麟游县| 米易县| 依兰县| 峨边| 枞阳县| 平谷区| 连江县| 乌什县| 勃利县| 西峡县| 兴山县| 万山特区| 安陆市| 开远市| 盐边县| 东莞市| 楚雄市| 绥宁县| 东阿县| 鹰潭市| 永泰县| 苏尼特右旗| 青浦区| 岢岚县| 贡嘎县| 新郑市| 敖汉旗| 得荣县| 襄城县| 沙湾县|