Erp100论坛's Archiver

xiangzhao 发表于 2008-7-13 10:50

学习动态性能表(七)

[font=宋体]本视图包含当前系统[/font][font=Times New Roman]oracle[/font][font=宋体]运行的所有进程信息。常被用于将[/font][font=Times New Roman]oracle[/font][font=宋体]或服务进程的操作系统进程[/font][font=Times New Roman]ID[/font][font=宋体]与数据库[/font][font=Times New Roman]session[/font][font=宋体]之间建立联系。在某些情况下非常有用:[/font]
[font=Times New Roman] [/font]
[font=Times New Roman]1.
[/font][font=宋体]如果数据库瓶颈是系统资源[/font][font=Times New Roman]([/font][font=宋体]如:[/font][font=Times New Roman]cpu,[/font][font=宋体]内存[/font][font=Times New Roman])[/font][font=宋体],并且占用资源最多的用户总是停留在某几个服务进程,那么进行如下诸项:[/font]
[font=Times New Roman] [/font]
[font=Wingdings]l
[/font][font=宋体]找出资源进程[/font]
[font=Wingdings]l
[/font][font=宋体]找出它们的[/font][font=Times New Roman]session,[/font][font=宋体]你必须将进程与会话联系起来。[/font]
[font=Wingdings]l
[/font][font=宋体]找出为什么[/font][font=Times New Roman]session[/font][font=宋体]占用了如此多的资源[/font]
[font=Times New Roman] [/font]
[font=Times New Roman]2.
SQL[/font][font=宋体]跟踪文件名是基于服务进程的操作系统进程[/font][font=Times New Roman]ID[/font][font=宋体]。要找出[/font][font=Times New Roman]session[/font][font=宋体]的跟踪文件,你必须将[/font][font=Times New Roman]session[/font][font=宋体]与服务进程联系起来。[/font]
[font=Times New Roman]3.
[/font][font=宋体]某些事件,如[/font][font=Times New Roman]rdbms ipc reply[/font][font=宋体],鉴别[/font][font=Times New Roman]session[/font][font=宋体]进程的[/font][font=Times New Roman]Oracle[/font][font=宋体]进程[/font][font=Times New Roman]ID[/font][font=宋体]在等什么。要发现这些进程在做什么,你必须找出它们的[/font][font=Times New Roman]session[/font][font=宋体]。[/font]
[font=Times New Roman]4.
[/font][font=宋体]你所看到的服务器上的后台进程[/font][font=Times New Roman](DBWR,LGWR,PMON[/font][font=宋体]等[/font][font=Times New Roman])[/font][font=宋体]都是服务进程。要想知道他们在做什么,你必须找到他们的[/font][font=Times New Roman]session[/font][font=宋体]。[/font]
[font=Times New Roman] [/font]
[b][font=Times New Roman]V$PROCESS[/font][/b][b][font=宋体]中的常用列[/font][/b]
[font=Wingdings]l
[/font][font=Times New Roman]ADDR[/font][font=宋体]:进程对象地址[/font]
[font=Wingdings]l
[/font][font=Times New Roman]PID[/font][font=宋体]:[/font][font=Times New Roman]oracle[/font][font=宋体]进程[/font][font=Times New Roman]ID[/font]
[font=Wingdings]l
[/font][font=Times New Roman]SPID[/font][font=宋体]:操作系统进程[/font][font=Times New Roman]ID[/font]
[font=Times New Roman] [/font]
[b][font=Times New Roman]V$PROCESS[/font][/b][b][font=宋体]中的连接列[/font][/b]
[b][font=Times New Roman]Column



View



Joined Column(s) [/font][/b]
[font=Times New Roman]ADDR



V$SESSION


PADDR[/font]
[font=Times New Roman] [/font]

页: [1]

Powered by Discuz! Archiver 7.0.0  © 2001-2007 Comsenz Inc.