用 oracle:~ # lsof -i:1521 如果有返回信息,就说明侦听是启用的,如果没有返回任何信息说明侦听是停用的,或者你用 lsnrctl start。
oracle@oracle:~>lsnrctl start
LSNRCTL for Linux: Version 11.2.0.3.0 - Production 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 status命令返结请问根据字段Alias LISTENER判断监听启启返结 本菜鸟求神指点菜鸟别误弟本根据查询返字段判断否启监听要产机
[patrol@mail1 ~]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.3.0 - Production on 04-7月 -2014 16:16:21
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.3.0 - Production
Start Date 14-4月 -2014 09:42:35
Uptime 81 days 6 hr. 33 min. 45 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/11.2.0/grid/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/mail1/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.1.45.39)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.1.45.41)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM1", status READY, has 1 handler(s) for this service...
Service "mail" has 1 instance(s).
Instance "mail1", status READY, has 1 handler(s) for this service...
Service "mailXDB" has 1 instance(s).
Instance "weixin1", status READY, has 1 handler(s) for this service...
The command completed successfully
1、头文件不能用,就是说编译器找不到,要么是头文件的位置不对,要么是根本没有所需要的头文件;比如#include,那就是在你的linux源码目录中的include/linux/目录下要有gpio.h这个文件,如果没有,自然就编译通不过了。2、你所说的光盘资料sou。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)