This helped me in saving space in some of activities and also in cases to do parallel export and import.
Scenario 1 :
You were asked to import a schema of your production server into your test server for some purpose. You are expecting that the export will take 5 hours and again the import will take quite more than that. In this case, you can use this option which will save your time in exporting and shipping the file to the other server.
By doing this we will be able to export and import parallel on the same box.
1. In your test server, add the production database tnsnames to your tnsnames.ora
2. Create a unix pipe
mknod pipe name -p
ex : mknod ram_pipe -p
3. Start your export :
exp system/password@prod file=ram_pipe owner=erpds statistics=none log=/u01/export.log &
Remember to use & at the end to start the export in back groud and You be able to notice from the logfile whtr the pipe broken due to some errors in the export commands or the export is progressing...!!
4. Now from the same terminal start the import..!!
imp system/XXXXX@testserver file=ram_pipe fromuser=erpds touser=testds log=/u01/import.log &
Simple..!! You will notice one job wil be exporting and other will be importing...!!
Thursday, June 19, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment