你如何插入大BLOB到Oracle 10G使用System.Data.OracleClient的? [英] How Do You Insert Large Blobs Into Oracle 10G Using System.Data.OracleClient?

查看:135
本文介绍了你如何插入大BLOB到Oracle 10G使用System.Data.OracleClient的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图插入315K GIF文件到Oracle 10g数据库。每次我得到这个错误ORA-01460:请求未实现或不合理的转换磨片我运行存储过程。它似乎有一个32K的限制,如果我使用存储过程。我在网上看了,如果你正在做的一个直接插入这并不适用,但我不知道如何创建插入字符串的字节数组。这是在服务器,因此并不担心SQL注入攻击中运行的胖客户端。

Trying to insert 315K Gif files into an Oracle 10g database. Everytime I get this error "ora-01460: unimplemented or unreasonable conversion requested" whe I run the stored procedure. It appears that there is a 32K limit if I use a stored procedure. I read online that this does not apply if you are doing a direct insert, but I do not know how to create the insert string for a Byte Array. This is a thick client running on the server so not worried about SQL Injection attacks.

任何帮助将是很大的AP preciated。仅供参考,code在vb.net。

Any help would be greatly appreciated. FYI, code in vb.net.

谢谢

戴夫

推荐答案

不要使用System.Data.OracleClient的。它具有的BLOB / CLOB的性能问题。现在,微软pcated德$ P $,将不被支持。代替它,使用Oracle的本地ODP.NET。

Do not use System.Data.OracleClient. It has performance issues with BLOBs/CLOBs. Now it's deprecated by Microsoft and will not be supported. Instead of it, use Oracle's native ODP.NET.

这篇关于你如何插入大BLOB到Oracle 10G使用System.Data.OracleClient的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