How to pass Environment name when creating VDB using CLI

  • 0
  • 1
  • Question
  • Updated 2 weeks 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

  • 120 Points 100 badge 2x thumb

Posted 2 weeks ago

  • 0
  • 1
Photo of Gary Hallam

Gary Hallam, Official Rep

  • 2,104 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.
i.e.
delphix5310 database provision *> set sourceConfig.repository=

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

Also have you looked at the dxToolkit - you can take a look at the script in dx_ctl_db.pl.  You can see that it has $envname as a variable.
https://github.com/delphix/dxtoolkit/blob/master/README.md

This article was helpful to find an answer to your question: https://support.delphix.com/Delphix_Virtualization_Engine/Oracle/KBA1109_Oracle_RAC_VDB_provisioning...

Regards,
Gary
Photo of Ansamma Mathews

Ansamma Mathews

  • 120 Points 100 badge 2x thumb
Thanks Gary, that worked. 

I will ge tthe toolkit and try out a few things

Photo of Gary Hallam

Gary Hallam, Official Rep

  • 2,104 Points 2k badge 2x thumb
Sweet! Make sure you download the binaries to get the toolkit working easily, otherwise you’ll need some dependent libraries to be able to run/compile the Perl.
Good luck with your automation!!
Regards,
Gary