Hello All,
As part of my database security tasks, I am interested looking into my databases to list any columns and corresponding tables that might contains personal data such as name, address, phone number, DOB (Date of Birth). Basically looking into the databases to see where data such as personal names, phone numbers and DOB might have been stored.
Here is my attempt:
1)select owner, table_name, column_name from dba_tab_columns
2)where column_name in ('%NAME%','%ADDRESS%','%PHONE%','%DOB%','%PHN%'); --this did not work
3) where column_name LIKE '%NAME%' -- this worked but needs to be expanded with more criteria options. Maybe JOIN?
4) and owner not in ('SYS', 'SYSTEM').
I was wondering if you could help with line 3) to include more options.
As part of my database security tasks, I am interested looking into my databases to list any columns and corresponding tables that might contains personal data such as name, address, phone number, DOB (Date of Birth). Basically looking into the databases to see where data such as personal names, phone numbers and DOB might have been stored.
Here is my attempt:
1)select owner, table_name, column_name from dba_tab_columns
2)where column_name in ('%NAME%','%ADDRESS%','%PHONE%','%DOB%','%PHN%'); --this did not work
3) where column_name LIKE '%NAME%' -- this worked but needs to be expanded with more criteria options. Maybe JOIN?
4) and owner not in ('SYS', 'SYSTEM').
I was wondering if you could help with line 3) to include more options.