APIPythonOpen-Source Solutions

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

    Posted 02-18-2020 01:49:00 PM
    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 ssddadelph01.npr.bngf.local --name dvmein0a
    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
    National Bank of Canada
    ------------------------------


  • 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

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

    Thanks a  lot.

     

     

    Pierre Roussin

    Données corporatives | Transit 4292-1

     

    Mobile : +1 514 892-4786

    Support BD : +1 514 241-2740

     

    pierre.roussin@bnc.ca

     

    POUR TOUTES DEMANDES SANS EXCEPTION :

    *** JIRA DC : https://jira.bnc.ca/servicedesk/customer/portal/336 ***

     

     

    700 De La Gauchetiere, 7e étage, bureau 739, Montréal (Québec), H3G 2W7

     

     


    CONFIDENTIALITÉ : Ce document est destiné uniquement à la personne ou à l'entité à qui il est adressé. L'information apparaissant dans ce document est de nature légalement privilégiée et confidentielle. Si vous n'êtes pas le destinataire visé ou la personne chargée de le remettre à son destinataire, vous êtes, par la présente, avisé que toute lecture, usage, copie ou communication du contenu de ce document est strictement interdit. De plus, vous êtes prié de communiquer avec l'expéditeur sans délai et de détruire ce document immédiatement.
    CONFIDENTIALITY: This document is intended solely for the individual or entity to whom it is addressed. The information contained in this document is legally privileged and confidential. If you are not the intended recipient or the person responsible for delivering it to the intended recipient, you are hereby advised that you are strictly prohibited from reading, using, copying or disseminating the contents of this document. Please inform the sender immediately and delete this document immediately.







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

    Posted 02-19-2020 02:05:00 PM
    I will upload the final corrected code, there is a Python error referring to deprecated thread function.

    ------------------------------
    Pierre Roussin
    Senior Oracle Consultant
    National Bank of Canada
    ------------------------------