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

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered
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.
Photo of Viswas Patnala

Viswas Patnala

  • 492 Points 250 badge 2x thumb

Posted 2 years ago

  • 0
  • 1
Photo of Srish Sriram

Srish Sriram, Employee

  • 1,280 Points 1k badge 2x thumb
Official Response
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