Validation Rules
Catalog
Mandatory
namedefault_connectionThe specified connection must be available.
Optional
objectIDPoints to the repository ID of the Semantic Catalog content.
Business Rules
- Must have a connection.
- Must have a model.
- Must have a table.
- All models in a catalog must have unique names.
-
All connections in a catalog must have unique names.
-
All tables in a catalog must have unique names.
Connection
Mandatory
- name The connection name and file name must match.
- default_connection The specified connection must be available.
Optional
- synonyms. If specified, all synonyms must have unique names.
Model
Mandatory
- name The model name and file name must match.
- fact The specified fact semantic table must be available.
Optional
connectionIf specified, the connection must be available. When missing, the catalogdefault_connectionmust be specified. TBD: Should it be mandatory?-
joins -
The
to_semantic_tablemust be available. -
The
from_fk_columnsmust be specified. -
objectID
Points to the repository ID of the Semantic Model object.
Business Rules
-
All visible (hide=false) semantic columns in a model must have unique names to enable the model relationship database view to list them.
-
All hierarchies in a model must have unique names to enable Oracle Analytic View to define them.
Table
Mandatory
nameThe table name and file name must match.unique_keysMust be present for tables that play the FK role in joins that the model uses. The fact table in a model does not have to have theunique_keys.
Optional
-
columns -
All columns and metrics must have unique names.
-
Column expressions can reference database columns and other semantic columns.
-
metrics -
Metric expressions can reference columns and other metrics, but not database columns.
-
joins -
The
to_semantic_tablemust be available. - The
from_fk_columnsmust be specified. -
A join adds all semantic columns defined in the FROM semantic table to the TO semantic table. When the FROM semantic table has joins, the same applies. All these columns must have unique names.
-
levels
Oracle Analytic Views require each ATTRIBUTE DIMENSION to have at least one level. When a semantic table does not define levels, the export bridge creates a level named after the table, with key_columns pointing to its default unique_keys columns, and creates a hierarchy named after the table plus 'hierarchy' with the level.