APIMaskingSidekickPythonOpen-Source Solutions

 View Only
  • 1.  dx_delete_vdb.py (trying to run it)

    Posted 02-18-2020 01:49:00 PM
    Edited by Michael Torok 09-09-2024 11:21:32 AM

    Hello,
    I'm trying to tun dx_delete_vdb.py but I always end up with this:

    + python3.5 app/dx_delete_vdb.py --d <serverName> --name <VDBname>
    Usage:
      dx_delete_db.py (--group <name> [--name <name>] | --all_dbs )
                      [-d <identifier> | --engine <identifier> | --all]
                      [--usebackup] [--debug] [--parallel <n>] [--poll <n>]
                      [--config <path_to_file>] [--logdir <path_to_file>]
      dx_delete_db.py (--host <name> [--group <name>] [--object_type <type>] 
                      | --object_type <name> [--group <name>] [--host <type>] )
                      [-d <identifier> | --engine <identifier> | --all]
                      [--usebackup] [--debug] [--parallel <n>] [--poll <n>]
                      [--config <path_to_file>] [--logdir <path_to_file>]
      dx_delete_db.py -h | --help | -v | --version

    So I pass the engine name which is in the dxtools.conf and the vdb name I want to delete.
    What else do I need to add?
    Thanks, Pierre

    ------------------------------
    Pierre Roussin
    Senior Oracle Consultant
    ------------------------------



  • 2.  RE: dx_delete_vdb.py (trying to run it)
    Best Answer

    Posted 02-18-2020 04:31:00 PM
    Hi Pierre

     I believe the issue is that you have "--d" rather than "-d". If you wish to use the longform switches, then use "--engine" rather than "-d".


    ------------------------------
    Matt Watson
    Senior Member of Technical Staff
    Delphix
    ------------------------------



  • 3.  RE: dx_delete_vdb.py (trying to run it)

    Posted 02-19-2020 08:33:00 AM
    Edited by Michael Torok 09-09-2024 10:40:56 AM

    Thanks. It got further now. Just no permission on the dxtools.conf in Jenkins, I will fix this.

    Thanks a  lot.

     

     

     








  • 4.  RE: dx_delete_vdb.py (trying to run it)

    Posted 02-19-2020 02:05:00 PM
    Edited by Michael Torok 09-09-2024 10:41:51 AM

    I will upload the final corrected code, there is a Python error referring to deprecated thread function.

    ------------------------------
    Pierre Roussin
    Senior Oracle Consultant
    ------------------------------