Return-Path: X-Original-To: apmail-db-derby-user-archive@www.apache.org Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 83DF391C4 for ; Fri, 27 Jan 2012 16:55:45 +0000 (UTC) Received: (qmail 53847 invoked by uid 500); 27 Jan 2012 16:55:45 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 53793 invoked by uid 500); 27 Jan 2012 16:55:44 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 53786 invoked by uid 99); 27 Jan 2012 16:55:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jan 2012 16:55:44 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [66.94.237.221] (HELO nm20.access.bullet.mail.mud.yahoo.com) (66.94.237.221) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 27 Jan 2012 16:55:34 +0000 Received: from [66.94.237.197] by nm20.access.bullet.mail.mud.yahoo.com with NNFMP; 27 Jan 2012 16:55:11 -0000 Received: from [66.94.237.98] by tm8.access.bullet.mail.mud.yahoo.com with NNFMP; 27 Jan 2012 16:55:11 -0000 Received: from [127.0.0.1] by omp1003.access.mail.mud.yahoo.com with NNFMP; 27 Jan 2012 16:55:11 -0000 X-Yahoo-Newman-Id: 756102.50497.bm@omp1003.access.mail.mud.yahoo.com Received: (qmail 70851 invoked from network); 27 Jan 2012 16:55:11 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=DKIM-Signature:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=htjQGjFi5wtfhZJK1tMy6Sl9ilrRDtpsUZsMSDh0QefYPnrhHLHakoRCKGNdwW2XzKYJ79oI+Of8VMGHR69gQF53ppsvAngHnNeTkUXaBhSDn5beKLRtJz+v71jGkGowEweybujVXZLWoGUOHJ1JOVicHf2LpYOFvHjB+BbY3TY= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1327683311; bh=f7DU2Q8I7DlGbL5dkSM8OPSMCXnerRefBB4IvVedpz8=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=yHc7KU8ry1krbzBMrMbl3opwX3Hz73bxhA2wUMW7bBFpy5cYH7tnB7hgf9UxRdQaHgQSY1QWmqPgNWRhzTI3I66fFOg3CFmSix8p0hlTyV9tJX6Z6FCWhBehG8aE5uHP9js2hpnRNresCCGNdkzm0RRB5SFg+UreXORvfYy4nPA= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: CKXsj_EVM1mc4EQ_84qp_3OBj7kqptFEwYazpveDL.2YsAd u9eyTKemXg14mJnC.GCahqLqmu0YPcf.dxufxgnhcVtH_ajxMviDn0pbPciU OSrAWEpmCdx4ro5j6QTICtw1tcn7pp60X8u6LWE_bemgXxI7JMXKcVNaQYKH bBKlP3cF8thPqhcmW_bdMgSKQM5HMQi7V5_0ZNxBNs85Xd1MhJ4mnBqu_bTD syimbRAEhusvPsDDJ1QqniZ3ue7jDQZesLXGZ1K79HFStUpoWXq7oNtIwV_m rQ8yLDMeqO0m5nXyZ6hFuHVZM5tnkqpUtKPzVYs9cyda.ZAKd.LZx.v9P5q8 S.998ZaG4q8Wd8s5VtE9ZN6J2.5ilJxRfc0bv0ACDljJLfao81vB0OHgi7NR e1SmNyRQe3EAa6YLnfXRPJ4wbkZsGT15XD.XfLRV2UPpzgc7ZxQ-- X-Yahoo-SMTP: fBd8VESswBBwVkX.d9lIdXduzED_6kJxUAzIjM21tL._95FbORG0yg-- Received: from [192.168.0.7] (kmarsdenderby@99.159.45.65 with plain) by smtp106.sbc.mail.mud.yahoo.com with SMTP; 27 Jan 2012 08:55:11 -0800 PST Message-ID: <4F22D6E3.8010203@sbcglobal.net> Date: Fri, 27 Jan 2012 08:54:59 -0800 From: Katherine Marsden User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: derby-user@db.apache.org Subject: Re: corrupt database References: <33198924.post@talk.nabble.com> <33214528.post@talk.nabble.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 1/27/2012 8:48 AM, Dag H. Wanvik wrote: > Mojo Nixon writes: > >> I am no derby expert, but I have done the following before, with good >> results. Make a backup copy of all the database files, in case it doesn't >> work. Then delete the files in the log directory and try to boot the >> database. You might lose some transactions, but should be able to open the >> database again. > If you do this there is no guarantee the database is in a transactionally > consistent state: some transactions may be half persisted, so do this at > your own risk, and vet the data after. > The only times I have ever done this I have only done so to salvage data and create a new database using dblook and import/export or something like Ddlutils. Then throw the one intentionally corrupted by deleting the log files away. Don't use that one in production as you could end up with things like partial large objects etc that are not caught on a consistency check, but show up during usage.