Examples of ALTER DATABASE
Usage
-
Adding a secondary file to the database.As soon as 30000 pages are filled in the previous primary or secondary file, the Firebird engine will start adding data to the secondary file
test4.fdb
.ALTER DATABASE ADD FILE 'D:\test4.fdb' STARTING AT PAGE 30001;
-
Specifying the path and name of the delta file:
ALTER DATABASE ADD DIFFERENCE FILE 'D:\test.diff';
-
Deleting the description of the delta file:
ALTER DATABASE DROP DIFFERENCE FILE;
-
Switching the database to the “copy-safe” mode:
ALTER DATABASE BEGIN BACKUP;
-
Switching the database back from the “copy-safe” mode to the normal operation mode:
ALTER DATABASE END BACKUP;
-
Changing the default character set for a database to
WIN1251
ALTER DATABASE SET DEFAULT CHARACTER SET WIN1252;
-
Setting a linger-delay of 30 seconds
ALTER DATABASE SET LINGER TO 30;
-
Encrypting the database with a plugin called
DbCrypt
ALTER DATABASE ENCRYPT WITH DbCrypt;
-
Decrypting the database
ALTER DATABASE DECRYPT;