Next, you can create DBEFiles of three different types-- TABLE, INDEX, and
MIXED. In most cases, it is wise to prepare separate DBEFiles for table data and for indexes, so you will create two DBEFiles--AlbumTables and AlbumIndex. (In a later step, you will associate these DBEFiles with the DBEFileSet ALBUMFS.)
First, type the following statement:
isql=> CREATE DBEFILE AlbumTables Return
> WITH PAGES=50, Return
> NAME='ALBUMD1', TYPE=TABLE; Return
|
This statement creates a new DBEFile known internally to ALLBASE/SQL as
AlbumTables and to the operating system as ALBUMD1. The file contains fifty 4096-byte pages, and is available for storage of table data only.
Now issue the next statement:
isql=> CREATE DBEFILE AlbumIndex Return
> WITH PAGES=30, Return
> NAME='ALBUMI1', TYPE=INDEX; Return
|
This statement creates a new DBEFile known internally to ALLBASE/SQL as
AlbumIndex and to the operating system as ALBUMI1. This file contains thirty 4096-byte pages, and is available for storage of indexes only.