最新活动:电脑PC端+手机端+微网站+自适应网页多模板选择-建站388元起价!!!
当前位置:主页 > 网站建设 > Oracle 11g2的监听器配置教程建站知识

Oracle 11g2的监听器配置教程建站知识

时间:2023-05-23 14:05:23 阅读: 文章分类: 网站建设 作者: 网站技术员

导读:1建站知识Oracle的监听器服务注册方式有两种,分别为动态和静态,本文将详细介绍这两种,需要的朋友可以参考下网seo优化趋势网站建设公司。

网seo优化趋势网站建设公司Oracle的监听器服务注册方式有两种,分别为动态和静态。通过动态注册的服务在lsnrctl status时显示的状态为ready,静态的服务为unknown。 11g2以前的版本,监听器通过listener.ora文件进行配置。在11g2版本中,监听器的配置方式发生了变化,增加了一个新的配置文件endpoints_listener.ora,并且此文件和原来的listener.ora文件都转移公司网站建设到$GRID_HOME/network/admin目录下了。 11g2的监听器的配置信息保存在$GRID_HOME/network/admin/listener.ora和endpoints_listener.ora两个文件中。 文件endpoints_listener.ora的内容如下: .ora代码

复制代码 代码如下:

LISTENER_SERV2= (DESCRIPTION= ( ADDRESS_LIST= (ADDRESS=(PROTOCOL=TCP)(HOST=xxdb2-vip)(PORT=1551)) (ADDRESS=(PROTOCOL=TCP)(HOST=10.10.10.100)(PORT=1551)(IP=FIRST)) ) )

文件listener.ora的内容如高端网站建设下: .ora代码

复制代码 代码如下:

LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))) # line added by Agent LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))) # line added by Agent ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON # line added by Agent ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added by Agent ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_WFG=ON # line added by Agent

.ora代码 ##静态服务注册添加条目

复制代码 代码如下:

SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (GLOBAL_DBNAME = servdb) (ORACLE_HOME = /u01/oracle/app/oracle/product/10.2.0/db) (SID_NAME = servdb1) ) )

如果需要添加静态注册的服务,和以前版本一样是在listener.ora文件中添加相应的条目。 使用lsnrctl status listener检查监听器状态,如下: Log代码

复制代码 代码如下:

LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 29-NOV-2012 14:18:34 Copyright (c) 1991, 2011, Oracle. All rights reser网站建设公司ved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER))) STATUS of the LISTENER ------------------------ Alias listener Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production Start Date 29-NOV-2012 14:11:17 Uptime 0 days 0 hr. 7 min. 17 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /u01/app/11.2.0.3/grid/network/admin/listener.ora Listener Log File /u01/app/grid/diag/tnslsnr/serv2/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.100)(PORT=1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.10.10.101)(PORT=1521))) Services Summary... Service "+ASM" has 1 instance(s). Instance "+ASM2", status READY, has 1 handler(s) for this service... Service "SERVDG2" has 1 instance(s). Instance "servdb1", status READY, has 1 handler(s) for this service... Service "SERVDG2_XPT" has 1 instance(s). Instance "servdb1", status READY, has 1 handler(s) for this service... Service "elvdb" has 2 instance(s). Instance "elvdb1", status UNKNOWN, has 1 handler(s) for this service... Instance "elvdb2", status READY, has 1 handler(s) for this service... Service "elvdbXDB" has 1 instance(s). Instance "elvdb2", status READY, has 1 handler(s) for this service... The command completed successfully

关键词标签: 标签 监听器

声明: 本文由我的SEOUC技术文章主页发布于:2023-05-23 ,文章Oracle 11g2的监听器配置教程建站知识主要讲述监听器,标签,Oracle 11g2的监听器配置教程建站知识网站建设源码以及服务器配置搭建相关技术文章。转载请保留链接: https://www.seouc.com/article/web_5726.html

我的IDC 网站建设技术SEOUC.COM
专注网站建设,SEO优化,小程序设计制作搭建开发定制网站等,数千家网站定制开发案例,网站推广技术服务。
  • 5000+合作客服
  • 8年从业经验
  • 150+覆盖行业
  • 最新热门源码技术文章