Solved

howto reinitialize database after copying control and dbf files

Posted on 2007-11-30
2
600 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
Suggested Courses

623 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