您的位置:首页 > 数据库 > Oracle

oa数据库Oracle隔一段时间远程连不上,但是oa还是能连上数据库

2013-12-23 10:41 302 查看
oa数据库用的是Oracle,运行一段时间远程连不上数据库(用plsql developer也连不上),但是oa还是能正常运行能连上数据库

诊断:

1、检查监听状态时卡住

root@OAServer2 # su - oracle

Sun Microsystems Inc.   SunOS 5.9       Generic May 2002

$ lsnrctl status

LSNRCTL for Solaris: Version 10.2.0.1.0 - Production on 05-AUG-2013 14:08:25

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

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))

(一直卡住这里);

2、检查监听进程,发现有2个监听程序(其中一个监听进程20044的时间和listener.log日志的最后修改时间(2013-7-29 12:58)都是同一天(今天是2013-8-5),猜测可能是这天出了什么问题导致又开启一个监听进程)

root@OAServer2 # ps -ef|grep tns

  oracle   373     1  0   3月 04 ?       361:50 /oa2/oracle10g/product/10.2.0.1/

bin/tnslsnr LISTENER -inherit

  oracle 20044   373  0   7月 29 ?        0:00 /oa2/oracle10g/product/10.2.0.1/b

in/tnslsnr LISTENER -inherit

    root  8822  8806  0 13:55:50 pts/1    0:00 grep tns

3、root@OAServer2 # su - oracle

kill -9 20044 杀掉一个进程,再远程连接数据库成功
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  orcle solaris