Application Data Model

EMCLI Commands

To list ADMs that are currently defined in the Management Repository use list_adms. For example:

$OMS_HOME/bin/emcli list_adms
ADM Name            Target Name            Application Name
ADM1                DB1                    GENERIC
ADM2                DB2                    GENERIC
ADM3                DB1                    GENERIC
ADM4                DB3                    GENERIC

To export an ADM definition use export_adm. For example:

$OMS_HOME/bin/emcli export_adm -adm_name=ADM3
ADM exported successfully

The above command will create ADM.xml in the current working directory.

Options are:

To import an ADM definition use import_adm. For example:

$OMS_HOME/bin/emcli import_adm -file=ADM3.xml -adm_name=ADM3 -target_name=DB2 \
-target_type=oracle_database 
ADM imported successfully

Repository Tables

DB_DDRM_DEFS

Contains one row for each application model

Column Name Data Type Notes
DDRM_IDNUMBER 
DDRM_SRC_TGT_IDRAW(16) 
JOB_IDRAW(16) 
EXECUTION_IDRAW(16) 
DDRM_OWNERVARCHAR2(256) 
NAMEVARCHAR2(64) 
APPSUITE_NAMEVARCHAR2(64) 
CTIMEDATE 
MTIMEDATE 
FLAGSNUMBER 
OPS_NAMEVARCHAR2(64) 
USER_COMMENTVARCHAR2(4000) 
DDRM_GUIDRAW(16) 

NAME is application model name

Primary key based on DB_DDRM_DEFS_PK (NAME,DDRM_OWNER)

Unique index based on DB_DDRM_DEFS_UC1 (DDRM_ID)

Unique index based on DB_DDRM_DEFS_UK1 (DDRM_GUID)

DB_DDRM_APPLS

Contains one row for each application model

Multiple rows can exist with the same APPL_NAME

Column Name Data Type Notes
DDRM_IDNUMBER 
APPL_NAMEVARCHAR2(128) 
APPL_SHORT_NAMEVARCHAR2(30) 
CTIMEDATE 
FLAGSNUMBER 
OPS_NAMEVARCHAR2(64) 
USER_COMMENTVARCHAR2(4000) 
SOURCE_MSG_IDVARCHAR2(128) 

Primary key based on DB_DDRM_APPLS_PK (DDRM_ID,APPL_NAME)

Unique key based on DB_DDRM_APPLS_PK (DDRM_ID,APPL_SHORT_NAME)

DB_DDRM_TABLES

Contains one row for each table in each application model

All tables owned by the schema are included. For example there are four rows for SCOTT (BONUS, DEPT, EMP and SALGRADE)

Column Name Data Type Notes
DDRM_IDNUMBER 
AS_NAMEVARCHAR2(30)Application Short Name
TABLE_NAMEVARCHAR2(30) 
TABLE_TYPEVARCHAR2(30) 
IS_DISABLEDVARCHAR2(1) 
VALIDATION_STATUSNUMBER 
OPS_NAMEVARCHAR2(64) 
SOURCE_MSG_IDVARCHAR2(128) 
USER_COMMENTVARCHAR2(4000) 

Primary key based on DB_DDRM_TABLES_PK (DDRM_ID,AS_NAME,TABLE_NAME)

Index based on DB_DDRM_APPLS_IDX (DDRM_ID,TABLE_TYPE)

TABLE_TYPE is usually "Transaction Data"

DB_DDRM_SENSITIVE_INFO

Sensitive columns are stored in DB_DDRM_SENSITIVE_INFO

Column Name Data Type Notes
DDRM_IDNUMBER 
TYPE_IDNUMBER 
COLUMN_IDNUMBER 
AS_NAMEVARCHAR2(30)Application Short Name
TABLE_NAMEVARCHAR2(30) 
COLUMN_NAMEVARCHAR2(30) 
EFFECTIVE_PARENTNUMBER 
STATUSNUMBER 
REF_REL_TYPENUMBER 
DATA_TYPEVARCHAR2(106) 
DATA_LENGTHNUMBER 
DATA_PRECISIONNUMBER 
DATA_SCALENUMBER 
CHAR_LENGTHNUMBER 
IS_DISABLEDVARCHAR2(1) 
VALIDATION_STATUSNUMBER(2) 
FLAGSNUMBER 
OPS_NAMEVARCHAR2(64) 
SOURCE_MSG_IDVARCHAR2(128) 
USER_COMMENTVARCHAR2(4000) 

Primary key uses index DB_DDRM_SI_PK (DDRM_ID, AS_NAME, TABLE_NAME, COLUMN_NAME)

Unique constraint uses index DB_DDRM_SI_UK (DDRM_ID, COLUMN_ID)

COLUMN_ID is generated using DB_DDRM_SENSITIVE_COLUMN_ID sequence