Why does "SET INTEGRITY" randomly hang?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mike zenon

    Why does "SET INTEGRITY" randomly hang?

    Hi All,

    I have a problem on "SET INTEGRITY" on one table. I have one script to "SET INTEGRITY" on a table with couple million rows. We run it one time per week afer it's parent table is loaded. The environment is UDB on solaris. The script is the only task running on this database. We have some other database on the same machine under the same database instance name.

    Normally, it takes about 10 minutes to complete, however it sometimes may running for more than 5 or 6 hours without stop, until I manually terminate the script. However the volumn matrix of the entire database is almost the same for each week, at most 5% difference.

    Any idea on this issue? How can I check what UDB is doing internally? It seems the script just hanging there. Any advice is welcome!

    Thanks,

    Mike
  • vijay2082
    New Member
    • Aug 2009
    • 112

    #2
    Hi Mike,

    Tiis requires lot of details in order to figure out the glitches. You can get it addressed by raising a PMR with IBM and they will ask you for db2support output with some application snaps and the original script and its output.

    If you want to see, what Database is doing internally then you can use the snapshot command on the application and check the status. Consult your DBA to get it done for you.

    1) db2 list applications show detail

    get teh agent id of your application

    2)** db2 get snapshot for application agentid <agent_id>

    this will provide you with the snap of what application is doing internally

    ** The monitor swicthes musty be turned on to get a clear picture of the internal processing. More on monitor swicthes in below link.



    Cheers, Vijay

    Comment

    Working...