我在存储过程调用中出现ora 24777错误,解释如下:
"use of non-migratable database link not allowed"
// *Cause: The transaction, which needs to be migratable between sessions,
// tried to access a remote database from a non-multi threaded
// server process.
// *Action: Perform the work in the local database or open a connection to
// the remote database from the client. If multi threaded server
// option is installed, connect to the Oracle instance through the
// dispatcher.
请问如何解决,是什么原因?
是不是没创建DB LINK?
是,在存储过程中用了db-link
需要创建DB_LINK才可以,
CREATE DATABASE LINK LINKNAME CONNECT TO USERNAME IDENTIFIED BY PASSWORD USING CONSTR;//CONSTR是用NET8创建的连接字符串名称
我已经创建了,这样用的:
select * from tablename@dblinkname
出现了以上的错误!