Getting information about any possible connection to the database
Hi
We have a requirement to gather information on every possible sessions connecting to the database and preserve that data historically (couple of months)
Our database is 11.2.0.4 Enterprise Edition and we have the Tuning and Diagnostic pack license
We created a script that extract information from gv$session every hour and writes that to a custom table
While validating that process, we found out that certain sessions are not getting recorded
And we concur that because when we query the dba_hist_active_sess_hist for the same sample time that we queried the gv$session for, we found sessions recorded in there but not in the gv$session view