Oracle DBA之配置静态监听(listener registered statically)
Oracle DBA之配置静态监听(listener registered statically)
(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同时也会重新注册动态监听):
(
RELOAD
Purpose
Use 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 个处理程序...
- 命令执行成功
|
评论暂时关闭