Skip to content
  • There are no suggestions because the search field is empty.

Oracle Data Vault and Mart

Applies to
Platform: Oracle
Architecture: Data Vault · Data Mart

Oracle Data Vault and Mart generates a Stage, Raw Vault, Business Vault and Mart for an Oracle database as SQL*Plus scripts with PL/SQL loader packages. Select the Generator Configuration Oracle Data Vault & Mart when you add a project whose Data Vault and data mart run on Oracle in one project.

Scope and output

  • Platform: Oracle. The configuration is available since Generator 2.0.
  • Dataflow Modeling columns: Source; Stage under Bronze; Raw Vault and Business Vault under Silver; Datamart under Gold with the Mart model objects, shown as Data Mart in the diagram. See Understand the Layering concept.
  • Deployment layers: Stage, Raw Vault, Business Vault and Mart.
  • Output: one SQL*Plus script per layer, PL/SQL loader packages, the load control scripts and the PowerShell 7 scripts that deploy and load, described in Oracle - Artifacts.

Solid arrows are dataflows between the Dataflow Modeling columns of the project; dashed outlines mark columns of linked projects, and dashed arrows are their dataflows:

Layer flow of a Data Vault and Mart project: data flows from Source into Stage and from Stage into Raw Vault. Raw Vault feeds Business Vault and Data Mart, and Business Vault feeds Data Mart. From linked projects, Raw Vault can also read Stage, Data Store or Raw Vault objects, Business Vault can read Raw Vault or Business Vault objects, and Data Mart can read Data Store, Raw Vault, Business Vault or Data Mart objects.

Prerequisites

  • One Oracle user for each layer, here Stage, Raw Vault, Business Vault and Mart, and one for load control with Native Load Control. Each user name is also the schema name of its layer.
  • PowerShell 7 and SQL*Plus on the machine that deploys.
  • The privileges listed in Oracle - Target environment.
  • With Create GRANTs for Imported Objects on: the user name and password of each linked layer's user, for the grants on imported objects.

The placeholders are listed in Oracle - Placeholder values.

Sources and linked projects

The source system has the type Oracle. Stage views read its tables through a database link or directly, as set in Database Links for Source Systems.

You can import a linked project as a source and export this project as a linked project. Create GRANTs for Imported Objects decides whether the deployment grants the imported objects to the layer users.

Supported model objects

Source and Stage

Raw Vault

Business Vault

Mart

Capabilities and limitations

  • Names: generated names are unquoted and in capitals. Characters other than letters, digits, _, $ and # become _, and names are cut to 128 characters.
  • Keys: primary keys are created with RELY and a unique index, and business keys get a unique constraint. Foreign Key Mode offers None, Create Disabled (default) and Create Enforced.
  • Indexes: the deployment creates a B-tree index on the referencing columns of each relationship, unless the primary key or a unique key has the same columns. On Mart Facts it is a bitmap index. Index management offers B-Tree Index and Bitmap Index and the option Create as local Index.
  • Table storage: Partition Clause and table storage (Model Object) describes the partition, compression, tablespace and statistics properties.
  • Wide objects: Hash Group Size splits the row hash of Satellites, Link Satellites, Multi-Active Satellites, their Business Vault counterparts, Reference Tables and Mart Dimensions into groups.
  • Identity values: the surrogate keys of Mart Dimensions and identity columns such as BG_ID are NUMBER GENERATED BY DEFAULT AS IDENTITY.
  • Unknown member: when the row is missing, the deployment adds a row with the hash key HEXTORAW('0') to Hubs, Links, Satellites, Link Satellites and Multi-Active Satellites and a row with the surrogate key -1 to each Mart Dimension table. Custom Singleton Values sets their values.
  • Hashing: hash keys and row hashes are STANDARD_HASH(..., 'SHA1') with the default Hash Algorithm, stored in RAW(20) columns. See How biGENIUS-X builds hash values.
  • Validity: with Persist Validity off (default), historized tables have no BG_ValidToTimestamp column; the result view computes it.
  • Change detection: changes to Satellite terms selected in Excluded from Delta Detection alone create no new version.
  • Loading order: Use Embryo Loader on a relationship adds a loader that inserts missing Hub or Link keys before the Satellite loader runs.
  • Data quality: data quality rules are available, except on Mart model objects.
  • Grants: each layer grants ALL with GRANT OPTION on its tables and views to the users of the following layers. It grants EXECUTE on its loader packages to the load-control user.
  • Data types: the platform data types CHAR(CHAR), CHAR(BYTE), VARCHAR2(CHAR) and VARCHAR2(BYTE) write the length semantics, for example VARCHAR2(100 CHAR). CHAR and VARCHAR2 write none, so the database setting NLS_LENGTH_SEMANTICS applies. TIMESTAMP WITH TIME ZONE with precision 3 becomes TIMESTAMP(3) WITH TIME ZONE.
  • Data type validation: a length, precision or scale that does not fit the Oracle data type gets a warning, see Invalid data type configuration (Business Rule). The generator writes the configured value: VARCHAR2(5000) fails with ORA-00910 at deployment on a database with MAX_STRING_SIZE = STANDARD.

