Informix

Informix

Connect with Db2, Informix, Netezza, open source, and other data experts to gain value from your data, share insights, and solve problems.

 View Only
  • 1.  Is that SBspace really empty?

    Posted 3 days ago

    Greetings, Y'all.

    As part of a minot project, I will want to drop an SBspace and later recreate its chunk file in a different raw device.  Of course, as with a DBspace, where the server won't allow me to drop it unless it's empty, the SBspace needs to be empty in order to drop it.  At least so I gather from the help text on onspaces --.

    So how do I determine of an SBspace is empty? And that matter:

    • How d I find out what's in there?
    • How do I delete what's in there (assuming the user is OK with that, of course.)  I did just find onspaces -cl 

    At this time, it is being used for Enterprise Replication. If we cdr stop ER, will that empty the SBspace?

    Or will I still need to run onspaces -cl? The help text says this will "garbage collect smart large objects that are not referenced."  But how do I find what is still being referenced, if anything?

    Thanks for pointers.



    ------------------------------
    +-----------------------------------------------------------+
    | I am pleased to report that I had no problems today. |
    | I had only issues, opportunities, challenges and valuable |
    | learning experiences. |
    +------------------------------------------ Jacob S --------+
    ------------------------------


  • 2.  RE: Is that SBspace really empty?

    Posted 2 days ago

    If the new raw device is currently available, could you use mirroring to move without worrying about emptying the space?  Use onspaces to add mirroring to the existing chunk, with the mirror being place on the new raw device.  Once the mirrors have synced, use the SQL Admin API command 'execute function task("modify chunk swap_mirror",<chunk number>)' or 'execute function task("modify space swap_mirrors","<space name>")' to swap the primary and mirrored chunks, then disable mirroring to release the current raw device.



    ------------------------------
    mark collins
    ------------------------------



  • 3.  RE: Is that SBspace really empty?

    Posted 2 days ago

    Interesting, if convoluted, idea there, Scott.  Thanks for offering it.

    Aside that we don't use mirroring in our environment, I don't see why that's better than onspaces -cl.

    I do believe (corrections invited) that the contents of an SBspace are inherently transitory; only while the data is being used (like ER or geographic searches)  and when those functions have completed, whatever is left can be collected by that onspaces command.  If that is correct, I don't see how mirroring 

     Basically, I need to see if there is still something using the SBspace when I want to drop it, before trying and getting an error.



    ------------------------------
    +-----------------------------------------------------------+
    | I am pleased to report that I had no problems today. |
    | I had only issues, opportunities, challenges and valuable |
    | learning experiences. |
    +------------------------------------------ Jacob S --------+
    ------------------------------