Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 39776 invoked from network); 29 Apr 2009 06:40:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Apr 2009 06:40:59 -0000 Received: (qmail 48002 invoked by uid 500); 29 Apr 2009 06:40:58 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 47914 invoked by uid 500); 29 Apr 2009 06:40:58 -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 47894 invoked by uid 99); 29 Apr 2009 06:40:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Apr 2009 06:40:57 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Apr 2009 06:40:48 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Lz3T1-0002LJ-8W for derby-user@db.apache.org; Tue, 28 Apr 2009 23:40:27 -0700 Message-ID: <23291404.post@talk.nabble.com> Date: Tue, 28 Apr 2009 23:40:27 -0700 (PDT) From: sureshnadaraj To: derby-user@db.apache.org Subject: Re: Hai to All - need a help In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: sureshnadarajan@gmail.com References: <23211230.post@talk.nabble.com> <23263929.post@talk.nabble.com> <23269747.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org i couldn=E2=80=99t get you exactly. After step 1 we need to close the progr= am coz derby is in embedded mode, and database also will be closed right? Please give me one example program to perform this via java code. Sorry to disturb you much. Thanks in advance Regards, Suresh N Knut Anders Hatlen wrote: >=20 > sureshneadaraj writes: >=20 >> I tried with replication feature in derby 10.4.2.0=20 >> >> 1.I have freezed the DB=20 >> >> 2.copied the Database to new location.=20 >> >> 3.Started the slave mode by :=20 >> public String url =3D >> "jdbc:derby:APPSYS_DATA;startSlave=3Dtrue;slaveHost=3Dlocalhost";=20 >> Class.forName("org.apache.derby.jdbc.EmbeddedDriver");=20 >> con =3D DriverManager.getConnection(url, "sssv", "s123456")= ;=20 >> >> 4.And started the server by:=20 >> public String url =3D >> "jdbc:derby:APPSYS_DATA;startMaster=3Dtrue;slaveHost=3Dlocalhost";=20 >> Class.forName("org.apache.derby.jdbc.EmbeddedDriver");=20 >> con =3D DriverManager.getConnection(url, "sssv", "s123456");=20 >> >> I have done the aove properly. but i am geting the error. >=20 > Hi, >=20 > Did you by any chance unfreeze the database and/or stop the original > database before performing step 4? Step 4 must be performed while the > database is frozen and in the same process as the frozen database. >=20 > --=20 > Knut Anders >=20 >=20 --=20 View this message in context: http://www.nabble.com/Hai-to-All---need-a-hel= p-tp23211230p23291404.html Sent from the Apache Derby Users mailing list archive at Nabble.com.