Write a script "oracle.unload.script" that will unload the database.This script must create its own environment, so make sure it has a PATH defined and any other environment variables that may be required. If any input is required, it must be redirected from a text file.
Any output should be redirected to a log file.
Add a line like the following to /usr/spool/cron/crontabs/root (assuming job will be run by root)
Code:
01 * * * oracle.unload.script
Do this by either copying the current file, adding this line to the copy, and using 'crontab' to copy the file back over the original. Or just edit the original file and then re-boot the machine.
If you make changes to the unload script, you have to restart the cron manager, for the changes to take effect.