Chapter 15 DBMS-Specific Features


Teradata extended attributes

The following extended attributes are defined by default in the Teradata DBMS.

Columns

The following extended attributes are available on the Teradata tab:

Name Scripting Name Description
Case specific CaseSpecific Indicates that character column comparison uses character case (upper and lower) to raise differences.
Character set CharSet Character set (set of symbols and encodings.)
System generated only ExtGenAlways When set to true, identity column values are always system-generated; you cannot insert values into, nor update, an identity column defined as GENERATED ALWAYS.

When false, identity column values are system-generated as long as the user does not enter a non-null value.
Compressed values Compress Compresses specified values and nulls in one or more columns of a table to zero space. When the data in a column matches a value specified in the COMPRESS phrase, then that value is stored only once in the table header regardless of how many times it occurs as a field value for the column, thus saving disk storage space.

Attribute must be enclosed in parenthesis when it is composed of multiple values.

Databases

The following extended attributes are available on the Teradata tab:

Name Scripting Name Description
Account Account Account ID identifiers.
After journal AfterJournal Specifies the type of image to be maintained by default for data tables created in the new database.
Default journal table DefaultJournalTable Identifies the default table that is to receive the journal images of data tables created in the new database.
Fallback Fallback Specifies whether to create and store a duplicate copy of each table created in the new database.
Owner (User or Database) FromDatabaseName Name of the immediate owning user or database. The default

is the user name associated with the current session.
Journal Journal Specifies the number of before change images to be maintained by default for each data table created in the new database.
Permanent space PermanentSpace Specifies the number of bytes to be reserved for permanent storage of the new user database. The space is taken from unallocated space in the database of the immediate owner.
Spool space SpoolSpace Specifies the number of bytes (n) to be allocated for spool files. The default is the largest value that is not greater then the owner spool space, and that is a multiple of the number of AMPs on the system.
Temporary space TemporarySpace Allows you to define how much space (in bytes) is to be allocated for creating temporary tables by this user. Note that temporary space is reserved prior to spool space for any user defined with this characteristic.

Indexes

The following extended attributes are available on the Teradata tab:

Name Scripting Name Description
Retain row ID pointers for each logical row "all" keyword) AllIndex Specifies that a NUSI should retain row ID pointers for each logical row of a join index (as opposed to only the compressed physical rows).
Generate index name NamedIndex Specifies that the index will be generated with its name (as Teradata allows index with no name).
Row ordering OrderByColumnList Specifies the ordering of rows.
Primary index PrimaryIndex Indicates that the index is a primary index.

Tables

The following extended attributes are available on the Teradata tab:

Name Scripting Name Description
On commit action CommitRowAction Specifies the action to take with the contents of a global temporary table when a transaction ends.

DELETE ROWS clears the temporary table of all rows.

PRESERVE ROWS retains the rows in the table after the transaction is committed.
Type GlobalTemporary Specifies whether the table to be created is a global temporary table or a volatile table.

GLOBAL TEMPORARY specifies that a temporary table definition be created and stored in the data dictionary for future materialization. You can create global temporary tables by copying a table WITH NO DATA, but not by copying a table WITH DATA.

VOLATILE specifies that a volatile table be created, with its definition retained in memory only for the course of the session in which it is defined.
Duplicate row control SetOrMultiset Specifies duplicate row control.

If there are uniqueness constraints on any column or set of columns in the table definition, then the table cannot have duplicate rows even if it is declared as MULTISET.

Some client utilities have restrictions with respect to MULTISET tables.

Users (Database)

The following extended attributes are available on the Database tab:

Name Scripting Name Description
Account Account Account ID identifiers.
After journal AfterJournal Specifies the type of image to be maintained by default for data tables created in the new database.
Owner (User or Database) DBOwner Database (or User) that owns the current user.
Default journal table DefaultJournalTable Identifies the default table that is to receive the journal images of data tables created in the new database.
Fallback Fallback Specifies whether to create and store a duplicate copy of each table created in the new database.
Journal Journal Specifies the number of before change images to be maintained by default for each data table created in the new database.
Permanent space PermanentSpace Specifies the number of bytes to be reserved for permanent storage of the new user database. The space is taken from unallocated space in the database of the immediate owner.
Spool space SpoolSpace Specifies the number of bytes (n) to be allocated for spool files. The default is the largest value that is not greater then the owner spool space, and that is a multiple of the number of AMPs on the system.
Temporary space TemporarySpace Allows you to define how much space (in bytes) is to be allocated for creating temporary tables by this user. Note that temporary space is reserved prior to spool space for any user defined with this characteristic.

Users (Teradata)

The following extended attributes are available on the Teradata tab:

Name Scripting Name Description
Collation Collation Name of the collation to be used as the default for this user.
Default date format DateForm Default format for importing and exporting DATE values for the user.
Default character set DefaultCharacterSet Sets the user default for character data type.
Default database DefaultDatabase Default database name.
Default role DefaultRole Defines the default role for the user.
Profile Profile Assigns a profile to the user.
Startup string Startup Startup string.
Time zone TimeZone Defines the default time zone displacement for the user.

Views

The following extended attributes are available on the Teradata tab:

Name Scripting Name Description
Lock Type LockType The type of lock to be placed.
Locked Class LockedClass The type (class) of the object to be locked.
Locked object LockedObjt The name of the object to be locked.
Abort statement if lock failed NoWait Specifies that if the indicated lock cannot be obtained, the statement should be aborted.

 


Copyright (C) 2006. Sybase Inc. All rights reserved.