Oracle 监听莫名死掉

有一台oracle 10g的监听莫名死掉,进行查看

select * from v$version

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi

select status,count(*) from v$session group by status order by count(*) desc;
查看链接的session 情况

==在listener.ora 中添加
SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER=OFF

connect_timeout_listener=2

lsnrctl set log_status off
mv listener.log /tmp
lsnrctl set log_status on

[[email protected] archivelog]$ lsnrctl

LSNRCTL for Linux: Version 12.1.0.1.0 - Production on 20-AUG-2015 01:56:18

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

Welcome to LSNRCTL, type "help" for information.

LSNRCTL> help
The following operations are available
An asterisk (*) denotes a modifier or extended command:

start stop status services
version reload save_config trace
spawn quit exit set*
show*

LSNRCTL> show
The following operations are available after show
An asterisk (*) denotes a modifier or extended command:

rawmode displaymode
rules trc_file
trc_directory trc_level
log_file log_directory
log_status current_listener
inbound_connect_timeout startup_waittime
snmp_visible save_config_on_stop
dynamic_registration enable_global_dynamic_endpoint
oracle_home pid
connection_rate_limit valid_node_checking_registration
registration_invited_nodes registration_excluded_nodes
remote_registration_address

LSNRCTL> show inbound_connect_timeout
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.32.8)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SID_NAME=hongquan)))
LISTENER parameter "inbound_connect_timeout" set to 60
The command completed successfully
LSNRCTL> SET INBOUND_CONNECT_TIMEOUT 2
LSNRCTL> set save_config_on_stop on #表示修改参数永久生效,否则只是临时生效

解决方案:
在Oracle Net Server tracing/logging中出现这个错误,请在sqlnet.ora中设置DIAG_ADR_ENABLED =OFF
在Listener component中出现这个错误,请在listener.ora中设置DIAG_ADR_ENABLED_ = OFF

sqlnet.ora:
SQLNET.INBOUND_CONNECT_TIMEOUT=180
listener.ora:
INBOUND_CONNECT_TIMEOUT_listener_name=120
metlink文档
ORA-609 TNS-12537 and TNS-12547 in 11g Alert.log (Doc ID 1116960.1)
Troubleshooting Guide ORA-609 : Opiodr aborting process unknown ospid (Doc ID 1121357.1)

===
[[email protected] log]# tail -f -n 300 /u01/app/oracle/product/10.2.0/db_1/network/log/sqlnet.log
Fatal NI connect error 12170.

VERSION INFORMATION:
TNS for Linux: Version 10.2.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for Linux: Version 10.2.0.1.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 10.2.0.1.0 - Production
Time: 06-AUG-2015 08:11:17
Tracing not turned on.
Tns error struct:
ns main err code: 12535
TNS-12535: TNS:operation timed out
ns secondary err code: 12560
nt main err code: 505
TNS-00505: Operation timed out
nt secondary err code: 110
nt OS err code: 0
Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=192.168.2.119)(PORT=61497))

Fatal NI connect error 12547, connecting to:
(LOCAL=NO)

VERSION INFORMATION:
TNS for Linux: Version 10.2.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for Linux: Version 10.2.0.1.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 10.2.0.1.0 - Production
Time: 06-AUG-2015 11:45:49
Tracing not turned on.
Tns error struct:
ns main err code: 12547
TNS-12547: TNS:lost contact
ns secondary err code: 12560
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0

====清空监听日志
echo ‘‘ >listener.log
====
$ echo -e ‘4294967338-4*1024*1024*1024‘ |bc

$ dd if=/dev/zero of=listener.log bs=2147483661 count=2

$ echo -e ‘4294967338-4*1024*1024*1024‘ |bc

[[email protected] log]# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 31559
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 31559

***********************************************************************
Fatal NI connect error 12170.

VERSION INFORMATION:
TNS for Linux: Version 10.2.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for Linux: Version 10.2.0.1.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 10.2.0.1.0 - Production
Time: 19-AUG-2015 11:30:30
Tracing not turned on.
Tns error struct:
ns main err code: 12535
TNS-12535: TNS:operation timed out
ns secondary err code: 12606
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0

***********************************************************************
Fatal NI connect error 12170.

VERSION INFORMATION:
TNS for Linux: Version 10.2.0.1.0 - Production
Oracle Bequeath NT Protocol Adapter for Linux: Version 10.2.0.1.0 - Production
TCP/IP NT Protocol Adapter for Linux: Version 10.2.0.1.0 - Production
Time: 19-AUG-2015 11:30:30
Tracing not turned on.
Tns error struct:
ns main err code: 12535
TNS-12535: TNS:operation timed out
ns secondary err code: 12606
nt main err code: 0
nt secondary err code: 0
nt OS err code: 0

virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

原文地址:https://www.cnblogs.com/yhq1314/p/9946584.html

