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.  SMI equivalent of onstat -g spf

    Posted 09/14/23 04:11 AM

    Hello, does anybody know if there is a sql table/view from sysmaster to get the info which command onstat -g spf provides?

    Thank you



    ------------------------------
    Milan
    ------------------------------


  • 2.  RE: SMI equivalent of onstat -g spf

    Posted 09/14/23 06:36 AM

    Most of the details (from the scans column right) come from the sysrstcb pseudo table in sysmaster (see the syssesprof view for which columns correspond to the report as the column labels are more similar). The rest comes from the syssdblock pseudo table.



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



  • 3.  RE: SMI equivalent of onstat -g spf

    Posted 09/14/23 09:06 AM

    ... or syssqltrace.



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



  • 4.  RE: SMI equivalent of onstat -g spf

    Posted 09/14/23 10:02 AM

    Yes but the syssqltrace* tables are only populated if you have SQLTRACE enabled!



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



  • 5.  RE: SMI equivalent of onstat -g spf

    Posted 09/14/23 11:04 AM

    True, but also applying to onstat -g spf, afaik.



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



  • 6.  RE: SMI equivalent of onstat -g spf

    Posted 09/15/23 03:15 AM

    Thank you to both, Art and Andreas and yes I am interesting the most in currently running queries and assume sql tracing is switched on.



    ------------------------------
    Milan
    ------------------------------