Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 26706 invoked from network); 21 May 2006 08:55:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 May 2006 08:55:58 -0000 Received: (qmail 58889 invoked by uid 500); 21 May 2006 08:55:57 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 58856 invoked by uid 500); 21 May 2006 08:55:57 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 58845 invoked by uid 99); 21 May 2006 08:55:56 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 May 2006 01:55:56 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of sgfan@gmx.net designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 21 May 2006 01:55:56 -0700 Received: (qmail invoked by alias); 21 May 2006 08:55:33 -0000 Received: from brln-d9bac638.pool.mediaWays.net (EHLO [127.0.0.1]) [217.186.198.56] by mail.gmx.net (mp032) with SMTP; 21 May 2006 10:55:33 +0200 X-Authenticated: #2828799 Message-ID: <44702B16.2050705@gmx.net> Date: Sun, 21 May 2006 10:55:50 +0200 From: Wizard of OS User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: Apache Torque Users List Subject: Re: Torque/Oracle 10 Incrementation problem References: <445F65A1.1090407@gmx.net> <20060521005231.F19847@minotaur.apache.org> In-Reply-To: <20060521005231.F19847@minotaur.apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thomas Fischer wrote: > Hi, > > I'm not sure whether this is possible with the current implementation > of the Id generation, which uses two steps. In the first step, Torque > gets the id out of the id table (id method idbroker) or sequence (id > method native) and in the second step, the insert is done. The only > possibility I'd see is to use a rollback to restore the state of the > database before the error. I guess this is not possible ussing the id > broker, for as far as I know, it uses a separate db connection and > thus runs in another transaction as the insert. I'm not so sure about > sequences, but as you said it would jump ids,it seems that sequences > live outside transactiond and thus never get restored to their > previous value if a rollback is issued. > > I'm afraid I do not know an easy way to achieve what you want. > > Thomas > Hi Thomas, first of all, please do *not* send HTML encoded mail to mailinglists nor to others at all, they are a plague. I already realized what you have described. I made direct SQL commit and oracle incremented the sequence anyway. A transaction w/ rollback didn't work also. I think that the sequence concept in Oracle is diffent to regular autoincrement. thx anyway PS: idbroker fails too --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org