oracle concurrent program session and sql
SELECT req.request_id,
req.logfile_node_name node,
req.oracle_process_id,
req.enable_trace,
dest.VALUE || '/' || lower(dbnm.VALUE) || '_ora_' ||
oracle_process_id || '.trc' trace_filename,
prog.user_concurrent_program_name,
execname.execution_file_name,
execname.subroutine_name,
phase_code,
status_code,
ses.sid,
ses.serial#,
ses.module,
ses.machine
FROM fnd_concurrent_requests req,
v$session ses,
v$process proc,
v$parameter dest,
v$parameter dbnm,
fnd_concurrent_programs_vl prog,
fnd_executables execname
WHERE 1 = 1
AND req.request_id = 21442588
AND req.oracle_process_id = proc.spid(+)
AND proc.addr = ses.paddr(+)
AND dest.NAME = 'user_dump_dest'
AND dbnm.NAME = 'db_name'
AND req.concurrent_program_id = prog.concurrent_program_id
AND req.program_application_id = prog.application_id
AND prog.application_id = execname.application_id
AND prog.executable_id = execname.executable_id;
SELECT osuser,
username,
sql_text
FROM v$session a,
v$sqltext b
WHERE a.sql_address = b.address
AND a.sid=3112
ORDER BY address,
piece;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/59792/viewspace-1051021/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 提交一個併發請求(Concurrent Program)
- Oracle session traceOracleSession
- Oracle 任務管理之 ----program(程式)---scheduler(計劃)--Job(任務)Oracle
- Oracle PL/SQLOracleSQL
- [Oracle]Oracle良性SQL建議OracleSQL
- Profiling an Assembly Program
- 【SQL】Oracle SQL處理的流程SQLOracle
- 【SQL】Oracle SQL共享池檢查SQLOracle
- 批次殺執行某條sql的sessionSQLSession
- Oracle SQL處理OracleSQL
- Hacking Oracle with Sql InjectionOracleSQL
- Oracle SQL Model ClauseOracleSQL
- [ORACLE] SQL執行OracleSQL
- Oracle 10046 SQL TRACEOracleSQL
- Oracle Session每日統計功能實現XLAMOracleSession
- Oracle SQL精妙SQL語句講解OracleSQL
- Oracle SQL優化之sql tuning advisorOracleSQL優化
- Spark Driver Program剖析Spark
- Java併發---concurrent包Java
- java.util.concurrent.RejectedExecutionExceptionJavaException
- Oracle中的sql hintOracleSQL
- Oracle 常用SQL筆記OracleSQL筆記
- Oracle基本SQL語句OracleSQL
- oracle 會話(session)被鎖瞭解決方法Oracle會話Session
- oracle中的processes,session,transaction引數詳解OracleSession
- Oracle SQL調優系列之SQL Monitor ReportOracleSQL
- 【SQL】Oracle 19c SQL隔離詳解(SQL Quarantine)SQLOracle
- The Network Program Log Two (Scapy)
- pwn.college-Program Misuse
- HDU - 6736 F - Forest ProgramREST
- Run a program as a service (daemon)-GOGo
- How to Cancel a Concurrent Request Stuck in the Queue?
- oracle SQL最佳化器SQL Tuning Advisor (STA)OracleSQL
- Oracle DBLink bug引發的故障(Session Hang Memory leak)OracleSession
- 【TUNE_ORACLE】等待事件之IO等待“read by other session”Oracle事件Session
- 【ORACLE】Oracle常用SQL及重點功能說明OracleSQL
- 【LOB】Oracle Lob管理常用sqlOracleSQL
- 【REDO】Oracle redo advice-sqlOracle RedoSQL
- Oracle case when改寫SQLOracleSQL