[Reproduced] ORACLE11g restores the database according to DBF after reinstalling the system [Verified]

       Any kind of technical solution has its usage scenarios. I am mainly for the situation where there is no dmp backup and the database is uninstalled, but the ctl, dbf and log files of the instance all exist. In fact, there are quite a few.

      Most of the situation on the Internet is more complicated. Either the ctl is lost, only the dbf is lost, and the ctl and log files need to be reconstructed by means. However, after my own test, the reconstruction of the ctl was unsuccessful. Due to the limited time, I did not have time to investigate.

      When I restored the oracle background, I uninstalled oracle10g myself. Later, I remembered that I had a database of data that I needed very much, so I struggled to restore it. It was written on the Internet with reference to an article on restoring oracle11g. It can be used for personal testing under oracle10g, and I will share it here with everyone.

     By the way, I also use the aul6 mentioned on the Internet for data recovery. It uses the dictionary file system01.dbf and the business instance file (such as the author's etl.dbf) to restore the tables in the business instance into table creation statements and data. , but unfortunately, the recovered data does not support Chinese well, and there are garbled characters. Moreover, a certain column of data in many tables is split and added with multiple spaces, resulting in garbled characters during data recovery, resulting in overall unavailability, and I I haven't found a way to solve the garbled characters. It is estimated that the support for pure English is better, so I have to give up this solution. Fortunately, after I uninstalled, the dbf, log, and ctl files all exist, and the recovery becomes simple. Because most of the information on the Internet is not detailed, I will share my operation steps with you in detail.

     First of all, install an identical oracle10g. Don't take it too much trouble. This is the easiest and most effective way for me. It doesn't matter if the installation directory is different from before, because we often cannot install the same directory, such as the author, because oracle11g has been installed on the machine, and the oracle10g reinstalled in the virtual machine has only one c drive. The newly created database sid is necessary as before.

     After installation, close the database service, it is recommended to use the statement to complete under cmd. The complete operation is as follows:

     sqlplus /nolog

     conn / as sysdba

     shutdown immediate

     After closing the database, change the name of the instance file. For example, if the author is orcl, change it to orcl2.

     1. Copy the previous orcl to this directory (eg, under c:\oracle\product\10.2.0\oradata).

 

     2. The FLASH_RECOVERY_AREA directory in the main directory of the original oracle library is all overwritten to the corresponding directory of the newly installed oracle.

      startup     starts the service again.

Total System Global Area  293601280 bytes  
Fixed Size                  1248624 bytes  
Variable Size             100663952 bytes  
Database Buffers          188743680 bytes  
Redo Buffers                2945024 bytes  
The database is loaded.  
ORA-01122: validation of database file 6 failed  
ORA-01110: data file 6: 'C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\AVPLAN.DBF'  
ORA-01203: wrong prototype for this file - create SCN error

 

 

 

     According to the feedback of friends who have seen the blog operation, if there are doubts when there are multiple instances, follow the following address to solve the problem!

     Website: http://blog.sina.com.cn/s/blog_a59b6d310102vat0.html

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326033578&siteId=291194637