<< ibec_CreateDatabase | IBEBlock | ibec_ShutdownDatabase >>

ibec_OnlineDatabase

Syntax

 function ibec_OnlineDatabase(Database : string; Options : string) : variant;

ibec_OnlineDatabase brings the database specified by the Database parameter online using the Firebird Services API.

The Options variable specifies additional connect and online mode parameters:

Connection options

User=<user_name>User name
Password=<password>Password
ClientLib=<path>Path to the client library file

Online mode option

Support of online/shutdown modes (Firebird 2.5 and above) was added in IBExpert version 2014.01.01.

Mode=<mode>Online mode. Possible values are Normal, Multi and Single. If Mode is not specified Normal will be used by default. This option is available for Firebird 2.5 and above.

ibec_OnlineDatabase returns NULL in case of success. Otherwise it returns an error message.

Examples

1. Bring a database online in normal mode

    Res = ibec_OnlineDatabase('localhost:d:\data\mydb.fdb',
                            'ClientLib="d:\FBlientLibs\fbclient25.dll";
                             User=SYSDBA; Password=masterkey');

2. Bring a database online in single-user mode

    Res = ibec_OnlineDatabase('localhost:d:\data\mydb.fdb',
                            'ClientLib="d:\FBlientLibs\fbclient25.dll";
                             User=SYSDBA; Password=masterkey; Mode=Single');