| java.lang.Object org.h2.tools.Recover
Recover | public class Recover implements DataHandler(Code) | | 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.
|
allocateObjectId | public int allocateObjectId(boolean b, boolean c)(Code) | | INTERNAL
|
execute | public static void execute(String dir, String db) throws SQLException(Code) | | Dumps the database.
Parameters: dir - the directory Parameters: db - the database name (null for all databases) throws: SQLException - |
getChecksum | public int getChecksum(byte[] data, int start, int end)(Code) | | INTERNAL
|
getDatabasePath | public String getDatabasePath()(Code) | | INTERNAL
|
getLobCompressionAlgorithm | public String getLobCompressionAlgorithm(int type)(Code) | | INTERNAL
|
getLobFilesInDirectories | public boolean getLobFilesInDirectories()(Code) | | INTERNAL
|
getLobSyncObject | public Object getLobSyncObject()(Code) | | INTERNAL
|
getMaxLengthInplaceLob | public int getMaxLengthInplaceLob()(Code) | | INTERNAL
|
getTextStorage | public boolean getTextStorage()(Code) | | INTERNAL
|
handleInvalidChecksum | public void handleInvalidChecksum() throws SQLException(Code) | | INTERNAL
|
main | public static void main(String[] args) throws SQLException(Code) | | 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)
- -log {true|false} (log additional messages)
Parameters: args - the command line arguments throws: SQLException - |
|
|