Creating a Multifile Database

From InterBase
Jump to: navigation, search

Go Up to Using CREATE DATABASE


A multifile database consists of a primary file and one or more secondary files. You cannot specify what information goes into each secondary file because InterBase handles this automatically. Each secondary file is typically assigned to a different disk than that of the main database. In a multifile database, InterBase writes to the primary file until it has filled the specified number of pages, then proceeds to fill the next specified secondary file.

When you define a secondary file, you can choose to specify its size in database pages (LENGTH), or you can specify the initial page number of the following file (STARTING AT). InterBase always treats the final file of a multifile database as dynamically sizeable: it grows the last file as needed. Although specifying a LENGTH for the final file does not return an error, a LENGTH specification for the last–or only–file of a database is meaningless.

Important: Whenever possible, create the database locally. If the database is created locally, secondary file names can include a full file specification, including a host or node names as well as a path and database file name. If you create the database on a remote server, secondary file specifications cannot include a node name, and all secondary files must reside on the same node.