Setting Database Properties Using the Services API
Go Up to Invoking Service Tasks with isc_service_start( )
You can configure the properties of local or remote databases using the cluster identifier isc_action_svc_properties
. This functionality corresponds to several of the options of the gfix
command-line utility.
The following table lists arguments to isc_action_svc_properties
:
Argument | Purpose | Argument length | Argument value |
---|---|---|---|
|
Path of the primary file of the database, from the server’s point of view |
2 bytes + string |
String |
|
Set the default number of cache buffers to the specified number; corresponds to |
4 bytes |
Unsigned long |
|
Set the SQL dialect in the database header page to the specified number (1 or 3) |
4 bytes |
Unsigned long |
|
Set the sweep interval to the specified number; specify zero to disable sweeping; corresponds to |
4 bytes |
Unsigned long |
|
Shuts down the database when:
Corresponds to |
4 bytes |
Unsigned long |
|
Shuts down the database if there are no active transactions at the end of the timeout period you specify; deny new transactions during this timeout period; fail if there are active transactions at the end of the timeout period; corresponds to |
4 bytes |
Unsigned long |
|
Shuts down the database if there are no active transactions at the end of the timeout period you specify; deny new database attachments during this timeout period; fail if there are active database attachments at the end of the timeout period; corresponds to |
4 bytes |
Unsigned long |
|
Configure the database to fill data pages when inserting new records, or reserve space on each page for later record deltas; the next byte must be one of:
Corresponds to |
1 byte |
Byte |
|
Set the write mode for the database; the next byte must be one of:
Corresponds to |
1 byte |
Byte |
|
Set the access mode of the database; the next byte must be one of:
Corresponds to |
1 byte |
Byte |
|
Set the SQL dialect for the database; value must be either 1 or 3 |
4 bytes |
Unsigned long |
|
The following value is a bitmask of |
4 bytes |
Bitmask |
|
Activate shadow file for use as a database; corresponds to |
— |
Bit |
|
Bring a shutdown database back online; corresponds to |
— |
Bit |