Hitachi

JP1 Version 12 JP1/Automatic Job Management System 3 Configuration Guide


24.4.2 Deleting a scheduler service

When you delete a scheduler service, make sure that the database is running. Note that the following files are not deleted automatically. Manually delete them if they are unnecessary.

Organization of this subsection

(1) On a Windows host

  1. Stop the JP1/AJS3 services.

  2. Run the jajs_setup command to delete the target scheduler service.

    Execute the following command:

    jajs_setup -e -F scheduler-service-name

    For details about the jajs_setup command, see jajs_setup in 2. Commands Used during Setup in the manual JP1/Automatic Job Management System 3 Command Reference.

    When a scheduler service is deleted, the tables that were created in the database are also deleted.

  3. Delete the folder that was created when the scheduler service was added.

    Delete the following folders that were created when you executed the jajs_setup command:

    • Database folder specified in the -d option

    • Folder for temporary files specified in the -t option

    • Job information folder specified in the -j option

    • Backup information folder specified in the -b option

  4. If a trace log has been output per scheduler service, delete the trace log file for the deleted scheduler service.

    If yes is set in the TRACELOGDIV environment setting parameter, a trace log is output for individual scheduler services. In that case, trace log files are output with the name tracelog_scheduler-service-name to the folder specified in the TRACELOGDIVDIR environment setting parameter. Therefore, delete the trace log file for the deleted scheduler service.

  5. Restart the JP1/AJS3 service.

    Restart the services you stopped in Step 1, and make sure that the scheduler service has been deleted.

(2) On a Linux host

  1. Execute the jajs_spmd_stop command to stop the JP1/AJS3 services.

  2. Execute the ajsshmdel command to delete scheduler service information.

    The ajsshmdel command is located in /opt/jp1ajs2/bin/ajsshmdel.

    If the shell is sh, the command line is as follows:

    /opt/jp1ajs2/bin/ajsshmdel >/dev/null 2>&1

    If the shell is csh, the command line is as follows:

    /opt/jp1ajs2/bin/ajsshmdel >&/dev/null
  3. Run the jajs_setup command to delete the target scheduler service.

    Execute the following command:

    jajs_setup -e -F scheduler-service-name

    For details about the jajs_setup command, see jajs_setup in 2. Commands Used during Setup in the manual JP1/Automatic Job Management System 3 Command Reference.

    When a scheduler service is deleted, the tables that were created in the database are also deleted.

  4. Delete the directory that was created when the scheduler service was added.

    Delete the following directories that were created when you executed the jajs_setup command:

    • Database directory specified in the -d option

    • Directory for temporary files specified in the -t option

    • Job information directory specified in the -j option

    • Backup information directory specified in the -b option

  5. If a trace log has been output per scheduler service, delete the trace log file for the deleted scheduler service.

    If yes is set in the TRACELOGDIV environment setting parameter, a trace log is output for individual scheduler services. In that case, trace log files are output with the name tracelog_scheduler-service-name to the folder specified in the TRACELOGDIVDIR environment setting parameter. Therefore, delete the trace log file for the deleted scheduler service.

  6. Start the JP1/AJS3 services.

    The scheduler service you added is deleted.