Setting the default displayed values for full redaction
To change the default displayed values for full redaction on your Amazon RDS Oracle
instance, use the Amazon RDS procedure
rdsadmin.rdsadmin_util.dbms_redact_upd_full_rdct_val
. Note that you
create a redaction policy with the DBMS_REDACT
PL/SQL package, as
explained in the Oracle Database documentation. The
dbms_redact_upd_full_rdct_val
procedure specifies the characters to
display for different data types affected by an existing policy.
The dbms_redact_upd_full_rdct_val
procedure has the following
parameters.
Parameter name | Data type | Default | Required | Description |
---|---|---|---|---|
|
number |
Null |
No |
Modifies the default value for columns of the
|
|
binary_float |
Null |
No |
Modifies the default value for columns of the
|
|
binary_double |
Null |
No |
Modifies the default value for columns of the
|
|
char |
Null |
No |
Modifies the default value for columns of the
|
|
varchar2 |
Null |
No |
Modifies the default value for columns of the
|
|
nchar |
Null |
No |
Modifies the default value for columns of the
|
|
nvarchar2 |
Null |
No |
Modifies the default value for columns of the
|
|
date |
Null |
No |
Modifies the default value for columns of the
|
|
timestamp |
Null |
No |
Modifies the default value for columns of the
|
|
timestamp with time zone |
Null |
No |
Modifies the default value for columns of the |
|
blob |
Null |
No |
Modifies the default value for columns of the
|
|
clob |
Null |
No |
Modifies the default value for columns of the
|
|
nclob |
Null |
No |
Modifies the default value for columns of the
|
The following example changes the default redacted value to * for the
CHAR
data type:
EXEC rdsadmin.rdsadmin_util.dbms_redact_upd_full_rdct_val(p_char_val => '*');
The following example changes the default redacted values for NUMBER
,
DATE
, and CHAR
data types:
BEGIN rdsadmin.rdsadmin_util.dbms_redact_upd_full_rdct_val( p_number_val=>1, p_date_val=>to_date('1900-01-01','YYYY-MM-DD'), p_varchar_val=>'X'); END; /
After you alter the default values for full redaction with the
dbms_redact_upd_full_rdct_val
procedure, reboot your DB instance for the
change to take effect. For more information, see Rebooting a DB instance.