Chapter 2: Configuring and Running Job Scheduler  Setting up Job Scheduler users

Chapter 2: Configuring and Running Job Scheduler

Installing Job Scheduler manually

To run Job Scheduler, you must first run the Job Scheduler installation script and complete the following configuration steps.

StepsInstalling Job Scheduler

  1. �Create a device called sybmgmtdev with a size of at least 50MB.

  2. Run the installjsdb script:

    isql –Usa –Psa_password –Sservername –i $SYBASE/$SYBASE_ASE/scripts/installjsdb
    

    NoteYou must have the directory with the location of the isql executable ($SYBASE/$SYBASE_OCS/bin) in your path.

    The installjsdb script looks for the sybmgmtdb database. If it exists, the script creates Job Scheduler tables and stored procedures. If it does not exist, the script looks for the sybmgmtdev device on which to create the sybmgmtdb database, the tables, and stored procedures.

    NoteIf the installjsdb script finds neither a sybmgmtdev device nor a sybmgmtdb database, it creates a sybmgmtdb database on the master device. Sybase strongly recommends that you remove the sybmgmtdb database from the master device to prevent cluttering it and to make recovery easier in the case of a disk failure.

  3. Create a directory services entry for the JS Agent using dscp, dsedit, or a text editor as appropriate for your specific directory services setup and operating system. Sybase suggests the name of “server name_JSAGENT”:

    servername_JSAGENT�
        master tcp ether server_machine port_number
        query  tcp ether server_machine port_number
    

    where:

    See the System Administration Guide, Volume 1 for more information on directory services.

  4. Use sp_addserver to create an entry in the sysservers table:

    sp_addserver SYB_JSAGENT, null, <servername_JSAGENT>
    

    See the ASE Reference Manual, Volume 2: Commands for more information on sp_addserver.

  5. Enable Job Scheduler:

    sp_configure “enable job scheduler”, 1
    
  6. To start Job Scheduler, you can either restart the server or use the following commands:

    use sybmgmtdb�
    go�
    sp_js_wakeup “start_js”,1
    go�
    




Copyright © 2005. Sybase Inc. All rights reserved. Setting up Job Scheduler users

View this book as PDF