Project properties

Project Settings shows these properties of the configuration, with their defaults:

With SHA256, SHA384 or SHA512, the hash Default Terms stay RAW(20). Set their data type to the result length of the algorithm, see Hash Algorithm.

Older projects can still show the legacy property Behaviour for Nulled Business Keys in Links, which data quality rules replace.

Data types

Default Term data types by platform lists the data types of the Default Terms on Oracle.

Platform differences

The table compares the configuration with Microsoft SQL Server Data Vault and Mart of the same release:

ItemOracleMicrosoft SQL Server
Hash Algorithm values besides SHA1 and MD5SHA256, SHA384, SHA512SHA2_256
Index typesB-tree, bitmaprowstore, columnstore
Database Links for Source Systemsavailablenot available
Create GRANTs for Imported Objectsavailablenot available
Hash Group Sizeavailablenot available
Create as local Indexavailablenot available
Table storage propertiesavailablenot available
Included Columns of an indexnot availableavailable

Example

The Raw Vault script grants the Hub BDC_CUSTOMER to the Business Vault and Mart users. The Mart Fact load_incremental_source references the Mart Dimension common_salestransaction and gets a bitmap index on that column. The names in angle brackets stand for placeholders:

GRANT ALL ON <raw vault schema>.RDV_HUB_BDC_CUSTOMER
    TO <business vault user>, <mart user> WITH GRANT OPTION;

CREATE TABLE <mart schema>.DM_MF_LOAD_INCREMENTAL_SOURCE (
     BG_LOADTIMESTAMP TIMESTAMP NOT NULL
    ,BG_SOURCESYSTEM VARCHAR2(255)
    ,SALES_PRICE NUMBER(18, 2)
    ,QUANTITY NUMBER(18, 3)
    ,SALES_AMOUNT NUMBER(18, 2)
    ,COMMON_SALESTRANSACTION_COMMON_SALESTRANSACTION_SK NUMBER NOT NULL
)
;
CREATE BITMAP INDEX
  <mart schema>.DM_MF_LOAD_INCREMENTAL_SOURCE_COMMON_SALESTRANSACTION_IDX
  ON <mart schema>.DM_MF_LOAD_INCREMENTAL_SOURCE
  (COMMON_SALESTRANSACTION_COMMON_SALESTRANSACTION_SK)
;

Release differences

Project Settings shows the Generator Version of your project.

  • Generator 2.0: first release of the configuration.
  • Generator 2.2: Vault Out and Mart Out; the project properties Persist Validity, Create Result Views and the four Hash properties; the model object properties Increment Management Type and Use Embryo Loader, see Embryo Loader; the platform data types with length semantics and the data type validation; the replacement of characters in generated names. Up to Generator 2.0.1, precision 3 was written as TIMESTAMP(3 WITH TIME ZONE).
  • Generator 2.3: the model object properties Hash Group Size and Custom Singleton Values.
  • Generator 2.4: Non-Historized Satellite and Non-Historized Business Satellite; the model object property Excluded from Delta Detection.
  • Fixes for Oracle are listed in Generators Release - 2.3.0, Generators Release - 2.4.0 and Generators Release - 2.4.1.

Related articles