-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: help me,a strange question
PostPosted: Wed Feb 18, 2004 9:57 pm 
Newbie

Joined: Mon Oct 13, 2003 1:38 am
Posts: 3
i want to insert a clob type field into database,
and i have read the article"Using Clobs with Oracle and Hibernate 1.2";
and use the solution "mapping clob to string".
when i insert data to database,it's a error. the following is the error:
java.sql.SQLException: Io 异常: End of TNS data channel

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)

at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2150)

at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2015)

at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2877)

at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:608)

at net.sf.hibernate.impl.NonBatchingBatcher.addToBatch(NonBatchingBatcher.java:22)

at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:514)

... 50 more

please help me.


Top
 Profile  
 
 Post subject: Re: help me,a strange question
PostPosted: Wed Feb 18, 2004 9:59 pm 
Newbie

Joined: Mon Oct 13, 2003 1:38 am
Posts: 3
laidh wrote:
i want to insert a clob type field into database,
and i have read the article"Using Clobs with Oracle and Hibernate 1.2";
and use the solution "mapping clob to string".
when i insert data to database,it's a error. the following is the error:
java.sql.SQLException: Io exception: End of TNS data channel

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:334)

at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2150)

at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2015)

at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2877)

at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:608)

at net.sf.hibernate.impl.NonBatchingBatcher.addToBatch(NonBatchingBatcher.java:22)

at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:514)

... 50 more

please help me.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 20, 2004 3:21 am 
Newbie

Joined: Mon Oct 13, 2003 1:38 am
Posts: 3
i knew the question,when i inset data less than 4K,it is no problem,but when the data is large then 4K,has the question.
i change the mapping file,and use the text type,but the question still exist.
why?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 20, 2004 7:01 am 
Beginner
Beginner

Joined: Thu Jan 01, 2004 11:36 am
Posts: 23
Location: Belgium
I have no experience with inserting clobs via hibernate, but as you mention the 4K issue, I think a varchar2 column in Oracle is limited to 4000 characters.

Hope this might give a clue.

Jan


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.