VMCD.ORG

Focus on database mail:ylouis83#gmail.com

[转] Autotrace with bind variables

Posted by admin on September 27th, 2013

JL刚刚写的一篇autotrace与bind variables 的行为:Autotrace trick
之前我们也发现过这个问题具体SR在这里:something seems confused

Tags:
Posted in Oracle Experience | No Comments »

CTAS导致严重BUG一则

Posted by admin on September 25th, 2013

某国内巨头的一起CASE,在系统繁忙情况下大量的CTAS 导致数据字典表的不一致,由原来10.0.2.4版本升级到10.0.2.5之后问题依旧。
具体表现为:
1. 尝试drop这些不一致的tablespace

15:00:18 SQL> @dropts_2012.0319.1500.sql
15:00:18 SQL> drop tablespace ODSCP1003 including contents;
drop tablespace ODSCP1003 including contents
*
ERROR at line 1:
ORA-00600: i[......]

Read more

Tags:
Posted in Oracle Experience | No Comments »

Think of bind value

Posted by admin on September 17th, 2013

Tags:
Posted in Oracle Experience | No Comments »

一次诡异的缓慢”死亡” CASE

Posted by admin on September 13th, 2013

今天下午遇到的一个诡异CASE,现象为系统诡异的死亡,目前判定为sqluldr2工具导致 (同事使用sqluldr2 用具 执行了sqluldr2_linux64_10204.bin -help 命令)
抛出的错误如下 (/var/log/message)

Sep 11 09:00:54 db18 setroubleshoot: SELinux is preventing sqluldr2_linux6 from loading /home/oracle/product/10205/db1/lib/libnnz10.so which requires text relocation.[......]

Read more

Tags:
Posted in Oracle Experience | No Comments »

How to change oplog size — mongo

Posted by admin on September 10th, 2013

主要两种方法 :
1.轮流改变oplog size (from primary to secondary)

2.重新初始化 secondary 定制oplog size 切换原来的primary

具体操作一下方法一的步骤,集体参考mongo oplog

1). 切换当前primary ->secondary

rs1:PRIMARY> rs.stepDown();

2). 关闭MongoDB

rs1:SECONDARY> db.shutdownServer();

3). 注释掉replSet选项,以单机模式启动 —切换port
4). 查询出最后的[......]

Read more

Tags:
Posted in NoSQL | No Comments »

MySQL replication case 一则

Posted by admin on September 10th, 2013

最近同事处理了一则mysql复制错误.发出来参考下

MYSQL同步出错,报错信息如下:

Last_Errno: 1267
Last_Error: Error 'Illegal mix of collations (utf8_general_ci,COERCIBLE) and (latin1_swedish_ci,IMPLICIT) for operation 'concat'' on query. Default database: 'inshop_app'. Query: 'INSERT INTO insho[......]

Read more

Tags:
Posted in MYSQL | No Comments »

ION — SERVER-BASED Storage 方案

Posted by admin on September 5th, 2013

FusionIO推出的基于共享级别的ioMemory加速方案,此文简要概述方案的一些粗略架构。ION可配选IB或者40GB以太网连接,同时支持FCoIB,FCoE,EoIB,RDMA协议。
基于FIO与HP的特殊关系,下面的图主要来自ION Accelerator on HP DL380

QQ图片20130905230902
注意这里ION对于based server的机器是有一定要求的,对于1U的机器由于PCI插槽的限制,导致IO performace的下降是必然的。
这里的ION推出,类似模拟storage的controller机头概念,使用自己的software配合IB从而达到模拟一台普通的Server成为”存[......]

Read more

Tags:
Posted in Unix/Linux | No Comments »

How to use Flash Cache on Redhat (not OEL)

Posted by admin on August 26th, 2013

QQ图片20130826223025

By ask Surachart for help

Test: Flash Cache on 11gR2 + RHEL

A Flash Cache (11gR2) is supported by OEL or Solaris. If Want To use RHEL(Example: RHEL 5.3)

Patched 8974084 before

SQL> startup
ORA-00439: feature not enabled: Server Flash Cache
ORA-01078: failure in processing sy[......]

Read more

Tags:
Posted in Unix/Linux | No Comments »

DGHA,Dataguard自动切换方案

Posted by admin on August 15th, 2013

发布对autoswitch over dg脚本DGHA测试,此脚本针对oracle dataguard设计使用共享存储存放redo以及controlfile从而达到了切换数据0丢失。
同时切换以后,original primary database可以无缝加入整个dg集群,从而形成了dataguard高可用方案。
采用perl脚本定制开发,可任意部署于任何一台可连接至集群的机器(最好不要用集群中的机器做监控机),多重判断机制,从而增加了切换时的可靠性以及准确性。感谢作者 noodba. noodba作为部门数据架构师,定制开发了myawr(mysql性能分析工具)

测试环境:[......]

Read more

Tags:
Posted in Oracle Experience | No Comments »

关于12c Pluggable database注册listener问题

Posted by admin on August 9th, 2013

演示一下12c中关于pdb的listener register,unregister问题

[oracle@db-42 ~]$ lsnrctl status listener1

LSNRCTL for Linux: Version 12.1.0.1.0 - Production on 09-AUG-2013 14:53:56

Copyright (c) 1991, 2013, Oracle.  All rights reserved.

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=db-42)(PORT[......]

Read more

Tags:
Posted in Oracle Experience | No Comments »