I need help with how to programmatically backup a database

190 pts.
Tags:
Database
Oracle
Oracle backup
I’m trying to programmatically backup a database using the following command:
expdp system/system_password
directory=dir_exp job_name=jobexp
SCHEMAS=my_schema
where "system_password" is the actual "system" password and "my_schema" is the name of the schema I want to export. How can I verify in an automatic manner that the export was successful? Searching the log file for the "successfully completed at" line is not such a good idea... The question remains for restore also: how can I check that the restore is successful?
ASKED: April 28, 2008  2:10 PM
UPDATED: April 29, 2008  7:44 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

read the log file is the unique way to verify wheter the export was successfull or not. You can write a second script to read the log file.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

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

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following