(1)listener.ora
本次實驗將配置靜態監聽到listener L1上,項目SID_LIST_L1為L1的靜態監聽配置資訊:
- L1 =
- (DESCRIPTION_LIST =
- (DESCRIPTION =
- (ADDRESS = (PROTOCOL = TCP)(HOST = PC1255-20110528)(PORT = 1522))
- )
- )
-
- SID_LIST_L1 =
- (SID_LIST =
- (SID_DESC =
- (SID_NAME = PLSExtProc)
- (Oracle_HOME = D:\oracle\product\10.2.0\db_1)
- (PROGRAM = extproc)
- )
-
- (SID_DESC =
- (GLOBAL_DBNAME = t01)
- (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
- (SID_NAME = t01)
- )
-
- )
(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
)
- LSNRCTL> status
- 正在串連到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=PC1255-20110528)(PORT=1522)))
- LISTENER 的 STATUS
- ------------------------
- 別名 L1
- 版本 TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
- 啟動日期 24-7月 -2011 22:14:19
- 正常已耗用時間 0 天 1 小時 26 分 2 秒
- 追蹤層級 off
- 安全性 ON: Local OS Authentication
- SNMP OFF
- 監聽程式參數檔案 D:\oracle\product\10.2.0\db_1\network\admin\listener.ora
- 監聽程式記錄檔 D:\oracle\product\10.2.0\db_1\network\log\l1.log
- 監聽端點概要...
- (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PC1255-20110528)(PORT=1522)))
- 服務摘要..
- 服務 "t02" 包含 1 個常式。
- 常式 "t02", 狀態 READY, 包含此服務的 1 個處理常式...
- 服務 "t02XDB" 包含 1 個常式。
- 常式 "t02", 狀態 READY, 包含此服務的 1 個處理常式...
- 服務 "t02_XPT" 包含 1 個常式。
- 常式 "t02", 狀態 READY, 包含此服務的 1 個處理常式...
- 命令執行成功
- LSNRCTL> reload
- 正在串連到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=PC1255-20110528)(PORT=1522)))
- 命令執行成功
- LSNRCTL> status
- 正在串連到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=PC1255-20110528)(PORT=1522)))
- LISTENER 的 STATUS
- ------------------------
- 別名 L1
- 版本 TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
- 啟動日期 24-7月 -2011 22:14:19
- 正常已耗用時間 0 天 1 小時 26 分 8 秒
- 追蹤層級 off
- 安全性 ON: Local OS Authentication
- SNMP OFF
- 監聽程式參數檔案 D:\oracle\product\10.2.0\db_1\network\admin\listener.ora
- 監聽程式記錄檔 D:\oracle\product\10.2.0\db_1\network\log\l1.log
- 監聽端點概要...
- (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=PC1255-20110528)(PORT=1522)))
- 服務摘要..
- 服務 "PLSExtProc" 包含 1 個常式。
- 常式 "PLSExtProc", 狀態 UNKNOWN, 包含此服務的 1 個處理常式...
- 服務 "t01" 包含 1 個常式。
- 常式 "t01", 狀態 UNKNOWN, 包含此服務的 1 個處理常式...
- 命令執行成功