The Sybase IQ architecture influences guidelines for data storage.
The IQ_SYSTEM_MAIN dbspace holds all of the database metadata other than IQ table metadata. IQ table metadata is stored in the table's dbspace and the table version (TLV) log. If a node is down, the multiplex must store versions to synchronize them when the node comes back up. These versions may use large amounts of space.
Approximately 20 percent of the IQ_SYSTEM_MAIN dbspace is now used for pre-allocated free list space and not available for user data.
Because this version of Sybase IQ performs more operations in parallel, it uses more temporary space than earlier versions.
Versioning – the volume of versions maintained varies.
Nature of data and indexes.
Dynamic nature of the data – the capacity to load more data at any time.
While Sybase can offer general guidelines, the combination of these factors makes each database’s requirements unique. For a development or report server with a total size under 500GB, an IQ_SYSTEM_MAIN file of 10 to 20GB may suffice.
Task |
Guideline |
Notes |
---|---|---|
Loading empty schema from iqunload -n output or for a small test database |
10GB main, 5GB temporary |
CREATE DATABASE sizes are in MB. The server must be at 12.7 ESD #5 or higher to use iqunload -n. |
Creating new production database |
|
Omit ms_size if specifying a raw device. Always set the main reserve to 20 percent of IQ_SYSTEM_MAIN size. To set the main reserve, use the database option MAIN_RESERVED_DBSPACE_MB. |
Creating main store for a multiplex |
Double the space recommended for a simplex database, or at least 200GB main and 200GB reserve dbspace. |
In CREATE DATABASE syntax, default size units are in MB, not GB.
CREATE DATABASE 'test.db' IQ PATH 'test.iq' IQ SIZE 100000 IQ RESERVE 100000 TEMPORARY PATH 'test.iqtmp' TEMPORARY SIZE 5000
MAIN_RESERVED_DBSPACE_MB lets you control the amount of space Sybase IQ sets aside in your IQ main store for certain small but critical data structures used during release savepoint, commit, and checkpoint operations.
SET OPTION PUBLIC.MAIN_RESERVED_DBSPACE_MB = 20000
You can specify the IQ_SYSTEM_MAIN size in the database migration command.
The -ms_size parameter requires a value in MB, not GB. Omit -ms_size if specifying a raw device. For a raw device, you must specify an unused raw partition. For more about migration, see the Installation and Configuration Guide.
iqunload -au -ms_filename /dev/rdsk/c1t0d1 -c "UID=DBA;PWD=SQL;DBF=latest.db"
iqunload -au -ms_filename \\\\.\\PhysicalDrive1 -c "UID=DBA;PWD=SQL;DBF=latest.db"