- database_name
- Name of the database to be modified.
- PERMANENT
- PERM
- A revised value for fixed space allocation for the specified database, in bytes.
- SPOOL
- The maximum number of bytes allowed for spool files in database_name.
- TEMPORARY
- Disk usage for a materialized global temporary table is charged to the temporary space allocation of the user who referenced the table. Temporary space is reserved before spool space for any user defined with this characteristic.
- bytes
- You can enter the number of bytes as an integer, decimal, or floating point value or as a constant expression whose evaluation determines the number of bytes. You can also enter the value using exponential notation. For example, you can write one thousand as either 1000 or 1E3.
- skew
- You can specify a skew limit percentage that allows the maximum AMP space usage to be above the per-AMP quota, that is, the system maximum space limit divided by the number of AMPs.
- DEFAULT
- This is set by the system.
- PERCENT
- Optional keyword that you can include for readability to indicate that the skew or DEFAULT keyword specifies a percentage of allowable skew.
- account_string
- The account to be charged for the space used by this database. If not specified, the account defaults to the default account of the immediate owner of the database.
DEFAULT MAP
You can specify an existing contiguous or sparse map as the default map for the database. You can also remove a default map that is defined for the database by setting the default map to null.
You must have been granted the specified map unless the map is the same as the default map of the database modifier.
- map_name
- Name of an existing contiguous or sparse map.
- OVERRIDE ON ERROR
- Use the default map if an error occurs when the MAP clause is specified for a CREATE TABLE or CREATE JOIN INDEX statement.
- OVERRIDE NOT ON ERROR
- Do not use the default map if an error occurs when the MAP clause is specified for a CREATE TABLE OR CREATE JOIN INDEX statement.
- NULL
- A default map is not associated with the database. You can specify NULL to remove the default map that is set for the database.
DEFAULT STORAGE
You can specify default storage and an override option for a user or database.
If you omit this clause, the user has no default storage or override option.
- NULL
- User has no default storage or override option.
- storage_name
- Name of user default storage. The storage_name must exist.
- OVERRIDE [NOT] ON ERROR
- Determines what happens when the user issues a CREATE TABLE statement with a STORAGE clause that causes an error.
- [NO] FALLBACK [PROTECTION]
- A new default for duplicate copy protection of each data table subsequently created in the database. The current fallback setting for existing data tables remains unchanged.
[ NO | DUAL ] [BEFORE] JOURNAL
A new default for the number of before change images to be maintained for data tables subsequently created in the database.
This option can appear twice in the same request: once to specify a BEFORE or AFTER image, and again to specify the alternate type. If only one type is specified, then the current default is modified only for that type.
Journal options are not supported for tables with row sizes greater than 64KB.
- NO
- Terminates any current journaling default.
- DUAL
- If the JOURNAL keyword is specified without NO or DUAL, single copy journaling is implied. If journaling is specified, a DUAL journal is maintained for data tables with FALLBACK protection.
- BEFORE
- The JOURNAL keyword without BEFORE or AFTER indicates that both types of images are to be maintained. The current default for either or both types is modified accordingly. For example, if only AFTER JOURNAL is specified, the current default for before change images remains in effect.
[ NO | DUAL | [NOT] LOCAL ] AFTER JOURNAL
The type of image to be maintained for the table. Any existing images are not affected until the table is updated.
- NO
- After-change images are not maintained for the table.
- DUAL
- Dual after-change images are maintained for the table.
- LOCAL
- Single after-image journal rows for non-fallback data tables are written on the same virtual AMP as the changed data rows.
- NOT LOCAL
- Single after-image journal rows for non-fallback data tables are written on another virtual AMP in the compute cluster.
DEFAULT JOURNAL TABLE
A redefinition for the current journal table.
Specifying this option does not change the status of existing data tables in the modified database.
- journal_table_name
- Name of the default journal table. The journal_table_name parameter is required if this clause is specified without the DROP keyword.
- database_name
- If a database name is not specified, then the database being modified is assumed.
- DROP DEFAULT JOURNAL TABLE
- The DROP keyword removes the default status of the journal table defined as the default for the database being modified. If the journal table resides in the database being modified, DROP also deletes the table from the system.
- [NO] AUTODBA [WITH CHECK]
- The AUTODBA option marks a database as having its owning objects eligible for automated tuning from system service. Adding the WITH CHECK sub-option requires end user approval of recommended tuning actions prior to applying them. The NO AUTODBA option explicitly a database's objects as ineligible for automated tuning.