Community discussion forum

question: program for ora 02068 error

  • 4 months ago

    How to program around ora-02068 error

    On DB2 side, newbie to oracle platform. . .HELP !!

    Oracle procedure, db link to DB2, gets 02068 rpc disconnect errors inconsistently/randomly. No error messages, no contention, and response time on both platforms are OK.

    procedure:

    1. select....
    2. commit.
    3. execute immediate...alter session...close dblink...
    4. exception

    We think it is getting stuck between 1 and 2 above, problems in communications, just hanging so exceptions do not catch errors. Theory is the next invoke generates the error message when it tries to reuse the hanging link, before it starts a new one. (?)

    Question: How can we program a band-aid to check the elapsed response time, interrupt and return control after 10 elapsed seconds, so we can retry and/or terminate cleanly as appropriate ??

    Thanks.

    Post was edited on 26/06/2009 21:57:31 Report abuse

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

We'd love to hear what you think! Submit ideas or give us feedback