background image
<< derby.connection.requireAuthentication | derby.database.forceDatabaseLock >>

derby.database.defaultConnectionMode

<< derby.connection.requireAuthentication | derby.database.forceDatabaseLock >>
Derby Reference Manual
363
For more information, see the section "Loading classes from a database" in the Derby
Developer's Guide
. For reference information on system procedures for storing jar files in
a database, see "
System procedures for storing jar files in a database
."
Syntax
-- database-level property
CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(
'derby.database.classpath',
'colonSeparatedJarFiles')
Example
-- database-level property
CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(
'derby.database.classpath',
'APP.ToursLogic:APP.ACCOUNTINGLOGIC')
Dynamic or static
Dynamic; the change takes effect immediately. For information about dynamic changes
to properties, see
Dynamic and static properties
.
derby.database.defaultConnectionMode
Function
One of the user authorization properties.
Defines the default connection mode for users of the database or system for which this
property is set. The possible values (which are case-insensitive) are:
· noAccess
Disallows connections.
· readOnlyAccess
Grants read-only connections.
· fullAccess
Grants full access.
If the property is set to an invalid value, an exception is raised.
Note: It is possible to configure a database so that it cannot be changed (or even
accessed) using this property. If you set this property to noAccess or readOnlyAccess,
be sure to allow at least one user full access. See
derby.database.fullAccessUsers
and
derby.database.readOnlyAccessUsers
.
For more information about user authorization, see "User Authorization" in the Derby
Developer's Guide
.
Syntax
CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(
'derby.database.defaultConnectionMode',
'{ noAccess | readOnlyAccess | fullAccess}')
Example
-- database-wide property
CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(
'derby.database.defaultConnectionMode', 'noAccess')
-- system-wide property
derby.database.defaultConnectionMode=noAccess
Default