我在程序中需要将本地数据库和通过数据库链路连接的数据库的两张表的内容插入到本地的另一张表中。
我的过程如下:
as
begin
delete from tempmanbaoxiao;
insert into tempmanbaoxiao select * from manbaoxiao;
insert into tempmanbaoxiao select * from manbaoxiao@gongshu; --本行错误
end;我在SQL PLUS中运行的上面的过程通过,但在DELPHI调用时提示:ORA-02041:客户数据库未开始一个事务处理请问在程序中如何实现?解决后高分向送,急急急!
也可以给我EMAIL:[email protected]
万分感谢。
我的过程如下:
as
begin
delete from tempmanbaoxiao;
insert into tempmanbaoxiao select * from manbaoxiao;
insert into tempmanbaoxiao select * from manbaoxiao@gongshu; --本行错误
end;我在SQL PLUS中运行的上面的过程通过,但在DELPHI调用时提示:ORA-02041:客户数据库未开始一个事务处理请问在程序中如何实现?解决后高分向送,急急急!
也可以给我EMAIL:[email protected]
万分感谢。
这个数据库链路最好是针对特定用户的,而且select * from manbaoxiao的oracle用户和
你连接的数据库的用户是一样的,且有权限。
我在delphi就直接运行storedproc,其名字就是我在oracle定义的过程名字
但还是不太理解其中的原因。
谢谢各位。