ORA-22992 cannot use LOB locators selected from remote tables
在給客戶做資料遷移時,需要從遠端資料庫的一個表插入一些資料過來到本地資料庫
真正使用DBLink時卻碰到一個不小的問題:從遠端資料庫上查詢Blob欄位時總返回ORA-22992錯誤,如下:
select * from remoteTable@dl_remote;
ORA-22992 cannot use LOB locators selected from remote tables
遠端資料庫的表是有一個圖象的大欄位型別
而在測試時 做 insert 時正常
insert into table_name select * from ;
使用臨時表也有種解決方法
查詢了一下解決方法,有人提出了採用物化檢視可以解決這個問題。物化檢視唯一的缺陷在於同步機制的問題,如果同步時間設定過短,則佔用大量的系統資源,給伺服器帶來極大的壓力;如果設定時間過長,前臺使用者不可接受。
後來還是AskTom給出了極好的解決方案:使用全域性臨時表。
SQL> create global temporary table foo
2 (
3 X BLOB
4 )
5 on commit delete rows;
Table created
SQL> insert into foo select blobcolumn from remoteTable@dl_remote where rownum = 1;
1 row inserted
SQL>
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-496144/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- the --skip-grant-tables option so it cannot
- External Tables: Querying Data From Flat Files in OracleOracle
- Use the following approach to create tables with constraints and indexes:APPAIIndex
- you cannot use this control in design mode。
- cannot import name ‘multiarray‘ from ‘numpy.core‘Import
- Script to generate AWR report from remote sql clientREMSQLclient
- Golang Cannot use ss(type AAA) as type AAA in map indexGolangIndex
- ImportError: cannot import name ‘BaseQuery‘ from ‘flask_sqlalchemy‘ImportErrorFlaskSQL
- MapStruct-plus cannot find converter fromStruct
- 分散式查詢優化SERIAL_FROM_REMOTE分散式優化REM
- cannot use '/dev/da1': must be a block device or regular filedevBloC
- PHP Fatal error: Cannot use PhpParser\Node\Scalar\String as StringPHPError
- Msg 3702:Cannot drop the database 'gcard' because it is currently in use.DatabaseGC
- Error: cannot fetch last explain plan from PLAN_TABLEErrorASTAI
- ORA-19550: cannot use backup/restore functions while using dispatcherRESTFunctionWhile
- ORA-02030: can only select from fixed tables/viewsView
- ERROR 1577 (HY000): Cannot proceed because system tables used by Event ScheduleError
- jQuery :selectedjQuery
- Oracle 12C RMAN transport tablespace from PDB of RAC CDB to remote PDBOracleREM
- 解決 ImportError: cannot import name 'imread' from 'scipy.misc'ImportError
- ImportError: cannot import name 'get_ora_doc' from partially initialized moduleImportErrorZed
- Workspace in use or cannot be created, choose a different one.--錯誤解決辦法
- ORA-39322: Cannot use transportable tablespace with timestamp with timezone...
- ORA-01552: cannot use system rollback錯誤解決方法
- git@github.com: Permission denied (publickey). fatal: Could not read from remoteGithubREM
- pycharm出現Git Pull Failed: Could not read from remote repository.PyCharmGitAIREM
- Ajax 報錯jquery-3.3.1.min.js:2 Uncaught TypeError: Cannot use 'in' operator to seajQueryJSError
- The type XXX cannot be resolved.It is indirectly referenced from required .classUI
- cannot reclaim 52428800 bytes disk space from 4070572032 limitAIMIT
- vue-selectedVue
- 【LOB】Oracle Lob管理常用sqlOracleSQL
- Use Database Replay Feature to Help With Upgrade From 10.2.0.4 to 11g_748895.1Database
- 關於Cannot resolve scoped service from root provider解決方案IDE
- 【LOB】Oracle lob管理常用語句Oracle
- 由ORA-00997: illegal use of long datatype引發的血案之long轉換為lob
- ORA-16019: cannot use LOG_ARCHIVE_DEST_1 with LOG_ARCHIVE_DESTHive
- dba_tables,dba_all_tables,user_tables,all_tables有什麼區別
- Long -> lob , to_lob 轉換,遷移