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

Home -> Community -> Usenet -> c.d.o.server -> Re: best practices re: scheduled jobs

Re: best practices re: scheduled jobs

From: Paul Brewer <paul_at_paul.brewers.org.uk>
Date: Tue, 6 May 2003 21:52:01 +0100
Message-ID: <3eb94ac5_1@mk-nntp-1.news.uk.worldonline.com>


"Ed Stevens" <nospam_at_noway.nohow> wrote in message news:vl2gbvga8fmmt1r4i01m3rp1lolej418je_at_4ax.com...
> Trying to stretch my wings a bit here, playing around with the job
> scheudling system and with compiled procedures. Looking for some
> 'best practices' advice.
>
> I've built some rather simple procedures to take care of some dba
> chores like refreshing stats for the optimizer and collecting stats
> into a 'stats_history' table for trend analysis, and I have these
> running under the dbms_jobs system on a test database. In getting to
> this point, I worked thru the problem of procedures not having user
> privs that are inherited via a role. I'm also finding it a bit
> difficult to keep up with scheduled jobs running under various
> user-ids. As a result, I'm wondering if I wouldn't be better off just
> setting up the 'procedures' as sql files and feed them into SQL-Plus
> from a cron job. What problems would I be trading for if I went this
> direction? Are there any generally accepted practices or is it really
> pretty much all over the map?

My 2c:
If it's gathering stats, housekeeping or any such job *within* the database, then IMHO it should be a database job.
If it's an OS job: sqlldr, exp or the like; then it should be cronned.

Regards,
Paul Received on Tue May 06 2003 - 15:52:01 CDT

Original text of this message

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