SQL Id | SQL Text |
089dbukv1aanh | SELECT SYS_EXTRACT_UTC(SYSTIMESTAMP) FROM DUAL |
08bqjmf8490s2 | SELECT PARAMETER_VALUE FROM MGMT_PARAMETERS WHERE PARAMETER_NAME = :B1 |
0k8522rmdzg4k | select privilege# from sysauth$ where (grantee#=:1 or grantee#=1) and privilege#>0 |
18naypzfmabd6 | INSERT INTO MGMT_SYSTEM_PERFORMANCE_LOG (JOB_NAME, TIME, DURATION, MODULE, ACTION, IS_TOTAL, NAME, VALUE, CLIENT_DATA, HOST_URL) VALUES (:B9 , SYSDATE, :B8 , SUBSTR(:B7 , 1, 512), SUBSTR(:B6 , 1, 32), :B5 , SUBSTR(:B4 , 1, 128), SUBSTR(:B3 , 1, 128), SUBSTR(:B2 , 1, 128), SUBSTR(:B1 , 1, 256)) |
350f5yrnnmshs | lock table sys.mon_mods$ in exclusive mode nowait |
36g2yq0mxjx2y | insert into wrh$_pgastat (snap_id, dbid, instance_number, name, value) select :snap_id, :dbid, :instance_number, name, value from v$pgastat where value > 0 |
3am9cfkvx7gq1 | CALL MGMT_ADMIN_DATA.EVALUATE_MGMT_METRICS(:target_guid, :metric_guid, :metric_values) |
47a50dvdgnxc2 | update sys.job$ set failures=0, this_date=null, flag=:1, last_date=:2, next_date = greatest(:3, sysdate), total=total+(sysdate-nvl(this_date, sysdate)) where job=:4 |
49s332uhbnsma | declare
vsn varchar2(20);
begin
vsn := dbms_rcvman.getPackageVersion;
:pkg_vsn:pkg_vsn_i := vsn;
if vsn is not null then
:pkg_vsnub4 :=
to_number(substr(vsn, 1, 2) || substr(vsn, 4, 2) ||
substr(vsn, 7, 2) || nvl(substr(vsn, 10, 2), '00'));
end if;
end; |
4jrfrtx4u6zcx |
SELECT TASK_TGT.TARGET_GUID TARGET_GUID, LEAD(TASK_TGT.TARGET_GUID, 1) OVER (ORDER BY TASK_TGT.TARGET_GUID, POLICY.POLICY_GUID, CFG.EVAL_ORDER) NEXT_TARGET_GUID, POLICY.POLICY_GUID POLICY_GUID, LEAD(POLICY.POLICY_GUID, 1) OVER (ORDER BY TASK_TGT.TARGET_GUID, POLICY.POLICY_GUID, CFG.EVAL_ORDER) NEXT_POLICY_GUID, POLICY.POLICY_NAME, POLICY.POLICY_TYPE, DECODE(POLICY.POLICY_TYPE, :B3 , NVL(CFG.MESSAGE, POLICY.MESSAGE), :B9 , CFG.MESSAGE, NULL) MESSAGE, DECODE(POLICY.POLICY_TYPE, :B3 , NVL(CFG.MESSAGE_NLSID, POLICY.MESSAGE_NLSID), :B9 , CFG.MESSAGE_NLSID, NULL) MESSAGE_NLSID, DECODE(POLICY.POLICY_TYPE, :B3 , NVL(CFG.CLEAR_MESSAGE, POLICY.CLEAR_MESSAGE), :B9 , CFG.CLEAR_MESSAGE, NULL) CLEAR_MESSAGE, DECODE(POLICY.POLICY_TYPE, :B3 , NVL(CFG.CLEAR_MESSAGE_NLSID, POLICY.CLEAR_MESSAGE_NLSID), :B9 , CFG.CLEAR_MESSAGE_NLSID, NULL) CLEAR_MESSAGE_NLSID, POLICY.REPO_TIMING_ENABLED, TASK_TGT.COLL_NAME , POLICY.VIOLATION_LEVEL, DECODE(POLICY.POLICY_TYPE, :B3 , :B10 , 0) VIOLATION_TYPE, POLICY.CONDITION_TYPE, POLICY.CONDITION, DECODE(POLICY.POLICY_TYPE, :B3 , NVL(CFG.CONDITION_OPERATOR, POLICY.CONDITION_OPERATOR), :B9 , CFG.CONDITION_OPERATOR, 0) CONDITION_OPERATOR, CFG.KEY_VALUE, CFG.KEY_OPERATOR, CFG.IS_EXCEPTION, CFG.NUM_OCCURRENCES, NULL EVALUATION_DATE, DECODE(CFG.IS_EXCEPTION, :B1 , MGMT_POLICY_PARAM_VAL_ARRAY(), CAST(MULTISET( SELECT MGMT_POLICY_PARAM_VAL.NEW(PARAM_NAME, CRIT_THRESHOLD, WARN_THRESHOLD, INFO_THRESHOLD) FROM
MGMT_POLICY_ASSOC_CFG_PARAMS PARAM WHERE PARAM.OBJECT_GUID = CFG.OBJECT_GUID AND PARAM.POLICY_GUID = CFG.POLICY_GUID AND PARAM.COLL_NAME = CFG.COLL_NAME AND PARAM.KEY_VALUE = CFG.KEY_VALUE AND PARAM.KEY_OPERATOR = CFG.KEY_OPERATOR ) AS MGMT_POLICY_PARAM_VAL_ARRAY)) PARAMS, DECODE(POLICY.CONDITION_TYPE, :B8 , CAST(MULTISET(SELECT MGMT_NAMEVALUE_OBJ.NEW(BIND_COLUMN_NAME, BIND_COLUMN_TYPE) FROM MGMT_POLICY_BIND_VARS BINDS WHERE BINDS.POLICY_GUID = POLICY.POLICY_GUID ) AS MGMT_NAMEVALUE_ARRAY), MGMT_NAMEVALUE_ARRAY()) BINDS, DECODE(:B7 , 0, MGMT_MEDIUM_STRING_ARRAY(), 1, MGMT_MEDIUM_STRING_ARRAY(CFG.KEY_VALUE), CAST( (SELECT MGMT_MEDIUM_STRING_ARRAY( KEY_PART1_VALUE, KEY_PART2_VALUE, KEY_PART3_VALUE, KEY_PART4_VALUE, KEY_PART5_VALUE) FROM MGMT_METRICS_COMPOSITE_KEYS COMP_KEYS WHERE COMP_KEYS.COMPOSITE_KEY = CFG.KEY_VALUE AND COMP_KEYS.TARGET_GUID = CFG.OBJECT_GUID ) AS MGMT_MEDIUM_STRING_ARRAY) ) KEY_VALUES FROM MGMT_POLICIES POLICY, MGMT_POLICY_ASSOC ASSOC, MGMT_POLICY_ASSOC_CFG CFG, MGMT_COLLECTION_METRIC_TASKS TASK_TGT WHERE TASK_TGT.TASK_ID = :B6 AND POLICY.METRIC_GUID = :B5 AND ASSOC.OBJECT_GUID = TASK_TGT.TARGET_GUID AND POLICY.POLICY_TYPE != :B4 AND ( POLICY.POLICY_TYPE = :B3 OR ASSOC.COLL_NAME = TASK_TGT.COLL_NAME ) AND ASSOC.POLICY_GUID = POLICY.POLICY_GUID AND ASSOC.OBJECT_TYPE = :B2 AND ASSOC.IS_ENABLED = :B1 AND CFG.OBJECT_GUID = ASSOC.OBJECT_GUID AND CFG.COLL_NAME = ASSOC.COLL_NAME AND CFG.POLICY_GUID = ASSOC.POLICY_GUID ORDER BY TASK_TGT.TARGET_GUID, POL
ICY.POLICY_GUID, CFG.EVAL_ORDER , CFG.KEY_VALUE DESC |
5dfmd823r8dsp | insert into wrh$_memory_resize_ops (snap_id, dbid, instance_number, component, oper_type, start_time, end_time, target_size, oper_mode, parameter, initial_size, final_size, status) select snap_id, dbid, instance_num, component, oper_type, start_time, max(end_time), target_size, max(oper_mode), max(parameter), max(initial_size), max(final_size), max(status) from (select :snap_id snap_id, :dbid dbid, :instance_number instance_num, component, oper_type, start_time, end_time, target_size, oper_mode, parameter, initial_size, final_size, status from v$memory_resize_ops where :begin_interval_time <= end_time and end_time < :end_interval_time) group by snap_id, dbid, instance_num, component, oper_type, start_time, target_size |
5h7w8ykwtb2xt | INSERT INTO SYS.WRI$_ADV_PARAMETERS (TASK_ID, NAME, DATATYPE, VALUE, FLAGS, DESCRIPTION) VALUES (:B6 , :B5 , :B4 , :B3 , :B2 , :B1 ) |
5kyb5bvnu3s04 | SELECT DISTINCT METRIC_GUID FROM MGMT_METRICS WHERE TARGET_TYPE = :B3 AND METRIC_NAME = :B2 AND METRIC_COLUMN = :B1 |
5ms6rbzdnq16t | select job, nvl2(last_date, 1, 0) from sys.job$ where (((:1 <= next_date) and (next_date <= :2)) or ((last_date is null) and (next_date < :3))) and (field1 = :4 or (field1 = 0 and 'Y' = :5)) and (this_date is null) and ((dbms_logstdby.db_is_logstdby = 0 and job < 1000000000) or (dbms_logstdby.db_is_logstdby = 1 and job >= 1000000000)) order by next_date, job |
6ajkhukk78nsr | begin prvt_hdm.auto_execute( :dbid, :inst_num , :end_snap_id ); end; |
6gvch1xu9ca3g | DECLARE job BINARY_INTEGER := :job; next_date DATE := :mydate; broken BOOLEAN := FALSE; BEGIN EMD_MAINTENANCE.EXECUTE_EM_DBMS_JOB_PROCS(); :mydate := next_date; IF broken THEN :b := 1; ELSE :b := 0; END IF; END; |
7mgr3uwydqq8j | select decode(open_mode, 'MOUNTED', 0,
'READ WRITE', 1,
'READ ONLY', 1,
'READ ONLY WITH APPLY', 1,
2) dbstate
into :dbstate
from v$database |
7qjhf5dzmazsr | SELECT snap_id , OBJ#, DATAOBJ# FROM (SELECT /*+ ordered use_nl(t2) index(t2) */ t2.snap_id , t1.OBJN_KEWRSEG OBJ#, t1.OBJD_KEWRSEG DATAOBJ# FROM X$KEWRTSEGSTAT t1, WRH$_SEG_STAT_OBJ t2 WHERE t2.dbid(+) = :dbid AND t2.OBJ#(+) = t1.OBJN_KEWRSEG AND t2.DATAOBJ#(+) = t1.OBJD_KEWRSEG) WHERE nvl(snap_id, 0) < :snap_id |
84k66tf2s7y1c | insert into wrh$_bg_event_summary (snap_id, dbid, instance_number, event_id, total_waits, total_timeouts, time_waited_micro) select :snap_id, :dbid, :instance_number, event_id, total_waits - total_waits_fg, total_timeouts - total_timeouts_fg, time_waited_micro - time_waited_micro_fg from v$system_event where (total_waits - total_waits_fg) > 0 order by event_id |
87gaftwrm2h68 | select o.owner#, o.name, o.namespace, o.remoteowner, o.linkname, o.subname from obj$ o where o.obj#=:1 |
ab3swhv5g138y |
select OBJOID, CLSOID, RUNTIME, PRI, JOBTYPE, SCHLIM, WT, INST, RUNNOW, ENQ_SCHLIM from ( select a.obj# OBJOID, a.class_oid CLSOID, decode(bitand(a.flags, 16384), 0, a.next_run_date, a.last_enabled_time) RUNTIME, (2*a.priority + decode(bitand(a.job_status, 4), 0, 0, decode(a.running_instance, :1, -1, 1))) PRI, 1 JOBTYPE, decode(a.schedule_limit, NULL, decode(bitand(a.flags, 4194304), 4194304, p.schedule_limit, NULL), a.schedule_limit) SCHLIM, a.job_weight WT, decode(a.running_instance, NULL, 0, a.running_instance) INST, decode(bitand(a.flags, 16384), 0, 0, 1) RUNNOW, decode(bitand(a.job_status, 8388608), 0, 0, 1) ENQ_SCHLIM from sys.scheduler$_job a, sys.scheduler$_program p, v$database v, v$instance i where a.program_oid = p.obj#(+) and bitand(a.job_status, 515) = 1 and bitand(a.flags, 1048576) = 0 and ((bitand(a.flags, 134217728 + 268435456) = 0) or (bitand(a.job_status, 1024) <> 0)) and bitand(a.flags, 4096) = 0 and (a.next_run_date <= :2 or bitand(a.flags, 16384) <> 0) and a.instance_id is null and (a.class_oid is null or (a.class_oid is not null and a.class_oid in (select b.obj# from sys.scheduler$_class b where b.affinity is null))) and (a.database_role = v.database_role or (a.database_role is null and v.database_role = 'PRIMARY'
)) and ( i.logins = 'ALLOWED' or bitand(a.flags, 17179869184) <> 0 ) union all select l.obj#, l.class_oid, decode(bitand(l.flags, 16384), 0, l.next_run_date, l.last_enabled_time), (2*decode(bitand(l.flags, 8589934592), 0, q.priority, pj.priority) + decode(bitand(l.job_status, 4), 0, 0, decode(l.running_instance, :3, -1, 1))), 1, decode(bitand(l.flags, 8589934592), 0, q.schedule_limit, decode(pj.schedule_limit, NULL, q.schedule_limit, pj.schedule_limit)), decode(bitand(l.flags, 8589934592), 0, q.job_weight, pj.job_weight), decode(l.running_instance, NULL, 0, l.running_instance), decode(bitand(l.flags, 16384), 0, 0, 1), decode(bitand(l.job_status, 8388608), 0, 0, 1) from sys.scheduler$_lightweight_job l, sys.scheduler$_program q, (select sl.obj# obj#, decode(bitand(sl.flags, 8589934592), 0, sl.program_oid, spj.program_oid) program_oid, decode(bitand(sl.flags, 8589934592), 0, NULL, spj.priority) priority, decode(bitand(sl.flags, 8589934592), 0, NULL, spj.job_weight) job_weight, decode(bitand(sl.flags, 8589934592), 0, NULL, spj.schedule_limit) schedule_limit from sys.scheduler$_lightweight_job sl, scheduler$_job spj where sl.program_oid = spj.obj#(+)) pj , v$instance i where pj.obj# = l.ob
j# and pj.program_oid = q.obj#(+) and (:4 = 0 or l.running_instance = :5) and bitand(l.job_status, 515) = 1 and ((bitand(l.flags, 134217728 + 268435456) = 0) or (bitand(l.job_status, 1024) <> 0)) and bitand(l.flags, 4096) = 0 and (l.next_run_date <= :6 or bitand(l.flags, 16384) <> 0) and l.instance_id is null and (l.class_oid is null or (l.class_oid is not null and l.class_oid in (select w.obj# from sys.scheduler$_class w where w.affinity is null))) and ( i.logins = 'ALLOWED' or bitand(l.flags, 17179869184) <> 0 ) union all select c.obj#, 0, c.next_start_date, 0, 2, c.duration, 1, 0, 0, 0 from sys.scheduler$_window c , v$instance i where bitand(c.flags, 1) <> 0 and bitand(c.flags, 2) = 0 and bitand(c.flags, 64) = 0 and c.next_start_date <= :7 and i.logins = 'ALLOWED' union all select d.obj#, 0, d.next_start_date + d.duration, 0, 4, numtodsinterval(0, 'minute'), 1, 0, 0, 0 from sys.scheduler$_window d , v$instance i where bitand(d.flags, 1) <> 0 and bitand(d.flags, 2) = 0 and bitand(d.flags, 64) = 0 and d.next_start_date <= :8 and i.logins = 'ALLOWED' union all select f.obj#, 0, e.attr_tstamp, 0, decode(bitand(e.flags, 131072), 0, 2, 3), e.attr_intv, 1, 0, 0, 0 from sys.scheduler$_global_attribute e, sys.obj$ f, sys.obj$ g, v$instance i where e.obj# = g.obj#
and g.name = 'CURRENT_OPEN_WINDOW' and e.value = f.name and f.type# = 69 and e.attr_tstamp is not null and e.attr_intv is not null and i.logins = 'ALLOWED' union all select i.obj#, 0, h.attr_tstamp + h.attr_intv, 0, decode(bitand(h.flags, 131072), 0, 4, 5), numtodsinterval(0, 'minute'), 1, 0, 0, 0 from sys.scheduler$_global_attribute h, sys.obj$ i, sys.obj$ j, v$instance ik where h.obj# = j.obj# and j.name = 'CURRENT_OPEN_WINDOW' and h.value = i.name and i.type# = 69 and h.attr_tstamp is not null and h.attr_intv is not null and ik.logins = 'ALLOWED') order by RUNTIME, JOBTYPE, CLSOID, PRI, WT DESC, OBJOID |
ajymgnp1qnruw | select o.name, o.owner# from obj$ o, type$ t where o.oid$ = t.tvoid and bitand(t.properties, 8388608) = 8388608 and (sysdate-o.ctime) > 0.0007 |
aq8yqxyyb40nn | update sys.job$ set this_date=:1 where job=:2 |
aykvshm7zsabd | select size_for_estimate, size_factor * 100 f, estd_physical_read_time, estd_physical_reads from v$db_cache_advice where id = '3' |
bfujkg8dw1aax | SELECT UPPER(PARAMETER_VALUE) FROM MGMT_PARAMETERS WHERE PARAMETER_NAME = :B1 |
bm2pwrpcr8ru6 | select sga_size s, sga_size_factor * 100 f, estd_db_time t, estd_physical_reads p from v$sga_target_advice order by sga_size |
bn4b3vjw2mj3u |
SELECT OBJOID, CLSOID, DECODE(BITAND(FLAGS, 16384), 0, RUNTIME, LETIME), (2*PRI + DECODE(BITAND(STATUS, 4), 0, 0, decode(INST, :1, -1, 1))), JOBTYPE, SCHLIM, WT, INST, RUNNOW, ENQ_SCHLIM, INST_ID FROM ( select a.obj# OBJOID, a.class_oid CLSOID, a.next_run_date RUNTIME, a.last_enabled_time LETIME, a.flags FLAGS, a.job_status STATUS, 1 JOBTYPE, a.priority PRI, decode(a.schedule_limit, NULL, decode(bitand(a.flags, 4194304), 4194304, b.schedule_limit, NULL), a.schedule_limit) SCHLIM, a.job_weight WT, decode(a.running_instance, NULL, 0, a.running_instance) INST, decode(bitand(a.flags, 16384), 0, 0, 1) RUNNOW, decode(bitand(a.job_status, 8388608), 0, 0, 1) ENQ_SCHLIM, a.instance_id INST_ID from sys.scheduler$_job a, sys.scheduler$_program b, v$database v , v$instance i where a.program_oid = b.obj#(+) and (a.database_role = v.database_role or (a.database_role is null and v.database_role = 'PRIMARY')) and ( i.logins = 'ALLOWED' or bitand(a.flags, 17179869184) <> 0 ) union all select c.obj#, c.class_oid, c.next_run_date, c.last_enabled_time, c.flags, c.job_status, 1, decode(bitand(c.flags, 8589934592), 0, d.priority, pj.priority), decode(bitand(c.flags, 8589934592), 0, d.schedule_limit, decode(pj.s
chedule_limit, NULL, d.schedule_limit, pj.schedule_limit)), decode(bitand(c.flags, 8589934592), 0, d.job_weight, pj.job_weight), decode(c.running_instance, NULL, 0, c.running_instance), decode(bitand(c.flags, 16384), 0, 0, 1) RUNNOW, decode(bitand(c.job_status, 8388608), 0, 0, 1) ENQ_SCHLIM, c.instance_id INST_ID from sys.scheduler$_lightweight_job c, sys.scheduler$_program d, (select sl.obj# obj#, decode(bitand(sl.flags, 8589934592), 0, sl.program_oid, spj.program_oid) program_oid, decode(bitand(sl.flags, 8589934592), 0, NULL, spj.priority) priority, decode(bitand(sl.flags, 8589934592), 0, NULL, spj.job_weight) job_weight, decode(bitand(sl.flags, 8589934592), 0, NULL, spj.schedule_limit) schedule_limit from sys.scheduler$_lightweight_job sl, scheduler$_job spj where sl.program_oid = spj.obj#(+)) pj, v$instance i where pj.obj# = c.obj# and pj.program_oid = d.obj#(+) and ( i.logins = 'ALLOWED' or bitand(c.flags, 17179869184) <> 0 ) and (:2 = 0 or c.running_instance = :3)) WHERE BITAND(STATUS, 515) = 1 AND BITAND(FLAGS, 1048576) = 0 AND ((BITAND(FLAGS, 134217728 + 268435456) = 0) OR (BITAND(STATUS, 1024) <> 0)) AND BITAND(FLAGS, 4096) = 0 AND (RUNTIME <= :4 OR
BITAND(FLAGS, 16384) <> 0) and ((CLSOID is not null and INST_ID is null and CLSOID in (select e.obj# from sys.scheduler$_class e where bitand(e.flags, :5) <> 0 and lower(e.affinity) = lower(:6))) or (INST_ID is not null and INST_ID = :7)) ORDER BY 3, 2, 4, 7 DESC, 1 |
bunssq950snhf | insert into wrh$_sga_target_advice (snap_id, dbid, instance_number, SGA_SIZE, SGA_SIZE_FACTOR, ESTD_DB_TIME, ESTD_PHYSICAL_READS) select :snap_id, :dbid, :instance_number, SGA_SIZE, SGA_SIZE_FACTOR, ESTD_DB_TIME, ESTD_PHYSICAL_READS from v$sga_target_advice |
bwsz40d3hc8q7 | insert into wrh$_librarycache (snap_id, dbid, instance_number, namespace, gets, gethits, pins, pinhits, reloads, invalidations, dlm_lock_requests, dlm_pin_requests, dlm_pin_releases, dlm_invalidation_requests, dlm_invalidations) select :snap_id, :dbid, :instance_number, namespace, gets, gethits, pins, pinhits, reloads, invalidations, dlm_lock_requests, dlm_pin_requests, dlm_pin_releases, dlm_invalidation_requests, dlm_invalidations from v$librarycache |
bxywuzvtp6wjg | call dbms_scheduler.auto_purge ( ) |
c8h3jdwaa532q | SELECT TO_NUMBER(PARAMETER_VALUE) FROM MGMT_PARAMETERS WHERE PARAMETER_NAME = :B1 |
cm5vu20fhtnq1 | select /*+ connect_by_filtering */ privilege#, level from sysauth$ connect by grantee#=prior privilege# and privilege#>0 start with grantee#=:1 and privilege#>0 |
cumjq42201t37 | select u1.user#, u2.user#, u3.user#, failures, flag, interval#, what, nlsenv, env, field1, next_date from sys.job$ j, sys.user$ u1, sys.user$ u2, sys.user$ u3 where job=:1 and (next_date <= sysdate or :2 != 0) and lowner = u1.name and powner = u2.name and cowner = u3.name |
dayq182sk41ks | insert into wrh$_memory_target_advice (snap_id, dbid, instance_number, memory_size, memory_size_factor, estd_db_time, estd_db_time_factor, version) select :snap_id, :dbid, :instance_number, memory_size, memory_size_factor, estd_db_time, estd_db_time_factor, version from v$memory_target_advice |
f8f7gbzbstcyx | DECLARE job BINARY_INTEGER := :job; next_date DATE := :mydate; broken BOOLEAN := FALSE; BEGIN wb_rti_service_job.check_service(2); :mydate := next_date; IF broken THEN :b := 1; ELSE :b := 0; END IF; END; |
fh2sspdq8rm9p | insert into wrh$_waitclassmetric_history (snap_id, dbid, instance_number, wait_class_id, begin_time, end_time, intsize, group_id, average_waiter_count, dbtime_in_wait, time_waited, wait_count, time_waited_fg, wait_count_fg) select :snap_id, :dbid, :instance_number, wait_id, begtime, endtime, intsize_csec, groupid, average_waiter_count, dbtime_in_wait, time_waited, wait_count, time_waited_fg, wait_count_fg from x$kewmevmv |
fnk7155mk2jq6 | insert into wrh$_sysmetric_history (snap_id, dbid, instance_number, begin_time, end_time, intsize, group_id, metric_id, value) select :snap_id, :dbid, :instance_number, begtime, endtime, intsize_csec, groupid, metricid, value from x$kewmdrmv order by groupid, metricid, begtime |
fsbqktj5vw6n9 |
select next_run_date, obj#, run_job, sch_job from (select decode(bitand(a.flags, 16384), 0, a.next_run_date, a.last_enabled_time) next_run_date, a.obj# obj#, decode(bitand(a.flags, 16384), 0, 0, 1) run_job, a.sch_job sch_job from (select p.obj# obj#, p.flags flags, p.next_run_date next_run_date, p.job_status job_status, p.class_oid class_oid, p.last_enabled_time last_enabled_time, p.instance_id instance_id, 1 sch_job from sys.scheduler$_job p where bitand(p.job_status, 3) = 1 and ((bitand(p.flags, 134217728 + 268435456) = 0) or (bitand(p.job_status, 1024) <> 0)) and bitand(p.flags, 4096) = 0 and p.instance_id is NULL and (p.class_oid is null or (p.class_oid is not null and p.class_oid in (select b.obj# from sys.scheduler$_class b where b.affinity is null))) UNION ALL select q.obj#, q.flags, q.next_run_date, q.job_status, q.class_oid, q.last_enabled_time, q.instance_id, 1 from sys.scheduler$_lightweight_job q where bitand(q.job_status, 3) = 1 and ((bitand(q.flags, 134217728 + 268435456) = 0) or (bitand(q.job_status, 1024) <> 0)) and bitand(q.flags, 4096) = 0 and q.instance_id is NULL and (q.class_oid is null or (q.class_oid is not null and q.class_oid in (select c.obj# from sys.scheduler$_class c where c.affinity is null))) UNION ALL select j.job, 0, from_tz(ca
st(j.next_date as timestamp), to_char(systimestamp, 'TZH:TZM')), 1, NULL, from_tz(cast(j.next_date as timestamp), to_char(systimestamp, 'TZH:TZM')), NULL, 0 from sys.job$ j where (j.field1 is null or j.field1 = 0) and j.this_date is null) a order by 1) where rownum = 1 |
g00cj285jmgsw | update sys.mon_mods$ set inserts = inserts + :ins, updates = updates + :upd, deletes = deletes + :del, flags = (decode(bitand(flags, :flag), :flag, flags, flags + :flag)), drop_segments = drop_segments + :dropseg, timestamp = :time where obj# = :objn |
gjm43un5cy843 | SELECT SUM(USED), SUM(TOTAL) FROM (SELECT /*+ ORDERED */ SUM(D.BYTES)/(1024*1024)-MAX(S.BYTES) USED, SUM(D.BYTES)/(1024*1024) TOTAL FROM (SELECT TABLESPACE_NAME, SUM(BYTES)/(1024*1024) BYTES FROM (SELECT /*+ ORDERED USE_NL(obj tab) */ DISTINCT TS.NAME FROM SYS.OBJ$ OBJ, SYS.TAB$ TAB, SYS.TS$ TS WHERE OBJ.OWNER# = USERENV('SCHEMAID') AND OBJ.OBJ# = TAB.OBJ# AND TAB.TS# = TS.TS# AND BITAND(TAB.PROPERTY, 1) = 0 AND BITAND(TAB.PROPERTY, 4194400) = 0) TN, DBA_FREE_SPACE SP WHERE SP.TABLESPACE_NAME = TN.NAME GROUP BY SP.TABLESPACE_NAME) S, DBA_DATA_FILES D WHERE D.TABLESPACE_NAME = S.TABLESPACE_NAME GROUP BY D.TABLESPACE_NAME) |
Statistic | Total | per Second | per Trans |
Batched IO (bound) vector count | 11 | 0.00 | 0.00 |
Batched IO (full) vector count | 2 | 0.00 | 0.00 |
Batched IO (space) vector count | 0 | 0.00 | 0.00 |
Batched IO block miss count | 2,334 | 0.08 | 0.72 |
Batched IO buffer defrag count | 10 | 0.00 | 0.00 |
Batched IO double miss count | 1 | 0.00 | 0.00 |
Batched IO same unit count | 166 | 0.01 | 0.05 |
Batched IO single block count | 0 | 0.00 | 0.00 |
Batched IO slow jump count | 0 | 0.00 | 0.00 |
Batched IO vector block count | 2,170 | 0.08 | 0.67 |
Batched IO vector read count | 14 | 0.00 | 0.00 |
Block Cleanout Optim referenced | 23 | 0.00 | 0.01 |
CCursor + sql area evicted | 0 | 0.00 | 0.00 |
CPU used by this session | 2,402 | 0.08 | 0.74 |
CPU used when call started | 665 | 0.02 | 0.20 |
CR blocks created | 99 | 0.00 | 0.03 |
Cached Commit SCN referenced | 0 | 0.00 | 0.00 |
Commit SCN cached | 0 | 0.00 | 0.00 |
DB time | 3,167,943 | 109.94 | 972.96 |
DBWR checkpoint buffers written | 9,219 | 0.32 | 2.83 |
DBWR checkpoints | 0 | 0.00 | 0.00 |
DBWR object drop buffers written | 0 | 0.00 | 0.00 |
DBWR revisited being-written buffer | 0 | 0.00 | 0.00 |
DBWR tablespace checkpoint buffers written | 0 | 0.00 | 0.00 |
DBWR thread checkpoint buffers written | 0 | 0.00 | 0.00 |
DBWR transaction table writes | 624 | 0.02 | 0.19 |
DBWR undo block writes | 1,772 | 0.06 | 0.54 |
HSC Compressed Segment Block Changes | 0 | 0.00 | 0.00 |
HSC Heap Segment Block Changes | 12,464 | 0.43 | 3.83 |
HSC IDL Compressed Blocks | 0 | 0.00 | 0.00 |
Heap Segment Array Inserts | 906 | 0.03 | 0.28 |
Heap Segment Array Updates | 35 | 0.00 | 0.01 |
IMU CR rollbacks | 1 | 0.00 | 0.00 |
IMU Flushes | 578 | 0.02 | 0.18 |
IMU Redo allocation size | 446,768 | 15.50 | 137.21 |
IMU commits | 3,140 | 0.11 | 0.96 |
IMU contention | 3 | 0.00 | 0.00 |
IMU ktichg flush | 0 | 0.00 | 0.00 |
IMU pool not allocated | 0 | 0.00 | 0.00 |
IMU recursive-transaction flush | 0 | 0.00 | 0.00 |
IMU undo allocation size | 14,238,168 | 494.10 | 4,372.90 |
IMU- failed to get a private strand | 0 | 0.00 | 0.00 |
LOB table id lookup cache misses | 0 | 0.00 | 0.00 |
Misses for writing mapping | 0 | 0.00 | 0.00 |
Number of read IOs issued | 0 | 0.00 | 0.00 |
PX local messages recv'd | 0 | 0.00 | 0.00 |
PX local messages sent | 0 | 0.00 | 0.00 |
RowCR - row contention | 0 | 0.00 | 0.00 |
RowCR attempts | 1,419 | 0.05 | 0.44 |
RowCR hits | 1,419 | 0.05 | 0.44 |
SMON posted for dropping temp segment | 0 | 0.00 | 0.00 |
SMON posted for undo segment shrink | 0 | 0.00 | 0.00 |
SQL*Net roundtrips to/from client | 1,370 | 0.05 | 0.42 |
TBS Extension: bytes extended | 0 | 0.00 | 0.00 |
TBS Extension: files extended | 0 | 0.00 | 0.00 |
TBS Extension: tasks created | 0 | 0.00 | 0.00 |
TBS Extension: tasks executed | 0 | 0.00 | 0.00 |
active txn count during cleanout | 465 | 0.02 | 0.14 |
application wait time | 0 | 0.00 | 0.00 |
auto extends on undo tablespace | 0 | 0.00 | 0.00 |
background checkpoints completed | 0 | 0.00 | 0.00 |
background checkpoints started | 0 | 0.00 | 0.00 |
background timeouts | 130,665 | 4.53 | 40.13 |
branch node splits | 0 | 0.00 | 0.00 |
buffer is not pinned count | 241,545 | 8.38 | 74.18 |
buffer is pinned count | 121,399 | 4.21 | 37.28 |
bytes received via SQL*Net from client | 184,950 | 6.42 | 56.80 |
bytes sent via SQL*Net to client | 999,969 | 34.70 | 307.12 |
calls to get snapshot scn: kcmgss | 106,810 | 3.71 | 32.80 |
calls to kcmgas | 7,157 | 0.25 | 2.20 |
calls to kcmgcs | 41,936 | 1.46 | 12.88 |
cell physical IO interconnect bytes | 972,779,520 | 33,757.86 | 298,765.21 |
change write time | 144 | 0.00 | 0.04 |
cleanout - number of ktugct calls | 481 | 0.02 | 0.15 |
cleanouts only - consistent read gets | 10 | 0.00 | 0.00 |
cluster key scan block gets | 17,714 | 0.61 | 5.44 |
cluster key scans | 15,818 | 0.55 | 4.86 |
commit batch performed | 0 | 0.00 | 0.00 |
commit batch requested | 0 | 0.00 | 0.00 |
commit batch/immediate performed | 1 | 0.00 | 0.00 |
commit batch/immediate requested | 1 | 0.00 | 0.00 |
commit cleanout failures: block lost | 0 | 0.00 | 0.00 |
commit cleanout failures: buffer being written | 0 | 0.00 | 0.00 |
commit cleanout failures: callback failure | 31 | 0.00 | 0.01 |
commit cleanout failures: cannot pin | 1 | 0.00 | 0.00 |
commit cleanouts | 17,836 | 0.62 | 5.48 |
commit cleanouts successfully completed | 17,804 | 0.62 | 5.47 |
commit immediate performed | 1 | 0.00 | 0.00 |
commit immediate requested | 1 | 0.00 | 0.00 |
commit txn count during cleanout | 229 | 0.01 | 0.07 |
concurrency wait time | 7,071 | 0.25 | 2.17 |
consistent changes | 327 | 0.01 | 0.10 |
consistent gets | 516,260 | 17.92 | 158.56 |
consistent gets - examination | 167,885 | 5.83 | 51.56 |
consistent gets direct | 0 | 0.00 | 0.00 |
consistent gets from cache | 516,260 | 17.92 | 158.56 |
consistent gets from cache (fastpath) | 332,167 | 11.53 | 102.02 |
cursor authentications | 41 | 0.00 | 0.01 |
data blocks consistent reads - undo records applied | 234 | 0.01 | 0.07 |
db block changes | 86,040 | 2.99 | 26.43 |
db block gets | 79,180 | 2.75 | 24.32 |
db block gets direct | 1 | 0.00 | 0.00 |
db block gets from cache | 79,179 | 2.75 | 24.32 |
db block gets from cache (fastpath) | 21,798 | 0.76 | 6.69 |
deferred (CURRENT) block cleanout applications | 9,815 | 0.34 | 3.01 |
dirty buffers inspected | 3 | 0.00 | 0.00 |
drop segment calls in space pressure | 0 | 0.00 | 0.00 |
enqueue conversions | 5,821 | 0.20 | 1.79 |
enqueue releases | 260,499 | 9.04 | 80.01 |
enqueue requests | 260,499 | 9.04 | 80.01 |
enqueue timeouts | 0 | 0.00 | 0.00 |
enqueue waits | 19 | 0.00 | 0.01 |
exchange deadlocks | 0 | 0.00 | 0.00 |
execute count | 95,140 | 3.30 | 29.22 |
failed probes on index block reclamation | 0 | 0.00 | 0.00 |
file io service time | 0 | 0.00 | 0.00 |
file io wait time | 16,946,850 | 588.10 | 5,204.81 |
free buffer inspected | 4,712 | 0.16 | 1.45 |
free buffer requested | 4,470 | 0.16 | 1.37 |
global undo segment hints helped | 0 | 0.00 | 0.00 |
heap block compress | 231 | 0.01 | 0.07 |
hot buffers moved to head of LRU | 9,339 | 0.32 | 2.87 |
immediate (CR) block cleanout applications | 10 | 0.00 | 0.00 |
immediate (CURRENT) block cleanout applications | 4,926 | 0.17 | 1.51 |
index crx upgrade (positioned) | 0 | 0.00 | 0.00 |
index crx upgrade (prefetch) | 0 | 0.00 | 0.00 |
index fast full scans (full) | 288 | 0.01 | 0.09 |
index fetch by key | 89,787 | 3.12 | 27.58 |
index scans kdiixs1 | 105,597 | 3.66 | 32.43 |
java call heap collected bytes | 4,876,800 | 169.24 | 1,497.79 |
java call heap collected count | 24,320 | 0.84 | 7.47 |
java call heap gc count | 80 | 0.00 | 0.02 |
java call heap live object count | 0 | 0.00 | 0.00 |
java call heap live object count max | 0 | 0.00 | 0.00 |
java call heap live size | 0 | 0.00 | 0.00 |
java call heap live size max | 0 | 0.00 | 0.00 |
java call heap object count | 24,320 | 0.84 | 7.47 |
java call heap object count max | 24,320 | 0.84 | 7.47 |
java call heap total size | 104,857,600 | 3,638.82 | 32,204.42 |
java call heap total size max | 104,857,600 | 3,638.82 | 32,204.42 |
java call heap used size | 4,876,800 | 169.24 | 1,497.79 |
java call heap used size max | 4,876,800 | 169.24 | 1,497.79 |
java session heap live object count | 0 | 0.00 | 0.00 |
java session heap live object count max | 0 | 0.00 | 0.00 |
java session heap live size | 23,592,960 | 818.73 | 7,246.00 |
java session heap live size max | 23,592,960 | 818.73 | 7,246.00 |
java session heap object count | 0 | 0.00 | 0.00 |
java session heap object count max | 0 | 0.00 | 0.00 |
java session heap used size | 23,592,960 | 818.73 | 7,246.00 |
java session heap used size max | 23,592,960 | 818.73 | 7,246.00 |
leaf node 90-10 splits | 185 | 0.01 | 0.06 |
leaf node splits | 224 | 0.01 | 0.07 |
lob reads | 240 | 0.01 | 0.07 |
lob writes | 12 | 0.00 | 0.00 |
lob writes unaligned | 12 | 0.00 | 0.00 |
local undo segment hints helped | 0 | 0.00 | 0.00 |
logons cumulative | 2,100 | 0.07 | 0.64 |
max cf enq hold time | 8 | 0.00 | 0.00 |
messages received | 9,993 | 0.35 | 3.07 |
messages sent | 9,993 | 0.35 | 3.07 |
min active SCN optimization applied on CR | 8 | 0.00 | 0.00 |
no buffer to keep pinned count | 1 | 0.00 | 0.00 |
no work - consistent read gets | 292,580 | 10.15 | 89.86 |
non-idle wait count | 67,249 | 2.33 | 20.65 |
non-idle wait time | 17,853 | 0.62 | 5.48 |
opened cursors cumulative | 86,544 | 3.00 | 26.58 |
parse count (describe) | 0 | 0.00 | 0.00 |
parse count (failures) | 160 | 0.01 | 0.05 |
parse count (hard) | 168 | 0.01 | 0.05 |
parse count (total) | 60,278 | 2.09 | 18.51 |
parse time cpu | 29 | 0.00 | 0.01 |
parse time elapsed | 480 | 0.02 | 0.15 |
physical read IO requests | 2,567 | 0.09 | 0.79 |
physical read bytes | 21,053,440 | 730.61 | 6,466.04 |
physical read total IO requests | 34,025 | 1.18 | 10.45 |
physical read total bytes | 538,558,464 | 18,689.31 | 165,404.93 |
physical read total multi block requests | 0 | 0.00 | 0.00 |
physical reads | 2,570 | 0.09 | 0.79 |
physical reads cache | 2,570 | 0.09 | 0.79 |
physical reads cache prefetch | 2,159 | 0.07 | 0.66 |
physical reads direct | 0 | 0.00 | 0.00 |
physical reads direct (lob) | 0 | 0.00 | 0.00 |
physical reads direct temporary tablespace | 0 | 0.00 | 0.00 |
physical reads prefetch warmup | 0 | 0.00 | 0.00 |
physical write IO requests | 6,903 | 0.24 | 2.12 |
physical write bytes | 75,554,816 | 2,621.94 | 23,204.80 |
physical write total IO requests | 32,754 | 1.14 | 10.06 |
physical write total bytes | 434,221,056 | 15,068.55 | 133,360.28 |
physical write total multi block requests | 77 | 0.00 | 0.02 |
physical writes | 9,223 | 0.32 | 2.83 |
physical writes direct | 1 | 0.00 | 0.00 |
physical writes direct (lob) | 0 | 0.00 | 0.00 |
physical writes direct temporary tablespace | 1 | 0.00 | 0.00 |
physical writes from cache | 9,222 | 0.32 | 2.83 |
physical writes non checkpoint | 2,025 | 0.07 | 0.62 |
pinned buffers inspected | 0 | 0.00 | 0.00 |
pinned cursors current | 0 | 0.00 | 0.00 |
prefetch clients - default | 0 | 0.00 | 0.00 |
prefetch warmup blocks aged out before use | 0 | 0.00 | 0.00 |
prefetch warmup blocks flushed out before use | 0 | 0.00 | 0.00 |
prefetched blocks aged out before use | 0 | 0.00 | 0.00 |
process last non-idle time | 0 | 0.00 | 0.00 |
recovery blocks read | 0 | 0.00 | 0.00 |
recursive aborts on index block reclamation | 0 | 0.00 | 0.00 |
recursive calls | 665,712 | 23.10 | 204.46 |
recursive cpu usage | 1,095 | 0.04 | 0.34 |
redo blocks checksummed by FG (exclusive) | 27,502 | 0.95 | 8.45 |
redo blocks read for recovery | 0 | 0.00 | 0.00 |
redo blocks written | 45,032 | 1.56 | 13.83 |
redo buffer allocation retries | 0 | 0.00 | 0.00 |
redo entries | 27,913 | 0.97 | 8.57 |
redo k-bytes read for recovery | 0 | 0.00 | 0.00 |
redo k-bytes read total | 0 | 0.00 | 0.00 |
redo log space requests | 0 | 0.00 | 0.00 |
redo log space wait time | 0 | 0.00 | 0.00 |
redo ordering marks | 904 | 0.03 | 0.28 |
redo size | 20,642,932 | 716.36 | 6,339.97 |
redo size for direct writes | 0 | 0.00 | 0.00 |
redo subscn max counts | 2,782 | 0.10 | 0.85 |
redo synch time | 148 | 0.01 | 0.05 |
redo synch writes | 1,195 | 0.04 | 0.37 |
redo wastage | 1,630,028 | 56.57 | 500.62 |
redo write time | 573 | 0.02 | 0.18 |
redo writes | 5,360 | 0.19 | 1.65 |
remote Oradebug requests | 0 | 0.00 | 0.00 |
rollback changes - undo records applied | 2 | 0.00 | 0.00 |
root node splits | 0 | 0.00 | 0.00 |
rows fetched via callback | 37,278 | 1.29 | 11.45 |
session connect time | 0 | 0.00 | 0.00 |
session cursor cache hits | 59,059 | 2.05 | 18.14 |
session logical reads | 595,440 | 20.66 | 182.87 |
shared hash latch upgrades - no wait | 15,196 | 0.53 | 4.67 |
shared hash latch upgrades - wait | 0 | 0.00 | 0.00 |
sorts (disk) | 0 | 0.00 | 0.00 |
sorts (memory) | 82,993 | 2.88 | 25.49 |
sorts (rows) | 497,288 | 17.26 | 152.73 |
space was found by tune down | 0 | 0.00 | 0.00 |
space was not found by tune down | 0 | 0.00 | 0.00 |
sql area evicted | 3 | 0.00 | 0.00 |
sql area purged | 160 | 0.01 | 0.05 |
steps of tune down ret. in space pressure | 0 | 0.00 | 0.00 |
summed dirty queue length | 3 | 0.00 | 0.00 |
switch current to new buffer | 107 | 0.00 | 0.03 |
table fetch by rowid | 80,562 | 2.80 | 24.74 |
table fetch continued row | 0 | 0.00 | 0.00 |
table scan blocks gotten | 45,846 | 1.59 | 14.08 |
table scan rows gotten | 2,206,870 | 76.58 | 677.79 |
table scans (direct read) | 0 | 0.00 | 0.00 |
table scans (long tables) | 0 | 0.00 | 0.00 |
table scans (rowid ranges) | 0 | 0.00 | 0.00 |
table scans (short tables) | 16,573 | 0.58 | 5.09 |
total cf enq hold time | 474 | 0.02 | 0.15 |
total number of cf enq holders | 224 | 0.01 | 0.07 |
total number of times SMON posted | 0 | 0.00 | 0.00 |
transaction rollbacks | 1 | 0.00 | 0.00 |
transaction tables consistent read rollbacks | 0 | 0.00 | 0.00 |
transaction tables consistent reads - undo records applied | 0 | 0.00 | 0.00 |
tune down retentions in space pressure | 0 | 0.00 | 0.00 |
undo change vector size | 7,308,300 | 253.62 | 2,244.56 |
user I/O wait time | 364 | 0.01 | 0.11 |
user calls | 9,139 | 0.32 | 2.81 |
user commits | 3,256 | 0.11 | 1.00 |
user rollbacks | 0 | 0.00 | 0.00 |
workarea executions - onepass | 0 | 0.00 | 0.00 |
workarea executions - optimal | 30,559 | 1.06 | 9.39 |
write clones created in background | 0 | 0.00 | 0.00 |
write clones created in foreground | 0 | 0.00 | 0.00 |