Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle
|
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 16th, 2006, 12:52 PM
Authorized User
 
Join Date: Jul 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default ORA-17110 with Java - Long datatype

Hello

I have an odd error. When I execute the following SQL:

1 SELECT
2 PF.FILENAME
3 ,PF.ESTAB
4 ,PF.DATA_COLLECTION_FK
5 ,PF.PROCESS_FILE_PK
6 ,TO_CHAR(PF.DATE_PROCESS, 'ddth Mon YYYY HH24:MI:SS') DATE_PROCESS
7 ,TO_CHAR(PF.FILE_DATE, 'ddth Mon YYYY') FILE_DATE
8 ,SBD.SCHOOL_NAME
9 ,TO_CHAR(LNF.DATE_MODIFIED, 'YYYY-DD-MM HH24:MI:SS') DATE_MODIFIED
10 ,LNF.NOTE_TEXT
11 ,LNF.AUTHOR
12 ,LNF.COLLECTION_NOTE_PK
13 ,FE.FATAL_ERRORS
14 ,ER.ERRORS
15 ,PF.PROCESS
16 FROM
17 PROCESS_FILE PF
18 ,SUBJECT_BASIC_DATA SBD
19 ,DATA_COLLECTION DC
20 ,V_LATEST_NOTE_FULL_CEN06 LNF
21 ,V_COMBINED_ERROR_COUNT_FATAL FE
22 ,V_COMBINED_ERROR_COUNT_QUERY ER
23 ,V_HIGHEST_PROCESS HP
24 WHERE
25 PF.DATA_COLLECTION_FK = DC.DATA_COLLECTION_PK
26 AND DC.DESCRIPTION IN ('Data Coll 1','Data Coll 2')
27 AND PF.ESTAB = SBD.ESTAB
28 AND PF.ESTAB = LNF.ESTAB_FK(+)
29 AND PF.DATA_COLLECTION_FK = LNF.DATA_COLLECTION_FK(+)
30 AND PF.PROCESS_FILE_PK = FE.PROCESS_FILE_FK(+)
31 AND PF.PROCESS_FILE_PK = ER.PROCESS_FILE_FK(+)
32 AND PF.FILENAME = HP.FILENAME
33 AND PF.PROCESS = HP.MAX_PROCESS;


my java code fails when I try to read the value of NOTE_TEXT(line 10). with the following error:

Exception in thread "main" java.sql.SQLException: Io exception: execution completed with warning
        at oracle.jdbc.dbaccess.DBError.throwSqlException(DBE rror.java:134)
        at oracle.jdbc.dbaccess.DBError.throwSqlException(DBE rror.java:179)
        at oracle.jdbc.dbaccess.DBError.throwSqlException(DBE rror.java:333)
        at oracle.jdbc.ttc7.LongTTCItem.getChars(LongTTCItem. java:200)
        at oracle.jdbc.dbaccess.DBDataSetImpl.getCharsStreamI tem(DBDataSetImpl.java:1630)
        at oracle.jdbc.driver.OracleStatement.getCharsInterna l(OracleStatement.java:3347)
        at oracle.jdbc.driver.OracleStatement.getStringValue( OracleStatement.java:3556)
        at oracle.jdbc.driver.OracleResultSetImpl.getString(O racleResultSetImpl.java:434)
        at oracle.jdbc.driver.OracleResultSet.getString(Oracl eResultSet.java:1482)

NOTE_TEXT is a LONG/CLOB field

However, when I remove references to the linked view V_HIGHEST_PROCESS (lines 23, 32, and 33), which are not related to the field NOTE_TEXT at all but are used to filter the results, the data can be retrieved with no problems

Does anyone know why this is occurring? Fearing it to be a fault in the Oracle JDBC drivers, I have tried putting my query into a view, but I get the same error.

Thanks in advance

holdmykidney





Similar Threads
Thread Thread Starter Forum Replies Last Post
Long Long int to bin walid C# 0 January 23rd, 2007 12:47 PM
[Oracle][ODBC][Ora][ORA-01013 Corey Access 1 December 15th, 2006 10:29 AM
Reading field of 'Long' datatype from binary file peri C# 0 January 2nd, 2005 08:50 AM
string to "long long" without using atoll sarraju C++ Programming 2 August 4th, 2004 07:19 AM
Modifying long text in a long field sajsal Classic ASP Databases 1 February 20th, 2004 12:36 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.