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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- tnsnames.ora監聽配置檔案詳解
- Oracle 監聽Oracle
- Oracle環境變數、監聽listener.ora、tnsnames.ora、sqlnet.ora配置Oracle變數SQL
- Oracle10g RAC - 客戶端,Server端tnsnames.ora及監聽設定Oracle客戶端Server
- Oracle監聽的作用Oracle
- Oracle監聽(1)Oracle
- oracle的監聽問題Oracle
- ORACLE動態監聽與靜態監聽Oracle
- oracle靜態監聽和動態監聽Oracle
- 【oracle】動態監聽與靜態監聽Oracle
- ORACLE_SID超過8個字元,監聽器的配置,tnsnames.ora檔案配置範例Oracle字元
- 【Oracle】修改oracle監聽埠Oracle
- oracle靜態監聽Oracle
- JMS監聽Oracle AQOracle
- oracle 監聽器配置Oracle
- ORACLE監聽簡介Oracle
- oracle 監聽重啟Oracle
- 關於oracle的監聽問題Oracle
- 如何更改oracle監聽器的埠Oracle
- 【listener】oracle靜態監聽和動態監聽 【轉載】Oracle
- oracle listener 靜態監聽與動態監聽的一些小事Oracle
- oracle清理監聽日誌Oracle
- Oracle資料庫監聽Oracle資料庫
- oracle 多庫配監聽Oracle
- Oracle 監聽配置詳解Oracle
- Oracle 動態監聽配置Oracle
- oracle 監聽器學習Oracle
- 6、oracle網路(監聽)Oracle
- 【監聽】手工配置tnsnames.ora檔案注意事項——謹慎處理空格
- Oracle監聽日誌2g-監聽啟動報錯Oracle
- oracle em與監聽改名的問題Oracle
- oracle之監聽的方方面面Oracle
- Oracle 監聽異常處理Oracle
- Oracle dblink監聽問題Oracle
- Oracle啟動兩個監聽Oracle
- Oracle 監聽投毒COST解決Oracle
- 說說Oracle監聽器(一)Oracle
- 說說Oracle監聽器(二)Oracle