MySQL Forums
Forum List  »  Oracle

how to store clob data from oracle to mysql
Posted by: seetharamakrishna kurra
Date: April 25, 2006 10:52PM

Hello Mysql People,
I had used Mysql Migration Tool to transfer data from oracle to mysql.
The problem is the data in clob is storing as long Text in mysql.
When i excute my code in Tomcat Server I am getting the following error.


*********************************************************************************
java.sql.SQLException: Can not issue data manipulation statements with executeQuery()
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1578)
at com.stivant.esp.ruleengine.webpms.DBRuleSetPM.addRuleSet(Unknown Source)
at com.stivant.esp.ruleengine.servlet.util.sessionclient.RuleSetSessionClient.addRuleSet(Unknown Source)
at com.stivant.esp.ruleengine.servlet.util.rule.RuleSetManager.addRuleSet(Unknown Source)
at com.stivant.esp.ruleengine.servlet.RuleSetManagerServlet.processRequest(Unknown Source)
at com.stivant.esp.ruleengine.servlet.RuleSetManagerServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:595)
*******************************************************************************8



I think the problem is occuring due to convertion of CLOB into longText. Can u guys suggest how to store CLOB data into mysql so that I dont have to change my code.


regards,
Krish

Options: ReplyQuote


Subject
Views
Written By
Posted
how to store clob data from oracle to mysql
12179
April 25, 2006 10:52PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.