oracle shutdown 默认,oracle shutdown 没有反应 您所在的位置:网站首页 湖北仙桃黄鳝养殖基地有几个 oracle shutdown 默认,oracle shutdown 没有反应

oracle shutdown 默认,oracle shutdown 没有反应

#oracle shutdown 默认,oracle shutdown 没有反应| 来源: 网络整理| 查看: 265

shutdown默认为shutdown normal,不能接受新的连接,但是需要等待原有的活动连接完成工作退出后才会正式执行关闭。

一般使用该命令后要等所有连接活动释放后才退出,所以当连接活动没释放将没有反应。

一般使用shutdownn immeditate,不过如果连接活动太多,shutdown immediate也会出项长时间没反应的问题。

二 解决方法1(不建议采用)

SQL> conn /as sysdba

Connected.

SQL>

SQL> shutdown abort;

ORACLE instance shut down.

SQL> startup restrict;

ORACLE instance started.

SQL> shutdown

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> quit

三 解决方法2(建议采用)

1. 查看oracle的后台日志

[root@ebslouis VIS_ebslouis]# cd /d01/oracle/visdb/9.2.0/admin/VIS_ebslouis

[root@ebslouis VIS_ebslouis]# ls

bdump  cdump  udump

[root@ebslouis VIS_ebslouis]# cd bdump/

[root@ebslouis bdump]# vim alert_VIS.log

查找关键字wait即可看到活动的进程。

2. 查看哪些进程是活动的,然后看它的进程号。

3. 用ps确认一下

[root@ebsxshell bdump]# ps -ef | grep 26736

如果alert_VIS.log 文件中没有,那么:

[oracle@ebsxshell ~]$ ps -ef | grep oracle

查找相似的进程,例如:oracle   29721     1 46 20:03 pts/4    00:20:58 oracleVIS (LOCAL=NO),和其他的间隔点距离的位置的进程。

正常进程是这样的:

[root@ebslouis ~]# ps -ef | grep oracle

oracle    3413     1  0 Dec07 ?        00:00:00 ora_pmon_VIS

oracle    3415     1  0 Dec07 ?        00:00:13 ora_dbw0_VIS

oracle    3417     1  0 Dec07 ?        00:02:28 ora_lgwr_VIS

oracle    3419     1  0 Dec07 ?        00:00:03 ora_ckpt_VIS

oracle    3421     1  0 Dec07 ?        00:00:39 ora_smon_VIS

oracle    3423     1  0 Dec07 ?        00:00:00 ora_reco_VIS

oracle    3425     1  0 Dec07 ?        00:00:02 ora_cjq0_VIS

oracle    3509     1  0 Dec07 ?        00:10:12 ora_qmn0_VIS

oracle    4819     1  0 Dec07 ?        00:00:00 /d01/oracle/visora/8.0.6/vbroker/bin/osagent

root     17732 17627  0 16:57 pts/1    00:00:00 su - oracle

oracle   17745 17732  0 16:58 pts/1    00:00:00 -bash

oracle   19409 17745  0 17:24 pts/1    00:00:00 sqlplus

oracle   19420 19409  0 17:24 ?        00:00:00 oracleVIS (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))

root     19507 19471  0 17:27 pts/3    00:00:00 grep oracle

没有启动的进程显示是这样的:

[root@ebsxshell bdump]# ps -ef | grep oracle

root      3478 26505  0 20:48 pts/6    00:00:00 su - oracle

oracle    3479  3478  0 20:48 pts/6    00:00:00 -bash

root      3595 26355  0 20:52 pts/5    00:00:00 grep oracle

root     26246 25989  0 18:33 pts/4    00:00:00 su - oracle

oracle   26247 26246  0 18:33 pts/4    00:00:00 -bash

[root@ebsxshell bdump]#

4. kill -9 进程号

5. 在执行一遍关闭操作:shutdown immediate



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

      专题文章
        CopyRight 2018-2019 实验室设备网 版权所有