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.
-
JP1/AJS3 database created on the external database
-
ODBC file data source
- Organization of this subsection
(1) On a Windows host
-
Stop the JP1/AJS3 services.
-
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.
-
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
-
-
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.
-
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
-
Execute the jajs_spmd_stop command to stop the JP1/AJS3 services.
-
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
-
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.
-
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
-
-
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.
-
Start the JP1/AJS3 services.
The scheduler service you added is deleted.