HP-UX Ioctl ASYNC_CONFIG error, errno = 1

June 18th, 2010 wajoynece 2 comments
数据库udump目录下包含了29592个trace文件, 占用10GB多的空间:
#ls | wc -l
29592
#du -sk
14390876        .
trace文件内容如下:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 – 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
System name:    HP-UX
Release:        B.11.31
Version:        U
Machine:        ia64
Redo thread mounted by this instance: 1
Oracle process number: 0
Ioctl ASYNC_CONFIG error, errno = 1
这个问题来源于启用了async io的hp unix系统, dba组没有mlock权限造成的;
查看/etc/privgroup文件, 发现第一行有一个注释, 进一步查看当前系统没有使用/dev/async, 同时dba组也没有MLOCK权限;
#cat /etc/privgroup
# ORACLE async i/o
dba MLOCK RTPRIO RTSCHED
#getprivgrp dba
dba:
#fuser /dev/async
/dev/async:
问题其实恰恰出现在/etc/privgroup中的注释行, 在去掉注释后, /dev/async启用, udump下不再产生日志.
#vi /etc/privgroup
“/etc/privgroup” 2 lines, 44 characters
dba MLOCK RTSCHED RTPRIO
#setprivgrp -f /etc/privgroup
#getprivgrp dba
dba: RTPRIO MLOCK RTSCHED
#fuser /dev/async
/dev/async:     3613o    3622o    3624o    3583o    3585o    3588o
总结: 有些系统配置文件不要轻易加注释.
参考metalink:
How to Disable Asynch_io on HP to Avoid Ioctl Async_config Error Errno = 1 [ID 302801.1]
http://www.oracleblog.cn/working-case/how-to-open-async-io-on-hpux/
http://www.eygle.com/archives/2009/11/hp-ux_async_config.html
Categories: Oracle Tags: , ,

近况

June 10th, 2010 wajoynece No comments

最近做的工作基本属于sa. 数据库的工作不多.
儿子快6个月了, 全家人都围着小鱼忙活,
希望他脸上的湿疹早点痊愈, 另外再涨点儿分量, 光长个不长肉.
妈妈还在沈阳住院做放化疗, 希望疗程结束后, 妈妈能尽快恢复健康!

Categories: Uncategorized Tags:

How to use http proxy in secureCRT

April 28th, 2010 wajoynece No comments

To use an HTTP proxy, you must teach Generic Proxy how to give the HTTP commands.

Proxy Prompt: (leave this field blank)

Proxy Command: CONNECT %h:%p HTTP/1.0\r\n\r\n

Categories: Uncategorized Tags:

gzip & mv order

March 30th, 2010 wajoynece No comments

对海量小文件的文件系统进行归档操作时, gzip后mv vs mv后gzip哪个效率更高呢?

我这里的情况是, 后者效率更好; 前者gzip和后者gzip的效率相差近百倍!

Categories: Uncategorized Tags:

最近比较忙

January 14th, 2010 wajoynece No comments

好久没更新了,这一段事情太多了,宝宝出生,工作交接,办入职手续……

2010年注定会是更加忙碌的一年!

Categories: life Tags:

北京招聘中级DBA一名

December 21st, 2009 wajoynece No comments

公司:www.hollycrm.com

地点:北京

要求:

  • 至少2年ORACLE DBA经验;
  • 熟悉ORACLE基本概念,熟练掌握各种管理维护操作;
  • 能独立处理数据库故障,有丰富的数据库调优经验,尤其是SQL语句的优化;
  • 熟悉linux,unix,掌握基本操作;
  • 正规本科学历
  • 有钻研精神,较强的自学能力;
  • OCP持有优先,有java开发经验优先

根据能力,待遇范围7k-9k

有意请发邮件到
wajoynece at gmail.com

Categories: Oracle Tags:

删除表空间不释放空间

September 23rd, 2009 wajoynece 1 comment

今天删除一个表空间

drop tablespace including contents and datafiles

执行完毕,df -h查看空间没有被释放,ls -l已经看不到被删除文件;

解决:

root@lab-rd-01:/# lsof | grep km_stress
oracle 19436 oracle 19u REG 8,7 10737426432 244535 /var/opt/oradata/rd/km_stress_test.dbf (deleted)

kill -9 19436后,空间立即得到释放。


Categories: Oracle Tags:

sort~merge~join(SMJ)相关隐藏参数

September 22nd, 2009 wajoynece No comments

_optimizer_sortmerge_join_enabled

10g以后,可以使用/*+ opt_param(‘_optimizer_sortmerge_join_enabled’,'false’) */提示,

在语句级别让CBO放弃smj连接选项。

Categories: Oracle Tags:

crontab调度问题解决

September 3rd, 2009 wajoynece No comments

ubuntu 8.04 64位server上,oracle用户下有一个备份的crontab任务,

任务调度异常,到时间不执行;

查看syslog发现了问题:

Sep 3 15:48:01 app6G /usr/sbin/cron[30235]: (oracle) RELOAD (crontabs/oracle)
Sep 3 15:48:01 app6G CRON[32285]: User account has expired

因为我在创建用户时指定了passwd -l选项锁定该用户,导致了问题;

取消了锁定,调度正常了。

Categories: Linux, Oracle Tags:

故障ORA-12516诊断

August 18th, 2009 wajoynece No comments

现场报告连接数据库报错:ORA-12519 TNS: no appropriate service handler found

这个错误没遇到过,登录现场环境确认报错情况属实,sqlplus / as sysdba不能登录数据库;

检查操作系统oracle进程数目,与processes=600的设定比较接近;

检查应用服务器连接池连接情况,2台weblogic连接池current都是200,加起来400,有2台tomcat,current情况未知,配置最大75;

检查listener,发现state是blocked

‘”DEDICATED” established:1 refused:0 state:blocked’

这里比较异常,正常情况下应该是ready,不解;

求助metalink 240710.1 找到了原因:

By way of instance registration, PMON is responsible for updating the listener
with information about a particular instance such as load and dispatcher
information. Maximum load for dedicated connections is determined by the
PROCESSES parameter. The frequency at which PMON provides SERVICE_UPDATE
information varies according to the workload of the instance. The maximum
interval between these service updates is 10 minutes.

The listener counts the number of connections it has established to the instance
but does not immediately get information about connections that have terminated.
Only when PMON updates the listener via SERVICE_UPDATE is the listener
informed of current load. Since this can take as long as 10 minutes, there can be
a difference between the current instance load according to the listener
and the actual instance load.

When the listener believes the current number of connections has reached maximum
load, it may set the state of the service handler for an instance to “blocked”
and begin refusing incoming client connections with either of the following
errors:

TNS-12516 TNS:listener could not find instance with matching protocol stack

pmon动态instance信息到listener,这其中就包括process数目的信息,当到达限制时,pmon会通知listener别再申请连接了,listener把相应的服务状态修改为:blocked,客户端再次连接就会报12516错误。

开始解决:两台tomcat服务器运行了归档查询业务,是最近新添加的服务,问题也就出在这里;

关闭tomcat服务器;过一会查看监听状态,发现已经变为ready,sqlplus / as sysdba尝试连接数据库,已经可以连接;

进一步查看session信息,发现tomcat服务器仍然有144个连接,说明tomcat连接有严重泄露情况;

最终,把processes增大,tomcat=>weblogic,期望可以解决这一问题。

Categories: Oracle Tags: ,