91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

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

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

【RAC】srvctl管理工具添加新監聽和靜態注冊

發布時間:2020-08-11 16:11:20 來源:ITPUB博客 閱讀:244 作者:flywiththewind 欄目:建站服務器
srvctl 添加監聽的語法如下:
grid@rac1:/home/grid>srvctl add listener -h
將監聽程序配置添加到 Oracle Clusterware。
用法: srvctl add listener [-l <lsnr_name>] [-s] [-p "[TCP:]<port>[, ...][/IPC:<key>][/NMP:<pipe_name>][/TCPS:<s_port>] [/SDP:<port>]"] [-o <oracle_home>] [-k <net_num>]
    -l <lsnr_name>           監聽程序名稱 (默認名稱為 LISTENER)
    -o <oracle_home>         ORACLE_HOME 路徑 (默認值為 CRS_HOME)
    -k <net_num>             網絡編號 (默認編號為 1)
    -s                       跳過端口檢查
    -p "[TCP:]<port>[, ...][/IPC:<key>][/NMP:<pipe_name>][/TCPS:<s_port>] [/SDP:<port>]"       逗號分隔的 TCP 端口或監聽程序端點
    -h                       輸出用法
加入新的監聽YANGQL
grid@rac1:/home/grid>srvctl add listener -l YANGQL -p 1524  -o $ORACLE_HOME 
grid@rac1:/home/grid>cat /opt/11202/11.2.0/grid/network/admin/listener.ora 
LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER))))            # line added by Agent
LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1))))                # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON                # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON              # line added by Agent
grid@rac1:/home/grid>srvctl add listener -l YANGQL -p 1524  -o $ORACLE_HOME -k 1
PRCN-3004 : 監聽程序YANGQL已存在
k 值在加入的時候,不做指定也是可以的!默認為1!
grid@rac1:/home/grid>
grid@rac1:/home/grid>
啟動新加入的監聽YANGQL ,
grid@rac1:/home/grid>srvctl start listener -l YANGQL
listener.ora ,endpoints_listener.ora 兩個文件會多出 新加入的監聽信息:
grid@rac1:/home/grid>cat /opt/11202/11.2.0/grid/network/admin/listener.ora      
YANGQL=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=YANGQL))))                # line added by Agent
grid@rac1:/home/grid>cat /opt/11202/11.2.0/grid/network/admin/endpoints_listener.ora 
YANGQL_RAC1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=rac1-vip)(PORT=1524))(ADDRESS=(PROTOCOL=TCP)(HOST=10.250.7.225)(PORT=1524)(IP=FIRST))))         # line added by Agent
LISTENER_RAC1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=rac1-vip)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=10.250.7.225)(PORT=1521)(IP=FIRST))))               # line added by Agent
手工修改listener.ora 加入靜態監聽! 
grid@rac1:/home/grid>vim /opt/11202/11.2.0/grid/network/admin/listener.ora                   
SID_LIST_YANGQL =
  (SID_LIST =
    (SID_DESC =
      (GLOBAL_DBNAME = rac)
      (ORACLE_HOME = /opt/11202/11.2.0/grid)
      (SID_NAME =rac1)
    )
  )

YANGQL=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=YANGQL))))                # line added by Agent
LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER))))            # line added by Agent
LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1))))                # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON                # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON              # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_YANGQL=ON                # line added by Agent                                                                                                                                          
"/opt/11202/11.2.0/grid/network/admin/listener.ora" 15L, 665C 已寫入                                                              
重新啟動監聽YANGQL
grid@rac1:/home/grid>srvctl stop listener -l YANGQL
grid@rac1:/home/grid>srvctl start  listener -l YANGQL 
查看其狀態:   
grid@rac1:/home/grid>lsnrctl status YANGQL
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 04-DEC-2011 22:32:08
Copyright (c) 1991, 2010, Oracle.  All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=YANGQL)))
STATUS of the LISTENER
------------------------
Alias                     YANGQL
Version                   TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date                04-DEC-2011 22:31:59
Uptime                    0 days 0 hr. 0 min. 9 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /opt/11202/11.2.0/grid/network/admin/listener.ora
Listener Log File         /opt/11202/11.2.0/grid/log/diag/tnslsnr/rac1/yangql/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=YANGQL)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.250.7.225)(PORT=1524)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.250.7.111)(PORT=1524)))
Services Summary...
Service "rac" has 1 instance(s).
  Instance "rac1", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
grid@rac1:/home/grid>
至此,操作完畢,當然也可以使用圖形界面工具來操作,但是個人覺得手工使用srvctl 工具更加方便!
向AI問一下細節

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

AI

泰和县| 奉新县| 卓资县| 阆中市| 根河市| 云梦县| 昭觉县| 揭阳市| 阜城县| 南华县| 喜德县| 甘孜县| 蒙城县| 广平县| 酒泉市| 扶沟县| 北宁市| 甘孜县| 沙河市| 广饶县| 万荣县| 舒城县| 蕲春县| 太保市| 昌图县| 正阳县| 从江县| 乌兰县| 称多县| 裕民县| 革吉县| 抚顺县| 霸州市| 略阳县| 铜梁县| 福清市| 东乌珠穆沁旗| 甘泉县| 汉川市| 石棉县| 攀枝花市|