Oracle通过DBLink操作数据表,报错“ORA-22992:无法使用从远程表选择的lob定位器”
2017-10-29 21:45
423 查看
---1、在本地创建包含blob的临时表
create global temporary table temp1 (a varchar2(20),x BLOB)
on commit delete rows
---2、在本地创建目标临时表
CREATE TABLE TEMP2
AS
select * from temp1 where 1=2
---3、将远程表的数据插入到临时表中
INSERT INTO temp1
select smt_salaryno,smt_photo from ecard.photo@lk_ykt ---千万不要comit,不然temp1表的数据会变清空
--4、将临时表中的数据插入到目标临时表
INSERT INTO TEMP2
select * from temp1
--5、针对包含blob表去重的方法
insert into jw_jg_jzgzpb
select a,x from (
select a,x,row_number() over(partition by a order by a) px from yhb a,TEMP2 b where yhlx='teacher' and a.yhm=b.a
and a in (
SELECT distinct a FROM TEMP2 group by a having count(*)>1
) ) where px=1
create global temporary table temp1 (a varchar2(20),x BLOB)
on commit delete rows
---2、在本地创建目标临时表
CREATE TABLE TEMP2
AS
select * from temp1 where 1=2
---3、将远程表的数据插入到临时表中
INSERT INTO temp1
select smt_salaryno,smt_photo from ecard.photo@lk_ykt ---千万不要comit,不然temp1表的数据会变清空
--4、将临时表中的数据插入到目标临时表
INSERT INTO TEMP2
select * from temp1
--5、针对包含blob表去重的方法
insert into jw_jg_jzgzpb
select a,x from (
select a,x,row_number() over(partition by a order by a) px from yhb a,TEMP2 b where yhlx='teacher' and a.yhm=b.a
and a in (
SELECT distinct a FROM TEMP2 group by a having count(*)>1
) ) where px=1
相关文章推荐
- Oracle通过DBLink操作数据表,报错“ORA-22992:无法使用从远程表选择的lob定位器”
- Oracle通过DBLink操作数据表,报错“ORA-22992:无法使用从远程表选择的lob定位器”
- ORACLE "ORA--22992:无法使用远程表选择的LOB定位器,database link"
- "ORA-22992: 无法使用从远程表选择的 LOB 定位器"解决方法
- ORA-22992: 无法使用从远程表选择的 LOB 定位器
- ORA-22992: 无法使用从远程表选择的 LOB 定位器
- 解决oracle dblink中无法使用从远程表选择的lob定位器的问题
- ORA-22992: 无法使用从远程表选择的 LOB 定位器
- oracle ORA-22992 无法使用从远程表选择的 LOB 定位器
- ORA-22992:没法使用从远程表选择的LOB定位器
- ORA-22992:无法使用从远处表选择LOB定位器
- ORA-22992:没法使用从远程表选择的LOB定位器
- oracle通过DBLink访问远程数据库的LOB字段报ORA-22992的解决方法
- oracle通过DBLink访问远程数据库的LOB字段报ORA-22992的解决方法
- oracle ora-22992 通过DBLINK 访问远程CLOB表问题
- ORA-22992:无法使用远程表选择的LOB定位符
- ora-22992 通过DBLINK 访问远程CLOB表问题
- 解决ORA-02021: 不允许对远程数据库进行 DDL 操作下面通过DBLINK调用远程过程来执行这样的操作。
- 【ORA-01922】oracle私有dblink无法通过限定owner删除的原因
- ora-22992 通过DBLINK 访问远程CLOB表问题