Questo contenuto non è disponibile nella lingua selezionata.
8.2. VDB Metadata
- SYSADMIN.Usage
- This table supplies information about how views and procedures are defined:
Expand Column NameTypeDescriptionVDBNamestringVDB name.UIDstringObject UID.object_typestringType of object (StoredProcedure, View, and so forth).NamestringObject Name or parent name.ElementNamestringName of column or parameter (may be null to indicate a table or procedure).Uses_UIDstringUsed object UID.Uses_object_typestringUsed object type.Uses_SchemaNamestringUsed object schema.Uses_NamestringUsed object name or parent name.Uses_ElementNamestringUsed column or parameter name (may be null to indicate a table/procedure level dependency).Schema_NamestringSchema name.Every column, parameter, table, or procedure referenced in a procedure or view definition will be shown as used. Likewise every column, parameter, table, or procedure referenced in the expression that defines a view column will be shown as used by that column. Here is an example of how it is used:SELECT * FROM SYSADMIN.Usage
SELECT * FROM SYSADMIN.Usage
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Recursive common table queries can be used to determine transitive relationships:Copy to Clipboard Copied! Toggle word wrap Toggle overflow This example finds all outgoing usage:Copy to Clipboard Copied! Toggle word wrap Toggle overflow
- SYSADMIN.MatViews
- This table supplies information about all the materialized views in the virtual database:
Column Name
|
Type
|
Description
|
---|---|---|
VDBName
|
string
|
VDB name.
|
SchemaName
|
string
|
Schema name.
|
Name
|
string
|
Short group name.
|
TargetSchemaName
|
string
|
Name of the materialized table schema. Will be null for internal materialization.
|
TargetName
|
string
|
Name of the materialized table.
|
Valid
|
boolean
|
True if materialized table is currently valid. Will be null for external materialization.
|
LoadState
|
boolean
|
The load state, can be one of NEEDS_LOADING, LOADING, LOADED, FAILED_LOAD. Will be null for external materialization.
|
Updated
|
timestamp
|
The timestamp of the last full refresh. Will be null for external materialization.
|
Cardinality
|
integer
|
The number of rows in the materialized view table. Will be null for external materialization.
|
Valid, LoadState, Updated, and Cardinality may be checked for external materialized views with the SYSADMIN.matViewStatus procedure:
SELECT * FROM SYSADMIN.MatViews
SELECT * FROM SYSADMIN.MatViews
- SYSADMIN.Triggers
- This table provides the triggers in the virtual database.
Column Name
|
Type
|
Description
|
---|---|---|
VDBName
|
string
|
VDB name.
|
SchemaName
|
string
|
Schema name.
|
TableName
|
string
|
Table name.
|
Name
|
string
|
Trigger name.
|
TriggerType
|
string
|
Trigger type.
|
TriggerEvent
|
string
|
Triggering event.
|
Status
|
string
|
Is Enabled.
|
Body
|
clob
|
Trigger action (for each row).
|
TableUID
|
string
|
Table unique Id.
|
SELECT * FROM SYSADMIN.Triggers
SELECT * FROM SYSADMIN.Triggers
- SYSADMIN.Views
- This table provides the views in the virtual database.
Column Name
|
Type
|
Description
|
---|---|---|
VDBName
|
string
|
VDB name.
|
SchemaName
|
string
|
Schema name.
|
Name
|
string
|
View name.
|
Body
|
clob
|
View Definition Body (SELECT …)
|
UID
|
string
|
Table unique Id.
|
Here is an example:
SELECT * FROM SYSADMIN.Views
SELECT * FROM SYSADMIN.Views
- SYSADMIN.StoredProcedures
- This table provides the stored procedures in the virtual database.
Column Name
|
Type
|
Description
|
---|---|---|
VDBName
|
string
|
VDB name.
|
SchemaName
|
string
|
Schema name.
|
Name
|
string
|
Procedure name.
|
Body
|
clob
|
Procedure Definition Body (BEGIN …)
|
UID
|
string
|
Unique ID.
|
SELECT * FROM SYSADMIN.StoredProcedures
SELECT * FROM SYSADMIN.StoredProcedures
- SYSADMIN.VDBResources
- This table provides the current VDB contents.
Expand Column NameTypeDescriptionresourcePathstringThe path to the contents.contentsblobThe contents as a blob. - SYS.VirtualDatabases
- This table supplies information about the currently connected virtual database, of which there is always exactly one (in the context of a connection).
Expand Column NameTypeDescriptionNamestringThe name of the VDBVersionstringThe version of the VDB - SYS.Schemas
- This table supplies information about all the schemas in the virtual database, including the system schema itself (System).
Expand Column NameTypeDescriptionVDBNamestringVDB nameNamestringSchema nameIsPhysicalbooleanTrue if this represents a sourceUIDstringUnique IDOIDintegerUnique IDDescriptionstringDescriptionPrimaryMetamodelURIstringURI for the primary metamodel describing the model used for this schema - SYS.Properties
- This table supplies user-defined properties on all objects based on metamodel extensions. Normally, this table is empty if no metamodel extensions are being used.
Expand Column NameTypeDescriptionNamestringExtension property nameValuestringExtension property valueUIDstringKey unique IDOIDintegerUnique IDClobValueclobClob Value
Warning
The OID column is no longer used on system tables. Use UID instead.