Oracle DBA之配置静态监听(listener registered statically)


(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同时也会重新注册动态监听):

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

  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. 安全性                    ONLocal 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. 安全性                    ONLocal 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
  • 下一页

相关内容