时间: 2024-10-09 15:09:37

Oracle 监听莫名死掉的相关文章

有一台oracle 11g的监听莫名死掉,lsnrctl stop /status 一直处于等待,客户端plsql连不上

到oracle服务器上设置下面的 解决方案:在Oracle Net Server tracing/logging中出现这个错误,请在sqlnet.ora中设置DIAG_ADR_ENABLED =OFF在Listener component中出现这个错误,请在listener.ora中设置DIAG_ADR_ENABLED_ = OFF sqlnet.ora:SQLNET.INBOUND_CONNECT_TIMEOUT=180listener.ora:INBOUND_CONNECT_TIMEOUT_

[转] oracle 监听

oracle 监听 启动监听:lsnrctl start 查看监听:lsnrctl status 停止监听:lsnrctl stop 1.oracle 数据服务器包括:实例进程和数据库: 实例进程包括:memory structure(sga)以及background process(pmon(进程监控).smon(系统监控system monitor,空间整理3秒).dbwr(脏数据处理).lgwr(将redo buffer文件写会log),ckpt(checkpoint,同步数据,先写日志.

oracle监听模块异常

一.oracle监听异常 1.检查oracle数据库是否启动:ps -ef | grep ora 2.检查oracle数据库监听程序是否启动:ps -ef | grep LISTEN 3.检查Oracle DB监听器是否正常:lsnrctl status 如未启动,输入:lsnrctl start启动监听器:netstat -ntlp 查看1521端口是否启动 4.进入sqlplus界面:sqlplus /nolog; conn / as sysdba;然后startup启动数据库实例和数据库

oracle监听(lsnrctl)详解解读

(总结)Oracle监听服务lsnrctl参数及查询状态详解 lsnrctl命令常用参数详解: lsnrctlstart启动指定的监听器 stop关闭指定的监听器 status显示监听器的状态.status命令显示监听器是不是活动的,日志与跟踪文件的位置,监听器已经持续运行了多长时间,以及监听器所监听的任务.如下图所示: services列举监听器的服务信息,比如这些服务是否有任何专用的预生成服务器进程或与之相关的调度进程,以及每个服务已有多少连接被接受或拒绝.这种方法用来检查一个监听器是否在监

Linux下修改Oracle监听地址

如果你的服务器换了ip怎么办? 如果你的服务器换了名字怎么办? 以前的小伙伴怎么办? 以前的老客户怎么办? 没关系,简单教你修改监听地址,老朋友随便找! 想要修改监听地址首先要找到两个文件,确定两样东西! 第一 你的主机名字? 第二 你的IP地址? 第三 你的listener.ora在哪里? 第四 你的tnsnames.ora在哪里? 原来的文件监听的是localhost,这个名字在/etc/hosts中会被映射成Ip地址127.0.0.1 lisenter.ora 目录在 /opt/oracl

Windows平台下Oracle监听服务启动过程中日志输出

Windows平台下Oracle监听服务启动过程中日志输出记录. 日志目录:D:\app\Administrator\diag\tnslsnr\WIN-RU03CB21QGA\listener\trace\listener.log 日志输出内容: Sat Aug 06 20:38:44 2016 系统参数文件为D:\app\Administrator\product\11.2.0\dbhome_1\network\admin\listener.ora 写入d:\app\administrator

LINUX启动ORACLE监听和服务

可通过secureCRT或者telnet直接连 启动监听命令:lsnrctl start 成功启动后:sqlplus /nolog 回车 conn / as sysdba 回车 startup 回车 select * from user_tables; 回车 有结果,ok 启动监听和服务成功 附由于无服务导致的错误: 关于ORA-01034和ORA-27101的一种解决方法 1 先看oracle的监听和oracle的服务是否都启动了.启动oracle监听:cmd的命令行窗口下,输入lsnrctl

windows 启动关闭Oracle监听和服务 (转载)

经常要用数据库,让他自己启动的话,开机太慢,所以用命令启动方便点.   1.开启:     在运行中输入cmd,进入控制台,lsnrctl start回车,提示启动监听成功后 net start OracleServiceORCL.2 关闭     在运行中输入cmd,进入控制台,lsnrctl stop回车,提示启动监听成功后 net stop OracleServiceORCL.这样还是不太方便.     在桌面右键,新建一个记事本,输入 lsnrctl start net start Or

【转】oracle 监听静态注册举例解析

网上有很多关于oracle 监听静态注册的文章,但大多都是简单说说,并没有详细的例子,这里,将结合linux as3 下的oracle 10gR2.0.1 举一个具体的例子 1.在 $ORACLE_HOME/network/admin/listener.ora 文件中加入一个静态注册的节点 [[email protected] oracle]$ cd $ORACLE_HOME/network/admin[[email protected] admin]$ vi listener.ora# lis