设为首页 加入收藏

TOP

访问oracle数据链路的blob字段值
2014-11-24 00:04:40 来源: 作者: 【 】 浏览:10
Tags:访问 oracle 数据 链路 blob 段值

访问照片表

select * from zp@dblink1 where a1='11111';

会报错:ora-22992 无法使用从远程表选择的LOB定位器

改为以下方法:

方法一:
drop table temp
Create table temp as select * from zp@dblink1 where a1='002';
select * from temp;

方法二:

--创建表只需执行一次
Create global temporary table temp on commit delete rows as select * from zp@zhplink where 1=2;
Create table temp2 as select * from temp where 1=2;

--可以多次执行insert

insert into temp select * from zp@zhplink where gmsfhm='140502199102260519';
insert into temp2 select * from temp;

commit;

select * from temp2;

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Oracle诊断案例---如何诊断和解决.. 下一篇建立数据库链路、统计表记录数、..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: