訪問oracle資料鏈路的blob欄位值,oracleblob

來源:互聯網
上載者:User

訪問oracle資料鏈路的blob欄位值,oracleblob

訪問照片表

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中的BLOB欄位的問題

要取BLOB裡面的值 必須要用到oracle裡面的程式包DBMS_LOB
具體怎麼實現 網上有 搜尋一下就行了
1 自己先寫一個預存程序
2 定義CLOB變數 用來接受BLOB的值
3 輸出CLOB變數的值
步驟大致就是這樣的 希望對你有協助
 
oracle中添加blob欄位

可以加的啊,文法沒有錯誤,我在我這裡測試都可以:
SQL> ALTER TABLE a ADD memo BLOB;

Table altered

SQL> ALTER TABLE a ADD memo2 cLOB;

Table altered

SQL> ALTER TABLE a ADD memo3 long;

Table altered

SQL> ALTER TABLE a ADD memo4 BLOB;

Table altered
 

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.