Oracle DBA之配置靜態監聽(listener registered statically)

來源:互聯網
上載者:User

(1)listener.ora

 本次實驗將配置靜態監聽到listener L1上,項目SID_LIST_L1為L1的靜態監聽配置資訊:

  1. L1 =  
  2.   (DESCRIPTION_LIST =  
  3.     (DESCRIPTION =  
  4.       (ADDRESS = (PROTOCOL = TCP)(HOST = PC1255-20110528)(PORT = 1522))  
  5.     )  
  6.   )  
  7.   
  8. SID_LIST_L1 =  
  9.   (SID_LIST =  
  10.     (SID_DESC =  
  11.       (SID_NAME = PLSExtProc)  
  12.       (Oracle_HOME = D:\oracle\product\10.2.0\db_1)  
  13.       (PROGRAM = extproc)  
  14.     )  
  15.   
  16.     (SID_DESC =  
  17.       (GLOBAL_DBNAME = t01)  
  18.       (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)  
  19.       (SID_NAME = t01)  
  20.     )  
  21.   
  22.   )  


(2)listener.ora檔案編輯好後,使用reload重新讀取該設定檔(reload同時也會重新註冊動態監聽):

RELOADPurposeUse the RELOAD command to reread the listener.ora file. This command enables you to add or change statically configured services without actually stopping the listener.

In addition, the database services, instances, service handlers, and listening endpoints that were dynamically registered with the listener will be unregistered and subsequently registered again.

http://download.oracle.com/docs/cd/A97630_01/network.920/a96581/lsnrctl.htm

  1. LSNRCTL> status  
  2. 正在串連到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=PC1255-20110528)(PORT=1522)))  
  3. LISTENER 的 STATUS  
  4. ------------------------   
  5. 別名                      L1  
  6. 版本                      TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production  
  7. 啟動日期                  24-7月 -2011 22:14:19  
  8. 正常已耗用時間              0 天 1 小時 26 分 2 秒  
  9. 追蹤層級                  off  
  10. 安全性                    ON: Local OS Authentication  
  11. SNMP                      OFF  
  12. 監聽程式參數檔案          D:\oracle\product\10.2.0\db_1\network\admin\listener.ora  
  13. 監聽程式記錄檔          D:\oracle\product\10.2.0\db_1\network\log\l1.log  
  14. 監聽端點概要...  
  15.   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PC1255-20110528)(PORT=1522)))  
  16. 服務摘要..  
  17. 服務 "t02" 包含 1 個常式。  
  18.   常式 "t02", 狀態 READY, 包含此服務的 1 個處理常式...  
  19. 服務 "t02XDB" 包含 1 個常式。  
  20.   常式 "t02", 狀態 READY, 包含此服務的 1 個處理常式...  
  21. 服務 "t02_XPT" 包含 1 個常式。  
  22.   常式 "t02", 狀態 READY, 包含此服務的 1 個處理常式...  
  23. 命令執行成功  
  24. LSNRCTL> reload  
  25. 正在串連到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=PC1255-20110528)(PORT=1522)))  
  26. 命令執行成功  
  27. LSNRCTL> status  
  28. 正在串連到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=PC1255-20110528)(PORT=1522)))  
  29. LISTENER 的 STATUS  
  30. ------------------------   
  31. 別名                      L1  
  32. 版本                      TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production  
  33. 啟動日期                  24-7月 -2011 22:14:19  
  34. 正常已耗用時間              0 天 1 小時 26 分 8 秒  
  35. 追蹤層級                  off  
  36. 安全性                    ON: Local OS Authentication  
  37. SNMP                      OFF  
  38. 監聽程式參數檔案          D:\oracle\product\10.2.0\db_1\network\admin\listener.ora  
  39. 監聽程式記錄檔          D:\oracle\product\10.2.0\db_1\network\log\l1.log  
  40. 監聽端點概要...  
  41.   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PC1255-20110528)(PORT=1522)))  
  42. 服務摘要..  
  43. 服務 "PLSExtProc" 包含 1 個常式。  
  44.   常式 "PLSExtProc", 狀態 UNKNOWN, 包含此服務的 1 個處理常式...  
  45. 服務 "t01" 包含 1 個常式。  
  46.   常式 "t01", 狀態 UNKNOWN, 包含此服務的 1 個處理常式...  
  47. 命令執行成功  
  • 1
  • 2
  • 下一頁

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.