db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Knut Anders Hatlen <Knut.Hat...@Sun.COM>
Subject Re: Hai to All - need a help
Date Tue, 28 Apr 2009 20:53:20 GMT
sureshnadaraj <sureshnadarajan@gmail.com> writes:

> I tried with replication feature in derby 10.4.2.0 
>
> 1.I have freezed the DB 
>
> 2.copied the Database to new location. 
>
> 3.Started the slave mode by : 
> public  String url =
> "jdbc:derby:APPSYS_DATA;startSlave=true;slaveHost=localhost"; 
> Class.forName("org.apache.derby.jdbc.EmbeddedDriver"); 
>              con = DriverManager.getConnection(url, "sssv", "s123456"); 
>
> 4.And started the server by: 
>  public  String url =
> "jdbc:derby:APPSYS_DATA;startMaster=true;slaveHost=localhost"; 
> Class.forName("org.apache.derby.jdbc.EmbeddedDriver"); 
> con = DriverManager.getConnection(url, "sssv", "s123456"); 
>
> I have done the aove properly. but i am geting the error.

Hi,

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.

-- 
Knut Anders

Mime
View raw message