oracle 11gr2 SCAN LISTENER配置
儲存故障導致手動重建建立資料庫後,出現透過tns不能連線的問題;檢查發現tnsnames.ora中配置的host為scan_ip;但是,如果透過vip則可以訪問資料庫;那麼可以確定是scan ip或scan listener問題;
檢查所有listener後,發現LISTENER、LISTENER_SCAN1狀態都正常,只是LISTENER_SCAN1沒有註冊服務;對比重建前後的相關listener引數後,發現新建立的資料庫remote_listener引數沒有設定,設定後正常,問題解決;下面是測試環境的配置表;
grid使用者下$GRID_HOME/network/admin/listener.ora
[grid@db1 admin]$ cat 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
grid使用者下$GRID_HOME/network/admin/sqlnet.ora
[grid@db1 admin]$ cat sqlnet.ora
# sqlnet.ora.db1 Network Configuration File: /u01/app/11.2.0/grid/network/admin/sqlnet.ora.db1
# Generated by Oracle configuration tools.
NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
ADR_BASE = /u01/app/grid
oracle使用者下$ORACLE_HOME/network/admin/tnsnames.ora
[oracle@db1 admin]$ cat tnsnames.ora
# tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
RACDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac-scan)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = racdb)
)
)
此時,如果沒有設定remote_listener引數,則不能透過scan ip登入,如:
$sqlplus system/oracle@racdb
報錯,不能連線;
設定remote_listener後正常;
SQL>alter system set remote_listener =' rac-scan:1521' scope=both sid='*';
SQL>show parameter listener
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
listener_networks string
local_listener string (DESCRIPTION=(ADDRESS_LIST=(AD
DRESS=(PROTOCOL=TCP)(HOST=192
.168.1.120)(PORT=1521))))
remote_listener string rac-scan:1521
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/16976507/viewspace-1250912/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Windows環境配置Oracle 11gR2 ListenerWindowsOracle
- oracle-rac--srvctl add scan_listenerOracle
- Oracle 11gR2 RAC修改SCAN IPOracle
- oracle 11gR2 scan ip (DNS模式)OracleDNS模式
- rac scan listener log 清理監聽日誌 oracleOracle
- Oracle 11gR2 RAC修改SCAN IP地址Oracle
- oracle 11gR2 修改 DNS 方式 SCAN IPOracleDNS
- oracle 11gR2 scan PRVF-4664 問題Oracle
- Oracle 11g RAC 叢集 SCAN IP Listener說明Oracle
- Oracle listener log配置與管理Oracle
- oracle 11gR2 如何修改scan vip 地址 /etc/hosts方式Oracle
- listener_scan1.log、listener.log監聽日誌清理
- How to Setup SCAN Listener and Client for TAF and Load Balancingclient
- oracle 客戶端如何連線到oracle 11gR2資料庫(DNS SCAN IP)Oracle客戶端資料庫DNS
- Oracle ListenerOracle
- scan-dns配置DNS
- local_listener ,remote_listener 的配置REM
- How to Troubleshoot Connectivity Issue with 11gR2 SCAN Name
- Oracle 11g RAC SCAN ip的原理及配置Oracle
- Oracle 11gR2 RAC SCAN ORA-12543: TNS:destination host unreachableOracle
- 在一臺機器配置兩個listener(Oracle)(轉)Oracle
- oracle 客戶端連線11gR2 SCAN 報ORA-12545錯誤Oracle客戶端
- 安裝11grac資料庫:Scan Listener is not configured資料庫
- Oracle 11gR2 Active DataGuard配置Step By Step(一)Oracle
- Oracle 11gR2 Active DataGuard配置Step By Step(二)Oracle
- Oracle 11gR2 Active DataGuard配置Step By Step(三)Oracle
- 為Linux版本Oracle 11gR2配置HugePageLinuxOracle
- 導致 Scan VIP 和 Scan Listener(監聽程式)出現故障的最常見的 5 個問題
- oracle一個listener偵聽多個例項的配置Oracle
- How to Configure the DNS Server for 11gR2 SCAN On LinuxDNSServerLinux
- oracle 11GR2新特性 Cluster Time Synchronization Service 配置Oracle
- oracle一個例項配置多個listener或多個埠Oracle
- How to Troubleshoot Connectivity Issue with 11gR2 SCAN Name (Doc ID 975457.1)
- 配置Oracle單例項隨機啟動(11gR2)Oracle單例隨機
- oracle 11gR2 配置goldengate連線asm例項OracleGoASM
- Oracle 11gR2 RAC Service-Side TAF 配置示例OracleIDE
- oracle listener工具知識Oracle
- 為oracle listener set passwordOracle