本站2012年年终报告

2012年最后一天,2B政策非要上班,未见预测世界末日,只当做为新的开端。 日志数 491 只是工作日发表,一年大概有240多个工作日,目标是每天学2个以上知识点,每个工作日在此站点记录一篇,看来从建站到今天还是有些日子偷懒了。 本站从2010-11-22 起来加入CNZZ.com统计 PV 独立访客 IP 每日平均: 189 146 142 历史最高: 662 (2012-07-05) 601 (2011-01-19) 370 (2012-06-05) 历史累计: 103100 78316 72833 访问分布全国各省份和10几个国家 top 5 地区分布 北京 广东 上海 美国 江苏 top 5 浏览器 chrome IE8 firefox 360 IE9

How to config hugepage on Linux for Oracle(配置大页)

内存管理是一个非常复杂的结构,在操作系统中用Virtual memory System进行内存管理,pagetable是中记录了内存的虚拟地址和物理地址的映射关系,当一个进程真正的访问数据是首先访问的是page table然后转向真实的地址,cpu中有固定的大小来缓存部份的pagetables,这块区域就是translation lookaside buffer(TLB).

about get bind_data column in v$sql(绑定变量值)

今天查看AWR时,发现有个sql占用的cpu很高而且也并不复杂,top 5 event出现了cpu,read by other sessions,而且sql中再次看到的hint index,随后从生产环境中拿到绑定变量参数值进行本地调试,发现hint index 选择了错误的索引一致读为93万,去掉hint立即降低到了36,随后服务器压力将了下来

Session-Level init Parameters or Environment(会话级参数环境)

sometimes we use ALTER SESSION statement to set or modify any of the conditions or parameters that affect your connection to the database. The statement stays in effect until you disconnect from the database. we can query current system Initialization parameter from v$parameter view,but where are able to confirm that the session-level parameter modification happened?

Invisible Indexes in oracle11g

11gr1起提供了Invisible Indexes,作用就是通过alter index xx invisible,对CBO隐身,我突然想到之前的一个情况,就是开发的在应用中滥用hint index,当时为了让hint index 无效,当时是选择index rename,现在看来如果是11g可以用invisible

External Table On GoldenGate Discard Files

goldengate 做为数据同步的利器,越来越普遍,往往会因为某些原因replicat进程在应用trail文件时会失败,进程要么Abending也可以也忽略记录到 Discard Files中,默认在OGG_HOME/dirrpt/ *.dsc,可以用文本工具查看内容,当然也可以更方便的用pl/sql function 读取文件,做为一张外部表(external table)查询