搜索
您的当前位置:首页正文

lsnrctl中关于status状态的说明

2023-11-18 来源:知库网

LSNRCTL status Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=lixora)(PORT=1521))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production Start Date 11-AUG-2014 00

LSNRCTL> statusConnecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=lixora)(PORT=1521)))STATUS of the LISTENER------------------------Alias LISTENERVersion TNSLSNR for Linux: Version 10.2.0.1.0 - ProductionStart Date 11-AUG-2014 00:42:37Uptime 0 days 0 hr. 24 min. 32 secTrace Level offSecurity ON: Local OS AuthenticationSNMP OFFListener Parameter File /u02/app/oracle/product/10.2.0/db_1/network/admin/listener.oraListener Log File /u02/app/oracle/product/10.2.0/db_1/network/log/listener.logListening Endpoints Summary...(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=lixora)(PORT=1521)))(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))Services Summary...Service "PLSExtProc" has 1 instance(s).Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...Service "ora10g" has 1 instance(s).Instance "ora10g", status READY, has 1 handler(s) for this service...Service "ora10gXDB" has 1 instance(s).Instance "ora10g", status READY, has 1 handler(s) for this service...Service "ora10g_XPT" has 1 instance(s).Instance "ora10g", status READY, has 1 handler(s) for this service...The command completed successfullyLSNRCTL>

关于‘Instance "ora10g", status READY, has 1 handler(s) for this service...’中status 状态解释:这个status 指的的是instance 的状态

Instance Specifies the name of the instance associated with the service alongwith its status and number of service handlers associated with theserviceStatus can be one of the following:■ A READY status means that the instance can accept connections.-----实例是动态由pmon注册,所以显示的status 当然是‘ready’

■ A BLOCKED status means that the instance cannot accept connections.-----实例无法接受连接,一般是实例处于nomount 状态下,pmon 无法将注册到监听,因为这时数据库还没有打开pmon无法确定db能否对外服务

■ A READY/SECONDARY status means that this is a secondary instance in an Oracle9 i Real Application Clustersprimary/secondary configuration and is ready to accept connections.

■ An UNKNOWN status means that the instance is registered statically in the listener.ora file rather than dynamicallywith service registra tion. Therefore, the status is non known.------这个‘unknown’ 表征实例是静态注册到监听

小编还为您整理了以下内容,可能对您也有帮助:

理解oracle的“lsnrctlstatus”

  先看看 lsnrctl status 的输出信息     Services Summary     Service PLSExtProc has instance(s)     Instance PLSExtProc status UNKNOWN has handler(s) for this    service     Service catadb has instance(s)     Instance catadb status UNKNOWN has handler(s) for this    service     Instance catadb status READY has handler(s) for this service     Service catadbXDB has instance(s)     Instance catadb status READY has handler(s) for this service     The mand pleted successfully

  这里提出两个问题     输出中显示的这些 service 是在哪里定义的?    为什么一个 service 会有两个 instance?

  先来看第二个问题 从oracle 版本后 在listener ora文件中没有为数据库预先定义条目的时候 instance 和 listener 可以自动的互相发现 但是习惯上在listener ora文件中为每个数据库定义一个SID_DESC条目以便在需要的时候使用 这就使服务 catadb 有两个实例:     一个状态是 UNKNOWN 的实例 是在 listener ora 文件中静态定义 另一个状态是 READY 的实例是当数据库启动时 PMON进程自动把数据库注册到 在数据库启动后每一分钟注册一次 在使用OEM等工具时需要有监听的静态定义

  再来看看这些服务是怎么定义的 oracle有三种监听方式

  Database

  提供对数据库实例的网络访问

  PLSExtProc

  PL/SQL 包访问操作系统可执行程序的方法

  Executable

  提供对操作系统可执行程序的网络访问

lishixin/Article/program/Oracle/201311/16556

如何查看和开启oracle监听和服务

1、检查oracle监听服务运行状态,输入lsnrctl status命令来查看,看到提示信息TNS:no listener,表示监听没有启动,

2、监听没有启动,则需要输入lsnrctl start启动监听服务,当看到提示信息"The command completed successfully",则表示启动成功,

3、以system用户身份登陆oracle,sqlplus /nolog,conn as sysdba,

4、提示Connected to an idle instance。则表示连接成功,下面开始启动oracle实例服务,输入startup命令,当看到如图的提示信息,则启动完成,就可以正常使用oracle服务了,

Linux下查看监听状态的命令lsnrctl status,如何根据返回结果判断监听是正常启动?

