linux tools part 1– Linux Kernel Performance

Perf is a profiler tool for Linux 2.6+ based systems that abstracts away CPU hardware differences in Linux performance measurementsand presents a simple commandline interface. Perf is based on the perf_events interface exported by recent versions of the Linux kernel. This article demonstrates the pe[……]

Read more

Active dataguard tips

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

Read more

Scripts: Monitor Tablespace space growth

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

最近的一些杂事

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

Read more

Block split and entry reorder

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

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 测试

最近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

Scroll to Top