Masked VDB and hook script

  • 0
  • 1
  • Question
  • Updated 3 years ago
  • Answered
Hi all,
I'm going to provision a masked VDB. I need to create a "Configure Clone" hook script. I'm wondering if this hook script is executed before the masking job.
It's important that my custom script is executed before the masking job starts.
Thank you.
Reagrds.
Gianpiero
Photo of Gianpiero Piccolo

Gianpiero Piccolo

  • 2,336 Points 2k badge 2x thumb

Posted 3 years ago

  • 0
  • 1
Photo of Gianpiero Piccolo

Gianpiero Piccolo

  • 2,336 Points 2k badge 2x thumb
I just tried it by myself.
I provisioned a masked VDB with a configure clone hook script. I found that the hook script was execute for first and then job masking was started.
Reagrds.
Gianpiero
Photo of Hims

Hims, Employee

  • 2,592 Points 2k badge 2x thumb
Official Response
Hi Gianpiero,
Common way to accomplish this is to use the custom script as a pre-script in masking job.
--Hims
Photo of Gianpiero Piccolo

Gianpiero Piccolo

  • 2,336 Points 2k badge 2x thumb
Sure, this could work in common cases. Unfortunately in my case the script can be executed only by a dba user, whereas the masking job connects to the DB through a normal user (the schema owner).