Delphix Products

  • 1.  How to pass Environment name when creating VDB using CLI

    Posted 11-29-2018 11:35:00 PM
    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. 
    #Virtualization


  • 2.  RE: How to pass Environment name when creating VDB using CLI
    Best Answer

    Posted 11-30-2018 09:16:00 AM
    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


  • 3.  RE: How to pass Environment name when creating VDB using CLI

    Posted 12-01-2018 12:32:00 AM
    Thanks Gary, that worked. 

    I will ge tthe toolkit and try out a few things



  • 4.  RE: How to pass Environment name when creating VDB using CLI

    Posted 12-01-2018 07:23:00 AM
    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