Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-03115: unsupported network datatype or representation error

884364Feb 2 2012 — edited Feb 2 2012
Hi All,

I have following code in DAO layer
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]String sql = "SELECT group_id FROM " + this.GROUP_TABLE;[HTML]
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 1 2012
Added on Feb 2 2012
2 comments
4,497 views