Oracle RAC性能 Oracle sequence 性能测试
在Oracle RAC环境中,系统性能会受到影响,主要集中在Block在instance之间的传输,尽管oracle 10g 中采用了Cache Fusion来改善以前重disk中读取数据。其中的一个部分就是关于oracle sequence的性能问题
下面是关于sequence 的cache和order对rac 性能的影响,从测试中看到增大cache和采用non-ordered的sequence性能受到的影响很小。
drop sequence test_rac;
create sequence test_rac;
set timing on
declare
dummy number;
begin
for i in 1..50000 loop
select test_rac.nextval into dummy from dual;
end loop;
end;
/
cache 20, non-ordered
one instance - 2.46 seconds
two instance - 6.20 seconds
drop sequence test_rac;
create sequence test_rac order;
set timing on
declare
dummy number;
begin
for i in 1..50000 loop
select test_rac.nextval into dummy from dual;
end loop;
end;
/
cache 20, ordered
one instance - 5.29 seconds
two instance - 13.30 seconds
drop sequence test_rac;
CREATE SEQUENCE test_rac
CACHE 1000;
set timing on
declare
dummy number;
begin
for i in 1..50000 loop
select test_rac.nextval into dummy from dual;
end loop;
end;
/
cache 1000, non-ordered
one instance - 1.16 seconds
two instance - 1.54 seconds
drop sequence test_rac;
CREATE SEQUENCE test_rac
CACHE 1000 ORDER;
set timing on
declare
dummy number;
begin
for i in 1..50000 loop
select test_rac.nextval into dummy from dual;
end loop;
end;
/
cache 1000, ordered
one instance - 3.46 seconds
two instance - 8.47 seconds
相关文档:
Oracle log files : An introduction
The Oracle server maintains the redo Oracle log files to minimize the loss of data in the Database in case of an uncontrolled shutdown.
Online redo Oracle log files are filled with redo records. A redo record, also called a redo entry, is made up of a gr ......
刚刚接触ORACLE的人来说,从那里学,如何学,有那些工具可以使用,应该执行什么操作,一定回感到无助。所以在学习使用ORACLE之前,首先来安装一下ORACLE 10g,在来掌握其基本工具。俗话说的好:工欲善其事,必先利其器。我们开始吧!
首先将ORACLE 10g的安装光盘放入光驱,如果自动运行,一般会出现如图1安装界面:
图1
......
[oracle@dba01 dbs]$ orapwd file=/oracle/app/oracle/product/10.2.0/db_1/dbs/orapworcl password=oracle entries=20 force=y
[oracle@dba01 dbs]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Sat May 29 13:07:10 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Con ......
专有模式:
在专有服务器配置中,Oracle为每个连接到服务器得客户机启动一个专用服务器进程。一个客户机的专用服务器进程只为此客户机工作。各专用服务器进程完全独立,无需共享数据。在用户会话存在的整个过程中,相应的专用服务器进程一直存在,不论用户是否活动。直到用户会话终止后,该应用的专用服务器进程才终止。在 ......