The following lines contain the word 'select', 'insert', 'update' or 'delete':
select count(distinct(r.login_id))
into logins
from fnd_login_responsibilities r, v$session s
where r.audsid = s.audsid;
select count(*)
into forms
from fnd_login_resp_forms f, v$session s
where f.audsid = s.audsid;
select count(*)
into normal
from fnd_concurrent_requests
where status_code = 'C';
select count(*)
into warning
from fnd_concurrent_requests
where status_code = 'G';
select count(*)
into error
from fnd_concurrent_requests
where status_code = 'E';
select count(*)
into terminated
from fnd_concurrent_requests
where status_code = 'X';
select count(*)
into normal
from fnd_concurrent_requests
where status_code = 'I'
and requested_start_date <= sysdate
and hold_flag = 'N';
select count(*)
into standby
from fnd_concurrent_requests
where status_code = 'Q'
and requested_start_date <= sysdate
and hold_flag = 'N';
select count(*)
into scheduled
from fnd_concurrent_requests
where (status_code = 'P' or
(status_code in ('I', 'Q') and requested_start_date > sysdate))
and hold_flag = 'N';
select count(*)
into running_reqs
from fnd_concurrent_requests
where status_code = 'R'
or status_code = 'T';
select sum(running_processes)
into mgr_procs
from fnd_concurrent_queues
where manager_type = '1';
select 1
into dummy
from fnd_responsibility r,
fnd_user_resp_groups u,
fnd_user fu
where fu.user_name=upper(username)
and u.user_id = fu.user_id
and u.responsibility_id = r.responsibility_id
and u.responsibility_application_id = r.application_id
and r.responsibility_key='SYSTEM_ADMINISTRATOR'
and r.version = '4'
and r.start_date <= sysdate
and (r.end_date is null or r.end_date > sysdate);
Update Fnd_Concurrent_Queues
Set Diagnostic_Level = DiagLevel
Where Manager_Type = ManagerType;
Update Fnd_Concurrent_Queues
Set Diagnostic_Level = DiagLevel
Where Application_ID = Application
and Concurrent_queue_ID = QueueID;
select application_id, concurrent_queue_id
from fnd_concurrent_queues
where (max_processes > 0 or running_processes > 0)
and manager_type = svc_id;
select count(*) into n
from fnd_concurrent_queues
where running_processes = 0
and max_processes > 0;
select application_id, concurrent_queue_id,
manager_type, max_processes, running_processes
from fnd_concurrent_queues
where target_node = tnode
or (target_node is null and tnode = inode);
select target_node into icm_node
from fnd_concurrent_queues
where concurrent_queue_id = 1
and application_id = 0;