Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

data redaction based on data length

3309912Oct 19 2017 — edited Oct 19 2017

I wanted to redact user_id column with data type varchar2(80 Char) using DBMS_REDACT in 12c.

Data length for this column is not consistent can be 1 char to 80 char.

I wanted to do partial redaction. If data length isĀ  < 5, do not redact else redact any characters before last 5 char.

eg..

Real dataredacted
Mariah*****h
WilsonHems*****nHems
AdAd
SaifSaif
Muhammed***ammed
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 16 2017
Added on Oct 19 2017
4 comments
600 views