Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

pl/sql package not seeing updated contents of remote table despite call to remote procedure which in

user5716448Dec 10 2014 — edited Dec 12 2014

Hi,

Using 11.2.0.3 and have a pl/sql pacakge which calls a remote procedure on another datbaase.

The remote procedure inserts rows into reote table and the remote procedure has a commit in it.

Then the local procedure tires to read the renote table for the inserted record but doesn't see it

Rows definitely get inserted in remote table just not visible to local procedure until next run of loacl procedure

local procedure

e.g

calls remote procedure

select prod_num

into v_prod_num

from remote_table@link_name

raises no_data_found exception.

Had expected local procedure to be able to see this but as if despite commit in remote proecdure its view of the data is the one at time thelocal procedure runs rather than being dynamic.

Is there any way to chnage this?

Thanks

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 9 2015
Added on Dec 10 2014
11 comments
1,896 views