注册

跨dblink查询oracle 10g的sequence错误PLS-00357

柳海 2023/10/30 553 3

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:DM Database Server 64 V8
【操作系统】:Linux
【CPU】:
【问题描述】*:通过dblink去查oracle的sequence,对端oracle版本是10.2.0.5,出现错误PLS-00357: Table,View Or Sequence reference 'SYSTEM.TESTSEQ.NEXTVAL()' not allowed in this context

查询过程如下:
SQL> select * from dual@link_ora10g; <-----dblink查询正常

LINEID DUMMY


1 X

used time: 163.743(ms). Execute id is 157226500.

SQL> select system.testseq.nextval@link_ora10g from dual; <-----dblink—+sequence 查询错误
select system.testseq.nextval@link_ora10g from dual;
[-7158]:Remote operation execute fail,err detail[ORA-06550: line 1, column 15:
PLS-00357: Table,View Or Sequence reference 'SYSTEM.TESTSEQ.NEXTVAL()' not allowed in this context
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored].
used time: 35.086(ms). Execute id is 0.

达梦是不支持跨dblink查询oracle 10g的sequence?

回答 0
暂无回答
扫一扫
联系客服