i couldn’t get you exactly. After step 1 we need to close the program 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: > > sureshneadaraj <[email protected]> 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 > > -- View this message in context: http://www.nabble.com/Hai-to-All---need-a-help-tp23211230p23291404.html Sent from the Apache Derby Users mailing list archive at Nabble.com.
