oracle异步sql,Oracle sqlplus登陆异步io错误
Oracle sqlplus登陆异步io错误
先简单交代一下操作环境,主机版本为AIX 5307,数据库版本为10.2.0.4。为贪图方便,我从另一环境下(操作系统也为aix 5307),直接将Oracle软件tar至本地主机。然后进行relink all。至此,一切正常。但执行sqlplus时,出现以下问题:
引用
$ sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.4.0 - Production on Fri Apr 1 09:51:47 2011
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
exec(): 0509-036 Cannot load program oracleorajf because of the following errors:
0509-130 Symbol resolution failed for /usr/lib/libc.a[aio_64.o] because:
0509-136 Symbol kaio_rdwr64 (number 1) is not exported from
dependent module /unix.
0509-136 Symbol listio64 (number 2) is not exported from
dependent module /unix.
0509-136 Symbol acancel64 (number 3) is not exported from
dependent module /unix.
0509-136 Symbol iosuspend64 (number 4) is not exported from
dependent module /unix.
0509-136 Symbol aio_nwait (number 5) is not exported from
dependent module /unix.
0509-136 Symbol aio_nwait64 (number 6) is not exported from
dependent module /unix.
0509-136 Symbol aio_nwait_timeout (number 7) is not exported from
dependent module /unix.
0509-136 Symbol aio_nwait_timeout64 (number is not exported from
dependent module /unix.
0509-026 System error: Error 0
0509-192 Examine .loader section symbols with the
'dump -Tv' command.
ERROR:
ORA-12547: TNS:lost contact
Enter user-name: ^C
根据以上错误信息,一看就知道是aio配置问题。从AIX 5L开始,AIX开始支持2种aio:legacy AIO 和POSIX AIO。
配置legacy AIO(重启后生效)。可以用smitty aio或者用操作系统命令配置:chdev -P -l aio0 -a autoconfig=’available’
到11g为止,Oracle使用的是POSIX AIO(无需重启),配置POSIX AIO可以用如下命令
chdev -P -l posix_aio0 -a autoconfig=available。
当然也可以执行rootpre.sh来配置posix aio.
引用
# ./rootpre.sh
./rootpre.sh output will be logged in /tmp/rootpre.out_11-04-01.10:04:26
Saving the original files in /etc/ora_save_11-04-01.10:04:26....
Copying new kernel extension to /etc....
Loading the kernel extension from /etc
Oracle Kernel Extension Loader for AIX
Copyright (c) 1998,1999 Oracle Corporation
Successfully loaded /etc/pw-syscall.64bit_kernel with kmid: 0x3ef8900
Successfully configured /etc/pw-syscall.64bit_kernel with kmid: 0x3ef8900
The kernel extension was successfuly loaded.
Configuring Asynchronous I/O....
Configuring POSIX Asynchronous I/O....
Checking if group services should be configured....
Nothing to configure.
打开rootpre.sh脚本可以看到如下语句,可以清楚的看到在AIX 5307上Oracle执行的就是红色标注部分:
引用
if [ $OSVER -lt 6 ]; then
log_con "nConfiguring Asynchronous I/O...."
AIO=`${LSDEV} -C -t aio|${AWK} '{print $2}'`
case ${AIO} in
*Available*) log_con "Asynchronous I/O is already defined"
is_autoconfig_available "aio0"
if [ $? -ne 1 ]; then
log_con "Setting autoconfig to available for aio0"
log_do "${CHDEV} -P -l aio0 -a autoconfig=available"
fi
;;
*Defined*) log_do "${MKDEV} -l aio0"
log_do "${CHDEV} -P -l aio0 -a autoconfig=available"
;;
*) log_con "Asynchronous I/O is not installed on this system."
log_con "You will need to install it, and either configure it yourself using"
log_con "'smit aio' or rerun the Oracle root installation procedure."
;;
esac
#--- configure POSIX AIO if AIX 5.2 or greater, we may want to use it
if [ ${OSVER}${OSREL} -ge 52 ]; then
log_con "nConfiguring POSIX Asynchronous I/O...."
POSIX_AIO=`${LSDEV} -C -t posix_aio|${AWK} '{print $2}'`
case ${POSIX_AIO} in
*Available*) log_con "Posix Asynchronous I/O is already defined"
is_autoconfig_available "posix_aio0"
if [ $? -ne 1 ]; then
log_con "Setting autoconfig to available for posix_aio0"
log_do "${CHDEV} -P -l posix_aio0 -a autoconfig=available"
fi
;;
*Defined*) log_do "${MKDEV} -l posix_aio0"
log_do "${CHDEV} -P -l posix_aio0 -a autoconfig=available"
;;
*) log_con "Posix Asynchronous I/O is not installed on this system."
log_con "You will need to install it, and either configure it yourself using"
log_con "'smit aio' or rerun the Oracle root installation procedure."
;;
esac
fi
fi
执行结束后sqlplus正常:
引用
# su - oracle
$ sqlplus "/as sysdba"
SQL*Plus: Release 10.2.0.4.0 - Production on Fri Apr 1 10:05:01 2011
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to an idle instance.
SQL> exit
Disconnected
oracle异步sql,Oracle sqlplus登陆异步io错误相关推荐
- DataGrip连接Oracle数据库报错:[08006][17002] IO 错误
具体报错:[08006][17002] IO 错误: Got minus one from a read call, connect lapse 0 ms., Authentication lapse ...
- oracle简写sql,Oracle通过sqlplus编辑sql命令
输入命令: SQL>select * from scott.emp 2 where sal>2000 3* order by ename; SQL>l ...
- oracle命中率sql,Oracle 检查命中率的SQL
在数据库启动2小时后,可以通过以下SQL来测试数据库性能 1. 缓冲区命中率: 缓冲区命中率表示在不需要进行磁盘访问的情况下在内存结构中找到常用数据块的频率 select (1-(sum(decod ...
- oracle 执行sql,Oracle动态执行SQL
方式1 CREATE OR REPLACE PROCEDURE demo(salary IN NUMBER) AS cursor_name INTEGER; rows_processed INTEGE ...
- oracle 等待sql,oracle sql 锁,锁等待相关sql
1.查找当前表级锁的SQL如下: select sess.sid, sess.serial#, lo.oracle_username, lo.os_user_name, ao.object_name, ...
- Python3读取Oracle数据库sql语句含中文报编码错误
sql = 'select id from person where name=\''+ data['姓名'][i] +'\'' cursor.execute(sql) data['姓名'][i]是人 ...
- oracle 递归计算,SQL(Oracle)中的递归计算
好吧,我想我已经有了解决方案.这些数字与你的数字有点不同,但我相当确定我的正在做你想要的.我们可以在第1步和第1步中完成所有工作. 2使用单个查询(main_sql).必须使用递归语句(recur_s ...
- 求和oracle 的sql,oracle 利用 分组求和一张报表的 字段 金额 sql
select decode(t.f_disqua_level,'1','A类','2','B类','3','C类','4','D类','') as 等级, t.f_process as 发现地点, t ...
- oracle停数据库,oracle数据库停止命令
linux/Aix启动.关闭Oracle及监听 Aix环境下管理Oracle 1.Aix下查看.启动数据库监听器 以oracle用户执行以下命令: ① lsnrctl status //-查看监听器状 ...
- oracle异步sql,Linux上Oracle是否使用异步io的诊断
客户的数据库IO负载较重,检查后发现并未设置异步IO. 整个数据库的负载都集中在IO相关的等待上: Top 5 Timed Foreground Events EventWaitsTime(s)Avg ...
最新文章
- 启动Oracle 10g
- 字节又莫名其妙发奖金了!网友:突然到账五万,吓得我差点报警...
- panda.read_csv的常用参数说明
- 4.Hibernate O/R 映射
- 对象的克隆(clone方法)
- 武汉轻工大学计算机学院操作系统复试题目,2016年武汉轻工大学数学与计算机学院计算机组成原理复试考研复试题库...
- CVPR 2020 Oral 汇总:论文 / 代码 / 解读(更新中)
- 8.网页找不到服务器
- 超级计算机燕 排名,特斯拉超级计算机算力全球第五,展现无人驾驶领域野心...
- Java学习笔记——多线程
- iOS逆向:破解 APP防止dyld注入 的方法
- cad计算机绘图实操视频,CAD电脑绘图教程视频
- C#使用欧姆龙PLC的Fins协议读写PLC地址(示例调用)
- VMware ESXi 7.0 U2 SLIC Unlocker USB 网卡驱动集成镜像
- 微信强制性诱导分享php,微信公众号运营者注意了,下面这些诱导分享到朋友圈都是不可以的...
- 干货丨Kubernetes 中分析调试网络流量的4种方法
- 【Basis】狄利克雷分布
- JEDEC DDR2和DDR3 SPECIFICATION区别(持续更新)
- PageHelper分页原理(源码)
- 要不要学Python?Python真的有那么厉害?
热门文章
- mysql数据库文件结构同步,[数据库的表同步mysql]MySQL表结构同步
- matlab 结构体遍历,matlab 遍历结构体struc的成员
- eda多功能时钟设计_Altera FPGACPLD设计 基础篇+高级篇(附随书光盘)
- 用tensorflow实现矩阵分解
- mysql连接操作_MySQL内连接操作
- sql分别对两列数据求和以不同的条件_利用数组与字典,实现双条件数据汇总的方法...
- eclipse中导入jar包源文件
- 使用DNSStager在DNS中隐藏Payload
- kb2919355无法安装
- 51.N皇后 (力扣leetcode) 博主可答疑该问题