Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview
Anchor
Top
Top

HUB/BOG naming standards aid developers by providing uniformity for Data Warehouse database objects.

Tables

AnchorTablesTables
  •  Follow identifier naming convention described in the above section. (scope, primary identifier, modifier)
  •  Ex: HUB_PERSON_CURRENT

Back to Top

Indexes AnchorIndexes

Indexes

  •  table_name_idx##
  •  Ex: HUB_PERSON_CURRENT_IDX01

Back to Top

Info
iconfalse
titleTable of Contents
  • Tables
  • Indexes
  • Primary Key Constraint
  • Foreign Key Constraint
  • Sequence
  • Trigger
  • Snapshots and Materialized Views
  • Views
  • Function
  • Procedure

  • Package
  • Dblink
  • Insert Script


  • Primary

    Key Constraint AnchorPrimary

    Key Constraint

    Primary Key Constraint
    •  table_name_pk
    •  Ex: HUB_PERSON_CURRENT_PK

    Back to TopUnique Key Constraintanchor

    Unique Key ConstraintUnique Key Constraint

    •  table_name_uk##
    •  Ex: HUB_PERSON_CURRENT_UK

    Back to TopForeign Key Constraint AnchorForeign Key Constraint

    Foreign Key Constraint

    •  table_name _fk##
    •  Ex: HUB_PERSON_CURRENT_UK

    Back to Top

    SequenceanchorSequenceSequence

    •  table_name_seq## (if associated with a table. Else follows identifier naming convention from the above section)
    • Ex: HUB_PERSON_CURRENT_SEQ

    Back to TopTriggeranchor

    TriggerTrigger

    •  table_name_action_trg
    •  Ex: HUB_PERSON_CURRENT_INS_UPD_TRG

    Back to Top

    Snapshots and Materialized Views AnchorSnapshots and Materialized ViewsSnapshots and Materialized Views

    • The name of the source object, pre-pended by system name. (Scope, primary identifier, modifier)
    •  Ex: snapshot of spbpers becomes OASIS_SPBPERS.

    Back to Top

    Viewsanchor

    ViewsViews

    • Same as tables. (scope, primary identifier, modifier)
    •  Ex: HUB_STUDENT_COURSES

    Back to Top

    Function AnchorFunctionFunction

    •  F_ scope_primary identifier_modifier
    •  Ex : F_OASIS_EXTERNAL_ID

    Back to Top

    Procedure AnchorProcedureProcedure

    •  P_ scope_primary identifier_modifier
    •  Ex: P_REG_STUDENT_EXEMPTIONS

    Back to Top

    Package AnchorPackagePackage

    •  scope_primary identifier_modifier_pkg
    •  Ex: COMMON_DATALOAD_PKG

    Back to Top

    Dblink AnchorDblinkDblink

    • 1st type - system name (like OASIS) will point at database in same state as you are in. in other words, from DWDVLP, OASIS dblink will point at db: dvlp. In DWTEST same name will point at pprd. In DWHOUSE same name will point at prod. This allows code to be promoted without modifying.
    • 2nd type, if actual database name, it points at actual database. For example, in DWDVLP, GEMSPRO dblink will point at GEMSPRO database, GEMS dblink will point at GEMSDVLP database. (Note: in some cases these 2 types are the same. System and db have same name. Those are solved on case by case basis).

    Back to TopInsert Script AnchorInsert Script

    Insert Script

    •  tablename_ins.sql
    •  Ex : HUB_ROOMS_INS.sql
      •  The following are the exceptions
        • For table hub_xref_rule inserts, the script should be named as xref_kw_qualifier_ins.sql
        • For table q$error inserts, the insert script should be named as q$error_catname_ins.sql

    Back to Top

    Data Analytics & Reporting Team (DART), SVC4010, Contact Us