ora-01113:文件2 需要介質恢復

文件損壞或日子文件缺失:

操作流程

1、shutdown immediate; 

2、startup mount;

3、recover datafile 'd:\';

4、alter database open ;


C:\Documents and Settings\Administrator>sqlplus /nolog


SQL*Plus: Release 10.2.0.1.0 - Production on 星期三 5月 29 11:38:24 2019


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


SQL> conn /as sysdba

已連接。

SQL> shutdown immediate;

ORA-01109: 數據庫未打開



已經卸載數據庫。

ORACLE 例程已經關閉。

SQL> startup mount;

ORACLE 例程已經啓動。


Total System Global Area 1.7834E+10 bytes

Fixed Size                  2232320 bytes

Variable Size             961114112 bytes

Database Buffers         1.6861E+10 bytes

Redo Buffers                9732096 bytes

數據庫裝載完畢。

SQL> recover datafile 'd:\';

ORA-01179: 文件 d:\ 不存在



SQL> recover datafile 'D:\oracle\product\10.2.0\oradata\orcl\UNDOTBS01.DBF';

完成介質恢復。

SQL> alter database open ;

alter database open

*

第 1 行出現錯誤:

ORA-01113: 文件 4 需要介質恢復

ORA-01110: 數據文件 4: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF'



SQL> recover datafile 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF';

完成介質恢復。

SQL> alter database open ;

alter database open

*

第 1 行出現錯誤:

ORA-01113: 文件 5 需要介質恢復

ORA-01110: 數據文件 5: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\EXAMPLE01.DBF'



SQL> recover datafile 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\EXAMPLE01.DBF';

完成介質恢復。

SQL> alter database open ;


數據庫已更改。


SQL> exit

從 Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production

With the Partitioning, OLAP and Data Mining options 斷開


C:\Documents and Settings\Administrator>sqlplus


SQL*Plus: Release 10.2.0.1.0 - Production on 星期三 5月 29 11:42:35 2019


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


請輸入用戶名:  ecology

輸入口令:


連接到:

Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production

With the Partitioning, OLAP and Data Mining options


SQL>


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章