Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8874879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:49:56+00:00 2026-06-14T18:49:56+00:00

I have a table Images with two fields: Name VARCHAR2 Data BLOB I would

  • 0

I have a table “Images” with two fields:

  • Name VARCHAR2
  • Data BLOB

I would like to export that table to a .sql file which I could import on another system. I tried to do so using the “Database unload” assistant of Oracle SQL Developer. However the generated file does just have the content for the names in it but not the data. Thus after importing I would end up with all the names but the data field would be null everywhere.

I’d really prefer it just to be one file (I saw some examples that included dumping the data to one file per field on the fs…)

Is it possible to generate such a script with SQL Developer? or is there any other way/tool to do so?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T18:49:58+00:00Added an answer on June 14, 2026 at 6:49 pm

    I don’t think this is possible with SQL Developer (but then I don’t use it very often).

    The SQL client I am using – SQL Workbench/J – can do this.

    There are several ways to export this data.

    Generate a proprietary script

    It can create a SQL script that uses a special (tool specific) notation to reference an external file, something like:

    INSERT INTO images
      (name, data)
    VALUES
      ('foobar', {$blobfile='blob_r1_c2.data'});
    

    The above statement can only be executed with SQL Workbench again. It is not compatible with any other SQL client.

    Use utl_raw

    Another alternative is to use a “blob literal”, but due to Oracle’s limit on 4000 bytes for a character literal, this only works for really small blob values:

    INSERT INTO images
      (name, data)
    VALUES
      ('foobar', to_blob(utl_raw.cast_to_raw('......')));
    

    where the character literal for the cast_to_raw call would contain the hex values of the BLOB. As this requires 2 characters per “blob byte”, you can’t handle BLOBs larger than 2000 bytes with that. But that syntax would work for nearly all Oracle SQL tools (if they can handle scripts with very long lines).

    SQL*Loader input file

    The third alternative is to export the data into a text file that can be imported using SQL*Loader:

    The text file would contain something like this:

    NAME    DATA
    foobar  blob_r1_c2.data
    

    Together with the following SQL*Loader control file:

    OPTIONS (skip=1)
    LOAD DATA CHARACTERSET 'WE8ISO8859P15'
    INFILE 'images.txt'
    APPEND
    INTO TABLE IMAGES
    FIELDS TERMINATED BY '\t' TRAILING NULLCOLS
    (
      NAME,
      lob_file_data FILLER,
      DATA LOBFILE(lob_file_data) TERMINATED BY EOF
    )
    

    This can be loaded using SQL*Loader and is thus doesn’t need SQL Workbench to import the data.

    More details are in the manual

    Edit

    As Alex has pointed out in his comment, you can also use a DataPump export – but that requires that you have access to the file system on the server. The above solutions all store the data on the client.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically I have a database with two tables, that is, Updates table and Images
I have two seperate tables in my DB, here the relevant fields: table images:
I have two tables, content and images (and a ContentImages table for the one
I have a table in SQL Server 2005. alt text http://www.techpint.com/sites/default/files/images/table.JPG I want to
I have a list of images in a table like so: <div id=scroll-uploader-photos> <table>
I have a database with a singe table, and two fields in said table,
I have two tables I would like to join with GroceryCRUD . Part of
I have two tables imagesgroup and images imagesgroup has following fields id and group_name
A Clarification, if I have a table that has the following fields.... ProductCategoryID, CategoryName,
I have a database that contains a table for storing URL Images (since storing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.