Precompilers and OCI (MOSC)

MOSC Banner

Help! OCITransStart() failure:ORA-00162: external dbid length 0 is greater than maximum (16)

edited Nov 14, 2011 6:40AM in Precompilers and OCI (MOSC) 6 commentsAnswered
I'd like to start transactions on two DBs respectively, prepare, and then commit or forget them together.
I tried some example codes in OCI guid to start one transaction on one DB first. Only DB name/username/password changed.

But when OCITransStart() was called, ORA-00162 occurred: external dbid length 0 is greater than maximum (16).

I don't know why the length is 0, but greater than maximum.
And I think dbid was right since OCI functions before and after OCITransStart() worked well.

1. what's wrong with example codes?
2. How to set XID? I just copied codes from Guide. Is that ok?

Here are example codes from OCI guide:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center