1104Cache Buffers chains与共享模式疑问4

简介: [20151104]Cache Buffers chains与共享模式疑问4.txt http://blog.itpub.net/267265/viewspace-1822491/ SCOTT@book> @ &r/ver1 PORT_STRING      ...

[20151104]Cache Buffers chains与共享模式疑问4.txt

http://blog.itpub.net/267265/viewspace-1822491/

SCOTT@book> @ &r/ver1
PORT_STRING                    VERSION        BANNER
------------------------------ -------------- --------------------------------------------------------------------------------
x86_64/Linux 2.4.xx            11.2.0.4.0     Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

--做一个全表扫描看看。

SCOTT@book> select rowid,empno,'sqlplus scott/book @h3 2e6 '||ename c60 from emp ;
ROWID                   EMPNO C60
------------------ ---------- ------------------------------------------------------------
AAAVREAAEAAAACXAAA       7369 sqlplus scott/book @h3 2e6 SMITH
AAAVREAAEAAAACXAAB       7499 sqlplus scott/book @h3 2e6 ALLEN
AAAVREAAEAAAACXAAC       7521 sqlplus scott/book @h3 2e6 WARD
AAAVREAAEAAAACXAAD       7566 sqlplus scott/book @h3 2e6 JONES
AAAVREAAEAAAACXAAE       7654 sqlplus scott/book @h3 2e6 MARTIN
AAAVREAAEAAAACXAAF       7698 sqlplus scott/book @h3 2e6 BLAKE
AAAVREAAEAAAACXAAG       7782 sqlplus scott/book @h3 2e6 CLARK
AAAVREAAEAAAACXAAH       7788 sqlplus scott/book @h3 2e6 SCOTT
AAAVREAAEAAAACXAAI       7839 sqlplus scott/book @h3 2e6 KING
AAAVREAAEAAAACXAAJ       7844 sqlplus scott/book @h3 2e6 TURNER
AAAVREAAEAAAACXAAK       7876 sqlplus scott/book @h3 2e6 ADAMS
AAAVREAAEAAAACXAAL       7900 sqlplus scott/book @h3 2e6 JAMES
AAAVREAAEAAAACXAAM       7902 sqlplus scott/book @h3 2e6 FORD
AAAVREAAEAAAACXAAN       7934 sqlplus scott/book @h3 2e6 MILLER

14 rows selected.

$ cat h3.sql
declare
m_id number;
m_data varchar2(200);
begin
        for i in 1 .. &&1 loop
                select job into m_data from emp where ename='&&2';
end loop;
end ;
/
quit

$ cat bbc.sh
sqlplus scott/book @h3 2e6 SMITH &
sqlplus scott/book @h3 2e6 ALLEN &
sqlplus scott/book @h3 2e6 WARD &
sqlplus scott/book @h3 2e6 JONES &
sqlplus scott/book @h3 2e6 MARTIN &
sqlplus scott/book @h3 2e6 BLAKE &
sqlplus scott/book @h3 2e6 CLARK &
sqlplus scott/book @h3 2e6 SCOTT &
sqlplus scott/book @h3 2e6 KING &
sqlplus scott/book @h3 2e6 TURNER &
sqlplus scott/book @h3 2e6 ADAMS &
sqlplus scott/book @h3 2e6 JAMES &
sqlplus scott/book @h3 2e6 FORD &
sqlplus scott/book @h3 2e6 MILLER &

--重复测试,也一样,也就是在11.2.0.4下,读读共享不会出现cache buffers chains latch。

目录
相关文章
|
SQL 索引 关系型数据库
生产 latch: cache buffers chains等待事件分析
生产 latch: cache buffers chains等待事件分析 一,表面现象:某库CPU冲高,大量latch: cache buffers chains等待事件。
1065 0
|
缓存 Linux 存储
Linux内存buffer和cache的区别
在Linux的内存分配机制中,优先使用物理内存,当物理内存还有空闲时(还够用),不会释放其占用内存,就算占用内存的程序已经被关闭了,该程序所占用的内存用来做缓存使用,对于开启过的程序、或是读取刚存取过得数据会比较快。
2322 0
|
SQL Oracle 关系型数据库
0821Cache Buffers chains与共享模式疑问4
[20170821]Cache Buffers chains与共享模式疑问4.txt --//昨天别人问的问题,就是在读读模式下,访问相同数据块,11.2.0.4不再出现cache buffers chains latch等待事件.
1160 0
|
SQL 关系型数据库 测试技术
缓解latch: cache buffers chains的案例
这两天我们的一个核心系统U*S,正在做压力测试,虽然压测的服务器配置不如生产,但可以反映出一些问题,初始测试的TPS可以说非常低,据测试同事反映,压测一会,数据库服务器CPU就上来了,业务上有积报现象,找不着原因。
1765 0
1104Cache Buffers chains与共享模式疑问3
[20151104]Cache Buffers chains与共享模式疑问3.txt --今天itpub上讨论vage讲11.2.0.4读读模式不会出现cache buffers chains latch,好奇做一个测试: --链接如下:http://www.
752 0