MVIEW via DB link shows unmasked PII data while source table displays masked values
Database A has a table where PII data is masked after running a masking script provided by the app team (done after each refresh).
Database B has a materialized view (MVIEW) that connects to Database A through a DB link. The MVIEW refresh runs daily and completes successfully but when queried from Database B, it shows unmasked PII data, even though the same data appears masked when queried directly in Database A.
Has anyone seen this before?
If data is masked in Database A using a SQL script, shouldn’t that masking also appear when Database B reads it through a DB link?