Can anyone give a small pseudocode for the following:
A proc accepts an arg, taking this it updates a table on a remote DB from the current DB.
It returns 0 if the commit occurs in the remote DB.
Else it returns 1
and rolls back the transaction in the current DB.
Create a dblink to your remote database.
write a functon which would take the parameters from the procedure, set a save point and then do the update using the dblink, if there are any exceptions, issue the roll back and return 1, else commit and return 0.
Bundle it as a package in your system and execute it.
Life is a journey, not a destination!
Click Here to Expand Forum to Full Width