Q

Is it possible to recreate or import a database by moving datafiles from one database to another?

Is it possible to recreate or import a database by just moving the datafiles from one database to the other? Can you outline the procedure of how it can be done? I know this can be done in Oracle 8.1.6, but is it possible in previous versions like 8.0.5?


It is possible (at least for Oracle 7+) to accomplish this with a few caveats. One, the origin server and destination server must have the same operating system and block size. Two, unless you really want to confuse the issue, try moving the entire database. After the database is moved to the destination server, then you can get rid of what you did not want to move. Regardless of the database version, try this method:

  1. Dump the control file to trace
    ALTER DATABASE BACKUP CONTROL FILE TO TRACE;
  2. Shutdown the database
    SHUTDOWN IMMEDIATE
  3. Transfer the files to your destination server.
    If you are using FTP, make sure you use the Binary mode.
    Transfer all of the files including your controlfile dump, your data files, your init.ora file and your password file.
  4. Place the datafiles in their new directories.
  5. Modify the controlfile dump with the new directories so that the database can find the datafiles.
  6. Startup the database in NOMOUNT mode.
    STARTUP NOMOUNT
  7. Run the controlfile dump to recreate the control files.
  8. Open the database
    ALTER DATABASE OPEN;
  9. That's basically it!

    For More Information


This was first published in April 2001

Dig deeper on Oracle database design and architecture

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close