标题: saddr,paddr几个参数的理解
surffish
LU幼天使
Rank: 2


UID 36540
精华 1
积分 110
帖子 196
活跃指数 55
LU金币 2226 个
LU金条 0 个
阅读权限 20
注册 2005-11-15
 
发表于 2007-2-1 09:03  资料  个人空间  短消息  加为好友 
saddr,paddr几个参数的理解

saddr,sid,serial#,paddr怎么理解





男人的胸怀是用委屈撑大的。
穷且益坚,不坠青云之志。
顶部
boypoo
版主
Rank: 15Rank: 15Rank: 15Rank: 15Rank: 15
懒神


UID 1132
精华 2
积分 322
帖子 583
活跃指数 40
LU金币 559 个
LU金条 0 个
阅读权限 210
注册 2003-10-29
来自 上海
 
发表于 2007-2-1 09:29  资料  个人空间  主页 短消息  加为好友  添加 boypoo 为MSN好友 通过MSN和 boypoo 交谈
这几个参数主要出现在v$process v$session视图中,请参看视图的说明

QUOTE:
V$PROCESSThis view contains information about the currently active processes. While the LATCHWAIT column indicates what latch a process is waiting for, the LATCHSPIN column indicates what latch a process is spinning on. On multi-processor machines, Oracle processes will spin on a latch before waiting on it.
[tr]ColumnDatatypeDescription[/tr]
ADDRRAW(4 | 8)Address of process state object
PIDNUMBEROracle process identifier
SPIDVARCHAR2(12)Operating system process identifier
USERNAMEVARCHAR2(15)Operating system process username. Any two-task user coming across the network has "-T" appended to the username.
SERIAL#NUMBERProcess serial number
TERMINALVARCHAR2(30)Operating system terminal identifier
PROGRAMVARCHAR2(48)Program in progress
TRACEIDVARCHAR2(255)Trace file identifier
BACKGROUNDVARCHAR2(1)1 for a background process; NULL for a normal process
LATCHWAITVARCHAR2(8)Address of latch the process is waiting for; NULL if none
LATCHSPINVARCHAR2(8)Address of the latch the process is spinning on; NULL if none
PGA_USED_MEMNUMBERPGA memory currently used by the process
PGA_ALLOC_MEMNUMBERPGA memory currently allocated by the process (including free PGA memory not yet released to the operating system by the server process)
PGA_FREEABLE_MEMNUMBERAllocated PGA memory which can be freed
PGA_MAX_MEMNUMBERMaximum PGA memory ever allocated by the process





QUOTE:
V$SESSIONThis view lists session information for each current session.
[tr]ColumnDatatypeDescription[/tr]
SADDRRAW(4 | 8)Session address
SIDNUMBERSession identifier
SERIAL#NUMBERSession serial number. Used to uniquely identify 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.
AUDSIDNUMBERAuditing session ID
PADDRRAW(4 | 8)Address of the process that owns the session
USER#NUMBEROracle user identifier
USERNAMEVARCHAR2(30)Oracle username
COMMANDNUMBERCommand in progress (last statement parsed); for a list of values, see [url=file:///E:/tools/oradocs/10gr2/server.102/b14237/dynviews_2088.htm#g1432037]Table 7-5[/url]. These values also appear in the AUDIT_ACTIONS table.
OWNERIDNUMBERThe 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 4-byte value. The low-order 2 bytes of which represent the session number, and the high-order bytes the instance ID of the query coordinator.
TADDRVARCHAR2(8)Address of transaction state object
LOCKWAITVARCHAR2(8)Address of lock waiting for; null if none
STATUSVARCHAR2(8)Status of the session:
    ACTIVE - Session currently executing SQL
    INACTIVE
    KILLED - Session marked to be killed
    CACHED - Session temporarily cached for use by Oracle*XA
  • SNIPED - Session inactive, waiting on the client
SERVERVARCHAR2(9)Server type (DEDICATED| SHARED| PSEUDO| NONE)
SCHEMA#NUMBERSchema user identifier
SCHEMANAMEVARCHAR2(30)Schema user name
OSUSERVARCHAR2(30)Operating system client user name
PROCESSVARCHAR2(12)Operating system client process ID
MACHINEVARCHAR2(64)Operating system machine name
TERMINALVARCHAR2(30)Operating system terminal name
PROGRAMVARCHAR2(48)Operating system program name
TYPEVARCHAR2(10)
....
Session type


如上,你应该看到serial#在不同的视图中,含义自然不一样





顶部
surffish
LU幼天使
Rank: 2


UID 36540
精华 1
积分 110
帖子 196
活跃指数 55
LU金币 2226 个
LU金条 0 个
阅读权限 20
注册 2005-11-15
 
发表于 2007-2-1 09:42  资料  个人空间  短消息  加为好友 
谢谢,版主。就是不知道这几个试图说明怎么找到!





男人的胸怀是用委屈撑大的。
穷且益坚,不坠青云之志。
顶部
boypoo
版主
Rank: 15Rank: 15Rank: 15Rank: 15Rank: 15
懒神


UID 1132
精华 2
积分 322
帖子 583
活跃指数 40
LU金币 559 个
LU金条 0 个
阅读权限 210
注册 2003-10-29
来自 上海
 
发表于 2007-2-1 09:51  资料  个人空间  主页 短消息  加为好友  添加 boypoo 为MSN好友 通过MSN和 boypoo 交谈
http://tahiti.oracle.com

这个网站是oracle官方的文档站点.





顶部
oldnetdog
LU幼天使
Rank: 2



UID 46293
精华 0
积分 23
帖子 42
活跃指数 4
LU金币 46 个
LU金条 0 个
阅读权限 20
注册 2006-5-3
 
发表于 2007-2-1 20:37  资料  个人空间  短消息  加为好友 
Oracle Document CD需要自备一套,有问题可以立即查找

顶部
smallflower
LU小天使
Rank: 3Rank: 3


UID 31722
精华 0
积分 304
帖子 490
活跃指数 27
LU金币 2517 个
LU金条 0 个
阅读权限 40
注册 2005-5-9
 
发表于 2007-4-24 19:03  资料  个人空间  短消息  加为好友 
www.oracle.com.cn好像有个在线的

顶部
[广告] 记录自己的思想火花,留住每日的技术积累,尽在拥有属于自己独立域名的博客。
 



当前时区 GMT+8, 现在时间是 2008-12-5 20:13
乐悠LoveUnix论坛-京ICP备05005823号

Thanks to Discuz!  © 2001-2007    Power by LoveUnix.net
Processed in 0.081143 second(s), 6 queries , Gzip enabled

清除 Cookies - 联系我们 - 乐悠LoveUnix - Archiver