How to pass Environment name when creating VDB using CLI

  • 0
  • 1
  • Question
  • Updated 6 months ago
  • Answered
I  have Oracle Running on AIX. 
I was able to create a VDB using example given in CLI cookbook from a shell script. 
It created a VDB on the server from where I executed the script. 
I was wondering if there is way to specify the Environment (hostname) where the VDB should be created ? In GUI, we can choose the Environment to provision the VDB. 
Photo of Ansamma Mathews

Ansamma Mathews

  • 292 Points 250 badge 2x thumb

Posted 6 months ago

  • 0
  • 1
Photo of Gary Hallam

Gary Hallam, Official Rep

  • 2,642 Points 2k badge 2x thumb
Official Response
Hi Ansamma,
You should be able to do that.
try "sourceConfig.repository=" and use tab to get the target environment and binary location.
delphix5310 database provision *> set sourceConfig.repository=

delphix5310 database provision *> set sourceConfig.repository=linuxtarget/'/u01/app/oracle/product/'

Also have you looked at the dxToolkit - you can take a look at the script in  You can see that it has $envname as a variable.

This article was helpful to find an answer to your question: