Hello Everyone,
I have been using H2 for 2 years and I am having problems with data loss.
Several times I receive the message that my database Schema in H2 (embedded) file had not been found.
My H2 file with 14MB bank becomes a 12KB file when my Schema "DATA_DB" is not found.
I'm sending *.trace file and the H2 file with 12KB after schema loss.
Bellow are my H2 flags and details to connect in my H2 file
Please help me.
try {
Class.forName("org.h2.Driver");
con = DriverManager.getConnection("jdbc:h2:C:/system/database";SCHEMA=DATA_DB;AUTO_SERVER=TRUE;DEFRAG_ALWAYS=TRUE;COMPRESS=TRUE;", "adm", "123");
} catch (Exception e) {
System.out.println(e.getMessage());
}
}