因数据库断电导致错误,经过以下步骤,数据库正常启动
1.startup mount
2.alter database backup controlfile to trace;
3.shutdown abort
4./u01/paa/oracle/admin/POD/udump编辑最新的文件
5.将文件中如下部分单独做成脚本(因数据库而异)
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "POD" NORESETLOGS NOARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 292
LOGFILE
GROUP 1 (
'/u01/paa/oracle/oradata/POD/redo01.log',
'/u01/paa/oracle/oradata/POD/redo01b.log'
) SIZE 50M,
GROUP 2 (
'/u01/paa/oracle/oradata/POD/redo02.log',
'/u01/paa/oracle/oradata/POD/redo02b.log'
) SIZE 50M,
GROUP 3 (
'/u01/paa/oracle/oradata/POD/redo03.log',
'/u01/paa/oracle/oradata/POD/redo03b.log'
) SIZE 50M
-- STANDBY LOGFILE
DATAFILE
'/u01/paa/oracle/oradata/POD/system01.dbf',
'/u01/paa/oracle/oradata/POD/undotbs01.dbf',
'/u01/paa/oracle/oradata/POD/sysaux01.dbf',
'/u01/paa/oracle/oradata/POD/users01.dbf',
'/u01/paa/oracle/oradata/POD/example01.dbf',
'/u01/paa/oracle/oradata/POD/jinlian_index.dbf',
'/u01/paa/oracle/oradata/POD/jinlian_undo.dbf'
CHARACTER SET AL32UTF8
;
6.sqlplus / as sysdba
7.运行脚本如 @/home/oracle/con.sql
8.recover database;
9.alter database open;
--转自