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.  onstat -g opn does not match published documentation

    Posted 21 days ago

    Greetings, Family.

    As a curiosity, and to follow up on a Perl script I never got around to writing, I wanted to see the output of onstat -g opn (open tables/partitions).

    The printed (PDF) manual on 12.10 (P 20-121 or 587) gives a format and explanation that could be helpful and looks pretty much like Paul Watson's description in his fabulous reference page.

    HOWEVER

    Both sources are kinda out of date.  The current output has additional columns and is broken down by rstcb/tid i.e. which thread has which tables open. Samples:

    rstcb 18239caf8 tid 343
    isfd  op_mode    op_flags   partnum    ucnt ocnt lk ra   partp          ocnt ucnt
    0     70000      403        f0054f     1    0       0    18c2b1638      0    74
    1     70000      403        f0014c     1    0       0    18c09e028      0    125
    2     70000      403        2020e3     1    0       0    187ddc720      0    21
    3     70000      403        6005b8     1    0       0    1840e5028      0    46
    ...

    rstcb 1823abc48 tid 4590
    isfd  op_mode    op_flags   partnum    ucnt ocnt lk ra   partp          ocnt ucnt
    0     400        291        1800077    2    2       61   18d2966d0      4    4
    1     2          3          1800077    2    2       0    18d2966d0      4    4
    2     400        297        100003     2    2    S  61   184319028      464  464
    3     2          3          100003     2    2    S  0    184319028      464  464
    4     1000400    7          1800053    1    1    S  1    18747f028      1    1
    5     1000440    297        1800054    1    1    S  0    18747f690      1    1
    6     1000400    413        1800044    3    0    X  1    1873ab028      0    6

    and so on.  Very information-rich output but not as helpful without explanation of the columns and flags. (And it does not hep that op_flags is given in decimal rather than hex.)  However, the on-line documentation has gone miserly: used by IBM® Software Support.

    Anyone out there who can post the current meanings of all that? Like what each flag means (in Rel 12 and 14) and what is that partp column, as opposed to partnum?

    As it stands, I think I have enough up there to "join" the about output with onstat -u and my own old queries that match partnum to database:table (fragments.sh and the like, published years ago in the software repository).   But if I have the opportunity to provide enhanced information I would go for it.  And I will be checking sysmaster.sql for some aspects of this.

    On behalf of the knowledge-thirsty IIUG community,

    Thanks much!



    ------------------------------
    +-----------------------------------------------------------+
    | 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: onstat -g opn does not match published documentation

    Posted 21 days ago
    The IBM onstat -g dic image is a direct lift from our site :-)

    On 1/16/2026 9:27 AM, Jacob Salomon via IBM TechXchange Community wrote:
    0100019bc76ade7e-879a9d88-7d3a-4ae7-a79c-bd8486f4267e-000000@email.amazonses.com">
    Greetings, Family. As a curiosity, and to follow up on a Perl script I never got around to writing, I wanted to see the output of onstat -g opn ... -posted to the "Informix" group