reassoc_masking_definition
Reassociates an existing masking definition with another database target.
Format
emcli reassoc_masking_definition
-definition_name=masking definition name
-target_name=database target name
-target_type=database target type
[-parameters=name1:value1;name2:value2;...]
[-credential_name=credential_name]
[-input_file=parameter_tag:file_path]
[ ] indicates that the parameter is optionalOptions
-
definition_name
Masking definition name.
-
target_name
New database target name with which to associate the masking definition.
-
target_type
New database target type with which to associate the masking definition.
-
parameters
List of name-value pairs that represent the credentials required for connecting to the database instance. The supported parameters are db_username, db_password, and db_role.
-
credential_name
Name of the database credential. This option is mandatory when the db_username and db_password parameters are not specified.
-
input_file
Used in conjunction with the parameters option, this option enables you to store parameter values, such as username and password, in a separate file. This option specifies a mapping between a tag and a local file path. The tag is specified in lieu of specific parameter values for the parameters . The tag must not contain colons ( : ) or semi-colons ( ; ).
For more information about the input_file parameter, see -input_file Syntax Guidelines.
Output
Success or failure message along with the details.
Examples
Example 1
This example reassociates the masking definition mask_hr_data with the new database target testdb2 :
emcli reassoc_masking_definition
-definition_name=mask_hr_data
-target_name=testdb2
-parameters="db_username:system;db_password:password;db_role:NORMAL"
Example 2
This example reassociates the masking definition mask_hr_data with the new database target testdb2. The database password is read from the pwd.txt file.
emcli reassoc_masking_definition
-definition_name=mask_hr_data
-target_name=testdb2
-parameters="db_username:system;db_password:PWD_FILE;db_role=SYSDBA"
-input_file="PWD_FILE:pwd.txt"