- 最后登录
- 2017-5-4
- 在线时间
- 81 小时
- 威望
- 999
- 金钱
- 2391
- 注册时间
- 2013-9-11
- 阅读权限
- 150
- 帖子
- 1124
- 精华
- 5
- 积分
- 999
- UID
- 1220
|
1#
发表于 2017-4-12 19:16:01
|
查看: 1457 |
回复: 1
求教:oracle服务器异常断电后orcl只能mount不能open
oracle服务器异常断电后orcl只能mount不能open;
recover database;
ora-00283:
ora-01122:
ora-01110:
0ra-01207:
各位大侠请赐教!!!
ALTER DATABASE BACKUP CONTROLFILE TO TRACE后,产生脚本:
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS NOARCHIVELOG
MAXLOGFILES 32
MAXLOGMEMBERS 2
MAXDATAFILES 32
MAXINSTANCES 16
MAXLOGHISTORY 1815
LOGFILE
GROUP 1 'D:\ORACLE\ORADATA\ORCL\REDO03.LOG' SIZE 1M,
GROUP 2 'D:\ORACLE\ORADATA\ORCL\REDO02.LOG' SIZE 1M,
GROUP 3 'D:\ORACLE\ORADATA\ORCL\REDO01.LOG' SIZE 1M
DATAFILE
'D:\ORACLE\ORADATA\ORCL\SYSTEM01.DBF',
'D:\ORACLE\ORADATA\ORCL\RBS01.DBF',
'D:\ORACLE\ORADATA\ORCL\USERS01.DBF',
'D:\ORACLE\ORADATA\ORCL\TEMP01.DBF',
'D:\ORACLE\ORADATA\ORCL\TOOLS01.DBF',
'D:\ORACLE\ORADATA\ORCL\INDX01.DBF',
'D:\ORACLE\ORADATA\ORCL\DR01.DBF',
'D:\ORACLE\ORADATA\ORCL\OEM_REPOSITORY.ORA',
'D:\ORACLE\ORADATA\ORCL\SCHOOL.ORA',
'D:\ORACLE\ORADATA\ORCL\LUCY.ORA',
'D:\ORACLE\ORADATA\ORCL\CUSTOMER_SERVICE.ORA',
'D:\ORACLE\ORADATA\ORCL\FORCAST_DATA.ORA'
CHARACTER SET ZHT16BIG5
;
RECOVER DATABASE
ALTER DATABASE OPEN;
运行后
ORA-01503:
ORA-01192:
ORA-01507:
请指教!!!
我重建controlfile并作如下操作:
SQL> recover database using backup controlfile
ORA-00279: ???? 2375142 ??? 06/29/2002 08:54:42 ? (???? 1 ??)
ORA-00289: ?? : D:\ORACLE\ORA81\RDBMS\ARC04465.001
ORA-00280: ?? 2375142 (???? 1) ???? #4465
指定日誌: {<RET>=suggested | filename | AUTO | CANCEL}
d:\oracle\oradata\orcl\redo01.log
ORA-00310: ?????????? 4485; ???????? 4465
ORA-00334: ????: 'D:\ORACLE\ORADATA\ORCL\REDO01.LOG'
SQL> recover database using backup controlfile
ORA-00279: ???? 2375142 ??? 06/29/2002 08:54:42 ? (???? 1 ??)
ORA-00289: ?? : D:\ORACLE\ORA81\RDBMS\ARC04465.001
ORA-00280: ?? 2375142 (???? 1) ???? #4465
指定日誌: {<RET>=suggested | filename | AUTO | CANCEL}
auto
ORA-00308: ???????? 'D:\ORACLE\ORA81\RDBMS\ARC04465.001'
ORA-27041: ??????
OSD-04002: !H!H!H!H!H!H
O/S-Error: (OS 2) (t2N'd$#(l+|)w*:@I.W!C
SQL> recover database using backup controlfile
ORA-00279: ???? 2375142 ??? 06/29/2002 08:54:42 ? (???? 1 ??)
ORA-00289: ?? : D:\ORACLE\ORA81\RDBMS\ARC04465.001
ORA-00280: ?? 2375142 (???? 1) ???? #4465
指定日誌: {<RET>=suggested | filename | AUTO | CANCEL}
cancel
取消媒體復原.
SQL> recover database using backup controlfile
ORA-00279: ???? 2375142 ??? 06/29/2002 08:54:42 ? (???? 1 ??)
ORA-00289: ?? : D:\ORACLE\ORA81\RDBMS\ARC04465.001
ORA-00280: ?? 2375142 (???? 1) ???? #4465
指定日誌: {<RET>=suggested | filename | AUTO | CANCEL}
d:\oracle\oradata\orcl\redo01.log
ORA-00310: ?????????? 4485; ???????? 4465
ORA-00334: ????: 'D:\ORACLE\ORADATA\ORCL\REDO01.LOG'
redo01.log sequence 是4485,而它要的是sequence 4465 !
这种情况与
介绍的有点不同,下面该如何做还请各位大侠多多指导!!!
C:\>set oracle_sid=orcl
C:\>sqlplus /nolog
SQL*Plus: Release 8.1.7.0.0 - Production on 星期五 7月 5 08:00:15 2002
(c) Copyright 2000 Oracle Corporation. All rights reserved.
SQL> connect sys/manager as sysdba
已連接
SQL> recover database using backup controlfile
ORA-00279: 必須變更 2375142 建立於 06/29/2002 08:54:42 上 (對於繫線 1 而言)
ORA-00289: 建議 : D:\ORACLE\ORA81\RDBMS\ARC04465.001
ORA-00280: 變更 2375142 (屬於繫線 1) 是在序列 #4465
指定日誌: {<RET>=suggested | filename | AUTO | CANCEL}
d:\oracle\oradata\orcl\redo01.log
ORA-00310: 封存日誌的順序號碼為 4485; 需要的順序號碼為 4465
ORA-00334: 封存日誌: 'D:\ORACLE\ORADATA\ORCL\REDO01.LOG'
SQL> recover database using backup controlfile
ORA-00279: 必須變更 2375142 建立於 06/29/2002 08:54:42 上 (對於繫線 1 而言)
ORA-00289: 建議 : D:\ORACLE\ORA81\RDBMS\ARC04465.001
ORA-00280: 變更 2375142 (屬於繫線 1) 是在序列 #4465
指定日誌: {<RET>=suggested | filename | AUTO | CANCEL}
d:\oracle\oradata\orcl\redo02.log
ORA-00310: 封存日誌的順序號碼為 4487; 需要的順序號碼為 4465
ORA-00334: 封存日誌: 'D:\ORACLE\ORADATA\ORCL\REDO02.LOG'
SQL> recover database using backup controlfile
ORA-00279: 必須變更 2375142 建立於 06/29/2002 08:54:42 上 (對於繫線 1 而言)
ORA-00289: 建議 : D:\ORACLE\ORA81\RDBMS\ARC04465.001
ORA-00280: 變更 2375142 (屬於繫線 1) 是在序列 #4465
指定日誌: {<RET>=suggested | filename | AUTO | CANCEL}
d:\oracle\oradata\orcl\redo03.log
ORA-00310: 封存日誌的順序號碼為 4480; 需要的順序號碼為 4465
ORA-00334: 封存日誌: 'D:\ORACLE\ORADATA\ORCL\REDO03.LOG'
help me!!!
在create controlfile前没有备份控制文件,DATABASE是noarchivelog模式,执行如下操作,还是需要BACKUP CONTROLFILE,我该怎么办呢?大侠帮帮我!!!
SQL> recover database
ORA-00283: 因為發生錯誤而取消復原連接物件
ORA-01610: 必須完成使用 BACKUP CONTROLFILE 選項的復原作業
就是让你重建控制文件, 重用当前控制文件.
或者你先把当前已经有的控制文件移到别的地方,然后不用加上controlfile reuse这个句子.
在前面的帖子中,已采用重新产生CONTROLFILE的方法,但还是不能做RECOVER DATABASE,请大侠指教!!!
以下是我的执行情况,请大侠过目,求教!!!
C:\>set oracle_sid=orcl
C:\>sqlplus /nolog
SQL*Plus: Release 8.1.7.0.0 - Production on 星期五 7月 5 15:53:45 2002
(c) Copyright 2000 Oracle Corporation. All rights reserved.
SQL> connect sys/manager as sysdba
連線至閒置執行項次.
SQL> @d:\oracle\c.sql
已啟動 ORACLE 執行項次.
Total System Global Area 190670876 bytes
Fixed Size 75804 bytes
Variable Size 33230848 bytes
Database Buffers 157286400 bytes
Redo Buffers 77824 bytes
控制檔已被建立
SQL> select * from v$log;
GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS
---------- ---------- ---------- ---------- ---------- --- ----------------
FIRST_CHANGE# FIRST_TIM
------------- ---------
1 1 0 1048576 1 YES UNUSED
0
2 1 0 1048576 1 YES UNUSED
0
3 1 0 1048576 1 YES CURRENT
0
SQL> recover database
ORA-00283: ???????????????
ORA-01610: ?????? BACKUP CONTROLFILE ???????
我的c.sql文件:
STARTUP NOMOUNT PFILE=D:\oracle\admin\ORCL\pfile\init.ora
CREATE CONTROLFILE REUSE DATABASE "ORCL" RESETLOGS NOARCHIVELOG
MAXLOGFILES 32
MAXLOGMEMBERS 2
MAXDATAFILES 32
MAXINSTANCES 16
MAXLOGHISTORY 1815
LOGFILE
GROUP 1 'D:\ORACLE\ORADATA\ORCL\REDO03.LOG' SIZE 1M,
GROUP 2 'D:\ORACLE\ORADATA\ORCL\REDO02.LOG' SIZE 1M,
GROUP 3 'D:\ORACLE\ORADATA\ORCL\REDO01.LOG' SIZE 1M
DATAFILE
'D:\ORACLE\ORADATA\ORCL\SYSTEM01.DBF',
'D:\ORACLE\ORADATA\ORCL\RBS01.DBF',
'D:\ORACLE\ORADATA\ORCL\USERS01.DBF',
'D:\ORACLE\ORADATA\ORCL\TEMP01.DBF',
'D:\ORACLE\ORADATA\ORCL\TOOLS01.DBF',
'D:\ORACLE\ORADATA\ORCL\INDX01.DBF',
'D:\ORACLE\ORADATA\ORCL\DR01.DBF',
'D:\ORACLE\ORADATA\ORCL\OEM_REPOSITORY.ORA',
'D:\ORACLE\ORADATA\ORCL\SCHOOL.ORA',
'D:\ORACLE\ORADATA\ORCL\LUCY.ORA',
'D:\ORACLE\ORADATA\ORCL\CUSTOMER_SERVICE.ORA',
'D:\ORACLE\ORADATA\ORCL\FORCAST_DATA.ORA'
CHARACTER SET ZHT16BIG5
;
大侠,我的recover database并没有成功吧?另外4485,4487,4480文件还在,请指教!!!
SQL> recover database
ORA-00283: ???????????????
ORA-01610: ?????? BACKUP CONTROLFILE ???????
|
|