Linux mysql 优化

May 28, 2012 MYSQL, performance No comments

linux mysql

一、修改内核参数
1.1、编辑/etc/sysctl.conf
vi /etc/sysctl.conf

net.ipv4.tcp_max_syn_backlog = 65536
net.core.netdev_max_backlog = 65536
net.core.somaxconn = 32768

net.core.wmem_default = 8388608
net.core.rmem_default = 8388608
net.core.rmem_max = 16777216
net.core.wmem_max = 16777[……]

Read more

11g 密码延迟登陆导致 library cache lock

May 24, 2012 11g, oracle No comments

前阵子刚写过11g密码延迟登陆的新特性,11g oracle在登陆密码输入错误时候不会立刻中断这个连接而会递增等待时间,这有可能在失败登陆N次以后达到一个很长的阀值(10s),从而导致session 大量积压导致问题的严重化,今天就碰到了问题,PMS team在转换密钥的时候出现了问题,应用一直狂连数据库,但是由于密码不正确,延迟登陆导致latch无法释放:

[oracle@db-38 ~]$ ora active
17:15:10 up 153 days, 7:09, 4 users, load average: 4.05, 2.06, 1.[……]

Read more

Scripts: report the index fragmentation status

May 14, 2012 maintain, oracle No comments

/* ************************************************************* */
/* Index Fragmentation Status (idsfrag.sql): */
/* */
/* This script will report the index fragmentation status */
/* for a schema.[……]

Read more

MySQL Plug-in for EM 12c

May 11, 2012 MYSQL No comments

来自pythian mysql project

With this plug-in, a DBA can add a new MySQL target just as they can an Oracle database. Oracle Enterprise Manager Agent doesn’t have to be running on the same host as the monitored MySQL database. I.e., remote monitoring of the MySQL database using one or two agents is[……]

Read more

11G New feature: Failed Logon Delays

April 27, 2012 11g, oracle 4 comments

在pub上看到一个不错的帖子 oracle 11g password delay

对这个特性 做如下说明

Failed Logon Delays

A hacker may attempt a brute force hack to break into your Oracle Database. This is where they try constant logons to the database using some form of a word list. To try to make brute force hacking more difficult, Ora[……]

Read more

11gR2 rac ora.asm error (ASM)

April 26, 2012 maintain, oracle, RAC No comments ,

ASM – ora.asm error

11.2.0.3 RAC CRS 无法启动

[ohasd(25286)]CRS-2112:The OLR service started on node db-41.
2012-04-25 14:46:13.120
[ohasd(25286)]CRS-1301:Oracle High Availability Service started on node db-41.
2012-04-25 14:46:13.120
[ohasd(25286)]CRS-8017:location: /etc/oracle/lastg[……]

Read more

ASM Preferred mirror Read

April 25, 2012 oracle, RAC 2 comments

ASM Preferred mirror Read

Introduction

The concept of the Preferred Read is not a new idea, but is now implemented in Oracle’s ASM volume
management in Oracle 11g.The concept is to read from the storage that can present the needed data at a lower
latency. Initially, this was designe[……]

Read more

“hcheck.sql” script to check for known problems in Oracle8i, Oracle9i, Oracle10g and Oracle 11g

April 20, 2012 Internals, oracle No comments

Execution Environment:

Access Privileges:
Requires to be run connected as SYS schema

Usage:
$ sqlplus
SQL*Plus: Release 9.2.0.2.0 – Production on Mon Nov 11 12:00:06 2002

Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

Enter user-name: / as sysdba

C[……]

Read more

diff-hidden parameter between 10g and 11g

April 16, 2012 11g, oracle No comments

看到刘兄的一篇文章转载下

Reference:http://www.oracledatabase12g.com/archives/diff-hidden-parameter-between-10g-and-11g.html[……]

Read more

mysql High Availability -MHA

April 10, 2012 Architect, MYSQL 1 comment

最近跟同事测试了下MHA 作为mysql 高可用方案的一种 MHA具有很多优点 DeNA目前采用这种架构 支撑2亿+PV的访问

MHA
一.MHA介绍

MHA自动化主服务器故障转移,快速将从服务器晋级为主服务器(通常在10-30s),而不影响复制的一致性,不需要花钱买更多的新服务器,不会有性能损耗,容易安装,不必更改现有的部署环境,适用于任何存储引擎。

MHA提供在线主服务器切换,改变先正运行的主服务器到另外一台上,这个过程只需0.5-2s的时间,这个时间内数据无法写入。

MHA Manager通过ssh连接mysql slave服务器。

虽然MHA试图从挡掉[……]

Read more