Solved

howto reinitialize database after copying control and dbf files

Posted on 2007-11-30
2
595 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.

Join & Write a Comment

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…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
Via a live example, show how to take different types of Oracle backups using RMAN.

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now