We have an Oracle 8.1.7 server installed on a Win2K box in a dev environment with data in it. However, somebody did something on it which cause all Oracle services disappeared and thus the oracle server in unusable condition. Luckily, all the data files, log files, control files are intact.
How can I recover this database? Actually, all I need is the data inside that database. Can I use those files to create a new instance on my other Oracle server instead of recovering it from the original machine?
If you are sure that the database files are intact, simply reinstall Oracle, create new service using Oradim, create new listener, and open your database using svrmgrl.
If there is an error indicating More Media Recovery Needed, try this:
svrmgrl> startup nomount;
svrmgrl>recover database;
svrmgrl>alter database open resetlogs;
Remember that you must maintain the original file structure.
If you have archived logs you can always recover, if not, well you should had...
Where reinstalling Oracle, will the old files being overwritten? Just worry about if the existing data, control and log files will be wiped out during the reinstalling process.
Also, can I 'attach' the intacted data, control and log files to my healthy Oracle instance? I will prefer this way if that's practical.
Re-installing Oracle does not erases your datafiles. However you should backup them before.
If you have only one disk with all the data it should be something like this:
c:\oracle
c:\oracle\ora81 --> This is the RDBMS directory, this will be replaced in installation...
c:\oracle\admin --> This is where your init, udump, bdump, etc, shoud be. This will NOT be erased.
c:\oracle\oradata --> The DataFiles. This will Not Be Erased.
But if i understood you correctly you have another server with an healthy Oracle RDBMS.
If that is the case then replicate the file structure that you have on the original server, and follow the steps on the previous post. Create service using Oradim...and so on...
Just to clarify --
1. Since my other Oracle server(9i) already has all the file structures set up, how do I replicate the file structure on the original server as you suggested in the previous post? Or you really mean just copy the data files, control files and init.ora file to the correct places in the new server?
2. Will this work if the original server is 8i while the new server is 9i?
3. Which doc can I look to find more info on Oradim?
Bookmarks