Recover

Dumps the contents of a database file to a human readable text file. This text file can be used to recover most of the data. This tool does not open the database and can be used even if the database files are corrupted. A database can get corrupted if there is a bug in the database engine or file system software, or if an application writes into the database file that doesn't understand the the file format, or if there is a hardware problem.

Methods
static void execute(String dir, String db)
Dumps the database.
static void main(String[] args)
The command line interface for this tool.
void run(String[] args)

static void execute(String dir, String db) throws SQLException

Dumps the database.

Parameters:
dir - the directory
db - the database name (null for all databases)
Throws:
SQLException

static void main(String[] args) throws SQLException

The command line interface for this tool. The options must be split into strings like this: "-db", "test",... Options are case sensitive. The following options are supported:
  • -help or -? (print the list of options)
  • -dir database directory (the default is the current directory)
  • -db database name (all databases if no name is specified)
  • -trace (print additional trace information while processing)


Parameters:
args - the command line arguments
Throws:
SQLException

void run(String[] args) throws SQLException