Get ALL sql queries executed in the last several hours in Oracle -


i need way collect queries executed in oracle db (oracle database 11g) in last several hours regardless of how fast queries (this used calculate sql coverage after running tests against application has several points queries executed).

i cannot use tables v$sql since there's no guarantee query remain there long enough. seems use dba_hist_sqltext didn't find way filter out queries executed before current test run.

so question is: table use absolutely queries executed in given period of time (up 2 hours) , db configuration should adjust reach goal?

"i need query since need learn queries out of queries coded in application executed during test"

the simplest way of capturing queries executed enable fine grained audit on database tables. use data dictionary generate policies on every application table.

note when writing os file such number of policies generate high impact on database, , increase length of time takes run tests. therefore should use these policies assess test coverage, , disable them other test runs.

find out more.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -