Solved

Extraction of BLOBS (LONG RAW) using PL/SQL

Posted on 1997-08-27
1
1,368 Views
Last Modified: 2008-03-10
I am trying to find out how to extract a BLOB (LONG RAW data type) from an Oracle database using PL/SQL, and then write it to a file on a UNIX file system.
0
Comment
Question by:oracle082697
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
leonidt earned 50 total points
ID: 1080471
The main problem is that PL/SQL does not operate with
data more than 32K long. So you can select the data from long
raw column into PL/SQL variable of type long raw or long
(does not actually matter for PL/SQL) and then write it to UNIX
File using UTL_FILE, the only problem is that you cannot get
more than 32K. There is no way in PL/SQL to operate with data more than 32K long. My advice is to get it through the OCI
interface from C/C++ or probably (I never tried that but should work) even through VB using ODBC.
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows how to recover a database from a user managed backup
Suggested Courses

635 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question