设为首页 收藏本站
查看: 479|回复: 0

[经验分享] oracle v$session每个字段的意义

[复制链接]

尚未签到

发表于 2016-7-27 10:57:32 | 显示全部楼层 |阅读模式
查看数据库连接
select   *  from   v$session;
中断回话
ALTER SYSTEM KILL SESSION 'SID,SERIAL#';

v$session表每个字段的意义:
$SESSION
This view lists session information for each current session.

Column   Datatype   Description   
SADDR  
RAW(4)  
Session address  

SID  
NUMBER  
Session identifier  

SERIAL#  
NUMBER  
Session serial number. Used to identify uniquely a session's objects. Guarantees that session-level commands are applied to the correct session objects if the session ends and another session begins with the same session ID  

AUDSID  
NUMBER  
Auditing session ID  

PADDR  
RAW(4)  
Address of the process that owns this session  

USER#  
NUMBER  
Oracle user identifier  

USERNAME  
VARCHAR2(30)  
Oracle username  

COMMAND  
NUMBER  
Command in progress (last statement parsed); for a list of values, see Table 3-7  

OWNERID  
NUMBER  
The column contents are invalid if the value is 2147483644. Otherwise, this column contains the identifier of the user who owns the migratable session

For operations using Parallel Slaves, interpret this value as a 4Byte value. The low-order 2Bytes of which represent the session number, and the high-order bytes the instance ID of the query coordinator  

TADDR  
VARCHAR2(8)  
Address of transaction state object  

LOCKWAIT  
VARCHAR2(8)  
Address of lock waiting for; NULL if none  

STATUS  
VARCHAR2(8)  
Status of the session: ACTIVE (currently executing SQL), INACTIVE, KILLED (marked to be killed), CACHED (temporarily cached for use by Oracle*XA), SNIPED (session inactive, waiting on the client)  

SERVER  
VARCHAR2(9)  
Server type: DEDICATED, SHARED, PSEUDO, NONE  

SCHEMA#  
NUMBER  
Schema user identifier  

SCHEMANAME  
VARCHAR2(30)  
Schema user name  

OSUSER  
VARCHAR2(15)  
Operating system client user name  

PROCESS  
VARCHAR2(9)  
Operating system client process ID  

MACHINE  
VARCHAR2(64)  
Operating system machine name  

TERMINAL  
VARCHAR2(10)  
Operating system terminal name  

PROGRAM  
VARCHAR2(48)  
Operating system program name  

TYPE  
VARCHAR2(10)  
Session type  

SQL_ADDRESS  
RAW(4)  
Used with SQL_HASH_VALUE to identify the SQL statement that is currently being executed  

SQL_HASH
_VALUE  
NUMBER  
Used with SQL_ADDRESS to identify the SQL statement that is currently being executed  

MODULE  
VARCHAR2(48)  
Contains the name of the currently executing module as set by calling the DBMS_APPLICATION_INFO.SET_MODULE procedure  

MODULE_HASH  
NUMBER  
The hash value of the above MODULE  

ACTION  
VARCHAR2(32)  
Contains the name of the currently executing action as set by calling the
DBMS_APPLICATION_INFO.SET_ACTION procedure  

ACTION_HASH  
NUMBER  
The hash value of the above action name  

CLIENT_INFO  
VARCHAR2(64)  
Information set by the DBMS_APPLICATION_INFO.SET_CLIENT_INFO procedure  

FIXED_TABLE
_SEQUENCE  
NUMBER  
This contains a number that increases every time the session completes a call to the database and there has been an intervening select from a dynamic performance table. This column can be used by performance monitors to monitor statistics in the database. Each time the performance monitor looks at the database, it only needs to look at sessions that are currently active or have a higher value in this column than the highest value that the performance monitor saw the last time. All the other sessions have been idle since the last time the performance monitor looked at the database  

ROW_WAIT_OBJ#  
NUMBER  
Object ID for the table containing the ROWID specified in ROW_WAIT_ROW#  

ROW_WAIT_FILE#  
NUMBER  
Identifier for the datafile containing the ROWID specified in ROW_WAIT_ROW#. This column is valid only if the session is currently waiting for another transaction to commit and the value of ROW_WAIT_OBJ# is not -1  

ROW_WAIT
_BLOCK#  
NUMBER  
Identifier for the block containing the ROWID specified in ROW_WAIT_ROW#. This column is valid only if the session is currently waiting for another transaction to commit and the value of ROW_WAIT_OBJ# is not -1  

ROW_WAIT_ROW#  
NUMBER  
The current ROWID being locked. This column is valid only if the session is currently waiting for another transaction to commit and the value of ROW_WAIT_OBJ# is not -1  

LOGON_TIME  
DATE  
Time of logon  

LAST_CALL_ET  
NUMBER  
The last call  

PDML_STATUS  
VARCHAR2(8)  
If ENABLED, the session is in a PARALLEL DML enabled mode. If DISABLED, PARALLEL DML enabled mode is not supported for the session. If FORCED, the session has been altered to force PARALLEL DML.  

PDDL_STATUS  
VARCHAR2(8)  
If ENABLED, the session is in a PARALLEL DDL enabled mode. If DISABLED, PARALLEL DDL enabled mode is not supported for the session. If FORCED, the session has been altered to force PARALLEL DDL.  

PDML_ENABLED  
VARCHAR2(3)  
This column has been replaced by PDML_ENABLED and PDML_STATUS. See above.  

FAILOVER_TYPE  
VARCHAR2(10)  
NONE if failover is disabled for this session, SESSION if client is able to failover its session following a disconnect, and SELECT if client is able to fail over selects in progress as well  

FAILOVER
_METHOD  
VARCHAR2(3)  
NONE if failover is disabled for this session, BASIC if client reconnects following a disconnect, PRECONNECT if the backup instance is able to support all connections from every instance that it is backup for  

FAILED_OVER  
VARCHAR2(13)  
TRUE if running in failover mode and have failed over, otherwise FALSE  

RESOURCE_CONSUMER_GROUP  
VARCHAR2(32)  
Name of the session's current resource consumer group

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-250199-1-1.html 上篇帖子: 测试例子 jsp + javaBean + EJB + oracle 下篇帖子: Oracle SQL*Loader 使用指南【转】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表