Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: temporary shutdown ?

Re: temporary shutdown ?

From: Billy Verreynne <vslabs_at_onwe.co.za>
Date: Thu, 29 Oct 1998 13:45:17 +0200
Message-ID: <719kkd$gq$1@hermes.is.co.za>


Alan D. Mills wrote in message <719gdm$jp1$1_at_schbbs.mot.com>...
>On Unix (or AIX) I;d put the procedures inside cron jobs, which would
>scedule te tasks to occur at the frequency you want it to happen, i.e.
>daily, weekly.

Yep. Cron is the basis for all scheduling on Unix and something a DBA can not do without IMHO.

The Unix "at" command I used in the sample script to shutdown a database within an hour, queues the job to be run in batch by cron. It's very useful - often you want to start a job (let's say rebuilding indexes) in 2 hours time. I add a "-start" switch to all my Unix/Oracle shell scripts. So to rebuild an index looks something like this:

# indexes -h
usage: indexes [-start minutes] tablename   -start minutes = specifies in how many minutes to start the job   tablename = the table which indexes must be rebuild

#indexes -start 120 scott.employees

where the index script will start to rebuild the employee table's indexes in a 120 minutes.

regards,
Billy Received on Thu Oct 29 1998 - 05:45:17 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US