Thank you for the responce. I do not know much about Oracle and i am not full time into.
Basically what i am looking for is, we have a Oracle database which is not production or anything critical, but it is good to have a back-up.
I read some instructions online and was using the regular export command and it works fine. But the export runs for more than 4-5 hours , after some research online i found that if there are lot of objects with BLOB it takes forever with regular export and data pump is a better alternative and i need a script that does the data pump export nightly.
Main Topics
Browse All Topics





by: mrjoltcolaPosted on 2009-09-02 at 14:48:14ID: 25245995
Are you aware that a data pump export will not allow you to recover any lost transactions between the last export and the failure?
xpdp
It is better to use real Oracle backup, like RMAN, and use data pump as supplementary. Here are both options.
-- RMAN backup
rman target /
RMAN> backup database plus archivelog;
Depending on the OS, you need to wrap the data pump in a script to provide a filename based on the date. Also be aware, dumps will go to DATA_PUMP_DIR, so make sure that directory is setup with adequate space. You may have to drop the current one, as it points to a default location that is under the admin directory.
select * from dba_directories;
If you want to change it, do:
drop directory DATA_PUMP_DIR;
create directory DATA_PUMP_DIR as 'C:\dumps';
--Data pump export "backup"
expdp system/admin dumpfile=nightly_ora1.dmpe