Informix

 View Only
  • 1.  sysadmin DB relocation

    Posted Tue July 09, 2024 06:45 AM

    Hi,

    IBM Informix Dynamic Server Version 11.70.FC5XE

    Please, how to relocate sysadmin database from rootdbs to avoid rootdbs overflow during SQL tracing?



    ------------------------------
    Sincerely,
    Dennis
    ------------------------------


  • 2.  RE: sysadmin DB relocation

    IBM Champion
    Posted Tue July 09, 2024 07:36 AM

    See this:

    Moving (Resetting) the sysadmin database to a new dbspace in IBM Informix Dynamic Server (IDS)

    Ibm remove preview
    Moving (Resetting) the sysadmin database to a new dbspace in IBM Informix Dynamic Server (IDS)
    How do you move the sysadmin database to a new dbspace?
    View this on Ibm >



    ------------------------------
    Art S. Kagel, President and Principal Consultant
    ASK Database Management Corp.
    www.askdbmgt.com
    ------------------------------



  • 3.  RE: sysadmin DB relocation

    IBM Champion
    Posted Tue July 09, 2024 07:40 AM

    That said, I STRONGLY recommend that you turn off the task manager task that is copying the SQLTRACE data into sysadmin and instead create an external script or program to do that copy to a location NOT inside the database being monitored. This copy operation has far more impact on your server's performance than the SQLTRACE itself!!!!! And that's not even considering that sysadmin is a logged database and so the copy is consuming logical logs very quickly which could make recovery from a crash take far longer than it should.



    ------------------------------
    Art S. Kagel, President and Principal Consultant
    ASK Database Management Corp.
    www.askdbmgt.com
    ------------------------------



  • 4.  RE: sysadmin DB relocation

    Posted Tue July 09, 2024 08:07 AM

    Art:

    We have the scheduler turned off on startup:

    SCHAPI: "INFORMIXDIR/etc/sysadmin/stop" file is present.
    Bypassing dbScheduler and dbWorker threads startup.



    ------------------------------
    Sincerely,
    Dennis
    ------------------------------



  • 5.  RE: sysadmin DB relocation

    IBM Champion
    Posted Tue July 09, 2024 08:34 AM

    Dennis:

    If the task manager scheduler is shut down then SQLTRACE is not writing to sysadmin at all. 

    SQLTRACE itself only writes to the configured ring buffer in memory. Only the "Save SQL Trace" task in the scheduler writes to the sysadmin mon_sqltrace* tables.

    I don't know what else might be consuming space there, but with the scheduler down it really is unlikely. What tables are being populated/growing?

    Art



    ------------------------------
    Art S. Kagel, President and Principal Consultant
    ASK Database Management Corp.
    www.askdbmgt.com
    ------------------------------



  • 6.  RE: sysadmin DB relocation

    Posted Tue July 09, 2024 08:40 AM

    Art:

    Thank you so much. There is no problem of rootdbs overfill, I just wanted to prevent it.



    ------------------------------
    Sincerely,
    Dennis
    ------------------------------