【从翻译mos文章】正在实施的获取job的 session id

正在实施的获取job的 session id

参考原始:

How to get the session Id of the Running Job (Doc ID 1604966.1)

申请:

Oracle Database - Enterprise Edition - Version 9.2.0.8 and later

Information in this document applies to any platform.

目标:

怎么得到正在执行job的session id

--->注意:本文说的job包含 由DBMS_JOB 创建的 和 DBMS_SCHEDULER 创建的。

解决方式:

假设job 使用DBMS_JOB package创建,请使用例如以下语句:

set feedback off

alter session set nls_date_format=‘DD-MON-YYYY HH24:MI:SS‘;

set feedback on

select   jr.job, s.username, s.sid, s.serial#, p.spid, s.lockwait, s.logon_time

from     dba_jobs_running jr, v$session s, v$process p

where    jr.sid = s.sid

and      s.paddr = p.addr

order by jr.job;

假设job 使用DBMS_SCHEDULER 创建,请使用例如以下语句:

set feedback off

alter session set nls_date_format=‘DD-MON-YYYY HH24:MI:SS‘;

set feedback on

select    rj.job_name, s.username, s.sid, s.serial#, p.spid, s.lockwait, s.logon_time

from      dba_scheduler_running_jobs rj, v$session s, v$process p

where     rj.session_id = s.sid

and       s.paddr = p.addr

order by  rj.job_name;

时间: 2024-08-08 02:46:08

【从翻译mos文章】正在实施的获取job的 session id的相关文章

【翻译自mos文章】得到正在运行job的 session id

得到正在运行job的 session id 参考原文: How to get the session Id of the Running Job (Doc ID 1604966.1) 适用于: Oracle Database - Enterprise Edition - Version 9.2.0.8 and later Information in this document applies to any platform. 目标: 怎么得到正在运行job的session id --->注意:

【翻译mos文章】Linux x86 and x86-64 系统中的SHMMAX最大值

Linux x86 and x86-64 系统中的SHMMAX最大值 参考原文: Maximum SHMMAX values for Linux x86 and x86-64 (文档 ID 567506.1) 目标: 问题1:32-bit (x86) Linux system 系统中的最大值? 问题2:64-bit (x86-64) Linux system系统中的最大值? 解决方案: 答案1: Oracle Global Customer Support 官方推荐 SHMMAX 的最大值是小于

【翻译自mos文章】对于每一个文件的 file.id and file.incarnation number,重命名文件别名

对于每一个文件的 file.id and file.incarnation number,重命名文件别名 参考原文: Rename Alias of Datafile as Per file.id and file.incarnation number (Doc ID 1494661.1) 适用于: Oracle Database - Enterprise Edition - Version 11.2.0.0 and later Information in this document appl

【从翻译mos文章】在oracle db 11gR2版本号被启用 Oracle NUMA 支持

在oracle db 11gR2版本号被启用 Oracle NUMA 支持 参考原始: Enable Oracle NUMA support with Oracle Server Version 11gR2 (文件 ID 864633.1) 申请: Oracle Database - Enterprise Edition - Version 11.2.0.1 and later Oracle Database - Standard Edition - Version 11.2.0.1 and l

【翻译mos文章】Linux x86 and x86-64 系统SHMMAX最大

Linux x86 and x86-64 系统SHMMAX最大值 参考原始: Maximum SHMMAX values for Linux x86 and x86-64 (文件 ID 567506.1) 目标: 问题1:32-bit (x86) Linux system 系统中的最大值? 问题2:64-bit (x86-64) Linux system系统中的最大值? 解决方式: 答案1: Oracle Global Customer Support 官方推荐 SHMMAX 的最大值是小于4G

【翻译自mos文章】找到持有library cache lock session的方法

找到持有library cache lock session的方法 参考自: How to Find which Session is Holding a Particular Library Cache Lock (文档 ID 122793.1) 其实就是两种方法: 一.Systemstate Analysis 此处不做翻译,原文转载 Systemstate event will create a tracefile containing detailed information on eve

【从翻译mos文章】Weblogic AdminServer 启动fail,报错"unable to get file lock, will retry"

Weblogic AdminServer 启动fail,报错"unable to get file lock, will retry" 参考原始: Weblogic AdminServer fails with "unable to get file lock, will retry" error message (Doc ID 1613945.1) 适用于: Oracle WebLogic Server - Version 8.1 and later Inform

【翻译自mos文章】对于oracle 数据库来说,OGG的抽取进程什么时候到database中获取数据?

对于oracle 数据库来说,OGG的抽取进程什么时候到database中获取数据? 参考原文: When GoldenGate Fetches Data From The Database On Extraction For Oracle (Doc ID 1059583.1) 适用于: Oracle GoldenGate - Version 4.0.0 and later Information in this document applies to any platform. 解决方法: 问

【翻译自mos文章】在11gR2/12c 的GI中,ORA_CRS_HOME 环境变量必须被unset

在11gR2/12c 的GI中,ORA_CRS_HOME 环境变量必须被unset 来源于: Environment Variable ORA_CRS_HOME MUST be UNSET in 11gR2/12c GI (文档 ID 1502996.1) 适用于: Oracle Database - Enterprise Edition - Version 11.2.0.1 and later Information in this document applies to any platfo