mysql 数据库 poor IO performance.从DELL 815(6disk raid 5,oel5.5) 迁移至 HP DL380 (14disk raid 1+0,rhl5.8)
当时的IO 表现
avg-cpu: %user %nice %system %iowait %steal %idle 4.55 0.00 1.30 0.25 0.00 93.90 Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq[......]
January 29, 2013 MYSQL, performance No comments mysql
mysql 数据库 poor IO performance.从DELL 815(6disk raid 5,oel5.5) 迁移至 HP DL380 (14disk raid 1+0,rhl5.8)
当时的IO 表现
avg-cpu: %user %nice %system %iowait %steal %idle 4.55 0.00 1.30 0.25 0.00 93.90 Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq[......]
January 23, 2013 oracle, replication No comments internal
11g ADG 给了大家更多的灾备选择,包括之前美国飓风,给了ADG大放光彩的机会,但是ADG并没有想象中的那么完美,以下是最近的一个CASE,具体过程不详写了,目前这个case还在跟进中,记录之:
[oracle@dcb-srv-0174 trace]$ cat itemstd02_ora_22156.trc |grep "LibraryObjectLock" |awk '{print $3 "-- obj handle get"}' | uniq -c |awk '{ if ($1>100) print $[......]
January 10, 2013 maintain, oracle No comments scripts
这个脚本可以监控tablespace 空间增长趋势,并且邮件通知到相关domain– 根据TOAD SPACE MANAGEMENT 修改
创建schema,tablespace,table:
create tablespace toad '+ARCH/data/tbs_tst01_00.dbf' size 50G autoextend off; create user toad identified by toad account unlock; create user TOAD default tablespace toad tem[......]
January 7, 2013 system No comments new life
December 26, 2012 system No comments
Blog 有段时间没更新了,最近发生了很多事搞得自己身心疲惫。首先公司为这次1221大促准备了很久,后台系统,前端应用都有比较大的变动,最终也是以破亿的销售额皆大欢喜。今年的工作也算告一段落,运维得到了不少的肯定,系统由纯RAC架构变为多维化的架构,包括10月份Exadata的上线,年底MongoDB,HBASE的上线等等。
明年的电商竞争更加激烈,环境也更为复杂,28号飞云南开始休假,给自己放个长假,新的一年,新的开始。Happy new Year ![……]
December 12, 2012 Internals, oracle No comments structure
今天跟研发的同学讨论到了这个问题,index block split过程中涉及到的重新排序问题.
SQL> create table idx_split (a number, b varchar2(1446), c date); Table created SQL> create index idx_split_idx on idx_split (a, b) tablespace idx_2k pctfree 10; Index created begin for i in 1..1000 loop[......]
Scripts:dbms_backup_restore_dbid
eg:
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> @dbid Database closed. Database dismounted. ORACLE instance shut down.[......]
November 28, 2012 Internals, oracle No comments test
最近team 讨论 Bind Graduation 比较激烈,详细可以见上一篇文章,基于Bind Graduation 做了以下测试:
主要目的:
测试基于OCI JDBC 等接口的 Bind Graduation行为.针对目前Bind Graduation的行为,以及11.2.0.3出现的purge问题,由于bind graduation导致的child cursor过多问题,暂时没有好的solution(_cursor_obsolete_threshold ?).
建议对问题语句涉及到的表做水平拆分。
测试版本11.2.0.3
[oracle@testdb[......]
November 28, 2012 11g, maintain, oracle No comments oradebug
11.2.0.3中Oracle引入了_cursor_obsolete_threshold隐藏参数,默认为100,表示一个parent cursor最多可以有100个child cursor;如果SQL需要第101个child cursor,则将该parent cursor and its 100 child cursor设置为obsoleted,并且重新生成新的parent cursor. 但是那些过期的child cursor不会从v$sql中消失,dbms_shared_pool.purge也无法将这些过期的child cursor flush出去,Oracle正在fix这个bug.[……]
November 25, 2012 oracle, RAC No comments asm
Some excellent experiment From Honcho
为了保护disks 上的数据,Oracle ASM 对disk groups 有3种冗余方式:
(1)external redundancy 表示Oracle不帮你管理镜像,功能由外部存储系统实现,比如通过RAID技术。
(2)normal redundancy(默认方式)表示Oracle提供2路镜像来保护数据。
(3)high redundancy 表示Oracle提供3路镜像来保护数据。
如果使用ASM的冗余,就是通过 ASM failure group 来实现。ASM使用的镜像算法并不是镜像整个[……]