BMC Remedy ARS Database Reference 700
BMC Remedy ARS Database Reference 700
BMC Remedy ARS Database Reference 700
Database Reference
May 2006
Part No: 58473
Contacting Us
If you need technical support for this product, contact Customer Support by email at support@remedy.com.
If you have comments or suggestions about this documentation, contact Information Development by
email at doc_feedback@bmc.com.
This edition applies to version 7.0 of the licensed program.
Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
AR System documents . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Learn about the AR System Developer Community . . . . . . . . . . . . 10
Why should you participate in the Developer Community? . . . . . . . . 10
How do you access the Developer Community? . . . . . . . . . . . . . 10
Chapter 1
Contents 3
Chapter 2
50
Informix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
4 Contents
Database Reference
Oracle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Sybase and Microsoft SQL Server . . . . . . . . . . . . . . . . . . . . 106
Appendix A
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Contents 5
6 Contents
Preface
Important: The compatibility information listed in the product
documentation is subject to change. See the compatibility matrix at
http://supportweb.remedy.com for the latest, most complete
information about what is officially supported.
Audience
This guide is written for database administrators who are responsible for
overseeing the interaction between the BMC Remedy Action Request
System (AR System) and specific databases. This guide is also intended to
provide information for AR System administrators who are responsible for
defining and changing the structure of AR System forms.
This guide assumes knowledge of database administration and familiarity
with the operating system platform you are using. You should be familiar
with BMC Remedy Administrator before you begin.
Preface 7
AR System documents
The following table lists documentation available for AR System products.
Unless otherwise noted, online documentation in Adobe Acrobat (PDF)
format is available on AR System product installation CDs, on the Customer
Support site (supportweb.remedy.com), or both.
You can access product Help through each products Help menu or by
clicking on Help links.
Title
Description
Concepts
Installing
Getting Started
Introduces topics that are usually only learned when first Everyone
starting to use the system, including logging in, searching
for objects, and so on.
Workflow Objects
Developers
Configuring
Administrators
Optimizing and
Troubleshooting
8 Preface
Audience
Administrators
Administrators
/Developers
Database Reference
Title
Description
Audience
Database Reference
C API Reference
Administrators
/Programmers
Administrators
/Programmers
Java API *
Administrators
/Programmers
Administrators
Error Messages
Administrators
/Programmers
Master Index
Everyone
Release Notes
Everyone
Everyone
Administrators
Administrators
Everyone
*.
A JAR file containing the Java API documentation is installed with the AR System server.
Typically, it is stored in C:\Program Files\AR System\Arserver\Api\doc\ardoc70.jar on
Windows and /usr/ar/<server_name>/api/doc/ardoc70.jar on UNIX.
AR System documents 9
Its free!
10 Preface
Chapter
Note: If you are upgrading from a previous version of AR System, the data
dictionary will be restructured. This chapter describes changes that occur
during installation, and changes that occur as new data is stored in the
database.
Database Reference
You can perform any system administrator activity on the database or on any
of the tables it contains. This includes performing regular backups, creating
more tablespaces to be added to the AR System database, and adding more
containers to tablespaces. With a Sybase or Microsoft SQL database, flush the
transaction log (or configure it to autoflush) as part of your regular backup
strategy.
After the AR System database is created, AR System creates a series of tables
that form its data dictionary. See The AR System data dictionary on
page 24 for information.
When the DB2 database resides on a different machine than the AR System
server, the database user name, aradmin, must be created in lowercase
before installing AR System server. The database user name is associated
with the operating system. For overwrite and new installations (but not for
upgrade installations), this operating system account must exist before
installing AR System server. The password must be AR#Admin#. After the
AR System server is installed, you can change the password. See
Changing the AR System database user name and password on
page 130.
Because the database user name is associated with the operating system,
you must make password changes in the operating system and set the new
password in the Server Information dialog box in BMC Remedy
Administrator.
file.
Form: <form_name>
Clause: IN TBS32K
This causes the table for the <form_name> form to be created in the
tablespace of 32 KB.
Database Reference
This causes the table for all the forms to be created in the tablespace of 32 KB.
6 Click OK to save this server information.
7 Create the form.
If this procedure does not work, you might need to change some of the
character fields (these use the varchar datatype) to 256 or more bytes, so that
a different datatype (longvarchar) is used in the underlying DB2 database.
The longvarchar datatype takes up much less space in the main data table
than the varchar datatype.
The following limits pertain to the size of attachments and fields:
LIKE predicate
DB2 does not support using a column reference on the right side (or pattern)
of the LIKE predicate. Only character-value references are supported. For
example, the following query returns an error message because DB2 does not
support using a field ID on the right of the LIKE predicate.
"Demo LIKE Submitter
Supported wildcards
The only wildcard characters supported in the LIKE comparison are the
percent symbol (%) and the underscore (_). If you want to search for these
characters, include a backslash (\) before the character (for example, \%).
There is no support for sets or ranges of values.
This limitation applies only to queries that search for entries in the database.
Wildcards are fully supported in filter, escalation, and active link
qualifications and in pattern specifications for character fields.
Modulo operator
The modulo operator (%) is not supported and cannot be used in any
arithmetic operations that search for entries in the database. The modulo
operator is fully supported in filter, escalation, and active link qualifications
and set field values.
Database Reference
Shared libraries
Because the AR System uses shared libraries on all platforms when using
Informix, ESQL/C must be installed prior to AR System installation.
Additionally, you must manually specify the path to the ESQL/C libraries by
setting the shared library path equal to the paths in the following examples:
HP-UX:
$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql:$SHLIB_PATH
Solaris:
$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql:$LD_LIBRARY_PATH
AIX:
$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql:$LIBPATH
Case-insensitive queries
By default, query criteria is case sensitive. You can, however, specify an
option that allows for case-insensitive queries. For more information, see
your Sybase documentation.
Database Reference
Sybase does not support long character or diary fields in an outer join
form.
In the database, long character fields and diary fields are implemented as
text columns.
If you try to query on a diary or long text field contained in the inner table
of an outer join, Sybase error 7114 will cause arserverd to crash. (Sybase
Change Request #122344)
If your Sybase server is configured to use the ISO-8859-1 character set, you
must include the following line in your ar.conf file:
Sybase-Character-Set: iso_1
The database removes trailing spaces that you add to names, menu labels,
and field labels in BMC Remedy Administrator.
Data type
int
Real
float
Decimal
decimal
varchar
longvarchar
Attachment
Note: Trim, control, table, column, page holder, page, view, and display-only
fields do not require any storage in the data tables, so no column is created
for them.
Database Reference
Data type
int
Real
float
Decimal
char
varchar
byte
Attachment
Note: Trim, control, table, column, pageholder, page, view, and display-only
fields do not require any storage in the data tables, so no column is created
for them.
Data type
int
Real
float
Decimal
char
varchar
text
Diary fields and character fields, with no
maximum length or a maximum length of more
than 8000 bytes
Attachment up to 2 GB
image
Note: Trim, control, table, column, page holder, page, view, and display-only
fields do not require any storage in the data tables, so no column is created
for them.
Database Reference
Data type
number (15, 0)
Real fields
float
Decimal
char
blob
Note: Trim, control, table, column, page holder, page, view, and display-only
fields do not require any storage in the data tables, so no column is created
for them.
Data type
int
Real fields
float
Decimal
char
varchar
Character fields, with a defined
maximum length of 255 bytes or fewer
text
Attachment fields up to 2 GB
image
Trim, control, table, column, page holder, page, view, and display-only fields
do not require any storage in the data tables, so no column is created for
them.
Database Reference
Figure 1-1: AR System Data Dictionary: Forms, Fields, VUIs, and Sample Forms
arschema
name
schemaId
nextId
schemaType
field
schemaId
fieldId
BnC<fId>
C1
blob
Bn
C1
C<fid>
CC<fid>
CO<fid>
Tn
C1
C2
C3
...
Hn
entryId
T0
U0
...
schema_group_ids
schemaId
actlink
actlinkID
subadmin_group
schemaId
schema_join
schemaId
field_dispprop
schemaId
fieldId
vuiId
view_mapping
schemaId
fieldId
field_int
schemaId
fieldId
join_mapping
schemaId
fieldId
field_real
schemaId
fieldId
field_permissions
schemaId
fieldId
field_diary
schemaId
fieldId
field_attach
schemaId
fieldId
field_dec
schemaId
fieldId
field_enum_values
schemaId
fieldId
enumId
field_enum
schemaId
fieldId
enumId
field_curr
schemaId
fieldId
field_date
schemaId
fieldId
field_table
schemaId
fieldId
field_char
schemaId
fieldId
charMenu
field_column
schemaId
fieldId
char_menu
name
charMenuId
char_menu_list
charMenuId
char_menu_sql
charMenuId
char_menu_query
charMenuId
char_menu_file
charMenuId
filter
filterId
schema_list_fields
schemaId
schema_view
schemaId
vui
schemaId
vuiId
escalation
escalationId
schema_index
schemaId
arcontainer
containerId
schema_sort
schemaId
control
dbVersion =19
arschema
name
schemaId
nextId
schemaType
actlink
actlinkId
schemaId
filter
filterId
filter_mapping
schemaId
filterId
actlink_macro_parm
actlinkId
actionIndex
actlink_open
actlinkId
actionIndex
actlink_macro
actlinkId
actionIndex
actlink_sql
actlinkId
actionIndex
actlink_gotoaction
actlinkId
actionIndex
actlink_auto
actlinkId
actionIndex
filter_push
filterId
actionIndex
actlink_wait
actlinkId
actionIndex
actlink_set
actlinkId
actionIndex
filter_sql
filterId
actionIndex
actlink_goto
actlinkId
actionIndex
actlink_process
actlinkId
actionIndex
filter_notify
filterId
actionIndex
actlink_exit
actlinkId
actionIndex
actlink_message
actlinkId
actionIndex
filter_notify_ids
filterId
actionIndex
actlink_call
actlinkId
actionIndex
actlink_set_char
actlinkId
actionIndex
filter_message
filterId
actionIndex
actlink_close
actlinkId
actionIndex
actlink_dde
actlinkId
actionIndex
filter_log
filterId
actionIndex
actlink_commit
actlinkId
actionIndex
actlink_push
actlinkId
filter_set
filterId
actionIndex
support_file
id
actlink_group_ids
actlinkId
escalation
escalationId
escal_mapping
schemaId
escalationId
filter_gotoaction
filterId
actionIndex
actlink_mapping
schemaId
actlinkId
filter_process
filterId
actionIndex
Database Reference
Figure 1-3: AR System Data Dictionary: Container
arcontainer
name
containerId
containerType
cntnr_ownr_obj
containerId
ownerObjType
ownerObjID
arctr_group_ids
containerId
arctr_subadmin
containerId
ar_schema
schemaId
arreference
containerId
referenceType
dataType
referenceId
arref_group_ids
containerId
referenceId
External
Data
type?
Internal
Value?
Value
Long
User Defined
Value
Short
User Defined
referenceObjId
field
fieldId
vui
vuiId
arschema
schemaId
arcontainer
containerId
char_menu
charMenuId
actlink
actlinkId
escalation
escalationId
filter
filterId
Initial table
The first table is named control, and it contains one row. The columns
contain information about the version of the database, dbVersion, and a set
of numbers identifying the next available ID for the various structure items
that can be created.
schemaIdThe unique internal ID for the form (which does not change,
regardless of changes to the form).
The following set of tables holds information associated with the form
definition:
source.
Every form contains at least one view user interface (VUI) that represents the
various layouts and fields that hold the data for the form. The vui table
contains information about each VUI in each form. Every VUI is identified
by the combination of the schemaId that connects the VUI to a form, and the
vuiId that identifies that VUI within the form.
Database Reference
char_menu_list
char_menu_query
char_menu_file
char_menu_sql
char_menu_dd
filter_notify
filter_notify_ids
filter_message
filter_log
filter_set
filter_process
filter_push
filter_sql
filter_gotoaction
filter_call
filter_exit
filter_goto
actlink_macro
actlink_macro_parm
actlink_set
actlink_process
actlink_message
actlink_set_char
actlink_dde
actlink_gotoaction
actlink_wait
actlink_goto
actlink_exit
actlink_call
actlink_close
actlink_commit
actlink_open
actlink_sql
actlink_push
actlink_auto
Database Reference
The following set of tables holds information associated with the container
definition:
references.
A list of references defines the components that belong to each container. For
example, a container might reference forms, workflow objects, and other
internal and external objects that make up an application or guide. Each
container can have zero, one, or multiple references. Each reference is
identified by the containerId of the container to which it belongs, and by the
referenceId that identifies the object itself.
All references are described by reference type, data type, reference order
number, label, and description. Internal references store the
referenceObjId. External references store a short value or long value that
describes the external reference. The arref_group_ids table can have zero,
one, or multiple group entries that define group access permissions for each
external reference. Each entry describes a groupId permitted to access an
external reference.
For more information about using containers to create guides, see the
Workflow Objects guide. For more information about the data structures used
to define containers, see the C API Reference guide.
Database Reference
All columns in each table or view are named with a C followed by the unique
ID for the field within the form. For example, the Submitter field is C2. The
ID for the field does not change, the creator of the field can assign the ID.
Every ID is unique within a form, so there is never an issue with duplicate
names. After an ID has been assigned, it cannot be changed, regardless of any
changes to the field. For information about reserved and core IDs, see the
Form and Application Objects guide.
For join forms, if there is an attachment field on the form, a column is added
to the Main Data view. The contents of this column are a concatenation of
the C, CO, and CC columns of the Attachment Details table. If new attachments
are added to the base form, the view is updated. See Attachment tables on
page 34.
Because AR System must retain the IDs of the requests in the underlying
table to form the ID of a join form entry, there are a few extra columns and
some special handling for column C1. AR System creates a series of columns
for each regular form that is involved in the join tree. The columns are named
with an E followed by a zero-based index (three regular tables would be
named E0, E1, and E2). These columns point to the corresponding entry IDs
(column C1) of the regular forms. The C1 column for the join form is
determined by concatenating the entry IDs of the regular forms (in the E
columns) separated by vertical bars (|).
If new status values are added, appropriate columns are added to this table to
reflect the new states. If states are deleted, the columns are left in the table,
enabling the states to be added again in the future. The data for the status
values is stored in the database as an integer that relates to the order of the
choices. If you add values at the beginning or in the middle of existing values,
other values in the list might change.
Unlike in regular forms, for join forms, the Status History field is optional. If
it is present, the Status and Status History fields must be from the same base
table. If there is no Status History field in the form, the Status History table
does not exist. If a Status History field is present, it is defined as an exact
duplicate view of the status history table or view of the base form to which it
is connected. The only difference is the name of the view. For more
information about the Status History field, see the Form and Application
Objects guide.
Note: View and vendor forms do not have corresponding status history
tables.
Attachment tables
There are two attachment tables: the attachment details table and the
attachment data table.
Database Reference
The C column stores the full path name of the attached file. The CO column
stores the original size (in bytes) of the attached file. The CC column stores the
compressed size (in bytes) of the attachment file.
Currency table
Where a field in a form typically has one corresponding column in the main
data table, the currency field has several columns and, therefore, a unique
naming convention to distinguish the extra columns. Whereas typical fields
follow the naming convention described in Main data table on page 32 (all
columns in each table or view are named with a C followed by the unique ID
for the field within the form), the currency field is named with a C followed
by the unique ID for the currency field and a unique suffix for each additional
currency column stored in the database.
The currency suffixes used to name the additional currency columns are
defined in the following table.
Suffix
Decimal value
For example, the columns for a currency field might be called C536870913V,
C536870913C, C536870913D, or C536870913USD.
Indexing
Indexes are automatically maintained for all the tables created by AR System.
Some are defined by AR System, and others are defined by an administrator.
If a table is restructured through AR System, all indexes are recreated for the
new table.
The main data table has an index supported by AR System defined for the C1
column. This column corresponds to the Request ID field of the form. (In
Microsoft SQL databases, the table is created using a primary key, which
enables database replication.) The index is a unique index and is used
extensively as the main index of the table.
For the main data table, the administrator can create additional indexes for
the form. The indexes are unique only if defined as such. These additional
indexes are not clustered because there can be only one clustered index, and
it is reserved for the main index supported by AR System.
The status history table has an index supported by AR System defined on the
entryId column. This column also corresponds to the Request ID field of the
form. The index is a unique clustered index and is the main index of the table.
AR System does not create additional indexes for the status history table.
The Attachment Data and the Attachment Details tables each have unique
indexes supported by AR System. For the Attachment Data table, the index
is defined on the entryId column, and for the Attachment Details table, the
index is defined on the C1 column. These columns correspond to the Request
ID field of the form. The administrator cannot create additional indexes.
Indexing a currency field requires special considerations. Because a currency
field is represented by multiple columns in the main data table, multiple
columns are indexed. Standard queries against a currency field could
potentially use any of several different columns, depending on the currency
type specified. To provide comprehensive coverage, indexing a currency field
requires an index for the value column, the type column, and for each
functional currency column. This can produce significant overhead for the
main data table. Therefore, consider indexing a currency field carefully
before doing so.
Database Reference
Note: Indexes cannot be created for join forms. The form definition is just a
view and the database does not support indexes for views. Indexes defined
for the underlying tables are available and are used when performing
operations against the join form.
For view forms, you must create indexes within the database. The
AR System cannot create indexes on the view of the external databases
table.
For vendor forms, the administrator who implemented the ARDBC data
source must define and document a mechanism to establish indexes on
the underlying data. For more information about ARDBC, see the C API
Reference guide.
SQL views
For each table that is built in the system (except for the attachment tables),
an SQL view is automatically created. This view uses the form name as the
view name and the field names (not a display label in one of the views) as the
column names. The names are created by using the following rules:
If the name is one of the reserved words for the database, the string _x is
appended.
The name of the table must be unique among all the table names after the
conversion. If it is not unique, a set of three digits is added to the end of the
name (with the name truncated, if necessary, to fit the maximum length
allowed for an SQL name). First, the digits 001 are tried. If that is unique, the
new name contains 001 at the end. If 001 does not make the name unique,
002 is tried, then 003, and so on until a unique name is found. Column names
must also be unique, so the same naming convention is used.
SQL views 37
The SQL view of the status history table follows the same strategy as the SQL
view of the base table. The name of the table is created by adding SH_ to the
front of the name of the base table view. The column names are mapped to
the name of the Request ID field and the names of each of the Status values
with _TIME and _USER appended. So, a form with two states, New and Closed,
would end up with columns in the view named Entry_Id, New_USER,
New_TIME, Closed_USER, and Closed_TIME.
These SQL views are recreated whenever the name for the field is changed or
when a change is made to the form that affects the underlying table (deleting
a field, adding a field, or changing the length of a field).
You can use the view or the base tables to read data from the database. The
SQL views are especially useful when using a third-party report writer,
because the names of the various tables and columns are easier to use than
the internal, numeric representations used in the base tables.
For view forms, the database view is recreated when any fields are added or
removed. The database is not recreated if field properties (for example,
length) are changed.
Database Reference
Adding fields
When you add a new field to a form, a new column is added to the main data
table by using the ALTER TABLE command. The structure of the database is
changed to add the new column according to the rules stated in Creating
tables for forms on page 32.
The data for the new field for any existing entries is NULL even if it is a
required field. You can change these values at any time. When the field is
added, it can be used for all existing or future entries. Use the BMC User
Modify All operation to assign a default value for the field.
Deleting fields
Deleting a field from a form physically removes the field from the database.
The corresponding column and all data that is associated with the field are
removed. The following sections describe how each database deletes fields.
DB2
In a DB2 database, the following syntax is used to build a new table that
contains all the structure and data of the original table except for the deleted
column:
CREATE TABLE <new table, excluding the field being deleted>
INSERT INTO <new table> AS SELECT <all fields, excluding the field
being deleted> FROM <old table>
Any indexes that are defined as part of the form definition are recreated on
the rebuilt table.
DB2
In a DB2 database, the length of a character field is changed in one of the
following ways:
If the new length and old length are both <= 255 bytes, the Alter
Table
command is used to change the columns. Neither the table nor the index
are recreated.
For any other change in length, a new column is created with the new
length restriction. Then, all the data is copied from the original column to
the new column and the original column is deleted from the main data
table.
Informix
In an Informix database, the length of a character field is changed in one of
the following ways:
If the original size is <= 255 bytes and you decrease the length, no change
is made to the table.
If the original size and the new size are both <= 255 bytes and you increase
the length, the ALTER TABLE ... MODIFY... command syntax is used.
Database Reference
If the original size is <= 255 bytes and the new size is > 255 bytes, a new
column is created with the new length restriction, Then, all the data is
copied from the original column to the new column, the original column
is deleted from the main data table, and the column type is changed from
varchar to byte.
If the original size is > 255 bytes and the new size is <= 255 bytes, a new
column is created with the new length restriction. Then, all the data from
the original column is copied to the new column, the original column is
deleted, and the data type of the column is changed from byte to varchar.
If the original size and the new size are both > 255 bytes, no change is made
to the table, whether you have decreased or increased the length.
Microsoft SQL
In a Microsoft SQL database, if the field is created in AR System 5.1 and later,
the length of a character field is changed in one of the following ways:
If the original size is <= 8000 bytes and you decrease the length, no change
is made to the table.
If the original size is > 8000 bytes and the new length is > 8000 bytes, no
change is made to the table.
For any other change in length, a new column is created with the new
length restriction. Then, all data from the original column is copied to the
new column and the original column is deleted from the main table.
If the field is created in a version of AR System earlier than 5.1, the length of
a character field is changed in one of the following ways:
If the original size is <= 255 bytes and the new length is <=8000 bytes, no
change is made to the table.
If the original size is > 255 bytes and the new length is > 8000 bytes, no
change is made to the table.
For any other change in length, a new column is created with the new
length restriction. Then, all data from the original column is copied to the
new column and the original column is deleted from the main data table.
Oracle
Table 1-1 shows the changes that AR System makes to an Oracle database
when you change the length of character fields. Note that the handling of
field length changes depends on the initial size of the field, and whether the
field was created in the current version or a previous version of AR System.
Table 1-1: Changing character field lengths for Oracle
Administrator Action
AR System Action
No restructuring performed.
No restructuring performed.
Sybase
In a Sybase database, the length of a character field is changed in one of the
following ways:
If the original size is <=255 bytes and you decrease the length, no change
is made to the table.
If the original size is > 255 bytes and the new length is > 255 bytes, no
change is made to the table.
For any other change in length, a new column is created with the new
length restriction. Then, all data from the original column is copied to the
new column and the original column is deleted from the main data table.
Database Reference
Related information
For general information about relational databases, see Introduction to
Database Systems, by C.J. Date. The following sections also offer suggested
reading for the databases that AR System supports. Depending on the version
of relational database you are using, the titles of the following books might
differ slightly.
DB2
A Complete Guide to DB2 Universal Database by Don Chamberlin
Informix
Informix Guide to SQL: Tutorial
Informix Guide to SQL: Reference and Syntax
Informix Guide to SQL: Reference and Using Triggers
For a discussion of the structure used by previous versions of AR System for
the Informix database, see the technical notes available at the Customer
Support website (http://supportweb.remedy.com).
Oracle
SQL Reference Manual
Oracle Administrators Guide
Sybase
Sybase Commands Reference Manual
Sybase Administration Guide
Microsoft SQL
Transact-SQL Desk Reference: For Microsoft SQL Server
Microsoft SQL Server 2000 Administrators Companion
Related information 43
The Unicode support model in the 7.0 architecture allows you to use
multiple languages on one AR System server. You are no longer restricted by
the locale of the OS that you are running on. See the Unicode white paper at
http://supportweb.remedy.com for more information about using
AR System server with Unicode.
Database Reference
Database type
Comments
Database instance
Sybase, Informix
Oracle
Microsoft SQL
Database
DB2
During installation, the AR System installer gives you the option of creating
a Unicode database. You can safely do this if you meet the following two
requirements:
The character set is defined during the creation of the new Unicode database.
There is no change on a character set for an existing database. During the
creation of the database, the response to the prompt for character set is
AL32UTF8. The Oracle database engine will take care of any conversion
required during import of the original (non-Unicode) into the new database.
Step 2 Perform a full export and import on the whole database. See your Oracle
Database Reference
char
nchar
varchar
nvarchar
text
ntext
WARNING: AR System will not work if you have both Unicode and nonUnicode columns in the database.
Step 2 Set the CLIENT_LOCALE AR System server environment variable to reflect the
correct Informix client locale on the machine that runs AR System server. See
your Informix documentation for details.
WARNING: AR System will not work if you have both Unicode and nonUnicode columns in the database.
Chapter
DB2 Universal
The following set of SQL commands define the AR System data dictionary
for DB2 Universal. For an explanation of these commands, see A Complete
Guide to DB2 Universal Database.
CREATE TABLE control
(dbVersion
int
not
schemaId
int
not
filterId
int
not
serverId
int
not
containerId
int
not
actlinkId
int
not
adminExtId
int
not
charMenuId
int
not
;
CREATE TABLE arschema
(name
varchar(254) not
schemaId
int
not
schemaType
int
not
timestamp
int
not
owner
varchar(254) not
lastChanged
varchar(254) not
coreVersion
int
not
numFields
int
not
numVuis
int
not
defaultVui
varchar(254) not
nextId
int
not
nextFieldId
int
not
maxStatEnums
int
not
upgrdVersion
int
,
safeGuard
varchar(254) not
changeDiary
clob(1M)
,
helpText
clob(1M)
,
objProp
clob(1M)
,
version
varchar(32)
,
smObjProp
clob(1M)
)
;
CREATE UNIQUE INDEX schema_ind
ON arschema (name) CLUSTER;
CREATE UNIQUE INDEX schema_id_ind
ON arschema (schemaId)
;
CREATE TABLE schema_group_ids
(schemaId
int
not
groupId
int
not
permission
int
not
;
CREATE INDEX schemaGroupIdInd
ON schema_group_ids (schemaId)
CLUSTER ;
null,
null,
null,
null,
null,
null,
null,
null)
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null)
Database Reference
CREATE TABLE subadmin_group
(schemaId
int
not null,
groupId
int
not null)
;
CREATE INDEX subadmin_group_ind
ON subadmin_group (schemaId)
CLUSTER ;
CREATE TABLE schema_list_fields
(schemaId
int
not null,
listIndex
int
not null,
fieldId
int
not null,
columnWidth
int
not null,
separatorLen
int
not null,
separator
varchar(10)
)
;
CREATE INDEX schemaListFieldInd
ON schema_list_fields (schemaId)
CLUSTER ;
CREATE TABLE schema_sort
(schemaId
int
not null,
listIndex
int
not null,
fieldId
int
not null,
sortOrder
int
not null)
;
CREATE INDEX schema_sort_ind
ON schema_sort (schemaId)
CLUSTER ;
CREATE TABLE schema_archive
(schemaId
int
not null,
enable
int
not null,
archiveType
int
not null,
archiveToForm
int
,
archiveToFile
varchar(255) ,
queryShort
varchar(255) ,
queryLong
clob(1M)
,
monthday
int
not null,
weekday
int
not null,
hourmask
int
not null,
minute
int
not null,
archiveFromForm
int
)
;
CREATE INDEX schema_archive_ind
ON schema_archive (schemaId)
CLUSTER ;
CREATE TABLE schema_audit
(schemaId
int
not null,
enable
int
not null,
style
int
not null,
form
int
,
queryShort
varchar(255) ,
queryLong
clob(1M)
)
;
DB2 Universal 51
not
not
not
not
not
not
,
,
,
,
,
,
,
,
,
,
,
,
,
,
)
null,
null,
null,
null,
null,
null,
not null,
not null,
not null,
,
,
)
not null,
,
not null,
,
)
not null,
not null,
)
Database Reference
;
CREATE UNIQUE INDEX schema_vendor_ind
ON schema_vendor (schemaId)
;
CREATE TABLE field
(schemaId
fieldId
fieldName
fieldType
timestamp
owner
lastChanged
datatype
fOption
createMode
fbOption
defaultValue
changeDiary
helpText
;
CREATE
ON
CREATE
ON
;
int
int
varchar(254)
int
int
varchar(254)
varchar(254)
int
int
int
int
varchar(255)
clob(1M)
clob(1M)
not
not
not
not
not
not
not
not
not
not
,
,
,
)
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
not null,
,
not null,
,
,
)
DB2 Universal 53
Database Reference
;
CREATE UNIQUE INDEX field_enum_ind
ON field_enum (schemaId, fieldId)
CLUSTER ;
CREATE TABLE field_enum_values
(schemaId
int
not null,
fieldId
int
not null,
enumId
int
not null,
value
varchar(254) not null)
;
CREATE INDEX field_enum_val_ind
ON field_enum_values (schemaId, fieldId)
CLUSTER ;
CREATE TABLE field_permissions
(schemaId
int
not null,
fieldId
int
not null,
groupId
int
not null,
permission
int
not null)
;
CREATE INDEX fieldPermissionInd
ON field_permissions (schemaId, fieldId)
CLUSTER ;
CREATE TABLE field_attach
(schemaId
int
not null,
fieldId
int
not null,
maxSize
int
not null,
attachType
int
not null,
fullTextOptions int
)
;
CREATE UNIQUE INDEX field_attach_ind
ON field_attach (schemaId, fieldId)
CLUSTER ;
CREATE TABLE field_table
(schemaId
int
not null,
fieldId
int
not null,
numColumns
int
not null,
maxRetrieve
int
not null,
tfSchema
varchar(254) not null,
tfServer
varchar(64)
not null,
queryShort
varchar(255) ,
queryLong
clob(1M)
,
sampleSchema
varchar(254) ,
sampleServer
varchar(64)
)
;
CREATE UNIQUE INDEX field_table_ind
ON field_table (schemaId, fieldId)
CLUSTER ;
CREATE TABLE field_column
(schemaId
int
not null,
fieldId
int
not null,
parent
int
not null,
dataField
int
not null,
colLength
int
not null,
dataSource
int
)
DB2 Universal 55
Database Reference
CREATE UNIQUE INDEX field_date_ind
ON field_date (schemaId, fieldId)
CLUSTER ;
CREATE UNIQUE INDEX join_mapping_ind
ON join_mapping (schemaId, fieldId)
;
CREATE TABLE view_mapping
(schemaId
int
not null,
fieldId
int
not null,
extField
varchar(254) not null)
;
CREATE UNIQUE INDEX view_mapping_ind
ON view_mapping (schemaId, fieldId)
;
CREATE TABLE vendor_mapping
(schemaId
int
not null,
fieldId
int
not null,
extField
varchar(254) not null)
;
CREATE UNIQUE INDEX vendor_mapping_ind
ON vendor_mapping (schemaId, fieldId)
;
CREATE TABLE char_menu
(name
varchar(254) not
charMenuId
int
not
timestamp
int
not
owner
varchar(254) not
lastChanged
varchar(254) not
refreshCode
int
not
menuType
int
not
safeGuard
varchar(254) not
changeDiary
clob(1M)
,
helpText
clob(1M)
,
objProp
clob(1M)
,
version
varchar(32)
,
smObjProp
clob(1M)
)
;
CREATE UNIQUE INDEX char_menu_ind
ON char_menu (name) CLUSTER;
CREATE UNIQUE INDEX char_menu_id_ind
ON char_menu (charMenuId)
;
CREATE TABLE char_menu_list
(charMenuId
int
not
path
varchar(30)
not
label
varchar(254) not
childType
int
not
value
varchar(255) )
;
CREATE INDEX char_menu_list_ind
ON char_menu_list (charMenuId)
CLUSTER ;
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
DB2 Universal 57
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null)
null,
null,
null,
null,
null,
Database Reference
CREATE TABLE char_menu_dd
(charMenuId
int
path
varchar(30)
server
varchar(64)
structType
int
nameType
int
valueFormat
int
structSubtype
int
arschema
varchar(254)
hiddenToo
int
;
CREATE INDEX char_menu_dd_ind
ON char_menu_dd (charMenuId)
CLUSTER ;
CREATE TABLE arcontainer
(name
varchar(254)
containerId
int
containerType
int
timestamp
int
owner
varchar(254)
lastChanged
varchar(254)
numReferences
int
label
varchar(255)
safeGuard
varchar(254)
description
clob(1M)
changeDiary
clob(1M)
helpText
clob(1M)
objProp
clob(1M)
version
varchar(32)
smObjProp
clob(1M)
;
CREATE UNIQUE INDEX arctr_ind
ON arcontainer (name) CLUSTER ;
CREATE UNIQUE INDEX arctr_id_ind
ON arcontainer (containerId);
not
not
not
not
not
not
,
,
)
not
not
not
not
not
not
not
,
not
,
,
,
,
,
)
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
DB2 Universal 59
not
not
not
not
not
not
not
not
not
not
not
,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
Database Reference
queryLong
changeDiary
helpText
objProp
version
smObjProp
clob(1M)
clob(1M)
clob(1M)
clob(1M)
varchar(32)
clob(1M)
,
,
,
,
,
)
;
CREATE UNIQUE INDEX filter_ind
ON filter (name) CLUSTER ;
CREATE UNIQUE INDEX filter_id_ind
ON filter (filterId)
;
CREATE TABLE filter_notify
(filterId
int
not null,
actionIndex
int
not null,
userName
varchar(255) not null,
notifyText
varchar(255) ,
priority
int
not null,
mechanism
int
not null,
mechXRef
int
not null,
fieldIdCode
int
not null,
subjectText
varchar(255) ,
behavior
int
,
permission
int
,
fromUser
varchar(255) ,
replyTo
varchar(255) ,
cc
varchar(255) ,
bcc
varchar(255) ,
organization
varchar(255) ,
mailboxName
varchar(255) ,
headerTemplate varchar(255) ,
footerTemplate varchar(255) ,
contentTemplate varchar(255) ,
notifyTextLong clob(1M) )
;
CREATE INDEX filter_notify_ind
ON filter_notify (filterId)
CLUSTER ;
CREATE TABLE filter_notify_ids
(filterId
int
not null,
actionIndex
int
not null,
fieldId
int
not null)
;
CREATE INDEX filterNotifyIdsInd
ON filter_notify_ids (filterId, actionIndex)
CLUSTER ;
CREATE TABLE filter_message
(filterId
int
not null,
actionIndex
int
not null,
msgType
int
not null,
msgNum
int
not null,
msgText
varchar(255) not null)
;
DB2 Universal 61
Database Reference
CREATE TABLE filter_gotoaction
(filterId
int
not null,
actionIndex
int
not null,
tag
int
not null,
fieldIdOrValue int default 0 )
;
CREATE INDEX filter_gotoa_ind
ON filter_gotoaction (filterId)
CLUSTER ;
CREATE TABLE filter_call
(filterId
int
actionIndex
int
serverName
varchar(64)
guideName
varchar(254)
guideMode
int
guideTableId int
assignShort
varchar(255)
assignLong
clob(1M)
sampleServer varchar(64)
sampleGuide
varchar(254)
;
CREATE INDEX filter_call_ind
ON filter_call (filterId)
CLUSTER ;
CREATE TABLE filter_exit
(filterId
int
actionIndex
int
closeAll
char
;
CREATE INDEX filter_exit_ind
ON filter_exit (filterId)
CLUSTER ;
CREATE TABLE filter_goto
(filterId
int
actionIndex
int
label
varchar(128)
;
CREATE INDEX filter_goto_ind
ON filter_goto (filterId)
CLUSTER ;
not
not
not
not
not
null,
null,
null,
null,
null,
,
,
,
,
)
not null,
not null,
)
not null,
not null,
not null)
DB2 Universal 63
varchar(254)
int
int
varchar(254)
varchar(254)
int
int
int
int
int
int
int
int
int
int
varchar(254)
varchar(255)
clob(1M)
clob(1M)
clob(1M)
clob(1M)
varchar(32)
clob(1M)
not null,
not null,
not null,
not null,
not null,
not null,
not null,
not null,
not null,
not null,
not null,
not null,
not null,
not null,
not null,
not null,
,
,
,
,
,
,
)
;
CREATE UNIQUE INDEX escalation_ind
ON escalation (name) CLUSTER;
CREATE UNIQUE INDEX escalation_id_ind
ON escalation (escalationId)
;
CREATE TABLE escal_mapping
(schemaId
int
not null,
objIndex
int
not null,
escalationId int
not null)
;
CREATE UNIQUE INDEX escal_mapping_ind
ON escal_mapping (schemaId, escalationId)
;
CREATE TABLE actlink
(name
varchar(254)
actlinkId
int
timestamp
int
owner
varchar(254)
lastChanged
varchar(254)
wkConnType
int
alOrder
int
executeMask
int
controlfieldId int
fieldId
int
enable
int
numActions
int
numElses
int
safeGuard
varchar(254)
queryShort
varchar(255)
not
not
not
not
not
not
not
not
,
not
not
not
not
not
,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
null,
Database Reference
queryLong
changeDiary
helpText
objProp
version
smObjProp
clob(1M)
clob(1M)
clob(1M)
clob(1M)
varchar(32)
clob(1M)
,
,
,
,
,
)
;
CREATE UNIQUE INDEX actlink_ind
ON actlink (name) CLUSTER ;
CREATE UNIQUE INDEX actlink_id_ind
ON actlink (actlinkId)
;
CREATE TABLE actlink_group_ids
(actlinkId
int
not null,
groupId
int
not null)
;
CREATE INDEX actLinkGroupIdsInd
ON actlink_group_ids (actlinkId)
CLUSTER ;
CREATE TABLE actlink_macro
(actlinkId
int
not null,
actionIndex
int
not null,
macroName
varchar(254) not null,
shortText
varchar(255) ,
longText
clob(1M)
)
;
CREATE INDEX actlink_macro_ind
ON actlink_macro (actlinkId)
CLUSTER ;
CREATE TABLE actlink_macro_parm
(actlinkId
int
not null,
actionIndex
int
not null,
name
varchar(254) not null,
value
varchar(255) not null)
;
CREATE INDEX alk_ma_parm_ind
ON actlink_macro_parm (actlinkId, actionIndex)
CLUSTER ;
CREATE TABLE actlink_set
(actlinkId
int
not null,
actionIndex
int
not null,
fieldId
int
not null,
assignShort
varchar(255) ,
assignLong
clob(1M)
,
keywordList
clob(1M)
,
parameterList clob(1M)
,
sampleSchema
varchar(254) ,
sampleServer
varchar(64)
)
;
CREATE INDEX actlink_set_ind
ON actlink_set (actlinkId)
CLUSTER ;
DB2 Universal 65
Database Reference
actionShort
actionLong
COMShort
COMLong
varchar(255)
clob(1M)
varchar(255)
clob(1M)
;
CREATE INDEX actlink_auto_ind
ON actlink_auto (actlinkId)
CLUSTER ;
CREATE TABLE actlink_push
(actlinkId
int
actionIndex
int
fieldId
int
assignShort
varchar(255)
assignLong
clob(1M)
sampleSchema
varchar(254)
sampleServer
varchar(64)
;
CREATE INDEX actlink_push_ind
ON actlink_push (actlinkId)
CLUSTER ;
CREATE TABLE actlink_sql
(actlinkId
int
actionIndex
int
assignShort
varchar(255)
assignLong
clob(1M)
keywordList
clob(1M)
parameterList clob(1M)
;
CREATE INDEX actlink_sql_ind
ON actlink_sql (actlinkId)
CLUSTER ;
CREATE TABLE actlink_open
(actlinkId
int
actionIndex
int
serverName
varchar(64)
schemaName
varchar(254)
vuiLabel
varchar(254)
closeBox
char
assignShort
varchar(255)
assignLong
clob(1M)
windowMode
int
noMatchCtnu
char
pollIntval
int
sortlst
varchar(255)
queryshort
varchar(255)
querylong
clob(1M)
msgType
int
msgNum
int
msgText
clob(1M)
msgPane
char
reportstr
clob(1M)
supresEptyLst char
targetLocation varchar(255)
,
,
,
)
not null,
not null,
not null,
,
,
,
)
not null,
not null,
,
,
,
)
not
not
not
not
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
)
null,
null,
null,
null,
DB2 Universal 67
not null,
not null,
not null,
not null,
not null,
default 0 not null,
,
,
,
)
not null,
not null,
not null)
Database Reference
CREATE INDEX actlink_goto_ind
ON actlink_goto (actlinkId)
CLUSTER ;
CREATE TABLE actlink_wait
(actlinkId
int
not null,
actionIndex
int
not null,
buttonTitle
varchar(64)
default 'Continue' )
;
CREATE INDEX actlink_wait_ind
ON actlink_wait (actlinkId)
CLUSTER ;
CREATE TABLE actlink_gotoaction
(actlinkId
int
not null,
actionIndex
int
not null,
tag
int
not null,
fieldIdOrValue int
default 0 )
;
CREATE INDEX actlink_gotoa_ind
ON actlink_gotoaction (actlinkId)
CLUSTER ;
CREATE TABLE actlink_mapping
(schemaId
int
not null,
objIndex
int
not null,
actlinkId
int
not null)
;
CREATE UNIQUE INDEX actlink_maping_ind
ON actlink_mapping (schemaId, actlinkId)
;
CREATE TABLE alert_user
(username varchar(254) not null,
clientIPAddr
varchar(16)
not null,
actualIPAddr
varchar(16)
not null,
serverIPAddr
varchar(16)
not null,
clientPort
int
not null,
regFlags
int
not null,
clientVersion int
not null,
regTime
int
not null,
clientCodeSet int
not null)
;
CREATE UNIQUE INDEX alert_user_ind
ON alert_user (username, clientIPAddr, clientPort)
;
CREATE TABLE alert_time
(username varchar(254) not null,
checkpointTime int
not null)
;
CREATE UNIQUE INDEX alert_time_ind
ON alert_time (username)
;
DB2 Universal 69
not null)
not null,
not null,
,
,
)
not
not
not
,
not
,
not
null,
null,
null,
null,
null)
Database Reference
Informix
The following set of SQL commands define the AR System data dictionary
for Informix databases. For an explanation of the commands, see the
Informix Guide to SQL: Reference and Syntax.
DATABASE ARSystem;
CREATE TABLE control
(dbVersion
int
not null,
schemaId
int
not null,
filterId
int
not null,
serverId
int
not null,
containerId int
not null,
actlinkId
int
not null,
adminExtId int
not null,
charMenuId int
not null);
CREATE TABLE arschema
(name
varchar(254) not null,
schemaId
int
not null,
schemaType
int
not null,
timestamp
int
not null,
owner
varchar(254) not null,
lastChanged varchar(254) not null,
coreVersion int
not null,
numFields
int
not null,
numVuis
int
not null,
defaultVui
varchar(254) not null,
nextId
int
not null,
nextFieldId int
not null,
maxStatEnums int
not null,
upgrdVersion int
,
safeGuard
varchar(254) not null,
changeDiary byte
,
helpText
byte
,
objProp
byte
,
version
varchar(32)
,
smObjProp
byte
);
CREATE UNIQUE CLUSTER INDEX schema_ind
ON arschema (name);
CREATE UNIQUE INDEX schema_id_ind
ON arschema (schemaId);
CREATE TABLE schema_group_ids
(schemaId
int
not null,
groupId
int
not null,
permission
int
not null);
CREATE CLUSTER INDEX schema_group_ind
ON schema_group_ids (schemaId);
CREATE TABLE subadmin_group
(schemaId
int
not null,
groupId
int
not null);
CREATE CLUSTER INDEX subadmin_group_ind
ON subadmin_group (schemaId);
Informix 71
Database Reference
f9
int
,
f10
int
,
f11
int
,
f12
int
,
f13
int
,
f14
int
,
f15
int
,
f16
int
);
CREATE CLUSTER INDEX schema_index_ind
ON schema_index (schemaId);
CREATE TABLE schema_join
(schemaId
int
not null,
memberA
varchar(254) not null,
memberB
varchar(254) not null,
options
int
,
queryShort
varchar(255)
,
queryLong
byte
);
CREATE UNIQUE INDEX schema_join_ind
ON schema_join (schemaId);
CREATE TABLE schema_view
(schemaId
int
not null,
tableName
byte
,
keyField
varchar(254) not null,
queryShort
varchar(255)
,
queryLong
byte
);
CREATE UNIQUE INDEX schema_view_ind
ON schema_view (schemaId);
CREATE TABLE schema_vendor
(schemaId
int
not null,
vendorName
varchar(254) not null,
tableName
byte
);
CREATE UNIQUE INDEX schema_vendor_ind
ON schema_vendor (schemaId);
CREATE TABLE field
(schemaId
int
not null,
fieldId
int
not null,
fieldName
varchar(254) not null,
fieldType
int
not null,
timestamp
int
not null,
owner
varchar(254) not null,
lastChanged varchar(254) not null,
datatype
int
not null,
fOption
int
not null,
createMode
int
not null,
fbOption
int
,
defaultValue varchar(255)
,
changeDiary byte
,
helpText
byte
);
CREATE UNIQUE CLUSTER INDEX field_ind
ON field (schemaId, fieldId);
CREATE INDEX field_schema_ind
ON field (schemaId);
Informix 73
Database Reference
CREATE UNIQUE CLUSTER INDEX field_char_ind
ON field_char (schemaId, fieldId);
CREATE TABLE field_enum
(schemaId
int
not null,
fieldId
int
not null,
maxEnum
int
not null,
enumStyle
int
,
schemaName
varchar(254)
,
serverName
varchar(64)
,
nameField
int
,
numberField int
,
queryShort
varchar(255)
,
queryLong
byte
);
CREATE UNIQUE CLUSTER INDEX field_enum_ind
ON field_enum (schemaId, fieldId);
CREATE TABLE field_enum_values
(schemaId
int
not null,
fieldId
int
not null,
enumId
int
not null,
value
varchar(254) not null);
CREATE CLUSTER INDEX field_enum_val_ind
ON field_enum_values (schemaId, fieldId);
CREATE TABLE field_permissions
(schemaId
int
not null,
fieldId
int
not null,
groupId
int
not null,
permission
int
not null);
CREATE CLUSTER INDEX field_permissi_ind
ON field_permissions (schemaId, fieldId);
CREATE TABLE field_attach
(schemaId
int
not null,
fieldId
int
not null,
maxSize
int
not null,
attachType
int
not null,
fullTextOptions int
);
CREATE UNIQUE CLUSTER INDEX field_attach_ind
ON field_attach (schemaId, fieldId);
CREATE TABLE field_table
(schemaId
int
not null,
fieldId
int
not null,
numColumns
int
not null,
maxRetrieve int
not null,
tfSchema
varchar(254) not null,
tfServer
varchar(64) not null,
queryShort
varchar(255)
,
queryLong
byte
,
sampleSchema varchar(254)
,
sampleServer varchar(64)
);
CREATE UNIQUE CLUSTER INDEX field_table_ind
ON field_table (schemaId, fieldId);
CREATE TABLE field_column
(schemaId
int
not null,
fieldId
int
not null,
Informix 75
Database Reference
CREATE TABLE view_mapping
(schemaId
int
not null,
fieldId
int
not null,
extField
varchar(254) not null);
CREATE UNIQUE INDEX view_mapping_ind
ON view_mapping (schemaId, fieldId);
CREATE TABLE vendor_mapping
(schemaId
int
not null,
fieldId
int
not null,
extField
varchar(254) not null);
CREATE UNIQUE INDEX vendor_mapping_ind
ON vendor_mapping (schemaId, fieldId);
CREATE TABLE char_menu
(name
varchar(254) not null,
charMenuId
int
not null,
timestamp
int
not null,
owner
varchar(254) not null,
lastChanged varchar(254) not null,
refreshCode int
not null,
menuType
int
not null,
safeGuard
varchar(254) not null,
changeDiary byte
,
helpText
byte
,
objProp
byte
,
version
varchar(32)
,
smObjProp
byte
);
CREATE UNIQUE CLUSTER INDEX char_menu_ind
ON char_menu (name);
CREATE UNIQUE INDEX char_menu_id_ind
ON char_menu (charMenuId);
CREATE TABLE char_menu_list
(charMenuId
int
not null,
path
varchar(254) not null,
label
varchar(254) not null,
childType
int
not null,
value
varchar(255)
);
CREATE CLUSTER INDEX char_menu_list_ind
ON char_menu_list (charMenuId);
CREATE TABLE char_menu_query
(charMenuId
int
not null,
path
varchar(30) not null,
arschema
varchar(254) not null,
server
varchar(255) not null,
labelField
int
not null,
labelField2 int
,
labelField3 int
,
labelField4 int
,
labelField5 int
,
valueField
int
not null,
sortOnLabel int
not null,
queryShort
varchar(255)
,
queryLong
byte
,
keywordList lvarchar
,
parameterList lvarchar
,
Informix 77
not null,
not null,
not null,
not null,
not null,
not null,
not null,
,
not null,
,
,
Database Reference
helpText
byte
objProp
byte
version
varchar(32)
smObjProp
byte
CREATE UNIQUE CLUSTER INDEX arctr_ind
ON arcontainer (name);
CREATE UNIQUE INDEX arctr_id_ind
ON arcontainer (containerId);
,
,
,
);
Informix 79
Database Reference
CREATE TABLE filter_message
(filterId
int
actionIndex int
msgType
int
msgNum
int
msgText
varchar(255)
not
not
not
not
not
null,
null,
null,
null,
null);
Informix 81
not
not
not
not
not
null,
null,
null,
null,
null,
,
,
,
,
);
not null,
not null,
);
not null,
not null,
not null,
not null,
not null,
not null,
not null,
not null,
not null,
not null,
not null,
not null,
Database Reference
hourmask
int
not null,
minute
int
not null,
enable
int
not null,
safeGuard
varchar(254) not null,
queryShort
varchar(255)
,
queryLong
byte
,
changeDiary byte
,
helpText
byte
,
objProp
byte
,
version
varchar(32)
,
smObjProp
byte
);
CREATE UNIQUE CLUSTER INDEX escalation_ind
ON escalation (name);
CREATE UNIQUE INDEX escalation_id_ind
ON escalation (escalationId);
CREATE TABLE escal_mapping
(schemaId
int
not null,
objIndex
int
not null,
escalationId
int
not null);
CREATE UNIQUE INDEX escal_mapping_ind
ON escal_mapping (schemaId, escalationId);
Informix 83
Database Reference
accessOpt
int
,
options
int
default 0 );
CREATE CLUSTER INDEX actlink_schar_ind
ON actlink_set_char (actlinkId);
CREATE TABLE actlink_dde
(actlinkId
int
not null,
actionIndex int
not null,
serviceName varchar(64) not null,
topic
varchar(64) not null,
action
int
not null,
path
varchar(255) not null,
command
varchar(255) not null,
item
byte
);
CREATE CLUSTER INDEX actlink_dde_ind
ON actlink_dde (actlinkId);
CREATE TABLE actlink_auto
(actlinkId
int
not null,
actionIndex
int
not null,
autoServerName varchar(255) not null,
clsId
varchar(128) not null,
isVisible
charnot null,
actionShort
varchar(255)
,
actionLong
byte
,
COMShort
varchar(255)
,
COMLong
byte
);
CREATE INDEX actlink_auto_ind
ON actlink_auto (actlinkId);
CREATE TABLE actlink_push
(actlinkId
int
not null,
actionIndex int
not null,
fieldId
int
not null,
assignShort varchar(255)
,
assignLong byte
,
sampleSchema varchar(254)
,
sampleServer varchar(64)
);
CREATE CLUSTER INDEX actlink_push_ind
ON actlink_push (actlinkId);
CREATE TABLE actlink_sql
(actlinkId
int
not null,
actionIndex int
not null,
assignShort varchar(255)
,
assignLong byte
,
keywordList lvarchar
,
parameterList lvarchar
);
CREATE CLUSTER INDEX actlink_sql_ind
ON actlink_sql (actlinkId);
CREATE TABLE actlink_open
(actlinkId
int
actionIndex
int
serverName
varchar(64)
schemaName
varchar(254)
vuiLabel
varchar(254)
closeBox
char
not
not
not
not
null,
null,
null,
null,
,
,
Informix 85
,
,
,
,
,
,
,
,
,
,
,
,
,
,
);
not null,
not null);
not null,
not null,
);
not
not
not
not
not
null,
null,
null,
null,
null,
,
,
,
,
);
not null,
not null,
);
Database Reference
not null,
not null,
default 'Continue');
Informix 87
,
not null);
Database Reference
Oracle
The following set of SQL commands define the AR System data dictionary
for Oracle databases. For an explanation of these commands, see the Oracle
SQL Reference Manual.
CREATE TABLE control
(dbVersion
number(15,0) not null,
schemaId
number(15,0) not null,
filterId
number(15,0) not null,
serverId
number(15,0) not null,
containerId number(15,0) not null,
actlinkId
number(15,0) not null,
adminExtId number(15,0) not null,
charMenuId number(15,0) not null);
CREATE TABLE arschema
(name
varchar(254) not null,
schemaId
number(15,0) not null,
schemaType
number(15,0) not null,
timestamp
number(15,0) not null,
owner
varchar(254) not null,
lastChanged varchar(254) not null,
coreVersion number(15,0) not null,
numFields
number(15,0) not null,
numVuis
number(15,0) not null,
defaultVui
varchar(254) not null,
nextId
number(15,0) not null,
nextFieldId number(15,0) not null,
maxStatEnums number(15,0) not null,
upgrdVersion number(15,0)
null,
safeGuard
varchar(254) not null,
helpText
clob
null,
changeDiary clob
null,
objProp
clob
null,
version
varchar(32)
null,
smObjProp
clob
null);
CREATE UNIQUE INDEX schema_ind
ON arschema (name);
CREATE UNIQUE INDEX schema_id_ind
ON arschema (schemaId);
CREATE TABLE schema_group_ids
(schemaId
number(15,0) not null,
groupId
number(15,0) not null,
permission
number(15,0) not null);
CREATE INDEX schema_group_ids_ind
ON schema_group_ids (schemaId);
CREATE TABLE subadmin_group
(schemaId
number(15,0) not null,
groupId
number(15,0) not null);
CREATE INDEX subadmin_group_ind
ON subadmin_group (schemaId);
Oracle 89
Database Reference
f9
number(15,0)
null,
f10
number(15,0)
null,
f11
number(15,0)
null,
f12
number(15,0)
null,
f13
number(15,0)
null,
f14
number(15,0)
null,
f15
number(15,0)
null,
f16
number(15,0)
null);
CREATE INDEX schema_index_ind
ON schema_index (schemaId);
CREATE TABLE schema_join
(schemaId
number(15,0) not null,
memberA
varchar(254) not null,
memberB
varchar(254) not null,
options
number(15,0)
null,
queryShort
varchar(255)
null,
queryLong
clob
null);
CREATE UNIQUE INDEX schema_join_ind
ON schema_join (schemaId);
CREATE TABLE schema_view
(schemaId
number(15,0) not null,
tableName
clob
null,
keyField
varchar(254) not null,
queryShort
varchar(255)
null,
queryLong
clob
null);
CREATE UNIQUE INDEX schema_view_ind
ON schema_view (schemaId);
CREATE TABLE schema_vendor
(schemaId
number(15,0) not null,
vendorName
varchar(254) not null,
tableName
clob
null);
CREATE UNIQUE INDEX schema_vendor_ind
ON schema_vendor (schemaId);
CREATE TABLE field
(schemaId
number(15,0) not null,
fieldId
number(15,0) not null,
fieldName
varchar(254) not null,
fieldType
number(15,0) not null,
timestamp
number(15,0) not null,
owner
varchar(254) not null,
lastChanged varchar(254) not null,
datatype
number(15,0) not null,
fOption
number(15,0) not null,
createMode
number(15,0) not null,
fbOption
number(15,0) null,
defaultValue varchar(255)
null,
helpText
clob
null,
changeDiary clob
null);
CREATE UNIQUE INDEX field_ind
ON field (schemaId, fieldId);
CREATE INDEX field_schema_ind
ON field (schemaId);
Oracle 91
not null,
not null,
not null,
null,
null,
not null,
not null,
not null,
null,
null);
Database Reference
pattern
varchar(255)
null,
fullTextOptions number(15,0) null,
isLong
number(15,0)
null);
CREATE UNIQUE INDEX field_char_ind
ON field_char (schemaId, fieldId);
CREATE TABLE field_enum
(schemaId
number(15,0) not null,
fieldId
number(15,0) not null,
maxEnum
number(15,0) not null,
enumStyle
number(15,0)
null,
schemaName
varchar(254)
null,
serverName
varchar(64)
null,
nameField
number(15,0)
null,
numberField number(15,0)
null,
queryShort
varchar(255)
null,
queryLong
clob
null);
CREATE UNIQUE INDEX field_enum_ind
ON field_enum (schemaId, fieldId);
CREATE TABLE field_enum_values
(schemaId
number(15,0) not null,
fieldId
number(15,0) not null,
enumId
number(15,0) not null,
value
varchar(254) not null);
CREATE INDEX field_enum_val_ind
ON field_enum_values (schemaId, fieldId);
CREATE TABLE field_permissions
(schemaId
number(15,0) not null,
fieldId
number(15,0) not null,
groupId
number(15,0) not null,
permission
number(15,0) not null);
CREATE INDEX field_permissions_ind
ON field_permissions (schemaId, fieldId);
CREATE TABLE field_attach
(schemaId
number(15,0) not null,
fieldId
number(15,0) not null,
maxSize
number(15,0) not null,
attachType
number(15,0) not null,
fullTextOptions number(15,0) null);
CREATE UNIQUE INDEX field_attach_ind
ON field_attach (schemaId, fieldId);
CREATE TABLE field_table
(schemaId
number(15,0) not null,
fieldId
number(15,0) not null,
numColumns
number(15,0) not null,
maxRetrieve number(15,0) not null,
tfSchema
varchar(254) not null,
tfServer
varchar(64)
not null,
queryShort
varchar(255)
null,
queryLong
clob
null,
sampleSchema varchar(254)
null,
sampleServer varchar(64)
null);
CREATE UNIQUE INDEX field_table_ind
ON field_table (schemaId, fieldId);
Oracle 93
Database Reference
CREATE TABLE view_mapping
(schemaId
number(15,0) not null,
fieldId
number(15,0) not null,
extField
varchar(254) not null);
CREATE UNIQUE INDEX view_mapping_ind
ON view_mapping (schemaId, fieldId);
CREATE TABLE vendor_mapping
(schemaId
number(15,0) not null,
fieldId
number(15,0) not null,
extField
varchar(254) not null);
CREATE UNIQUE INDEX vendor_mapping_ind
ON vendor_mapping (schemaId, fieldId);
CREATE TABLE char_menu
(name
varchar(254) not null,
charMenuId
number(15,0) not null,
timestamp
number(15,0) not null,
owner
varchar(254) not null,
lastChanged varchar(254) not null,
refreshCode number(15,0) not null,
menuType
number(15,0) not null,
safeGuard
varchar(254) not null,
helpText
clob
null,
changeDiary clob
null,
objProp
clob
null,
version
varchar(32)
null,
smObjProp
clob
null);
CREATE UNIQUE INDEX char_menu_ind
ON char_menu (name);
CREATE UNIQUE INDEX char_menu_id_ind
ON char_menu (charMenuId);
CREATE TABLE char_menu_list
(charMenuId
number(15,0) not null,
path
varchar(30) not null,
label
varchar(254) not null,
childType
number(15,0) not null,
value
varchar(255)
null);
CREATE INDEX char_menu_list_ind
ON char_menu_list (charMenuId);
CREATE TABLE char_menu_query
(charMenuId
number(15,0) not null,
path
varchar(30) not null,
arschema
varchar(254) not null,
server
varchar(255) not null,
labelField
number(15,0) not null,
labelField2 number(15,0)
null,
labelField3 number(15,0)
null,
labelField4 number(15,0)
null,
labelField5 number(15,0)
null,
valueField
number(15,0) not null,
sortOnLabel number(15,0) not null,
queryShort
varchar(255)
null,
queryLong
clob
null,
keywordList clob
null,
Oracle 95
Database Reference
helpText
clob
null,
changeDiary
clob
null,
objProp
clob
null,
version
varchar(32)
null,
smObjProp
clob
null);
CREATE UNIQUE INDEX arctr_ind
ON arcontainer (name);
CREATE UNIQUE INDEX arctr_id_ind
ON arcontainer (containerId);
CREATE TABLE arctr_group_ids
(containerId
number(15,0) not null,
groupId
number(15,0) not null,
permission
number(15,0) not null);
CREATE INDEX arctr_group_ind
ON arctr_group_ids (containerId);
CREATE TABLE arctr_subadmin
(containerId
number(15,0) not null,
groupId
number(15,0) not null);
CREATE INDEX arctr_subadmin_ind
ON arctr_subadmin (containerId);
CREATE TABLE cntnr_ownr_obj
(containerId
number(15,0) not null,
ownerObjType number(15,0) not null,
ownerObjId
number(15,0) not null,
objIndex
number(15,0) not null);
CREATE INDEX cntnr_ownr_id_ind
ON cntnr_ownr_obj (containerId);
CREATE INDEX cntnr_ownr_obj_ind
ON cntnr_ownr_obj (ownerObjType, ownerObjId);
CREATE UNIQUE INDEX cntnr_ownr_ind
ON cntnr_ownr_obj (containerId, ownerObjType, ownerObjId);
CREATE TABLE arreference
(containerId
number(15,0) not null,
referenceId
number(15,0) not null,
referenceType
number(15,0) not null,
dataType
number(15,0) not null,
referenceOrder number(15,0) not null,
referenceObjId number(15,0)
null,
valueShort
varchar(255)
null,
label
varchar(255)
null,
valueLong
clob
null,
description
varchar(2000)
null);
CREATE UNIQUE INDEX arref_ind
ON arreference (containerId, referenceId);
CREATE TABLE arref_group_ids
(containerId
number(15,0) not null,
referenceId
number(15,0) not null,
groupId
number(15,0) not null);
CREATE INDEX arref_group_ind
ON arref_group_ids (containerId, referenceId);
Oracle 97
Database Reference
CREATE TABLE filter_message
(filterId
number(15,0) not null,
actionIndex number(15,0) not null,
msgType
number(15,0) not null,
msgNum
number(15,0) not null,
msgText
varchar(255) not null);
CREATE INDEX filter_message_ind
ON filter_message (filterId);
CREATE TABLE filter_log
(filterId
number(15,0) not null,
actionIndex number(15,0) not null,
logFile
varchar(255)
null);
CREATE INDEX filter_log_ind
ON filter_log (filterId);
CREATE TABLE filter_set
(filterId
number(15,0)not null,
actionIndex number(15,0)not null,
fieldId
number(15,0)not null,
assignShort varchar(255)
null,
assignLong clob
null,
sampleSchema varchar(254)
null,
sampleServer varchar(64)
null);
CREATE INDEX filter_set_ind
ON filter_set (filterId);
CREATE TABLE filter_process
(filterId
number(15,0) not null,
actionIndex number(15,0) not null,
command
varchar(255) not null);
CREATE INDEX filter_process_ind
ON filter_process (filterId);
CREATE TABLE filter_push
(filterId
number(15,0)not null,
actionIndex number(15,0)not null,
fieldId
number(15,0)not null,
assignShort varchar(255)
null,
assignLong clob
null,
sampleSchema varchar(254)
null,
sampleServer varchar(64)
null);
CREATE INDEX filter_push_ind
ON filter_push (filterId);
CREATE TABLE filter_sql
(filterId
number(15,0)not null,
actionIndex number(15,0)not null,
assignShort varchar(255)
null,
assignLong clob
null);
CREATE INDEX filter_sql_ind
ON filter_sql (filterId);
CREATE TABLE filter_gotoaction
(filterId
number(15,0)not null,
actionIndex number(15,0)not null,
tag
number (15,0)not null,
fieldIdOrValue number(15,0) default 0
CREATE INDEX filter_gotoa_ind
ON filter_gotoaction (filterId);
null);
Oracle 99
null,
null,
null,
null,
null,
null,
null,
null,
null,
null);
null,
null,
null);
not null,
not null,
not null,
not null,
not null,
not null,
not null,
not null,
not null,
not null,
not null,
not null,
not null,
not null,
not null,
not null,
null,
null,
Database Reference
helpText
clob
null,
changeDiary clob
null,
objProp
clob
null,
version
varchar(32)
null,
smObjProp
clob
null);
CREATE UNIQUE INDEX escalation_ind
ON escalation (name);
CREATE UNIQUE INDEX escalation_id_ind
ON escalation (escalationId);
CREATE TABLE escal_mapping
(schemaId
number(15,0) not null,
objIndex
number(15,0) not null,
escalationId
number(15,0) not null);
CREATE UNIQUE INDEX escal_mapping_ind
ON escal_mapping (schemaId, escalationId);
CREATE TABLE actlink
(name
varchar(254) not null,
actlinkId
number(15,0) not null,
timestamp
number(15,0) not null,
owner
varchar(254) not null,
lastChanged varchar(254) not null,
wkConnType
number(15,0) not null,
alOrder
number(15,0) not null,
executeMask number(15,0) not null,
controlfieldId number(15,0)
null,
fieldId
number(15,0) not null,
enable
number(15,0) not null,
numActions
number(15,0) not null,
numElses
number(15,0) not null,
safeGuard
varchar(254) not null,
queryShort
varchar(255)
null,
queryLong
clob
null,
helpText
clob
null,
changeDiary clob
null,
objProp
clob
null,
version
varchar(32)
null,
smObjProp
clob
null);
CREATE UNIQUE INDEX actlink_ind
ON actlink (name);
CREATE UNIQUE INDEX actlink_id_ind
ON actlink (actlinkId);
CREATE TABLE actlink_group_ids
(actlinkId
number(15,0)not null,
groupId
number(15,0)not null);
CREATE INDEX actlink_group_ids_ind
ON actlink_group_ids (actlinkId);
CREATE TABLE actlink_macro
(actlinkId
number(15,0) not null,
actionIndex number(15,0) not null,
macroName
varchar(254) not null,
shortText
varchar(255)
null,
longText
clob
null);
Oracle 101
Database Reference
topic
varchar(64) not null,
action
number(15,0) not null,
path
varchar(255) not null,
command
varchar(255) not null,
item
clob
null);
CREATE INDEX actlink_dde_ind
ON actlink_dde (actlinkId);
CREATE TABLE actlink_auto
(actlinkId
number(15,0) not null,
actionIndex
number(15,0) not null,
autoServerName varchar(255) not null,
clsId
varchar(128) not null,
isVisible
char
not null,
actionShort
varchar(255)
null,
actionLong
varchar(2000)
null,
COMShort
varchar(255)
null,
COMLong
clob
null);
CREATE INDEX actlink_auto_ind
ON actlink_auto (actlinkId);
CREATE TABLE actlink_push
(actlinkId
number(15,0) not null,
actionIndex number(15,0) not null,
fieldId
number(15,0) not null,
assignShort varchar(255)
null,
assignLong clob
null,
sampleSchema varchar(254)
null,
sampleServer varchar(64)
null);
CREATE INDEX actlink_push_ind
ON actlink_push (actlinkId);
CREATE TABLE actlink_sql
(actlinkId
number(15,0) not null,
actionIndex number(15,0) not null,
assignShort varchar(255)
null,
assignLong clob
null,
keywordList clob
null,
parameterList clob
null);
CREATE INDEX actlink_sql_ind
ON actlink_sql (actlinkId);
CREATE TABLE actlink_open
(actlinkId
number(15,0) not null,
actionIndex
number(15,0) not null,
serverName
varchar(64) not null,
schemaName
varchar(254) not null,
vuiLabel
varchar(254)
null,
closeBox
char
null,
assignShort
varchar(255)
null,
assignLong
clob
null,
windowMode
number(15,0)
null,
noMatchCtnu
char
null,
pollIntval
number(15,0)
null,
sortlst
varchar(255)
null,
queryshort
varchar(255)
null,
querylong
clob
null,
msgType
number(15,0)
null,
Oracle 103
null);
Database Reference
tag
number(15,0)not null,
fieldIdOrValue number(15,0) default 0
CREATE INDEX actlink_gotoa_ind
ON actlink_gotoaction (actlinkId);
null);
Oracle 105
not null,
not null,
not null,
null,
not null,
null,
not null);
nchar
varchar
nvarchar
text
ntext
use ARSystem
go
CREATE TABLE control
(dbVersion
int
not null,
schemaId
int
not null,
filterId
int
not null,
serverId
int
not null,
containerId int
not null,
actlinkId
int
not null,
adminExtId int
not null,
charMenuId int
not null)
go
CREATE TABLE arschema
(name
varchar(254) not null,
schemaId
int
not null,
schemaType
int
not null,
timestamp
int
not null,
owner
varchar(254) not null,
Database Reference
lastChanged
coreVersion
numFields
numVuis
defaultVui
nextId
maxStatEnums
nextFieldId
upgrdVersion
safeGuard
changeDiary
helpText
objProp
version
smObjProp
varchar(254)
int
int
int
varchar(254)
int
int
int
int
varchar(254)
text
text
text
varchar(32)
text
not null,
not null,
not null,
not null,
not null,
not null,
not null,
not null,
null,
not null,
null,
null,
null,
null,
null)
go
CREATE UNIQUE INDEX schema_ind
ON arschema (name)
CREATE UNIQUE CLUSTERED INDEX schema_id_ind
ON arschema (schemaId)
go
CREATE TABLE schema_group_ids
(schemaId
int
not null,
groupId
int
not null,
permission
int
not null)
go
CREATE CLUSTERED INDEX schema_group_ids_ind
ON schema_group_ids (schemaId)
go
CREATE TABLE subadmin_group
(schemaId
int
not null,
groupId
int
not null)
go
CREATE CLUSTERED INDEX subadmin_group_ind
ON subadmin_group (schemaId)
go
CREATE TABLE schema_list_fields
(schemaId
int
not null,
listIndex
int
not null,
fieldId
int
not null,
columnWidth int
not null,
separatorLen int
not null,
separator
varchar(10)
null)
go
CREATE CLUSTERED INDEX schema_list_fields_ind
ON schema_list_fields (schemaId)
go
CREATE TABLE schema_sort
(schemaId
int
not null,
listIndex
int
not null,
fieldId
int
not null,
sortOrder
int
not null)
go
Database Reference
CREATE CLUSTERED INDEX schema_index_ind
ON schema_index (schemaId)
go
CREATE TABLE schema_join
(schemaId
int
not null,
memberA
varchar(254) not null,
memberB
varchar(254) not null,
options
int
null,
queryShort
varchar(255)
null,
queryLong
text
null)
go
CREATE UNIQUE INDEX schema_join_ind
ON schema_join (schemaId)
go
CREATE TABLE schema_view
(schemaId
int
not null,
tableName
text
null,
keyField
varchar(254) not null,
queryShort
varchar(255)
null,
queryLong
text
null)
go
CREATE UNIQUE INDEX schema_view_ind
ON schema_view (schemaId)
go
CREATE TABLE schema_vendor
(schemaId
int
not null,
vendorName
varchar(254) not null,
tableName
text
null)
go
CREATE UNIQUE INDEX schema_vendor_ind
ON schema_vendor (schemaId)
go
CREATE TABLE field
(schemaId
int
not null,
fieldId
int
not null,
fieldName
varchar(254) not null,
fieldType
int
not null,
timestamp
int
not null,
owner
varchar(254) not null,
lastChanged varchar(254) not null,
datatype
int
not null,
fOption
int
not null,
createMode
int
not null,
fbOption
int
null,
defaultValue varchar(255)
null,
changeDiary text
null,
helpText
text
null)
go
CREATE UNIQUE CLUSTERED INDEX field_ind
ON field (schemaId, fieldId)
CREATE INDEX field_schema_ind
ON field (schemaId)
go
not null,
not null,
not null,
null,
null,
not null,
not null,
not null,
null,
null)
vui_ind
Database Reference
CREATE UNIQUE CLUSTERED INDEX field_diary_ind
ON field_diary (schemaId, fieldId)
go
CREATE TABLE field_char
(schemaId
int
not null,
fieldId
int
not null,
maxLength
int
null,
qbeMatchOp
int
null,
menuStyle
int
null,
charMenu
varchar(254)
null,
pattern
varchar(255)
null,
fullTextOptions int
null)
go
CREATE UNIQUE CLUSTERED INDEX field_char_ind
ON field_char (schemaId, fieldId)
go
CREATE TABLE field_enum
(schemaId
int
not null,
fieldId
int
not null,
maxEnum
int
not null,
enumStyle
int
null,
schemaName
varchar(254)
null,
serverName
varchar(64)
null,
nameField
int
null,
numberField int
null,
queryShort
varchar(255)
null,
queryLong
text
null)
go
CREATE UNIQUE CLUSTERED INDEX field_enum_ind
ON field_enum (schemaId, fieldId)
go
CREATE TABLE field_enum_values
(schemaId
int
not null,
fieldId
int
not null,
enumId
int
not null,
value
varchar(254) not null)
go
CREATE CLUSTERED INDEX field_enum_val_ind
ON field_enum_values (schemaId, fieldId)
go
CREATE TABLE field_permissions
(schemaId
int
not null,
fieldId
int
not null,
groupId
int
not null,
permission
int
not null)
go
CREATE CLUSTERED INDEX field_permissions_ind
ON field_permissions (schemaId, fieldId)
go
CREATE TABLE field_attach
(schemaId
int
not null,
fieldId
int
not null,
maxSize
int
not null,
not null,
null)
go
CREATE UNIQUE CLUSTERED INDEX field_attach_ind
ON field_attach (schemaId, fieldId)
go
CREATE TABLE field_table
(schemaId
int
not null,
fieldId
int
not null,
numColumns
int
not null,
maxRetrieve int
not null,
tfSchema
varchar(254) not null,
tfServer
varchar(64) not null,
queryShort
varchar(255)
null,
queryLong
text
null,
sampleSchema varchar(254)
null,
sampleServer varchar(64)
null)
go
CREATE UNIQUE CLUSTERED INDEX field_table_ind
ON field_table (schemaId, fieldId)
go
CREATE TABLE field_column
(schemaId
int
not null,
fieldId
int
not null,
parent
int
not null,
dataField
int
not null,
colLength
int
not null,
dataSource
int
null)
go
CREATE UNIQUE CLUSTERED INDEX field_column_ind
ON field_column (schemaId, fieldId)
go
CREATE TABLE field_dec
(schemaId
int
not null,
fieldId
int
not null,
rangeLow
varchar(64)
null,
rangeHigh
varchar(64)
null,
arprecision int
null)
go
CREATE UNIQUE CLUSTERED INDEX field_dec_ind
ON field_dec (schemaId, fieldId)
go
CREATE TABLE field_curr
(schemaId
int
not null,
fieldId
int
not null,
rangeLow
varchar(64)
null,
rangeHigh
varchar(64)
null,
arprecision int
null,
funcCurr
text
null,
allowCurr
text
null
)
go
CREATE UNIQUE CLUSTERED INDEX field_curr_ind
ON field_curr (schemaId, fieldId)
Database Reference
go
CREATE TABLE join_mapping
(schemaId
int
not null,
fieldId
int
not null,
memberIndex int
not null,
mfieldId
int
not null)
go
CREATE TABLE field_view
(schemaId
int
not null,
fieldId
int
not null,
maxLength
int
null)
go
CREATE UNIQUE CLUSTERED INDEX field_view_ind
ON field_view (schemaId, fieldId)
go
CREATE TABLE field_display
(schemaId
int
not null,
fieldId
int
not null,
maxLength
int
null)
go
CREATE UNIQUE CLUSTERED INDEX field_display_ind
ON field_display (schemaId, fieldId)
go
CREATE TABLE field_date
(schemaId
int
not null,
fieldId
int
not null,
minDate
int
null,
maxDate
int
null)
go
CREATE UNIQUE CLUSTERED INDEX field_date_ind
ON field_date (schemaId, fieldId)
go
CREATE UNIQUE INDEX join_mapping_ind
ON join_mapping (schemaId, fieldId)
go
CREATE TABLE view_mapping
(schemaId
int
not null,
fieldId
int
not null,
extField
varchar(254) not null)
go
CREATE UNIQUE INDEX view_mapping_ind
ON view_mapping (schemaId, fieldId)
go
CREATE TABLE vendor_mapping
(schemaId
int
not null,
fieldId
int
not null,
extField
varchar(254) not null)
go
CREATE UNIQUE INDEX vendor_mapping_ind
ON vendor_mapping (schemaId, fieldId)
go
CREATE TABLE char_menu
(name
varchar(254) not null,
charMenuId
int
not null,
int
varchar(254)
varchar(254)
int
int
varchar(254)
text
text
text
varchar(32)
text
not null,
not null,
not null,
not null,
not null,
not null,
null,
null,
null,
null,
null)
go
CREATE UNIQUE CLUSTERED INDEX char_menu_ind
ON char_menu (name)
CREATE UNIQUE INDEX char_menu_id_ind
ON char_menu (charMenuId)
go
CREATE TABLE char_menu_list
(charMenuId
int
not null,
path
varchar(30) not null,
label
varchar(254) not null,
childType
int
not null,
value
varchar(255)
null)
go
CREATE CLUSTERED INDEX char_menu_list_ind
ON char_menu_list (charMenuId)
go
CREATE TABLE char_menu_query
(charMenuId
int
not null,
path
varchar(30) not null,
arschema
varchar(254) not null,
server
varchar(255) not null,
labelField
int
not null,
labelField2 int
null,
labelField3 int
null,
labelField4 int
null,
labelField5 int
null,
valueField
int
not null,
sortOnLabel int
not null,
queryShort
varchar(255)
null,
queryLong
text
null,
keywordList text
null,
parameterList text
null,
externList
text
null,
sampleSchema varchar(254)
null,
sampleServer varchar(64)
null)
go
CREATE CLUSTERED INDEX char_menu_qry_ind
ON char_menu_query (charMenuId)
go
CREATE TABLE char_menu_file
(charMenuId
int
not null,
path
varchar(30) not null,
Database Reference
fileLocation int
not null,
filename
varchar(255) not null)
go
CREATE CLUSTERED INDEX char_menu_file_ind
ON char_menu_file (charMenuId)
go
CREATE TABLE char_menu_sql
(charMenuId
int
not null,
path
varchar(30) not null,
server
varchar(255) not null,
labelIndex
int
not null,
labelIndex2 int
null,
labelIndex3 int
null,
labelIndex4 int
null,
labelIndex5 int
null,
valueIndex
int
not null,
sqlCmdShort varchar(255)
null,
sqlCmdLong
text
null,
keywordList text
null,
parameterList text
null,
externList
text
null)
go
CREATE CLUSTERED INDEX char_menu_sql_ind
ON char_menu_sql (charMenuId)
go
CREATE TABLE char_menu_dd
(charMenuId
int
not null,
path
varchar(30) not null,
server
varchar(64) not null,
structType
int
not null,
nameType
int
not null,
valueFormat
int
not null,
structSubtype
int
null,
arschema
varchar(254)
null,
hiddenToo
int
null)
go
CREATE CLUSTERED INDEX char_menu_dd_ind
ON char_menu_dd (charMenuId)
go
CREATE TABLE arcontainer
(name
varchar(254)
containerId
int
containerType int
timestamp
int
owner
varchar(254)
lastChanged
varchar(254)
numReferences int
label
varchar(255)
safeGuard
varchar(254)
description
text
changeDiary
text
helpText
text
not null,
not null,
not null,
not null,
not null,
not null,
not null,
null,
not null,
null,
null,
null,
text
varchar(32)
text
null,
null,
null)
go
CREATE UNIQUE CLUSTERED INDEX arctr_ind
ON arcontainer (name)
CREATE UNIQUE INDEX arctr_id_ind
ON arcontainer (containerId)
go
CREATE TABLE arctr_group_ids
(containerId
int
not null,
groupId
int
not null,
permission
int
not null)
go
CREATE CLUSTERED INDEX arctr_group_ind
ON arctr_group_ids (containerId)
go
CREATE TABLE arctr_subadmin
(containerId
int
not null,
groupId
int
not null)
go
CREATE CLUSTERED INDEX arctr_subadmin_ind
ON arctr_subadmin (containerId)
go
CREATE TABLE cntnr_ownr_obj
(containerId
int
not null,
ownerObjType int
not null,
ownerObjId
int
not null,
objIndex
int
not null)
go
CREATE INDEX cntnr_ownr_id_ind
ON cntnr_ownr_obj (containerId)
CREATE INDEX cntnr_ownr_obj_ind
ON cntnr_ownr_obj (ownerObjType, ownerObjId)
CREATE UNIQUE INDEX cntnr_ownr_ind
ON cntnr_ownr_obj (containerId, ownerObjType, ownerObjId)
go
CREATE TABLE arreference
(containerId
int
referenceId
int
referenceType
int
dataType
int
referenceOrder int
referenceObjId int
valueShort
varchar(255)
label
varchar(255)
valueLong
text
description
text
go
not
not
not
not
not
null,
null,
null,
null,
null,
null,
null,
null,
null,
null)
Database Reference
CREATE UNIQUE CLUSTERED INDEX arref_ind
ON arreference (containerId, referenceId)
go
CREATE TABLE arref_group_ids
(containerId
int
not null,
referenceId
int
not null,
groupId
int
not null)
go
CREATE CLUSTERED INDEX arref_group_ind
ON arref_group_ids (containerId, referenceId)
go
CREATE TABLE filter
(name
varchar(254) not null,
filterId
int
not null,
timestamp
int
not null,
owner
varchar(254) not null,
lastChanged varchar(254) not null,
wkConnType
int
not null,
fOrder
int
not null,
opSet
int
not null,
enable
int
not null,
numActions
int
not null,
numElses
int
not null,
safeGuard
varchar(254) not null,
queryShort
varchar(255)
null,
queryLong
text
null,
changeDiary text
null,
helpText
text
null,
objProp
text
null,
version
varchar(32)
null,
smObjProp
text
null)
go
CREATE UNIQUE CLUSTERED INDEX filter_ind
ON filter (name)
CREATE UNIQUE INDEX filter_id_ind
ON filter (filterId)
go
CREATE TABLE filter_notify
(filterId
int
not null,
actionIndex
int
not null,
userName
varchar(255) not null,
notifyText
varchar(255)
null,
priority
int
not null,
mechanism
int
not null,
mechXRef
int
not null,
fieldIdCode
int
not null,
subjectText
varchar(255)
null,
behavior
int
null,
permission
int
null,
fromUser
varchar(255)
null,
replyTo
varchar(255)
null,
cc
varchar(255)
null,
null,
null,
null,
null,
null,
null,
null)
go
CREATE CLUSTERED INDEX filter_notify_ind
ON filter_notify (filterId)
go
CREATE TABLE filter_notify_ids
(filterId
int
not null,
actionIndex int
not null,
fieldId
int
not null)
go
CREATE CLUSTERED INDEX filter_notify_ids_ind
ON filter_notify_ids (filterId, actionIndex)
go
CREATE TABLE filter_message
(filterId
int
not null,
actionIndex int
not null,
msgType
int
not null,
msgNum
int
not null,
msgText
varchar(255) not null)
go
CREATE CLUSTERED INDEX filter_message_ind
ON filter_message (filterId)
go
CREATE TABLE filter_log
(filterId
int
not null,
actionIndex int
not null,
logFile
varchar(255)
null)
go
CREATE CLUSTERED INDEX filter_log_ind
ON filter_log (filterId)
go
CREATE TABLE filter_set
(filterId
int
not null,
actionIndex int
not null,
fieldId
int
not null,
assignShort varchar(255)
null,
assignLong text
null,
sampleSchema varchar(254)
null,
sampleServer varchar(64)
null)
go
CREATE CLUSTERED INDEX filter_set_ind
ON filter_set (filterId)
go
CREATE TABLE filter_process
(filterId
int
not null,
actionIndex int
not null,
command
varchar(255) not null)
go
Database Reference
CREATE CLUSTERED INDEX filter_process_ind
ON filter_process (filterId)
go
CREATE TABLE filter_push
(filterId
int
not null,
actionIndex int
not null,
fieldId
int
not null,
assignShort varchar(255)
null,
assignLong text
null,
sampleSchema varchar(254)
null,
sampleServer varchar(64)
null)
go
CREATE CLUSTERED INDEX filter_push_ind
ON filter_push (filterId)
go
CREATE TABLE filter_sql
(filterId
int
not null,
actionIndex int
not null,
assignShort varchar(255)
null,
assignLong text
null)
go
CREATE CLUSTERED INDEX filter_sql_ind
ON filter_sql (filterId)
go
CREATE TABLE filter_gotoaction
(filterId
int
not null,
actionIndex int
not null,
tag
int
not null,
fieldIdOrValue
int
default 0 null)
go
CREATE CLUSTERED INDEX filter_gotoa_ind
ON filter_gotoaction (filterId)
go
CREATE TABLE filter_call
(filterId
int
not null,
actionIndex
int
not null,
serverName
varchar(64)
not null,
guideName
varchar(254)
not null,
guideMode
int
not null,
guideTableId
int
null,
assignShort
varchar(255)
null,
assignLong
text
null,
sampleServer
varchar(64)
null,
sampleGuide
varchar(254)
null)
go
CREATE CLUSTERED INDEX filter_call_ind
ON filter_call (filterId)
go
CREATE TABLE filter_exit
(filterId
int
not null,
actionIndex int
not null,
closeAll
char
null)
Database Reference
go
CREATE TABLE escal_mapping
(schemaId
int
not null,
objIndex
int
not null,
escalationId int
not null)
go
CREATE UNIQUE INDEX escal_mapping_ind
ON escal_mapping (schemaId, escalationId)
go
CREATE TABLE actlink
(name
varchar(254) not null,
actlinkId
int
not null,
timestamp
int
not null,
owner
varchar(254) not null,
lastChanged varchar(254) not null,
wkConnType
int
not null,
alOrder
int
not null,
executeMask int
not null,
controlfieldId
int
null,
fieldId
int
not null,
enable
int
not null,
numActions
int
not null,
numElses
int
not null,
safeGuard
varchar(254) not null,
queryShort
varchar(255)
null,
queryLong
text
null,
changeDiary text
null,
helpText
text
null,
objProp
text
null,
version
varchar(32)
null,
smObjProp
text
null)
go
CREATE UNIQUE CLUSTERED INDEX actlink_ind
ON actlink (name)
CREATE UNIQUE INDEX actlink_id_ind
ON actlink (actlinkId)
go
CREATE TABLE actlink_group_ids
(actlinkId
int
not null,
groupId
int
not null)
go
CREATE CLUSTERED INDEX actlink_group_ids_ind
ON actlink_group_ids (actlinkId)
go
CREATE TABLE actlink_macro
(actlinkId
int
not null,
actionIndex int
not null,
macroName
varchar(254) not null,
shortText
varchar(255)
null,
longText
text
null)
go
Database Reference
focus
accessOpt
options
int
int
int
null,
null,
null)
default 0
go
CREATE CLUSTERED INDEX actlink_schar_ind
ON actlink_set_char (actlinkId)
go
CREATE TABLE actlink_dde
(actlinkId
int
not null,
actionIndex int
not null,
serviceName varchar(64) not null,
topic
varchar(64) not null,
action
int
not null,
path
varchar(255) not null,
command
varchar(255) not null,
item
text
null)
go
CREATE CLUSTERED INDEX actlink_dde_ind
ON actlink_dde (actlinkId)
go
CREATE TABLE actlink_auto
(actlinkId
int
not null,
actionIndex
int
not null,
autoServerName varchar(255) not null,
clsId
varchar(128) not null,
isVisible
char
not null,
actionShort
varchar(255)
null,
actionLong
text
null,
COMShort
varchar(255)
null,
COMLong
text
null)
go
CREATE CLUSTERED INDEX actlink_auto_ind
ON actlink_auto (actlinkId)
go
CREATE TABLE actlink_push
(actlinkId
int
not null,
actionIndex int
not null,
fieldId
int
not null,
assignShort varchar(255)
null,
assignLong text
null,
sampleSchema varchar(254)
null,
sampleServer varchar(64)
null)
go
CREATE CLUSTERED INDEX actlink_push_ind
ON actlink_push (actlinkId)
go
CREATE TABLE actlink_sql
(actlinkId
int
not null,
actionIndex int
not null,
assignShort varchar(255)
null,
assignLong text
null,
keywordList text
null,
parameterList text
null)
go
not
not
not
not
not
null,
null,
null,
null,
null,
Database Reference
guideTableId
int
null,
assignShort
varchar(255)
null,
assignLong
text
null,
sampleServer
varchar(64)
null,
sampleGuide
varchar(254)
null)
go
CREATE CLUSTERED INDEX actlink_call_ind
ON actlink_call (actlinkId)
go
CREATE TABLE actlink_exit
(actlinkId
int
not null,
actionIndex int
not null,
closeAll
char
null)
go
CREATE CLUSTERED INDEX actlink_exit_ind
ON actlink_exit (actlinkId)
go
CREATE TABLE actlink_goto
(actlinkId
int
not null,
actionIndex int
not null,
label
varchar(128) not null)
go
CREATE CLUSTERED INDEX actlink_goto_ind
ON actlink_goto (actlinkId)
go
CREATE TABLE actlink_wait
(actlinkId
int
not null,
actionIndex int
not null,
buttonTitle varchar(64) default 'Continue'
go
CREATE CLUSTERED INDEX actlink_wait_ind
ON actlink_wait (actlinkId)
go
null)
null,
not null)
not null,
not null,
not null,
Database Reference
entryId
operationType
updateTime
seqNum
varchar(15)
int
int
int
null,
not null,
null,
not null)
go
CREATE CLUSTERED INDEX ft_pending_ind
ON ft_pending (seqNum)
go
Appendix
Changing the AR System database user name and password (page 130)
Converting AR System dates to database dates (page 131)
Note: These procedures address the most commonly requested AR System
technical information. For access to the complete set of AR System
technical information and procedures, visit the Customer Support website
at http://www.remedy.com.
Note: See Using IBM DB2 Universal Database with AR System on page 13
for special considerations for database user name and password with DB2.
Database Reference
To convert the date and time format for a DB2 Universal database
See your DB2 documentation for information about dateline
arithmetic.
where <column_number> is the number of the column for the date and time
field, <table_number> is the number of the form table, and <offset_hours>
is a positive or negative number representing the number of hours later or
earlier than GMT.
If the date is greater than 09/10/2001, you will receive an error. To avoid an
error, you can display minutes instead of seconds by using the following
command:
% select (extend((extend(datetime(1970-1-1) year to day, year to
hour) - interval(<offset_hours>) hour to hour), year to minute)
+(C<column_number>/60) units minute) from T<table_number>
See the Informix Guide to SQL: Reference and Syntax manual for information
about the datetime, extend, and interval functions.
where <column_number> is the number of the column for the date and time
field, <table_number> is the number of the form table, and <offset> is a
positive or negative number representing the number of seconds later or
earlier than GMT. See the your Oracle documentation for information about
the TO_DATE and TO_CHAR functions.
To convert the date and time format for a Sybase or Microsoft SQL
Server database
1 Using any front-end tool that enables direct access to a Sybase or Microsoft
SQL Server database, log in as a user who has write access to the AR System
tables.
2 Type the following command:
% select dateadd(second, C<column_number> + <offset>,
"Jan 1, 1970") from T<table_number>
where <column_number> is the number of the column for the date and time
field, <table_number> is the number of the form table, and <offset> is a
positive or negative number representing the number of seconds later or
earlier than GMT.
3 Optionally, you could format the date field by using the convert function.
There are 12 different formats from which you can choose. See your Sybase
documentation.
Index
A
active links table
described 30
illustrated 26
AR System data dictionary 2432
AR System database user and
password, changing 130
attachment tables
data 34, 36
details 34, 36
C
case sensitivity in databases
Microsoft SQL 17
Sybase 18
changing database user and password 130
character fields in databases
Informix 16
Microsoft SQL 17
CLOB storage 24
connections, Informix databases 16
containers table
illustrated 27
containers table, described 31
control table, described 27
converting dates 131
currency table, described 35
D
data dictionary, AR System 2432
data types
DB2 20
Informix 21
Microsoft SQL 22
Oracle 23
Sybase 24
database connections, Informix databases 16
database user and password, changing 130
databases
attachment tables 34
currency table 35
date converting 131
field length 40
fields 39
forms 38
IBM DB2 SQL commands 5070
indexing 36
Informix maximum connections 16
Informix SQL commands 7188
installing 12
main data table 32
Microsoft SQL commands 106127
Oracle 89106
SQL views 37
status history table 33, 36
structure 12
Sybase SQL commands 106127
time, converting 131
Unicode support 4448
Unicode, creating 45
Unicode, migrating 46
view user interface (VUI) 28
Index 133
E
escalations table
described 30
illustrated 26
external Informix databases 17
F
field limits in databases
DB2 14
Informix 16
Microsoft SQL 17
Sybase 18
fields
adding to forms 39
changing length 40
deleting from database 39
join form views 29
table 25
fields table, described 29
filters table
described 30
illustrated 26
forms
database tables 32
databases 38
performance tuning 39
forms table
described 28
illustrated 25
J
join forms
main data view 32
Sybase databases and 19
L
libraries, shared 17
M
main data table
index 36
join form 32
menus table
described 29
illustrated 26
Microsoft SQL Server Database
case sensitivity 17
character diary field limits 17
character string 17
data types 22
field length 41
I
IBM DB2 database
data types 20
date/time format 131
field length 40
field size limit 14
SQL commands 5070
134 Index
Database Reference
O
Oracle database
CLOB storage 24
data types 23
date/time format 132
field length 42
searches and 18
SQL commands 89106
using with AR System 18
P
password, changing 130
performance tuning, forms 39
primary key 36
S
searches in databases
Informix 16
Microsoft SQL 17
Oracle 18
Sybase 18
shared libraries 17
SQL commands
DB2 5070
Informix 7188
Microsoft SQL Server 106127
Oracle 89106
Sybase 106127
SQL, views 37
status history table 33, 36
Sybase database
case sensitivity 18
character sets 19
character string 18
data types 24
date/time format 132
diary field limits 18
field length 42
joins 19
SQL commands 106127
T
table types, database
active links 30
attachment details 34
containers 31
control 27
currency 35
escalations 30
fields 29
filters 30
forms 28, 32
main 32
menus 29
status history 33
workflow mapping 31
tables, database indexing 36
time, converting 131
U
Unicode
compliance 44
database, creating 45
database, requirements for installation 45
database, support 4448
Informix considerations 48
Microsoft SQL considerations 47
migrating existing AR database 46
user name and password, DB2 database 13
V
view user interface (VUI) 28
views, SQL 37
VUI (view user interface) 28
W
wildcards in Informix 16
workflow mapping table
described 31
illustrated 26
Index 135
136 Index
*58473*
*58473*
*58473*
*58473*
*58473*