Data Masking and Subsetting Pack enforces privacy and security regulations when sharing production data with internal and external development, test or staging environments. It uses a highly efficient mechanism to replace sensitive or confidential data with realistic but scrubbed data based on masking rules while retaining the original database constraints, referential integrity, and indexes. Through subsetting, this pack also creates reduced size copies. Through data discovery and application modeling, it discovers and enforces complex data relationships and business rules across many tables and schemas resulting in accurate subsets of sanitized production data. While supporting Oracle and non-Oracle Databases, the pack also ships with pre-defined drivers to capture the data relationships for Oracle Applications.