今天在程序里面调用存储过程是报错了,ORA-24777: use of non-migratable database link not allowed
ORA-06512: at "GDGFRUN.SYNC_SHAREINFO_DATA", line 33
ORA-06512: at line 1
但我在sql plus里面执行这个存储过程却没有问题 按照网上的建议,把dblink 改为shared方式及可以,但重建了dblink,但shared始终不生效。
create SHARED PUBLIC database link gg
connect to test identified by test
AUTHENTICATED BY test IDENTIFIED BY test
using '(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.15.230)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = oradb10)
)
)';