|
|
|
Re: coding for job schduling in shell programming. [message #263446 is a reply to message #263416] |
Thu, 30 August 2007 01:44 |
|
Michel Cadot
Messages: 68718 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Just insert at first line:
whenever sqlerror exit
And append after the last line:
@backup.cmd
This script can then be executed with:
sqlplus -s <user>/<psw> @back_up.sql
This command can be put in a shell script that set the environment (ORACLE_SID, ORACLE_HOME...).
And this shell script can be put in a crontab (see "man crontab").
Regards
Michel
|
|
|