Delphix Products

Expand all | Collapse all

Refresh vdb based on the result and return code/value of pre-hook operation

  • 1.  Refresh vdb based on the result and return code/value of pre-hook operation

    Posted 09-21-2016 06:47:00 PM
    Hi, I am trying to refresh a vdb with pre-refresh hook attached. I wanted to trigger the refresh only after the successful execution of pre-hook (shell script). I am directly calling the shell script as "/path/scripts/prerefresh.sh" Is there any way to handle delphix refresh operation based on the return value of .sh? Any sample would be appreciated.


  • 2.  RE: Refresh vdb based on the result and return code/value of pre-hook operation
    Best Answer

    Posted 09-23-2016 10:46:00 PM
    Hi Viswas,

    Thank you for posting your question. As you may know, using a pre-refresh hook will run a script of your choice before the refresh action. If your script runs into a failure, the script will stop running. However, the refresh action will continue as planned regardless of the failure.

    Unfortunately, there is not a way to control the refresh action based upon the return value of the hook. You can find more information on how to utilize hook operations at our help article "Oracle Hook Operation Notes".

    I hope this helps. Please let me know if you have any questions.

    Thanks!

    Srish