To identify the source Clarity table or view that populates a specific Data Warehouse (DWH) target table, use the built-in metadata tables within the DWH schema. This is useful for troubleshooting data derivations or understanding table relationships.
Clarity PPM (All supported releases) Data Warehouse (DWH)
To check the source-object mapping for DWH target tables:
DWH_META_TABLES (Table available in both DB sources to find table-level mapping): src_table_name, src_key_column, src_display_column, src_date_column, dwh_table_name, dwh_key_column, ..., is_fact
DWH_META_COLUMNS (Table available in both DB sources to find column-level mapping): object_code, attribute_code, src_table_name, src_column_name, dwh_table_name, dwh_column_name, is_custom, is_fiscal_tsv, ...
DWH_CMN_HIERARCHY, DWH_CMN_HIERARCHY_NODESELECT dwh_table,src_tableFROM DWH_META_TABLES dmtWHERE UPPER(dwh_table) IN ('DWH_CMN_HIERARCHY','DWH_CMN_HIERARCHY_NODE') ORDER BY dwh_table;Once you have the source table DWH table name or view name then the following queries can be used:
The view code to find referenced columns
SELECT text FROM all_views WHERE view_name = 'DWH_PROJECT_V'
Based on the view code optionally check dependencies:
SELECT referenced_owner, referenced_name, referenced_typeFROM user_dependenciesWHERE name = 'DWH_PROJECT_V'AND type = 'VIEW'ORDER BY referenced_name;
To validate referenced columns from the source views:
SELECT column_name,data_type,data_length,char_length,data_precision,data_scale,nullableFROM all_tab_columnsWHERE table_name = 'DWH_PROJECT_V'ORDER BY column_name;