воскресенье, 26 апреля 2009 г.

ORA-01033: ORACLE initialization or shutdown in progress

Ситуация была такая:
Oracle 11g на WinXP. Отрубилось питание у компа. После перезагрузки любая попытка входа в базу заканчивается ошибкой ora-01033(кроме sys):


C:\Documents and Settings\PWS>sqlplus scott/tiger@wind

SQL*Plus: Release 11.1.0.6.0 - Production on Sun Apr 26 16:32:47 2009

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

ERROR:
ORA-01033: ORACLE initialization or shutdown in progress
Process ID: 0
Session ID: 0 Serial number: 0


Enter user-name:

Помогло следующее:

C:\Documents and Settings\PWS>sqlplus sys@wind as sysdba

SQL*Plus: Release 11.1.0.6.0 - Production on Sun Apr 26 16:55:33 2009

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

Enter password:

Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> recover database;
Media recovery complete.

и рестарт базы.