Scripts: Monitor Tablespace space growth

January 10, 2013 maintain, oracle No comments

这个脚本可以监控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[......]

Read more

[多图慎入] 云南游记

January 7, 2013 system No comments

趁着年假+元旦假期去云南走了一遭,小记之:

大理洱海佛塔

IMG_0033

IMG_0049


丽江古城

IMG_0090

IMG_0093

IMG_0094

IMG_0098

IMG_0103

玉龙雪山

IMG_0114

IMG_0116

IMG_0117

IMG_0122

IMG_0130

IMG_0138

IMG_0150

IMG_0160

IMG_0163

蓝月潭

IMG_0165

IMG_0171


昆明石林

IMG_0227

IMG_0266

IMG_0273

IMG_0314

风土人情
IMG_0203

IMG_0279[……]

Read more

最近的一些杂事

December 26, 2012 system No comments

Blog 有段时间没更新了,最近发生了很多事搞得自己身心疲惫。首先公司为这次1221大促准备了很久,后台系统,前端应用都有比较大的变动,最终也是以破亿的销售额皆大欢喜。今年的工作也算告一段落,运维得到了不少的肯定,系统由纯RAC架构变为多维化的架构,包括10月份Exadata的上线,年底MongoDB,HBASE的上线等等。
明年的电商竞争更加激烈,环境也更为复杂,28号飞云南开始休假,给自己放个长假,新的一年,新的开始。Happy new Year ![……]

Read more

Block split and entry reorder

December 12, 2012 Internals, oracle No comments

今天跟研发的同学讨论到了这个问题,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[......]

Read more

Scripts: dbms_backup_restore modify dbid and db_name

December 5, 2012 Internals, oracle 1 comment

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.[......]

Read more

Oracle Bind Graduation 测试

November 28, 2012 Internals, oracle No comments

最近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[......]

Read more

Can not purge obsolete cursor in 11.2.0.3

November 28, 2012 11g, maintain, oracle No comments

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.[……]

Read more

[转] ASM Handling Block Corruptions

November 25, 2012 oracle, RAC No comments

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使用的镜像算法并不是镜像整个[……]

Read more

Oracle Direct NFS Performance

November 23, 2012 11g, Architect, oracle, software 1 comment

在Oracle 11g中引入了Direct Network File System(Oracle Direct NFS)的新特性,通过一个打包在Oracle内核中的NFS client来提高使用NFS时的性能,DNFS同样适用于RAC等高可用场景。

DIRECT NFS CLIENT OVERVIEW
Standard NFS client software, provided by the operating system, is not optimized for Oracle Database file I/O access patterns. With Oracle D[……]

Read more

Logon Storm

November 16, 2012 network, oracle No comments

A Logon storm is a sudden spike in the number of client connection requests. Logon storms can occur due to a variety of factors. They could be malicious like a DoS attack. Or they could occur due to administrative actions – such as a middle tier coming online.
The process of starting a database[……]

Read more