Additionally! I am just trying the option to restore and backup from
a script but we don't always keep the lobs.db files folder (probably
should, but only one table uses a blob and once it has been processed
we don't care about it) so when I try and run the equivalent of:
java org.h2.tools.Script -url jdbc:h2:~/test -user sa -script test.zip
-options compression zip
I get a missing lobs exception :
Exception in thread "main" org.h2.jdbc.JdbcSQLException: File not
found: "C:\gemini\h2\demo-database.lobs.db\1.t33.lob.db"; SQL
statement:
SCRIPT TO 'backup.zip' compression zip [90124-141]
at
org.h2.message.DbException.getJdbcSQLException(DbException.java:327)
at org.h2.message.DbException.get(DbException.java:167)
at org.h2.message.DbException.get(DbException.java:144)
at org.h2.engine.Database.openFile(Database.java:443)
at org.h2.value.ValueLob.getInputStream(ValueLob.java:610)
at
org.h2.command.dml.ScriptCommand.writeLobStream(ScriptCommand.java:
350)
at org.h2.command.dml.ScriptCommand.query(ScriptCommand.java:
264)
at org.h2.command.CommandContainer.query(CommandContainer.java:
80)
at org.h2.command.Command.executeQuery(Command.java:132)
at
org.h2.jdbc.JdbcStatement.executeInternal(JdbcStatement.java:172)
at org.h2.jdbc.JdbcStatement.execute(JdbcStatement.java:151)
at org.h2.tools.Script.processScript(Script.java:112)
at org.h2.tools.Script.runTool(Script.java:98)
at org.h2.tools.Script.main(Script.java:50)
I can't delete the problem table rows either for the same reason.
Can I run backup scripts on each table seperately somehow and exclude
my "problem" table?
Cheers
Mat