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 Thu September 14, 2023 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 Thu September 14, 2023 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 Thu September 14, 2023 09:06 AM

    ... or syssqltrace.



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



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

    Posted Thu September 14, 2023 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 Thu September 14, 2023 11:04 AM

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



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



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

    Posted Fri September 15, 2023 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
    ------------------------------