473,797 Members | 3,212 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error: ORA-01704: string literal too long

Hello, I am getting the above error when executing a large insert statement
against 8.1.7.

This insert statement includes a very large string value, about 8000
characters long. Is there a limit on the size of statements that Oracle
can execute ?

Is this a setting that can be changed ?

Thanks in advance.

Jul 19 '05 #1
3 38909
according to the error message manual:

ORA-01704 string literal too long
Cause: The string literal is longer than 4000 characters.
Action: Use a string literal of at most 4000 characters. Longer values may
only be entered using bind variables.

make sure you get yourself a copy for future reference ;-)

-- mcs

"Dave Pylatuk" <da***@centurys ystems.net> wrote in message
news:U9******** *************@n ews20.bellgloba l.com...
| Hello, I am getting the above error when executing a large insert
statement
| against 8.1.7.
|
| This insert statement includes a very large string value, about 8000
| characters long. Is there a limit on the size of statements that Oracle
| can execute ?
|
| Is this a setting that can be changed ?
|
| Thanks in advance.
|
|
|
Jul 19 '05 #2
Thanks for responding.

Do you have an example of using a bind variable ?

Any help would be appreciated.
Thanks,
Dave
"mcstock" <mc************ *@spamdamenquer y.com> wrote in message
news:Na******** ************@co mcast.com...
according to the error message manual:

ORA-01704 string literal too long
Cause: The string literal is longer than 4000 characters.
Action: Use a string literal of at most 4000 characters. Longer values may
only be entered using bind variables.

make sure you get yourself a copy for future reference ;-)

-- mcs

"Dave Pylatuk" <da***@centurys ystems.net> wrote in message
news:U9******** *************@n ews20.bellgloba l.com...
| Hello, I am getting the above error when executing a large insert
statement
| against 8.1.7.
|
| This insert statement includes a very large string value, about 8000
| characters long. Is there a limit on the size of statements that Oracle
| can execute ?
|
| Is this a setting that can be changed ?
|
| Thanks in advance.
|
|
|

Jul 19 '05 #3
Dave Pylatuk wrote:
Thanks for responding.

Do you have an example of using a bind variable ?

Any help would be appreciated.
Thanks,
Dave
"mcstock" <mc************ *@spamdamenquer y.com> wrote in message
news:Na******** ************@co mcast.com...
according to the error message manual:

ORA-01704 string literal too long
Cause: The string literal is longer than 4000 characters.
Action: Use a string literal of at most 4000 characters. Longer values may
only be entered using bind variables.

make sure you get yourself a copy for future reference ;-)

-- mcs

"Dave Pylatuk" <da***@centurys ystems.net> wrote in message
news:U9****** *************** @news20.bellglo bal.com...
| Hello, I am getting the above error when executing a large insert
statement
| against 8.1.7.
|
| This insert statement includes a very large string value, about 8000
| characters long. Is there a limit on the size of statements that Oracle
| can execute ?
|
| Is this a setting that can be changed ?
|
| Thanks in advance.
|
|
|


insert into bla (a, b, c) values (:x, :y, :z);
:x, :y and :z are the bind variables.

Yuou would use it in a statement like:

begin
for i in 1..100 -- or a select statement
execute immediate
'insert into bla (a, b, c) values (:x, :y, :z)'
using a_variable, another_variabl e, yet_another;
end loop;
end;

--
Regards, Frank van Bortel

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
38894
by: Park Yeon Jo | last post by:
About Error : ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect descriptor I installed Oracle 8.1.7 on Windows XP Professional. and I wanto connect to that server from another client computer using Net 8 Configuration. But congiguration cannot be proceeded because above error .
1
3390
by: valexena | last post by:
I am attempting to take tablespace offline and receiving the following error: ORA-01546- cannot take tablespace offline. What I am doing wrong? -- Posted via http://dbforums.com
0
1519
by: Brian Lesker | Impulse Info Systems | last post by:
Keywords: Oracle 6i Citrix ORA-06508 Crash Problem descryption: Oracle (6i) application crashes in Citrix farm with error ORA-06508. HOWTO resolve:
2
3822
by: pooja sharma | last post by:
When I have installed oracle 8i on my window xp it was working alright. but when i rebooted the system and to logged in SQL+ it is giving error ORA-01034: ORACLE not available . Can anybody tell me how to resolve this problem.
1
4211
by: 3xxx | last post by:
I start to learn the form now with oracle 9i environment (this URL appear after running menu in Oracle forms builder ==>>> program-> run form) http://fujitsuandrew:8888/forms90/f90servlet?form=C:\c\CustomerDemo.fmx&userid=SYSTEM/PASS@&buffer_records=NO&debug_messages=NO&array=YES&query_only=NO&quiet=NO&RENDER=YES got this error in the pop up IE Forms ORA-12560: TNS protocal adapter error
3
4724
by: Thakur vikas | last post by:
when we run the query then we got ": (Error): ORA-00907: missing right parenthesis" what may be the error?
2
4053
by: sushil4487 | last post by:
I am getting this error while writing this query. I am using the same query in other server but i am not getting any error message Do I need to reset the date format in Server. Date is saved in table as varchar.. I want to convert it into date format SQL> desc mis_branch_master Name Null? Type ------------------------------- -------- ---- PARAMETER NOT NULL VARCHAR2(15)
2
5148
by: amoldiego | last post by:
Hi I have encountered the error ORA-01536 . I have earlier grant sysdba to SCOTT & then I revoked the sysdba role from SCOTT a couple of days later. After that, I encountered the error ORA-01536 when trying to create a table as SCOTT My question is once the dba role has been assigned then revoke, will it affect the quota assigned? I have no clue what caused the error ORA-01536 . Also Please help me how to remove this Error . ...
1
12213
by: gowthams123 | last post by:
Dear All, Plz help me with this oracle form builder installation? I have installed SQL *PLUS Release 9.2.0.1.0 and then installed form builder 9.0.2.7.0. When i enter the following username password database scott tiger oracle system seshadri (which i have set) oracle I get the folowing error ;
0
1718
by: Muhammad Asad | last post by:
While attempting to login in SqlPlus at start i found such error.When i entered again user name and passowrd it again show that message. Error. ORA 12535: TNS operation time out. How can i resolve it?
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10469
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10246
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9066
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5459
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3750
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2934
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.