10G以上版本v$v session 字段中哪个字段表示当前

博客访问: 534953
博文数量: 110
博客积分: 636
博客等级: 中士
技术积分: 1704
注册时间:
IT168企业级官微
微信号:IT168qiye
系统架构师大会
微信号:SACC2013
分类: Oracle 12:44:20
看了看oracle联机文档中关于v$session 的介绍 这是一个相当重要的动态视图。摘抄下来和大家分享
v%session displays session information for each
这句话说明v$session视图显示的是当前会话的信息,要注意是当前会话。
下面介绍每个字段和每个字段的含义
column&&&&&&&&&&&&description
saddr&&&&&&&&&&&& session address 当前会话在内存中的地址。
sid&&&&&&&&&&&&&& session identifier 当前会话的id号。
serial#&&&&&&&&&& session serial number.used to uniquely identify a
&&&&&&&&&&&&&&&&&&session's&objects.guarantees that session-level commands
&&&&&&&&&&&&&&&&&&are applied to the correct session object if then session
&&&&&&&&&&&&&&&&&&ends and another session begins with the same session ID;
&&&&&&&&&&&&&&&&& 会话的串号。被用来唯一确定会话的对象。在会话结束后另一个会话用相同的
&&&&&&&&&&&&&&&&&&会话id连接时,保证在会话级别的命令可以应用到正确的对象上去。
audsid&&&&&&&&&&& auditing session id 审计会话id
paddr&&&&&&&&&&&&&address of the process that owns the session
&&&&&&&&&&&&&&&&& 用户会话的对应的进程地址 关联v$process 的addr字段.可以通过该字段
&&&&&&&&&&&&&&&&& 查询当前会话对应操作系统的进程号
user#&&&&&&&&&&&& oracle user identifier 用户id 对应dba_users 的user_id字段
username&&&&&&&&& oracle username
command&&&&&&&&&&&command in progress(last statement parsed).for a list of values,
&&&&&&&&&&&&&&&&& see table 9-2.these values also appear in the audit_actions table
&&&&&&&&&&&&&&&&& 执行的命令,9-2表可以看到关于这些值的信息。这些信息值出现在
&&&&&&&&&&&&&&&&&&audit_actions表中。此字段的值是数字。要与下表对应。
ownerid&&&&&&&&&& identifier of the user who owns the migratable session ;the column
&&&&&&&&&&&&&&&&& contents are invalid if the value is .
&&&&&&&&&&&&&&&&&&for operation using parallel slaves,interpret this value as a 4 byte value
&&&&&&&&&&&&&&&&& the low-order 2 bytes represent the session number and the high-order bytes
&&&&&&&&&&&&&&&&& represent the instance id of the query coordinator.
tadd&&&&&&&&&&&&&&address of the transaction state object 事物的地址
&&&&&&&&&&&&&&&&&& 关联v$transaction 的addr 通过这个字段可以查询正在使用的回滚段的情况,以及
&&&&&&&&&&&&&&&&&&&事情的信息。
lockwait&&&&&&&&& address of the lock the ses
&&&&&&&&&&&&&&&&& 当前会话正在等待锁的地址,如果没有则为
status&&&&&&&&&&& status of the session :当前会话的状态
&&&&&&&&&&&&&&&&& * active-session currently executing sql。当前会话正在执行sql.
&&&&&&&&&&&&&&&&& * inactive-session which is inactive and either has no configured
&&&&&&&&&&&&&&&&&&& limits or has not yet exceeded the configured limits.
&&&&&&&&&&&&&&&&&& 会话是不活动状态,既没有设置限制也没有超过限制。
&&&&&&&&&&&&&&&&&&* killed-session marked to be killed.会话被标示为已杀掉
&&&&&&&&&&&&&&&&&&* CACHED -session temporarily cached for use by oracle *xa
&&&&&&&&&&&&&&&&&&& 会话被临时缓存起来。
&&&&&&&&&&&&&&&&& * sniped -an inactive session that has exceeded some configured
&&&&&&&&&&&&&&&&&&limits(for example,resource limits specified for the resource manage
&&&&&&&&&&&&&&&&& consumer group or idle_time specified in the user's profile). such
&&&&&&&&&&&&&&&&&& session will not be allowed to become active again.
&&&&&&&&&&&&&&&&&&(被剪断的) 一个不是活跃的会话超过了配置限制(例如,在用户的配置文件中的
&&&&&&&&&&&&&&&&& 一些资源)这些会话不能转变成活动的会话。
server&&&&&&&&&&&server type:数据库提供服务的方式
&&&&&&&&&&&&&&&&&* dedicated 专有模式 ,一个会话一个进程。
&&&&&&&&&&&&&&&& * shared 共享模式
schema#&&&&&&&&& schema user identifier. schema id
schemaname&&&&&&&schema user name
osuser&&&&&&&&&&&operating system client user name
&&&&&&&&&&&&&&&& 会话的客户端系统的用户名。
process&&&&&&&&& operating system client process id:会话客户端进程id号
&&&&&&&&&&&&&&&&&如果有线程的话,线程号也显示出来。
machine&&&&&&&&& operating system machine name :操作系统主机名
port&&&&&&&&&&&& client port number:客户端连接端口号
terminal&&&&&&&&&operating system terminal name:操作系统中端名称
program&&&&&&&&& operating system program name:操作系统通过运行什么程序连接oracle
type&&&&&&&&&&&& session type:创建会话的类型,是用户创建还是后台进程创建的等
sql_address&&&&&& 内存地址used with sql_hash_value to identify the sql statement that is
&&&&&&&&&&&&&&&&&is currently being executed:通过sql_hash_value确定正在执行的sql语句
sql_hash_value&&& used with sql_address to identify the sql statement that is
&&&&&&&&&&&&&&&&&&currently being executed:通过sql_address 在做hash来唯一确定
&&&&&&&&&&&&&&&&&&正在执行sql语句 关联v$sql,v$sqltext,v$sqlarea.&
sql_id&&&&&&&&&& sql identifier of the sql statement that is currently being
&&&&&&&&&&&&&&&&&executed:标示会话正在执行sql语句的id号
sql_child_number& child number of the sql statement that is currently being&
&&&&&&&&&&&&&&&&& executed:正在执行sql的子号
sql_exec_start&& time when the execution of the sql currently executed by this
&&&&&&&&&&&&&&&&& null if sql_
&&&&&&&&&&&&&&&&&&当前sql执行开始时间,如果sql_id为空则此项也为空。
sql_exec_id&&&&&&sql null if sql_id is null or if the&
&&&&&&&&&&&&&&&&& execution of that sql has not yet started(see v$sql_monitor)
&&&&&&&&&&&&&&&&&
-----------未完待续&&&&&&&&&&&&&&&
&&&&&&&&&&&&&&&&&&
阅读(2260) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
请登录后评论。您所在的位置: &
10g版本中的新后台进程
10g版本中的新后台进程
清华大学出版社
《OracleDatabase10g性能调整与优化》第1章为大家介绍的是Oracle Database 10g新功能,本节主要讲述的是10g版本中的新后台进程。
1.30& 10g版本中的新后台进程
Oracle 10g包括以下的新后台进程:
RVWR:恢复写入程序(Recovery Writer)支持闪回数据库;该进程负责写入存储数据块前像的闪回日志。
CTWR:改动跟踪写入程序(Change Tracking Writer)是新的进程,它使用10g版本中新的块改动跟踪特性来执行快速RMAN增量备份。
MMNL:内存监控灯(Memory Monitor Light)进程使用自动工作量仓库(AWR)新特性,根据需要将完整的统计缓冲区写出到磁盘。
MMON:内存监控(Memory Monitor)进程与用于自动化问题检测和自调整的自动工作量仓库新特性关联。MMON根据调度写出所需的AWR统计。
M000:这些进程是MMON后台从属(m000)进程。
RBAL:重新平衡端口监控程序(Rebalancing Daemon)是ASM相关的进程,它执行由ASM控制的磁盘资源的重新平衡。
ARBx:这些进程由RBAL进程管理,用于对ASM控制的磁盘资源执行实际的重新平衡。调用的ARBx进程数量直接受到asm_power_limit参数的影响。
ASMB:ASMB进程用于向集群同步服务(Cluster Synchronization Service)提供信息或从中取出信息,ASM使用集群同步服务管理磁盘资源。该进程也用于更新统计和提供重要的机制。
【责任编辑: TEL:(010)】&&&&&&
关于&&&&的更多文章
本书由麦思博(北京)软件技术有限公司主编,由著名Oracle专家和
本书描述了黑客用默默无闻的行动为数字世界照亮了一条道路的故事。
讲师: 7人学习过讲师: 31人学习过讲师: 19人学习过
《21天学通Visual C++(第4版)》共21章,从Visual C+
《21天学通Python》全面、系统、深入地讲解了Python编
《21天学通C语言(第4版)》是C语言的入门教程,详细
本书是关于Acegi、CAS的权威教程,是Java/Java EE安全性开发者的必备参考书。无论是Java EE安全性编程模型的背景和基础知识,还
51CTO旗下网站他的最新文章
他的热门文章
您举报文章:
举报原因:
原文地址:
原因补充:
(最多只允许输入30个字)502 Bad Gateway
502 Bad Gateway
The proxy server received an invalid response from an upstream server. Sorry for the inconvenience.
Please report this message and include the following information to us.
Thank you very much!
http://www.searu.org/18309.html
Powered by Tengine}

我要回帖

更多关于 获取当前session 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信