CREATE GLOBAL TEMPORARY TABLE WK_RE_DYAQ_TEMP AS SELECT * FROM WK_RE_DYAQ WHERE 1 = 2;
INSERT INTO WK_RE_DYAQ_TEMP SELECT * FROM WK_RE_DYAQ;
WK_RE_DYAQ:是当前库的表
插入语句:
INSERT INTO DYAQ@DBLINK_BUSSINESS(FJ) SELECT FJ FROM WK_RE_DYAQ_TEMP
改为
INSERT INTO DYAQ@DBLINK_BUSSINESS(FJ) SELECT FJ FROM WK_RE_DYAQ也不行。
我对远程数据库的表同步blob数据,报错:
ORA-22992: 无法使用从远程表选择的 LOB 定位器?也没找到什么解决方案,就大神指导,谢谢。
3 个解决方案
#1
远程 和 本地,都是哪个版本的库?
#2
不能用 select *
1建临时表
create global temporary table tmp
( X BLOB )
on commit delete rows;
2 插入本地表
insert into tmp select blobcolumn from remoteTable@dbLink;
1建临时表
create global temporary table tmp
( X BLOB )
on commit delete rows;
2 插入本地表
insert into tmp select blobcolumn from remoteTable@dbLink;
#3
用create table 方式获取远程数据库的blob字段是可以的
create table temp as
select cols from remot_table@dblink
create table temp as
select cols from remot_table@dblink
#1
远程 和 本地,都是哪个版本的库?
#2
不能用 select *
1建临时表
create global temporary table tmp
( X BLOB )
on commit delete rows;
2 插入本地表
insert into tmp select blobcolumn from remoteTable@dbLink;
1建临时表
create global temporary table tmp
( X BLOB )
on commit delete rows;
2 插入本地表
insert into tmp select blobcolumn from remoteTable@dbLink;
#3
用create table 方式获取远程数据库的blob字段是可以的
create table temp as
select cols from remot_table@dblink
create table temp as
select cols from remot_table@dblink