Solved

Extraction of BLOBS (LONG RAW) using PL/SQL

Posted on 1997-08-27
1
1,340 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Suggested Solutions

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 …
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
This video shows how to recover a database from a user managed backup
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

760 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now