Informix

 View Only
  • 1.  Cleaning up datablades

    IBM Champion
    Posted Mon October 23, 2023 11:12 AM

    Is there any official way to remove all of the datablade tables/functions/etc after removing all blades from a database?

    I have a list of how to remove them all by hand. But I am just curious if there are any functions or methods to 'officially' remove them from a DB if there are no registered datablades.

    Thanks!



    ------------------------------
    Thomas Beebe
    Vice President
    xDB Systems, Inc
    Woodbridge VA
    5713399029
    ------------------------------


  • 2.  RE: Cleaning up datablades

    IBM Champion
    Posted Mon October 23, 2023 11:17 AM
    The Blade Mangler should remove the blade completely but I am not aware of any method to remove the blade management tables other than just a plain drop
    --  Paul Watson Oninit www.oninit.com Tel: +1 913 364 0360 Cell: +1 913 387 7529  Oninit?? is a registered trademark of Oninit LLC  If you want to improve, be content to be thought foolish and stupid Failure is not as frightening as regret





  • 3.  RE: Cleaning up datablades

    IBM Champion
    Posted Mon October 23, 2023 11:19 AM

    Adding in here, this is on 14.10fc10 (so there is no blademgr , just the function sysbldprepare() )



    ------------------------------
    Thomas Beebe
    Vice President
    xDB Systems, Inc
    Woodbridge VA
    5713399029
    ------------------------------



  • 4.  RE: Cleaning up datablades

    IBM Champion
    Posted Tue October 24, 2023 03:38 AM

    Hi Tom,

    can you explain what you think is left and needs cleanup after blades got removed from a database?

    In my view, a blade can only be removed (de-registered from a database) when none of its functionality (types, functions, etc.) are in use any more by any other database object, and removing the blade should leave nothing behind of the respective blade objects.

    So is it about those general sysbld* blade management tables that get created in a database when registering the first blade in the database?

    BR,

     Andreas



    ------------------------------
    Andreas Legner
    ------------------------------



  • 5.  RE: Cleaning up datablades

    IBM Champion
    Posted Tue October 24, 2023 06:10 PM

    So the goal is to migrate a databases schema without blades (and then register them after the copy).

    If you create an empty database then run:
    execute function sysbldprepare('excompat.*', 'create');
    execute function sysbldprepare('excompat.*', 'drop');

    We are still left with:

    sysblderrorlog
    sysbldregistered

    Are those safe to drop? 



    ------------------------------
    Thomas Beebe
    Vice President
    xDB Systems, Inc
    Woodbridge VA
    5713399029
    ------------------------------



  • 6.  RE: Cleaning up datablades

    IBM Champion
    Posted Wed October 25, 2023 08:14 AM

    Hi Tom,

    I'd assume they both are safe to drop IF sysbldregistered is empty.

    I'd also assume they shouldn't be in the way of copying the database or of registering blades in the copied database - any indication to the contrary?

    Cheers,

     Andreas



    ------------------------------
    Andreas Legner
    ------------------------------



  • 7.  RE: Cleaning up datablades

    IBM Champion
    Posted Wed October 25, 2023 11:21 AM
    Edited by Thomas Beebe Wed October 25, 2023 12:30 PM

    They were causing a small headache, but not a big deal. 
    I just wanted to see if there was some official step I was missing to fully remove all parts from the system, the fewer work arounds the better.

    The bigger issue I had previously was a failed deregistering left a bunch of bld* tables in the system, but testing on cleaner systems that doesn't seem to be a problem so I am just treating that as a one-off. 

    Regardless, thank you. Just going to add the drop into the script. 



    ------------------------------
    Thomas Beebe
    Vice President
    xDB Systems, Inc
    Woodbridge VA
    5713399029
    ------------------------------



  • 8.  RE: Cleaning up datablades

    IBM Champion
    Posted Wed October 25, 2023 11:35 AM
    Tom:

    Note that the --no-blade-procs option to myschema will ignore the bld* tables.

    Art

    Art S. Kagel, President and Principal Consultant
    ASK Database Management


    Disclaimer: Please keep in mind that my own opinions are my own opinions and do not reflect on the IIUG, nor any other organization with which I am associated either explicitly, implicitly, or by inference.  Neither do those opinions reflect those of other individuals affiliated with any entity with which I am affiliated nor those of the entities themselves.