ora-01113: File 2 requires media recovery

File corruption or missing files day:

Operating procedures

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 Wed May 29 11:38:24 2019


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


SQL> conn /as sysdba

connected.

SQL> shutdown immediate;

ORA-01109: database not open



Database has been uninstalled.

ORACLE instance shut down.

SQL> startup mount;

ORACLE instance started.


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

Database loading is completed.

SQL> recover datafile 'd:\';

ORA-01179: file d: \ does not exist



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

Complete media recovery.

SQL> alter database open ;

alter database open

*

Line 1 error:

ORA-01113: file needs media recovery 4

ORA-01110: data file 4: 'D: \ ORACLE \ PRODUCT \ 10.2.0 \ ORADATA \ ORCL \ USERS01.DBF'



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

Complete media recovery.

SQL> alter database open ;

alter database open

*

Line 1 error:

ORA-01113: file needs media recovery 5

ORA-01110: Data File 5: 'D: \ ORACLE \ PRODUCT \ 10.2.0 \ ORADATA \ ORCL \ EXAMPLE01.DBF'



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

Complete media recovery.

SQL> alter database open ;


Database has changed.


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 Wed May 29 11:42:35 2019


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


Please enter your user name: ecology

Password:


Connected to:

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

With the Partitioning, OLAP and Data Mining options


SQL>


Guess you like

Origin blog.51cto.com/14074978/2401946