Return-Path: Delivered-To: apmail-incubator-ibatis-user-java-archive@www.apache.org Received: (qmail 59859 invoked from network); 28 Apr 2005 15:34:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Apr 2005 15:34:33 -0000 Received: (qmail 77801 invoked by uid 500); 28 Apr 2005 15:35:32 -0000 Delivered-To: apmail-incubator-ibatis-user-java-archive@incubator.apache.org Received: (qmail 77754 invoked by uid 500); 28 Apr 2005 15:35:32 -0000 Mailing-List: contact ibatis-user-java-help@incubator.apache.org; run by ezmlm Precedence: bulk Reply-To: ibatis-user-java@incubator.apache.org List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list ibatis-user-java@incubator.apache.org Received: (qmail 77718 invoked by uid 99); 28 Apr 2005 15:35:31 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of gcjiu-ibatis-user-java@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 28 Apr 2005 08:35:31 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DRAvn-0004oi-MW for ibatis-user-java@incubator.apache.org; Thu, 28 Apr 2005 17:27:59 +0200 Received: from 200-44-192-124.genericrev.cantv.net ([200-44-192-124.genericrev.cantv.net]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Apr 2005 17:27:59 +0200 Received: from fleona by 200-44-192-124.genericrev.cantv.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 28 Apr 2005 17:27:59 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: ibatis-user-java@incubator.apache.org From: Francisco Leon Subject: Re: CLOBs with Oracle 9i Date: Thu, 28 Apr 2005 15:26:27 +0000 (UTC) Lines: 28 Message-ID: References: <20050428044613.88996.qmail@web20821.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 200.44.192.124 (Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/412 (KHTML, like Gecko) Safari/412) Sender: news X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > As Richard has already said, the 10g drivers should > work. If that is not possible or practical in your > environment, however, there is a way to create a > TypeHandler implementation that handles Oracle clobs > using the 9i thin driver and which doesn't suffer from > the 4000 character limit issue. The caveat is that > you need to be using iBatis in conjunction with the > Spring framework and also need to be running the > queries inside transactions (which is simple if you're > using Spring anyway). I am using the ojdbc14.jar but connecting with a "jdbc:oracle:thin...." url because i was told that connecting this way doesn't require any additional oracle software. I have a table with an attribute that uses a CLOB. I need to be able to insert it (i am using transactions there), query it, search it, etc. Using spring is really not an option. The application already runs fine on postgresql. The oracle 9i docs say varchar2 is limited to 4000 bytes, it doesn't say anything about a jdbc bug (ok, i don't think they would say it's a bug anyway) If i can get the same functionality with just replacing ojdbc14.jar with the oracle 10g version i guess that's my answer, i will try it. If there's any other info you need to help me please let me know. Thanks