Skip to content

Instantly share code, notes, and snippets.

@butonic
Created April 20, 2017 11:16
Show Gist options
  • Save butonic/f2c2d9a62319bd434e19cef554595198 to your computer and use it in GitHub Desktop.
Save butonic/f2c2d9a62319bd434e19cef554595198 to your computer and use it in GitHub Desktop.
oracle queries
SELECT *
FROM all_constraints
WHERE constraint_name = 'SYS_C0010867';
SELECT *
FROM all_cons_columns
WHERE table_name = 'oc_preferences';
SELECT sess.process, sess.status, sess.username, sess.schemaname, sql.sql_text
FROM v$session sess,
v$sql sql
WHERE sql.sql_id(+) = sess.sql_id
AND sess.type = 'USER';
execute dbms_connection_pool.start_pool()
select connection_pool, status, maxsize
from dba_cpool_info;
select num_requests,num_hits,num_misses,num_waits
from v$cpool_stats;
select *
from v$cpool_stats;
select cclass_name, num_requests, num_hits, num_misses
from v$cpool_cc_stats;
select *
from v$cpool_cc_stats;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment