欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

Oracle故障分析ORA-01089

程序员文章站 2022-05-11 12:22:07
...

今天对测试库发出shutdown immediate命令后观察日志发现如下内容:Tue May 12 09:52:45 2015SHUTDOWN: Active processes prevent

今天对测试库发出shutdown immediate命令后观察日志发现如下内容:
Tue May 12 09:52:45 2015
SHUTDOWN: Active processes prevent shutdown operation

shutdown被活动的进程阻止了,,Ctrl+C无法中断当前回话,退出重连服务器,打开新的会话:
[Oracle@021Y-SH-BKAP ~]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Tue May 12 09:54:17 2015
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected.
SQL> shutdown immediate
ORA-24324: service handle not initialized
ORA-24323: value not allowed
ORA-01089: immediate shutdown in progress - no operations are permitted
SQL> startup abort
ORA-01031: insufficient privileges

查看报错信息
[oracle@021Y-SH-BKAP ~]$ oerr ora 01089

01089, 00000, "immediate shutdown in progress - no operations are permitted"

// *Cause: The SHUTDOWN IMMEDIATE command was used to shut down

// a running ORACLE instance, so your operations have been

// terminated.

// *Action: Wait for the instance to be restarted, or contact your DBA.

退出会话再次重新连接
SQL> exit

Disconnected

[oracle@021Y-SH-BKAP ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Tue May 12 09:57:24 2015

Copyright (c) 1982, 2009, Oracle. All rights reserved.

Connected.

SQL> shutdown abort

ORACLE instance shut down.