background image
<< stopMaster=true attribute | traceDirectory=path attribute >>

territory=ll_CC attribute

<< stopMaster=true attribute | traceDirectory=path attribute >>
Derby Reference Manual
348
You can specify this connection URL attribute only if the network connection between
the master and slave systems is down. If the network connection is working, the
slave system accepts commands only from the master, so you must specify the
stopMaster=true
attribute on the master system to stop replication on both the master
and slave systems.
When this attribute is specified, or when a stop-slave message is sent as part of the
execution of the stopMaster=true attribute, all transaction log chunks that have been
received from the master are written to disk. Both the slave replication functionality and
the database are then shut down.
The Derby instance where this attribute is specified must be serving the specified
database in replication slave mode.
For more information, see the topics under "Replicating databases" in the Derby Server
and Administration Guide
.
Combining with other attributes
You must specify a database name in the connection URL, either in the subprotocol or by
using the
databaseName=nameofDatabase
attribute.
If authentication is turned on, you must also specify this attribute in conjunction with the
user=userName
and
password=userPassword
attributes. Authorization for the master
database cannot be checked when the network connection is down, so the requirement
that the user must be the database owner is not enforced.
You may not specify this attribute in conjunction with any attributes not mentioned in this
section.
Examples
-- stop slave from master using database name in subprotocol,
-- authorization
jdbc:derby:myDB;stopSlave=true;user=mary;password=little88lamb
-- stop slave using databaseName attribute, no security
jdbc:derby:;databaseName=myDB;stopSlave=true;
territory=ll_CC attribute
Function
When creating or upgrading a database, use this attribute to associate a non-default
territory with the database. Setting the territory attribute overrides the default
system territory for that database. The default system territory is found using
java.util.Locale.getDefault().
Specify a territory in the form ll_CC, where ll is the two-letter language code, and CC is
the two-letter country code.
Language codes consist of a pair of lowercase letters that conform to ISO-639. The
following table shows some examples.
Table 129.
Sample language codes
Language Code
Description
de
German
en
English
es
Spanish