Вы находитесь на странице: 1из 2

SELECT SESSION **************** could not reserve record (2 tries). keep trying? ******************** select vs.audsid audsid, locks.

sid sid, vs.serial# serial#, vs.username oracle_user, vs.osuser os_user, vs.program program, vs.module module, vs.action action, vs.process process, decode(locks.lmode, 1, NULL, 2, 'Row Share', 3, 'Row Exclusive', 4, 'Share', 5, 'Share Row Exclusive', 6, 'Exclusive', 'None') lock_mode_held, decode(locks.request, 1, NULL, 2, 'Row Share', 3, 'Row Exclusive', 4, 'Share', 5, 'Share Row Exclusive', 6, 'Exclusive', 'None') lock_mode_requested, decode(locks.type, 'MR', 'Media Recovery', 'RT', 'Redo Thread', 'UN', 'User Name', 'TX', 'Transaction', 'TM', 'DML', 'UL', 'PL/SQL User Lock', 'DX', 'Distributed Xaction', 'CF', 'Control File', 'IS', 'Instance State', 'FS', 'File Set', 'IR', 'Instance Recovery', 'ST', 'Disk Space Transaction', 'TS', 'Temp Segment', 'IV', 'Library Cache Invalidation', 'LS', 'Log Start or Log Switch', 'RW', 'Row Wait', 'SQ', 'Sequence Number', 'TE', 'Extend Table', 'TT', 'Temp Table', locks.type) lock_type, objs.owner object_owner, objs.object_name objec t_name, objs.object_type object_type, round( locks.ctime/60, 2 ) lock_time_in_ minutes from v$session vs, v$lock locks, dba_objects objs, dba_tables tbls where locks.id1 = objs.object_id and vs.sid = locks.sid and objs.owner = tbls.owner and objs.object_name = tbls.table_name and objs.o wner != 'SYS' and locks.type = 'TM' order by lock_time_in_minutes; ------------------------ALTER SYSTEM KILL SESSION '125,11557'; ----------------more quesries SELECT F.AUDSID, S.SID, S.SERIAL#, L.USER_ID, L.TERMINAL_ID, L.LOGIN_NAME, R.RESP_APPL_ID, R.RESP ONSIBILITY_ID, F.FORM_ID, F.FORM_APPL_ID, L.PID, L.PROCESS_SPID, NVL(F.START_TIME, NVL(R.START_TIME, L.START_TIME)) TIME , USR.USER_NAME, a.application_name, RSP.RESPONSIBILITY_ NAME, FRM.USER_FORM_NAME, s.program, s.action, s .module, s.state, s.event, s.wait_class, s.secon ds_in_wait FROM FND_RESPONSIBILITY_TL RSP, FND_FORM_TL FRM, FND_ USER USR, FND_LOGINS L, FND_LOGIN_RESPONSIBILITIES R, FN D_LOGIN_RESP_FORMS F, GV$SESSION S, fnd_application_tl A WHERE F .AUDSID = &ENTER_FORM_AUDSID AND R.LOGIN_ID = F.LOGIN_ID AND R.LOGIN_RESP_ID = F .LOGIN_RESP_ID AND L.LOGIN_ID = R.LOGIN_ID AND L.END_TIME IS NULLAND R.END_TIME IS NULLAND F.END_TIME IS NULLAND L.USER_ID = USR.USER_ID AND R.RESPONSIBILITY_ID

= RSP.RESPONSIBILITY_ID AND R.RESP_APPL_ID = RSP.APPLICATION_ID AND RSP.LANGUAG E = 'US'AND RSP.application_id = a.application_id AND a.language = 'US'AND F.FOR M_ID = FRM.FORM_ID AND F.FORM_APPL_ID = FRM.APPLICATION_ID AND FRM.LANGUAGE = 'U S'AND F.AUDSID = S.AUDSID;

select fcr.request_id, fcr.requested_by, fu.user_name, fcr.program_application_id, fcr.concurrent_program_id, fcr.a ctual_start_date, fat.application_name, fcp.concurrent_program _name, fcpt.user_concurrent_program_name, fcr.description, fcr.logfile_node_name, fcr.outfile_name, fcr.logfile_nam e, fcr.completion_text, fcr.parent_request_id, vs.pro cess, vs.state, vs.event, vs.wait_class, vs. seconds_in_wait from v$session vs, fnd_concurrent_request s fcr, fnd_application_tl fat, fnd_concurrent_progra ms fcp, fnd_concurrent_programs_tl fcpt, fnd_user fu where vs.audsid = &ENTER_CONC_PROCESS_AUDSID and vs.process = fcr.os_process_id and fcr.actual_completion_date is null and fcr.program_application_id = fat.application_id and fcr.program_applica tion_id = fcp.application_id and fcr.concurrent_program_id = fcp.concur rent_program_id and fcr.program_application_id = fcpt.application_id and fcr.concurrent_program_id = fcpt.concurrent_program_id and f cr.requested_by = fu.user_id;

Вам также может понравиться