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 8218929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T12:58:27+00:00 2026-06-07T12:58:27+00:00

I have an Oracle table dump containing insert statements. Some of the tables contain

  • 0

I have an Oracle table dump containing insert statements. Some of the tables contain clob data fields. If I try to restore the dump using SQL Developer I get the error “ORA-01704: string literal too long”

Now I tried to restore the dump with JDBC using Java. The problem is that I already have the fully composed PreparedStatement so I cannot change the datatype of the columns from string to clob.

In the following the application is listed:

// strBufLine contains already the fully composed insert statement from the dump file
PreparedStatement pstmt = connection.prepareStatement("BEGIN " + strBufLine.toString() + " END;");
pstmt.executeUpdate();
pstmt.close();

Any idea how to solve this issue (using another program to restore the dump, other dump technique or how to change the datatype to clob)

  • 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-07T12:58:28+00:00Added an answer on June 7, 2026 at 12:58 pm

    If the string literal is too long for SQL Developer, it will be too long for JDBC as well because it’s parsed on the server side.

    I propose you convert the file into a CSV or fixed length file. That shouldn’t be too difficult since it’s the dump of a single table. So each line will have a similar structure. It might even be possible to do it in a text editor with Search/Replace.

    Then you can import it using SQL Developer (Import Data… in the context menu on the desired table).

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

Sidebar

Related Questions

I have an oracle table with nested tables in some of the columns. Now,
I'm calling some data from my Oracle table and I have a field which
I have several transactions to insert form data into oracle table. if (InsertQuarterly() ==
I have to get data from Oracle Table in which I have one datefield
I have an oracle 10g database that has 2 tables: a REBATES table, and
Suppose I have an Oracle 11.2 database containing the following table: TABLE: SURVEY PARAMETER
I have an Oracle data table fetching columns that be null. So I figure
I have an ORACLE table which includes the following fields: FieldA1 NUMBER(10,0) FieldA2 VARCHAR2(40
I have a large (multi-GB) data file exported from an Oracle table. I want
I have an Oracle table with data that looks like this: ID BATCH STATUS

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.