Home / Knowledge base / 7. COMMANDS TO BE USED / 7.13 Reset Apply Process

7.13 Reset Apply Process

The “reset” command can only be used for an Apply Process – it is used where there is a need to force the Apply Process to start from specific LSN/SCN or after some LSN/SCN.

It is primarily used to “Set” or “Change” the “Startpoint” for an Apply Process.

REST API:

  • Endpointhttps://repstance_url/reset/process
  • MethodPOST
  • Header:
    • Content-Type: application/json
    • X-Token: token
  • Body:
    {
      "command": "reset",
      "parameters": [
        ["process","apply"],
        ["id","applyID"],
        ["LSN","LSN"],
        ["skip","{0|1}"],
      ]
    }

Server response:

  • HTTP Status – Status of the command, possible codes are:
    • 200 – if no error occurs
    • 422 – if error occurs
  • Body:
    {
      "Status":"{Completed|Failed}",
      "Message":"The command execution details",
    }

CLI Syntax:

repcli reset process=apply id=applyID LSN=LSN skip={0|1}

The input parameters are:

  • process – The only possible value is apply
  • id – The Apply Process Identifier
  • LSN – The point at which we need to start reprocessing data
  • skip – Determines if we need to jump over or not, a specific LSN:
    • 0 – start at the provided LSN
    • 1 –start after the provided LSN

The following example demonstrates how to reset an Apply Process to start from the first transaction found, after LSN = 0x000000450000007B0004:

repcli reset process=apply id=1 lsn=0x000000450000007B0004 skip=1

The following example demonstrates how to reset an Apply Process to start using the transactions from the LSN = 0x000000450000007F0004:

repcli reset process=apply id=1 lsn=0x000000450000007F0004 skip=0