Solved

howto reinitialize database after copying control and dbf files

Posted on 2007-11-30
2
597 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 73

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 73

Expert Comment

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

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows how to recover a database from a user managed backup

776 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