Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
John Smith asked how to find unused tables. Art Kagel suggested saving sysptprof activity daily before any onstat -z reset, though Paul Watson noted sysptprof already holds names so the join is unnecessary. Snorri Bergmann said oncheck in 14.10 reports a 'Last Lookup/Scan' timestamp.
Auto-generated by Claude from the posts below — may be imperfect; read the full thread.
John Smith — source: IBM Community (ConnectedCommunity.org) Informix forum
Hi
Is there a way to identify unused tables on a database , not accessed for a while ?
thanks :)
------------------------------
John Smith
------------------------------
#Informix
↪ replying to John Smith
Art Kagel — source: IBM Community (ConnectedCommunity.org) Informix forum
Monitor the contents of the sysptprof pseudotable in sysmaster, join to systabnames on partnum to get the database and table name. Select and save that data say daily before any daily stats reset (onstat -z) if you run them. Then you can track activity over time. Note that update statistics will add to the reads against tables it processes.
Art
Art S. Kagel, President and Principal Consultant
ASK Database Management
www.askdbmgt.com
Blog:
http://informix-myview.blogspot.com/
Disclaimer: Please keep in mind that my own opinions are my own opinions and do not reflect on the IIUG, nor any other organization with which I am associated either explicitly, implicitly, or by inference. Neither do those opinions reflect those of other individuals affiliated with any entity with which I am affiliated nor those of the entities themselves.
↪ replying to Art Kagel
John Smith — source: IBM Community (ConnectedCommunity.org) Informix forum
Thanks a lot :)
------------------------------
John Smith
------------------------------
↪ replying to Art Kagel
John Smith — source: IBM Community (ConnectedCommunity.org) Informix forum
Just for instance,
sysptprof aleady contains dbsname and tabname :)
------------------------------
John Smith
------------------------------
↪ replying to John Smith
Art Kagel — source: IBM Community (ConnectedCommunity.org) Informix forum
Arg. Serves me right for not checking.
Art
↪ replying to Art Kagel
Paul Watson — source: IBM Community (ConnectedCommunity.org) Informix forum
Meaningless join ?
Cheers
Paul
↪ replying to John Smith
Snorri Bergmann — source: IBM Community (ConnectedCommunity.org) Informix forum
Hi John.
In version 14.10 oncheck reports "Last Lookup/Scan" with a timestamp when it was last accessed.
Best regards,
-Snorri
------------------------------
Snorri Bergmann
------------------------------
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.