oracle 最全的監聽、tnsnames.ora格式
監聽:
scan 監聽:
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 SID_LIST_LISTENER_SCAN1 = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = /oracle/app/product/112040/db_1) (PROGRAM = extproc) ) (SID_DESC= (GLOBAL_DBNAME=htbase) (ORACLE_HOME=/oracle/app/product/112040/db_1) (SID_NAME=htbase1) ) (SID_DESC= (GLOBAL_DBNAME=htbase) (ORACLE_HOME=/oracle/app/product/112040/db_1) (SID_NAME=htbase2) ) )
-----------------------------------------------
[root@raclhr-11gR2-N2 .oracle]# cat /u01/app/11.2.0/grid/network/admin/listener.ora LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))) # line added by Agent LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))) # line added by Agent ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added by Agent ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON # line added by Agent LISTENER_SCAN1 = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.59.174)(PORT = 1521)) ) ) SID_LIST_LISTENER_SCAN1 = (SID_LIST = (SID_DESC = (GLOBAL_DBNAME = lhrrac1) (ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1) (SID_NAME = lhrrac12) ) (SID_DESC = (GLOBAL_DBNAME = lhrrac1) (ORACLE_HOME = /u01/app/oracle/product/11.2.0/dbhome_1) (SID_NAME = lhrrac11) ) )
普通監聽
SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (GLOBAL_DBNAME = wlh2) (SID_NAME = wlh2) (ORACLE_HOME = /oracle/app/product/11.2.0/db_1) ) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 10.211.55.91)(PORT = 1521)) (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) ) )
普通監聽2
DBRA = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 155.155.10.31)(PORT = 1522)) ) ) ) SID_LIST_DBRA = (SID_LIST = (SID_DESC = (GLOBAL_DBNAME = bsorcl) (ORACLE_HOME = /oracle/app/product/112040/db_1) (SID_NAME = bsorcl1) ) (SID_DESC = (GLOBAL_DBNAME = htbase) (ORACLE_HOME = /oracle/app/product/112040/db_1) (SID_NAME = htbase1) ) )
TNS配置:
普通tns
orcl = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.88.200)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = orcl) ) )
普通2
TEST = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 155.155.10.35)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = htbase) ) )
連sid
ii = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.83.50)(PORT = 1521)) (CONNECT_DATA = (SERVICE_NAME = lll) (INSTANCE_NAME=zmh) ) )
rac版單一個節點的tns
###################備端一節點連線串######################### EMRDB_DG1 = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 155.155.10.31)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = htbase) (INSTANCE_NAME=htbase1) ) )
rac版本scan的tns
server是獨佔模式或者共享模式(DEDICATED/ SHARED) HTBASE = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 155.155.10.35)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = htbase) ) )
來自 “ ITPUB部落格 ” ,連結:https://blog.itpub.net/69980685/viewspace-3005200/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle OCP(45):TNSNAMES.oraOracle
- oracle靜態監聽Oracle
- JMS監聽Oracle AQOracle
- Oracle dblink監聽問題Oracle
- 6、oracle網路(監聽)Oracle
- Oracle 監聽異常處理Oracle
- Oracle啟動兩個監聽Oracle
- Oracle 建立非1521埠監聽Oracle
- Oracle 監聽投毒COST解決Oracle
- oracle rac scan監聽更改埠號Oracle
- oracle監聽不到例項服務Oracle
- oracle 11g 【listener.ora tnsnames.ora】Oracle
- oracle rac的scan監聽狀態Not All Endpoints RegisteredOracle
- Oracle 11g RAC 監聽日常管理Oracle
- oracle之 單例項監聽修改埠Oracle單例
- Oracle 修改預設監聽埠故障分析Oracle
- Oracle監聽器中的XDB、XPT和PLSExtProc服務Oracle
- 監聽 watch props物件屬性監聽 或深度監聽物件
- 【LISTENER】Oracle通過監聽連線緩慢分析Oracle
- Oracle 11g/12c 監聽器白名單的配置Oracle
- 【經典】連線oracle的總結(關於tnsname和監聽)Oracle
- java鍵盤監聽之視窗監聽的實現Java
- FreeSwtich的監聽功能
- Vue3.0的遞迴監聽和非遞迴監聽Vue遞迴
- oracle netca建立監聽報錯/u01/oracle/bin/netca: line 178: 11819 AbortedOracle
- watch監聽
- 2.5.4. 測試Oracle net——2.5.4.1. 啟動監聽程式Oracle
- oracle 資料庫lsnrctl監聽的日誌路徑和trace檔案Oracle資料庫
- javaWeb中的監聽器JavaWeb
- oracle監聽檔案listener.ora for 10g/11gOracle
- Oracle 19C 監聽無法動態註冊例項Oracle
- Oracle靜態監聽中SID_NAME區分大小寫嗎?Oracle
- 監聽滑鼠事件事件
- jQuery事件監聽jQuery事件
- 時間監聽
- Flutter事件監聽Flutter事件
- 7、listener監聽
- springboot事件監聽Spring Boot事件