When customer issued the command "cancel <jobid>", it resulted in "Job <jobid> is not active". However earlier when the "copy status" was issued, it did show a job with that ID. The following is the screen shot:
sp_ctrl (server_name:2200)> copy status
Job ID : 4517
Host :
Started : 17-MAY-17 16:43:23
Job Type : Copy
Status : Startup
ID Tablename Status Total Rows %Comp Status Time Total Time
------ ------------------------------------ ---------- ---------- ----- ----------- ----------
sp_ctrl (server_name:2200)> cancel 4517
Job 4517 is not active
Residual entries remain in SharePlex internal tables for Copy.
The problem had to do with residual entry for that job in the SharePlex internal tables SHAREPLEX_JOBS AND SHAREPLEX_JOB_STATS. Delete those entries as shown below (for our problem job id 4517 by logging into the source database as SharePlex user:
SQL> delete from "SHAREPLEX_JOB_STATS" where job_id=4517;
SQL> delete from "SHAREPLEX_JOBS" where job_id=4517;
SQL>COMMIT;
Once those entries are deleted from the internal tables, the job will not show up anymore.
Earlier it was attempted to be cancelled by using the sp_ctrl command “cancel <job id>” which was the reason the job did not exist at OS level and only showed up in internal tables. For some reason the residual entries for that problem job id remained in the SharePlex internal tables SHAREPLEX_JOB_STATS and SHAREPLEX_JOBS. This resulted in that spurious job still showing up in “copy status” but it could not be killed as the job ceased to exist at the OS level.