If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > ORA-03115: unsupported network datatype or representation error

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-31-12, 15:33
unzip unzip is offline
Registered User
 
Join Date: May 2004
Posts: 14
ORA-03115: unsupported network datatype or representation error

Hi All,

I have following code in DAO layer
Code:
Connection conn = factory.createConnection();
String sql = "SELECT group_id FROM " + this.GROUP_TABLE + " WHERE disabled = 'T' AND UPPER(group_name) = ? AND agency_id = ?";
PreparedStatement pstmt = conn.prepareStatement(sql);
pstmt.setString(1, groupName.trim().toUpperCase());
pstmt.setInt(2, agencyId);
rs = pstmt.executeQuery(sql);
when I execute this code I am getting ORA-03115 error.

If I change sql statement to simple
HTML Code:
String sql = "SELECT group_id FROM " + this.GROUP_TABLE;
it works fine.

I am using
Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
PL/SQL Release 11.2.0.2.0 - Production
"CORE 11.2.0.2.0 Production"
TNS for Linux: Version 11.2.0.2.0 - Production
NLSRTL Version 11.2.0.2.0 - Production
Oracle Driver ojdbc6.jar and
jdk1.6.0_24

Last edited by unzip; 02-02-12 at 11:01.
Reply With Quote
  #2 (permalink)  
Old 02-02-12, 11:11
unzip unzip is offline
Registered User
 
Join Date: May 2004
Posts: 14
Solved with referring to post java.sql.SQLException: ORA-03115: unsupported network datatype or representation (JDBC forum at JavaRanch).

I was doing rs = pstmt.executeQuery(sql) instead of rs = pstmt.executeQuery();
Reply With Quote
Reply

Tags
jdk1.6.0_24, ojdbc6.jar, ora-03115, oracle 11g

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On