[20211020]XXXX_DGB服務名.txt
[20211020]XXXX_DGB服務名.txt
--//當使用DGMGRL管理dg時,會建立如下兩個服務XXXX_DGB,XXXX_DGMGRL.昨天配置是不小心犯了一個小錯誤做一個記錄。
$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 20-OCT-2021 09:30:48
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.aaa.bbb)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production
Start Date 20-OCT-2021 09:27:37
Uptime 0 days 0 hr. 3 min. 11 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0.3/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/11.2.0.3/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.aaa.bbb)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary...
Service "xxx999XDB" has 1 instance(s).
Instance "xxx999dg2", status READY, has 1 handler(s) for this service...
Service "xxx999dg2" has 2 instance(s).
Instance "xxx999dg2", status UNKNOWN, has 1 handler(s) for this service...
Instance "xxx999dg2", status READY, has 1 handler(s) for this service...
Service "xxx999dg2_DGB" has 2 instance(s).
Instance "xxx999dg2", status UNKNOWN, has 1 handler(s) for this service...
Instance "xxx999dg2", status READY, has 1 handler(s) for this service...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Service "xxx999dg2_DGMGRL" has 1 instance(s).
Instance "xxx999dg2", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
--//xxx999dg2_DGB 服務名存在兩個一個動態註冊,一個靜態註冊。靜態註冊是我寫在監聽配置檔案裡面,為什麼還存在一個動態註冊的
--//服務名呢?
SYS@xxx999dg2> show parameter service
NAME TYPE VALUE
------------- ------ ---------
service_names string xxx999dg2
--//僅僅存在一個服務名xxx999dg2。
SYS@xxx999dg2> select name from DBA_SERVICES;
NAME
--------------------
SYS$BACKGROUND
SYS$USERS
xxx999XDB
xxx999
--//也不存在xxx999dg2_DGB服務名。
--//找到一個連結:http://blog.itpub.net/20747382/viewspace-2130664/ =>_DGMGRL and _DGB
Note: Static entries are only used by the Broker itself via the Broker defined StaticConnectIdentifier property. They
are NEVER to be used for any other purpose by the user. This includes using it for the normal DGConnectIdentifier, RMAN
connections or anything else. Also note that you must never define a static entry for the Broker 'DGB' service. That
service is for the Broker exclusive use. Also note that using the "_DGMGRL" or "_DGB" in your TNSNAMES definition is
expressly forbidden.
注意:靜態條目僅透過代理定義的靜態連線識別符號屬性使用。使用者絕不會將它們用於任何其他目的。這包括使用它用於正常的DG聯結器標
識符、RMAN連線或其他任何東西。還要注意,您永遠不能為代理"DGB"服務定義靜態條目。這項服務是為經紀人獨家使用的。還要注意,
在您的名稱定義中,使用"_DGMGRL"或"_DGB"是明確禁止的。
--//可以發現提示永遠不能為代理"DGB"服務定義靜態條目,這項服務是為經紀人獨家使用的。
--//也就是根本不需要配置xxx999dg2_DGB服務為靜態註冊。在監聽檔案中註解這部分內容。
$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 20-OCT-2021 16:33:24
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.aaa.bbb)(PORT=1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production
Start Date 20-OCT-2021 10:53:09
Uptime 0 days 5 hr. 40 min. 15 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/11.2.0.3/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/11.2.0.3/db_1/network/log/listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.aaa.bbb)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Services Summary...
Service "xxx999XDB" has 1 instance(s).
Instance "xxx999dg2", status READY, has 1 handler(s) for this service...
Service "xxx999dg2" has 2 instance(s).
Instance "xxx999dg2", status UNKNOWN, has 1 handler(s) for this service...
Instance "xxx999dg2", status READY, has 1 handler(s) for this service...
Service "xxx999dg2_DGB" has 1 instance(s).
Instance "xxx999dg2", status READY, has 1 handler(s) for this service...
Service "xxx999dg2_DGMGRL" has 1 instance(s).
Instance "xxx999dg2", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
--//xxx999dg2_DGB 這個服務非常特殊,只要使用DGMGRL就存在並且建立一個動態服務名。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-2838384/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- [20211020]奇怪lsnrctl status顯示.txt
- [20211020]改變備庫的rman配置.txt
- [20211020]windows新建文字檔案帶日期.txtWindows
- [20190102]連線串不配置服務名能連線資料庫嗎.txt資料庫
- 通過Eureka中已經註冊的服務名,呼叫服務
- [20200115]監聽中沒有xdb服務.txt
- [20200417]xdate別名.txt
- [20180702]物件名重用.txt物件
- [20190213]測試服務端開啟那些埠.txt服務端
- Windows修改新建.txt檔名Windows
- [20200214]xargs與別名.txt
- [20191128]date命令別名.txt
- [20220329]批量修改檔名.txt
- 【Azure 雲服務】為Azure雲服務配置上自簽名的SSL證書步驟
- [20190201]測試服務名支援靜態和動態註冊的情況下優先選擇那個.txt
- Oracle - 資料庫名、例項名、服務名、ORACLE_SID 的說明和區別Oracle資料庫
- [20211213]完善date命令別名.txt
- Windows平臺如何修改監聽的服務名稱?Windows
- 2.5.3. 網路服務名(TNSNAME)配置——2.5.3.1. netca
- BSN實名DID服務釋出會在北京召開
- Laravel 5 API 服務端支援簽名授權認證LaravelAPI服務端
- 風控核心子域——名單服務構建及挑戰
- 減少80%儲存-風控名單服務重構剖析
- [20200109]主機名如何定位IP.txt
- [20191219]索引名裡帶回車符.txt索引
- CentOS 報錯 java.net.UnknownHostException: xxxxxx: 未知的名稱或服務CentOSJavaException
- 2.5.4. 測試Oracle net——2.5.4.3. 測試網路服務名Oracle
- 怎樣選擇優質的蘋果企業簽名服務蘋果
- 業務名詞
- 2024財年印度五大IT服務公司減少了69167名員工
- 名企專傢俬教服務,讓你的職業生涯扶搖直上 !
- MySQL服務名無效或者MySQL正在啟動 MySQL無法啟動MySql
- 阿里雲湖北授權服務中心分享CDN相關名詞解釋阿里
- 服務與服務之間的呼叫
- 即刻報名,企業服務與新經濟論壇亮點提前揭秘!
- 沙龍報名 | 區塊鏈資料服務技術應用實踐區塊鏈
- 2.5.3. 網路服務名(TNSNAME)配置——2.5.3.2 netmgr與2.5.3.3手工配置
- 微軟即將停對Windows 7 服務已不再提供驅動簽名微軟Windows