Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Commands for copying a database

Status
Not open for further replies.

pillarboy

Technical User
Nov 21, 2003
1
US
Hi, I need to know what commands/switches to use to move all data from one database to another. Both databases are on the same server.

Any help would be greatly appreciated.

Darrin
 
Hello,

1) Execute a dbexport to disk (dbexport -c -o {path to save])

2) cd to the path in step 1.

3) change the name of the directory created {databasename.exp} to {newdatabasename.exp}

4) cd to the new directory created in step 3.

5) open the file {olddatabasename.sql} and change the database name in the header to the new database name.

6) execute a dbimport -c -o {path to directory in step 3}

7) You're done.

Cheers,

Jack
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top