为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【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?
这个是Oracle端报出的错误信息,你看看Oracle里面这个序列是否正常,Oracle正常的话在DM端通过dblink查询也是没问题的。
是否有官方文档明确说明dblink支持和不支持的场景说明?