Installing the DM_FMTLIB Package

The predefined masking formats use functions defined in the DM_FMTLIB package. This package is automatically installed in the DBSNMP schema of your Enterprise Manager repository database. To use the predefined masking formats on a target database (other than the repository database), you must manually install the DM_FMTLIB package on that database.

To install the DM_FMTLIB package:

  1. Locate the following scripts in your Enterprise Manager installation:

    $PLUGIN_HOME/sql/db/latest/masking/dm_fmtlib_pkgdef.sql
    $PLUGIN_HOME/sql/db/latest/masking/dm_fmtlib_pkgbody.sql
    

    Where PLUGIN_HOME can be any of the locations returned by the following SQL SELECT statement, executed as SYSMAN:

    select PLUGIN_HOME from gc_current_deployed_plugin where plugin_id='oracle.sysman.db' and destination_type='OMS'; 
    
  2. Copy these scripts to a directory in your target database installation and execute them using SQL*Plus, connected as a user that can create packages in the DBSNMP schema.

    You can now use the predefined masking formats in your masking definitions.

  3. Select and import any predefined masking format into a masking definition by clicking the Import Format button on the Define Column Mask page.