简体   繁体   中英

How to insert a large xml in a Oracle table CLOB using log4j.xml

I want to log an xml/text > 3999 chars in a Oracle table CLOB using log4j.xml. Insert query does not work and it says "String too long". I also tried using a procedure, it works fine in Oracle but I donot know how to execute that Procedure from Log4j.xml.

Any idea?

You may consider to write your own appender that will call the procedure if the built in jdbc appender doesn't suit your needs. Its fairly easy. See an example here: http://javaworld.com/javaworld/jw-12-2004/jw-1220-toolbox.html

Hope this helps

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM