473,397 Members | 2,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Java/Oracle thin driver SQL statement limit

Hello folks,
I have a jsp using the thin oracle drivers. I need to add a query for
a large table (70 something columns...I'didn't build it) due the high
number of columns and some things that are going on in the WHERE
clause the query itself pretty long. The query runs fine in SQL*Plus
without errors but when I add it to my JSP I am getting the exception
"java.sql.SQLException: SQL string is not Query".
This was working fine on another page with a much more manageable
query.

Is there a fixed limit to the amount of text you can pass in a query?
if so does anyone know what it is?

thanks...
Jul 19 '05 #1
2 5181
Why don't you create a stored procedure in Oracle to handle the query and
then call the stored procedure from JSP? It is more efficient that way.

simon.
Jul 19 '05 #2
simon wrote:
Why don't you create a stored procedure in Oracle to handle the query and
then call the stored procedure from JSP? It is more efficient that way.

simon.

Or create a View and query off that.

Jul 19 '05 #3

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

Similar topics

2
by: DiggidyMack69 | last post by:
Hello folks, I have a jsp using the thin oracle drivers. I need to add a query for a large table (70 something columns...I'didn't build it) due the high number of columns and some things that are...
2
by: Dave Brueck | last post by:
Below is some information I collected from a *small* project in which I wrote a Python version of a Java application. I share this info only as a data point (rather than trying to say this data...
1
by: CM | last post by:
Hi, when i want connect me in my BD with a JSP (with this simple code), this exception is throw. Thank's for ur help Mathieu CODE of my JSP ---------------------
0
by: Oxmard | last post by:
Is this still being supported? I was wanting to use it instead of the thin driver so that I could pass just the connection aliaes (tnsnames). I am understanding to use the thin driver one must:...
5
by: Joe Kinsella | last post by:
Java JDBC defines four types of database drivers. A type 4 driver is a native protocol, fully Java-enabled driver. For Oracle, this means the driver is written to the socket based protocol...
3
by: owen | last post by:
Hi, I've been trying for ages to connect to my Oracle 9.2.0 database from Java. I am attempting to create a thin connection. The necessary drivers were installed with the database and I have...
0
by: jazz1 | last post by:
my coding is <% //Connection conn=null; //Statement st=null; //ResultSet rs=null; int msgCount; try { String userid=request.getParameter("application_no");
2
by: lunas | last post by:
hi i am trying to update a table selecting a value from another table and ve written the following codes for it.. import java.sql.*; import java.io.*; import java.util.*; public class...
0
by: anuptosh | last post by:
Hi, I have been trying to run the below example to get a Oracle Array as an output from a Java code. This is an example I have found on the web. But, the expected result is that the code should...
2
by: sdanda | last post by:
Hi , Do you have any idea how to improve my java class performance while selecting and inserting data into DB using JDBC Connectivity ......... This has to work for more than 8,00,000...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.