background image
<< derby.system.bootAll | Users and Passwords >>

derby.system.home

<< derby.system.bootAll | Users and Passwords >>
Derby Reference Manual
383
WARNING: The database is booted with derby.system.durability=test.
In this mode, it is possible that database may not be able
to recover, committed transactions may be lost, and the database
may be in an inconsistent state. Please use this mode only when
these consequences are acceptable.
A similar message will appear in the
derby.log
file if the database was booted with
derby.system.durability=test
at any time previously.
Once the database is booted with
derby.system.durability=test
, there are no
guarantees that the database is consistent.
Default
This property is ignored by default.
Supported values
The only supported value is
test
.
Example
derby.system.durability=test
Since this is a system property, you can set it in the
derby.properties
file or on the
command line of the JVM when starting the application.
You might enable this property when using Derby as a test database where consistency
or recoverability is not an issue.
Dynamic or static
This property is static; if you change it while Derby is running, the change does not take
effect until you reboot.
derby.system.home
Function
Specifies the Derby system directory, which is the directory that contains subdirectories
holding databases that you create and the text file derby.properties.
If the system directory that you specify with derby.system.home does not exist at startup,
Derby creates the directory automatically.
Default
Current directory (the value of the JVM system property user.dir).
If you do not explicitly set the derby.system.home property when starting Derby, the
default is the directory in which Derby was started.
Note: You should always explicitly set the value of derby.system.home.
Example
-Dderby.system.home=C:\derby
Dynamic or static
This property is static; if you change it while Derby is running, the change does not take
effect until you reboot.
derby.user.UserName
Function