Created
April 20, 2017 11:16
-
-
Save butonic/f2c2d9a62319bd434e19cef554595198 to your computer and use it in GitHub Desktop.
oracle queries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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