2010 年文章归档
共 201 篇文章
很好的debian源
deb http://mirrors.geekbone.org/debian/ lenny main deb-src http://mirrors.geekbone.org/debian/ lenny main deb http://security.debian.org/ lenny/updates main deb-src http://security.debian.org/ lenny/updates main deb http://volatile.debian.org/debian-volatile lenny/volatile main deb-src http://volat…
2010-12-30 22:04
SQL调优之 业务逻辑+技术调整
前面的SQL调优案例绝大部分都是从纯技术角度出发的,那么现在介绍一个案例,需要从业务和技术 相结合的方法来进行优化 Team Leader 发来邮件说这个SQL 要得很久,下面是邮局内容,他说这个SQL有可能是 statics gather的问题 这个SQL 可能有表的statics gather 的问题,具体表可能是S_SRC_PLC。 SELECT S_SRC_PAYMENT.ROW_ID AS PRMTN_PYMT_ID, DECODE(S_SRC_PAYMENT.PAR_PAYMENT_ID, NULL, 'Header', 'Line Item') AS PYMT_LVL_DESC…
2010-12-27 22:51
再次遇到 enq: TM - contention竞争
环境 Oracle11g , HPUX 4 节点RAC SQL> select * from v$version; BANNER -------------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production PL/SQL Release 11.1.0.7.0 - Production CORE 11.1.0.7.0 Production TNS for HP…
2010-12-27 16:31
Parse CPU to Parse Elapsd% >100%
SQL> select round(cpu.value / elapsed.value * 100, 2) "Parse CPU to Parse Elapsd %:" 2 from v$sysstat cpu, v$sysstat elapsed 3 where cpu.name = 'parse time cpu' 4 and elapsed.name = 'parse time elapsed'; Parse CPU to Parse Elapsd %: ---------------------------- 32955.43 SQL> select * from v$sysstat…
2010-12-23 23:15
What is DB time in AWR?
AWR中有 DB time这个术语,那么什么是DB time呢? Oracle10gR2 官方文档 给出了详细解释(Oracle10gPerformance Tuning Guide 5.1.1.2 Time Model Statistics) The most important of the time model statistics is DB time. This statistics represents the total time spent in database calls and is a indicator of the total instance workload.…
2010-12-15 16:17
SQL调优之利用组合索引
HI TEAM I need excete the select IN ADW2P. And it has run more than three hours , no response! Could you give me a hand? select distinct srce_sys_id from idws1.ODS_BR_SHENG_FB where prod_id in ( select dsend_id as prod_id from idws1.prod_assoc_dnorm where ctrl_perd = (select ctrl_perd from idws1.re…
2010-12-15 12:42
究竟何为IIS并发连接数
并发连接数是指防火墙或代理服务器对其业务信息流的处理能力,是防火墙能够同时处理的点对点连接的最大数目,它反映出防火墙设备对多个连接的访问控制能力和连接状态跟踪能力,这个参数的大小直接影响到防火墙所能支持的最大信息点数。 并发连接数是衡量防火墙性能的一个重要指标。在目前市面上常见防火墙设备的说明书中大家可以看到,从低端设备的500、1000个并发连接,一直到高端设备的数万、数十万并发连接,存在着好几个数量级的差异。那么,并发连接数究竟是一个什么概念呢?它的大小会对用户的日常使用产生什么影响呢?要了解并发连接数,首先需要明白一个概念,那就是“会话”。这个“会话”可不是我们平时的谈话,但是可以用平…
2010-12-14 23:15
Keep pool
现在有如下AWR报表,1小时采样,那么注意看DB Time高达322分钟 Snap Id Snap Time Sessions Cursors/Session Begin Snap: 11522 12-Dec-10 20:00:55 136 7.7 End Snap: 11523 12-Dec-10 21:00:12 141 9.4 Elapsed: 59.29 (mins) DB Time: 322.74 (mins) Report Summary Cache Sizes Begin End Buffer Cache: 3,136M 3,136M Std Block Size: 8K Sh…
2010-12-13 17:13
将moss 2007的模板文件导入到moss 2010
最近公司HR请请将一个moss2007的调查模板文件导入到我们部门的Moss protal 上面。 我想这是举手之劳,就爽快的答应了。 但是导入时却报如下错误: Error Microsoft SharePoint Foundation version 3 templates are not supported in this version of the product Correlation ID: {random guid} Date and Time: .... 后来一想可能是我们部门的用的是moss2010,和HR用的moss2007模板结构可能不太一样,这样让我哦一一往里面输入不…
2010-12-11 17:11
一次400行SQL的优化过程
主要环境如下: SQL> select * from v$version; BANNER ------------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production 4节点 HPUX RAC OLAP 环境 SQL> show parameter db_block_size NAME TYPE VALUE --------------------------…
2010-12-05 00:24
一次嵌套循环的优化
主要环境如下: SQL> select * from v$version; BANNER ------------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production 4节点 HPUX RAC OLAP 环境 SQL> show parameter db_block_size NAME TYPE VALUE --------------------------…
2010-12-04 16:18
MatPlotLib
http://matplotlib.sourceforge.net/examples/pylab_examples/pcolor_demo.html pylab_examples example code: pcolor_demo.py ¶ [ source code , hires.png , pdf ] #!/usr/bin/env python """ See pcolor_demo2 for an alternative way of generating pcolor plots using imshow that is likely faster for large grids …
2010-12-03 21:30
XML数据保存至表中(批量)
2010-12-03 14:09
关于Unspecified Wait Event这个bug
数据库升级到11.1.0.7.0之后,出来了一大堆的bug,别问我 为什么不升级到11gR2 我这里遇到个 unspecified wait event 。Metalink 文档描述如下: "Unspecified Wait Event" After Installing 9352179 - 11.1.0.7.3 Patch Set Update [ID 1107783.1] 修改时间 24-JUN-2010 类型 HOWTO 状态 PUBLISHED In this Document Goal Solution References Applies to: Oracle Server - …
2010-11-30 14:17
shared pool 原理
Shared Pool 原理 Robinson 由于shared pool中最重要的是library cache,所以本文主要讲解Library cache的结构,library cache latch,library cache lock,library cache pin。 What is shared pool? Shared pool是SGA中的一部分,由于它是SGA的一部分,这意味着它可以被所有的进程所访问,Shared Pool当中主要包含了2部分:library cache和 dictionary cache 也称为 row cache。 Library cache包含了共享S…
2010-11-26 17:23
oracle大表复制
前几天遇到一个要求初始化数据的问题,表数据是千万级别的,直接用UPDATE语句要一个多小时,速度不能达到要求。经多方查找和实践发现,通过新建表的方式是最快的,仅需几分钟就OK了。今天又多查询了一个资料,做个总结. ORACLE的INSERT、UPDATE和DELETE在执行过过程中都是会产生日志的,因此,当插入大量数据的时候可以添加“nologging”选项,以提高执行速度,三种操作所做的具体东西而相关资料是这样写的: 常INSERT产生最少的Undo,Update产生的Undo居中,而Delete操作产生的Undo最多。 对于INSERT操作,回滚段只需要记录插入记录的rowid,如果回退…
2010-11-26 15:56
验证身份证
2010-11-25 11:14
Mac OS启动服务优化高级篇(launchd tuning)
from:http://kenwublog.com/mac-os-launchd-tuning Mac下的启动服务主要有三个地方可配置: 1,系统偏好设置->帐户->登陆项 2,/System/Library/StartupItems 和 /Library/StartupItems/ 3,launchd 系统初始化进程配置。 前两种优化比较简单,本文主要介绍的是第三种更为复杂的launchd配置优化。 launchd是Mac OS下,用于初始化系统环境的关键进程。类似Linux下的init, rc。 我们先来看一下Mac OS X的启动原理: 1,mac固件激活,初始化硬件,加载BootX引…
2010-11-22 16:07
RAC 环境Library Cache Lock的处理方法
我要监控某个Job,该session 处于 Library cache lock 等待中 数据库有2个节点 SQL> select inst_id from gv$instance; INST_ID ---------- 2 1 SQL> select inst_id,sid,serial#,event ,p1raw,machine,status from gv$session where username='BX5685'; INST_ID SID SERIAL# EVENT P1RAW MACHINE STATUS ---------- ---------- ---------- ---…
2010-11-10 00:09