Help! OCITransStart() failure:ORA-00162: external dbid length 0 is greater than maximum (16)
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:
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:
0