Advertisement

11.14.2008 at 02:36AM PST, ID: 23904741
[x]
Attachment Details

How to recover an Oracle 10.2 db from a cold backup on Win XP

[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.6
Tags:

Oracle, Sever, 10.2.0.4, Development database on Windows

I have an Oracle database on my local Windows XP machine that I use for development and testing.

Up to now, I have done regular exports of selected schemas for backup purposes. Even though I have managed to automate this over the years, I still find it a bit tedious. It would be much easier to simply do a cold backup while backing up the rest of my files. I just use XCOPY to an external harddrive which works just fine.

The reasons for wanting a cold backup are:
* I don't have Oracle running at all times.
* I don't use ARCHIVELOGS.
* This is a personal test system.
* When recovery is needed, I start with a fresh XP or at least with a fresh Oracle installation.
* Creating a new instance, re-creating and importing all schemas is tedious and requires lots of manual work and thinking (the latter is the hard bit...).

In order to use the export approach, I have to make sure to start up Oracle as part of my backup procedure. This also takes time. In order to use XCOPY, I simply shut down the Oracle services as the first task in my backup script.

The idea is that I shut down Oracle and xcopy all my Oracle datafiles:
C:\oracle\product\10.2.0\oradata\ORCL\CONTROL01.CTL
C:\oracle\product\10.2.0\oradata\ORCL\CONTROL02.CTL
C:\oracle\product\10.2.0\oradata\ORCL\CONTROL03.CTL
C:\oracle\product\10.2.0\oradata\ORCL\REDO01.LOG
C:\oracle\product\10.2.0\oradata\ORCL\REDO02.LOG
C:\oracle\product\10.2.0\oradata\ORCL\REDO03.LOG
C:\oracle\product\10.2.0\oradata\ORCL\SYSAUX01.DBF
C:\oracle\product\10.2.0\oradata\ORCL\SYSTEM01.DBF
C:\oracle\product\10.2.0\oradata\ORCL\TEMP01.DBF
C:\oracle\product\10.2.0\oradata\ORCL\UNDOTBS01.DBF
C:\oracle\product\10.2.0\oradata\ORCL\USERS01.DBF

as well as the spfile
C:\oracle\product\10.2.0\db_1\database\SPFILEORCL.ORA

There is lots of information on the net about backing up Oracle but it's mostly about 24/7 databases and all recommendations are to use hot backups. This is not needed in my scenario. I was not able to find simple consistent information how to recover a backup like the one mentioned above.

Questions:
1. Do I need any other files to be able to restore?
2. Do I need to export a pfile or can I use the spfile?
3. How do I recover the database on a fresh installation of Oracle suing the files as above?
Answered By: dbmullen
Expert Since: 12/27/2007
Accepted Solutions: 171
Computer Expertise: Advanced
dbmullen has been an Expert for 1 year, during which he has posted 551 comments and answered 171 questions. dbmullen is just one of 761 experts in the Oracle 10.x Zone. 1 expert collaborated on this answer, which was graded an "A" by the asker.
 
 
 
 
20081119-EE-VQP-48 - Hierarchy / EE_QW_2_20070628