DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2008

    data updation in LONG datatype variable

    Hi All,
    I used one table which contains Long data type column.
    When I fire update query for that column with long string it fires an error
    ORA-01704: string literal too long
    even update column contains data upto 4000 to 4500 characters

    If long query data up to 2 G.B. then it should not fire such an error.

    I want to know what is the issue behind it. and is there having any way to resolve this issue.

    Thanks in advance,


  2. #2
    Join Date
    Mar 2007
    Ft. Lauderdale, FL
    What's your version of Oracle?

    LONG datatype it's been deprecated for a long time now; if you are running anything after Ora8i you should be using LOB datatype. TO_LOB() function will allow you to convert from long to lob.
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.