用 oracle:~ # lsof -i:1521 如果有返回信息,就说明侦听是启用的,如果没有返回任何信息说明侦听是停用的,或者你用 lsnrctl start。

oracle@oracle:~> lsnrctl start

LSNRCTL for Linux: Version 11.2.0.3.0 - Proction on 04-JUL-2014 18:28:35

Copyright (c) 1991, 2011, Oracle. All rights reserved.

TNS-01106: Listener using listener name LISTENER has already been started

返回以上信息,说明是启用的。

方法1::

看 oracle监听是否启动 在CMD下运行如下命令就可以  lsnrctl status  

正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=spcc)(PORT=1525)))  

TNS-12541: TNS:无  

TNS-12560: TNS: 协议适配器错误  

TNS-00511: 无  

32-bit Windows Error: 61: Unknown error  

LSNRCTL> start listener1  

启动tnslsnr:请稍候...  

这表示没有启动。。  

方法2:  

如果是LINUX系统可以通过如下命令看进程在不在  

ps -ef|grep lsn   

看 oracle监听是否启动 在CMD下运行如下命令就可以

lsnrctl status

正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=spcc)(PORT=1525)))

TNS-12541: TNS:无。TNS-12560: TNS: 协议适配器错误。TNS-00511: 无

32-bit Windows Error: 61: Unknown error

LSNRCTL> start listener1

启动tnslsnr:请稍候...。这表示没有启动。。

如果是LINUX系统可以通过如下命令看进程在不在

ps -ef|grep lsn

开启lsnrctl 时,Instance "tpc",status UNKNOWN 是什么意思

Instance "tpc",status UNKNOWN 实例“TPC”,状态未知 tpc abbr.treated-paper copier (使用)经处理纸张的复印机; TPC abbr.tetraphenylchlorine 四苯基氯; 百科释义 1. 少末端肽胶原 2. tpc . 很高兴为你解答! 如有不懂,请追问。 谢谢!

本文如未解决您的问题请添加抖音号:51dongshi(抖音搜索懂视),直接咨询即可。

上一篇:小孩名字叫什么好

下一篇:

热门图文

  • JS遍历数组和对象的区别及递归遍历对象、数组、属性的方法详解

    唯一的区别是,数组的属性是0-n整数对象的属性可以是任意字符串比如有一个数组a=[1,2,3,4],还有一个对象a={0:1,1:2,2:3,3:4},然后你运行alert(a[1]),两种情况下的运行结果是相同的!这就是说,数据集合既可以用数组表示,也可以用对象表示,那么我到底该用哪一种呢?数组表示有序数据的集合,而对象表示无序数据的集合。如果数据的顺序很重要,就用数组,否则就用对象。当然,数组和对象的另一个区别是,数组的数据没有”名称”(name),对象的数据有”名称”(name)。

  • JavaScript判断变量数据类型

    意思是使用JavaScript写一段检查输入数据是否符合数据类型要求的代码。

  • js声明数组和向数组中添加对象变量的简单实例

    对于一门编程语言,肯定包含变量和数据类型。今天我们就来看看JavaScript脚本语言的变量和数据类型。相对于其他的Java,C++等高级程序语言,JavaScript显得很简单。一、变量 JavaScript的变量是松散类型的,所谓松散就是用来保存任何类型的数据。变量是存储信息的容器。定义变量时要使用var操作符(var是关键字),后面跟一个变量名(变量名是标识符)。变量也就是初始化后可以再次改变的量。那么我们来看看实例: 就像代数那样:x=2,y=3,z=x+y在代数中,我们使用字母(比如x

  • Javascript如何判断数据类型和数组类型

    数据类型判断之typeoftypeof可以解决大部分数据类型的判断,其返回值为一个字符串,该字符串说明运算数的类型。返回结果:除了string、number、boolean、undefined这四个类型外,null、object、array返回的都是object类型!!!对于函数类型返回的则是function,再比如typeof(Date),typeof(eval)等。js判断数组类型的方法1) instanceof instanceof 用于判断一个变量是否某个对象的实例,是一个三目运算式。这

  • JS从数组中随机取出几个数组元素的方法

    var a = [1,2,3,3,4,5,6,7,8,9];function sendNum(arr){ return arr[Math.floor(Math.random()*arr.length)];}sendNum(a);这样就可以实现每次返回是一个随机数组中的一个数。主要用的就是random的方法。random方法,是返回(0,1] 的数,但取不到1,所以用Math.floor向下取整。

Top