Differences between revisions 4 and 5
Revision 4 as of 2010-03-29 10:21:41
Size: 1307
Comment:
Revision 5 as of 2010-08-16 10:24:36
Size: 1307
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

Verify that the database is empty

Use ssh to go the admin machine and into your installation directory (netarkivet.dk -> kb-test-adm-001, and /home/test/TESTX)

Check that no admin.data file exists (or at least has not been touched after install).

Check that a database directory, adminDB, exists.

Check the port number for the database by running the command:

  • > more conf/start_external_database.sh

It should give a line like:

  • java -cp $INSTALLDIR/lib/db/derby.jar:$INSTALLDIR/lib/db/derbynet.jar org.apache.derby.drda.NetworkServerControl -p 8139 start ...

The port in this case is 8139.

Log into the database and check the status (it is an external database, so the applications does not need to be shutdown before accessing the database).

  • > java -cp lib/db/derbyclient-10.4.2.0.jar:lib/db/derbytools-10.4.2.0.jar org.apache.derby.tools.ij

    > connect 'jdbc:derby://localhost:$PORT/adminDB'

Check the content of the different tables. The file table and the replicafileinfo table should be empty, whereas the replica table should contain the replicas:

  • > SELECT * FROM file;

...

0 rows selected

  • > SELECT * FROM replicafileinfo;

...

0 rows selected

  • > SELECT * FROM replica;

...

3 rows selected

  • > exit;

It42VerifyEmptyDatabase (last edited 2010-08-16 10:24:36 by localhost)