| To: | Abdul Habra <ahabra@xxxxxxxxx> |
|---|---|
| Subject: | Re: [cinjug-users] Returning 4K+ from a Java Stored Procedure |
| From: | Creighton Kirkendall <ckirkendall@xxxxxxxxxxxxxx> |
| Date: | Fri, 23 Sep 2005 14:40:29 -0400 |
| Cc: | users@xxxxxxxxxx |
| Delivered-to: | mailing list users@cinjug.org |
| In-reply-to: | <20050923161304.56517.qmail@web30507.mail.mud.yahoo.com> |
| Mailing-list: | contact users-help@cinjug.org; run by ezmlm |
| References: | <20050923161304.56517.qmail@web30507.mail.mud.yahoo.com> |
|
Yes, I tried that but I still get the same error. I not sure where to go from here. Here is the code in question: JAVA: public static CLOB getSqlStats(String SQL, String columns){ Statement st=null; ResultSet rs=null; try { columns=columns.toUpperCase(); Connection conn = DriverManager.getConnection("jdbc:default:connection:"); st=conn.createStatement(); rs=st.executeQuery(SQL); String xml=columnCountStats(rs, split(columns,",")); rs.close(); st.close(); rs=null; st=null; CLOB lob=new CLOB((OracleConnection)conn, xml.getBytes()); return lob; }catch(Exception e){ e.printStackTrace(); return null; }finally{ if(rs!=null){ try{rs.close();}catch(Exception s){}} if(st!=null){ try{st.close();}catch(Exception s){}} } } PLSQL: CREATE OR REPLACE FUNCTION HOBSQLSTATS (SQL1 VARCHAR2, COLUMN1 VARCHAR2) RETURN CLOB AUTHID CURRENT_USER AS LANGUAGE JAVA NAME 'com.hobsons.reporting.util.ResultSetStats.getSqlStats(java.lang.String, java.lang.String) return oracle.sql.CLOB'; Creighton On Fri, 2005-09-23 at 12:13, Abdul Habra wrote: Did you consider using a CLOB type? |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [cinjug-users] Returning 4K+ from a Java Stored Procedure, Abdul Habra |
|---|---|
| Next by Date: | Re: [cinjug-users] Returning 4K+ from a Java Stored Procedure, Eric Bardes |
| Previous by Thread: | Re: [cinjug-users] Returning 4K+ from a Java Stored Procedure, Abdul Habra |
| Next by Thread: | Re: [cinjug-users] Returning 4K+ from a Java Stored Procedure, Eric Bardes |
| Indexes: | [Date] [Thread] [Top] [All Lists] |