Solved

howto reinitialize database after copying control and dbf files

Posted on 2007-11-30
2
598 Views
Last Modified: 2013-12-18
Going on a trip and want to copy my 10.2.0.3 database (sid: db05) to an external hard drive. I have oracle 10.2.0.3.0 installed on my laptop's C: drive. The database is too big for the laptop so I copied the data files to an external E: drive. Originally the database and files were on a G: drive. I also copied the initdb05.ora file from the /database directory to C:/oracle/database. I have already changed the paths in that file to correctly represent the new location E:/db05.

Now I just need help with the correct steps to take to mount the data and create the database service/instance etc... I know I'll have to probably run "alter system rename...." for all the data/log/control files.

Thank you!!
0
Comment
Question by:jstretch
  • 2
2 Comments
 
LVL 74

Accepted Solution

by:
sdstuber earned 500 total points
ID: 20385616
If you have all the datafiles, this is, a fairly easy way to recreate it on a different machine and different storage.

backup controlfile to trace,

edit the trace script
change "REUSE" to "SET" and change "NORESETLOGS" to "RESETLOGS"
change the file paths

run the script
restore database until cancel using backup controlfile;
alter database open resetlogs;
0
 
LVL 74

Expert Comment

by:sdstuber
ID: 21583661
do you need any further assistance?
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question