Oracle 12C DBA_DB_LINK_SOURCES
Prior to Oracle 12C when ever a database migration which involves an IP change was planned, we used to query the session history to find out the possible sources from which connection are established to databases. So that application changes (connections strings) required and firewall rules to be implemented can be identified. Normally a variant of below query was used which is based on dba_hist_active_sess_history (licensable), SELECT machine, program, username, COUNT (*) FROM (SELECT a.machine, a.program, b.username FROM dba_hist_active_sess_history a, dba_users b WHERE username IS NOT NULL AND A.USER_ID = B.USER_ID AND machine != '<hostname>') GROUP BY machine, program, username ORDER BY 1, 2, 3; Among the identified sources, one of the main contributor was db_links in many of the distributed systems. Although the information returned from above query was informative, we always