DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: Automate a script

  1. #1
    Join Date
    Oct 2005
    Location
    Colombo
    Posts
    1

    Automate a script

    Hi,
    Im new to Oracle and I have a big problem. I want to run a script (Oracle 8i) daily at a given time. please let me know how to schedule it. thanks in advance

  2. #2
    Join Date
    May 2003
    Location
    Pretoria, Rep of South Africa
    Posts
    191
    1. Create a procedure for your scl script
    2. Create a job defining you procedure in the job
    3. Execute job and test
    3. go to Orahome\rdbms\admin\spauto.sql to get an example of script for a
    job
    Able was I ere I saw Elba

  3. #3
    Join Date
    Mar 2004
    Location
    DC,USA
    Posts
    650
    Quote Originally Posted by tls
    Hi,
    Im new to Oracle and I have a big problem. I want to run a script (Oracle 8i) daily at a given time. please let me know how to schedule it. thanks in advance
    1. If you are running windows then use at jobs to schedule to run the batch file where you have the scripts as SQL file inside the batch file.

    2. you can also use scheduled task under control panel to schedule.

    2. You can schedule the jobs using the OEM gui tool jobs.

    3. If you are using Unix use cron to automate
    "What is past is PROLOGUE"

  4. #4
    Join Date
    Mar 2002
    Location
    Mesa, Arizona
    Posts
    1,204
    tls,

    You have many options. Those suggested above are excellent choices. Here are some things to keep in mind.

    Some job schedulers may not know about downtime (scheduled or otherwise).

    Document your jobs. Include dependency information.

    Review jobs regularly. Put a reminder on your calendar to go through them to do a "do we really need this job" sanity check.

    To minimize points of failure, you might want to keep the job scheduler close to the operating system (at/cron).

    -Ken

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width