暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

Oracle影子进程内存

askTom 2013-08-09
278

问题描述

Oracle: Oracle10g 10.2.0.x 64位
操作系统: RHE 4.x 5.x 64位

我们在数据库中使用专用服务器进程(没有MTS ) ,如何确定oracle影子进程的内存使用情况-共享和私有?我需要确保增加进程参数不会因为物理内存不足而导致交换。

谢谢

专家解答

最简单的方法是查看v$视图,否则操作系统工具将几乎不可能区分共享内存、共享内存和真正的私有内存。

类似于:

ops$tkyte%ORA11GR2> select s.sid,
  2         decode( grouping(s.username), 1, 'total:', s.username) username,
  3             n.name,
  4             to_char( sum(value/1024/1024), '999,999,9999,999.9' ) "Value - MB"
  5    from v$statname n, v$session s, v$sesstat t
  6   where s.sid=t.sid
  7     and n.statistic# = t.statistic#
  8     and s.type = 'USER'
  9     and s.username is not NULL
 10     and n.name in ('session pga memory', 'session pga memory max')
 11   group by grouping sets ((s.sid,s.username,n.name), (name))
 12  /

       SID USERNAME                       NAME                           Value - MB
---------- ------------------------------ ------------------------------ -------------------
       156 OPS$TKYTE                      session pga memory                             1.3
       189 OPS$TKYTE                      session pga memory                              .8
           total:                         session pga memory                             2.1
       156 OPS$TKYTE                      session pga memory max                         2.1
       189 OPS$TKYTE                      session pga memory max                          .8
           total:                         session pga memory max                         2.9

6 rows selected.



但简言之,不会看到超过N* (内核数)的进程,其中N是一个相当小的数字:

http://tinyurl.com/RWP-OLTP-CONNECTIONS


「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论