Chinaunix首页 | 论坛 | 博客
  • 博客访问: 204048
  • 博文数量: 51
  • 博客积分: 2505
  • 博客等级: 少校
  • 技术积分: 595
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-20 16:59
文章分类

全部博文(51)

文章存档

2010年(5)

2009年(39)

2008年(7)

我的朋友

分类: Oracle

2009-04-14 16:00:12

尝试实现动态生成脚本并调用:
--f.sh
--./f.sh


#!/bin/sh
echo "select sysdate from dual;" > a.sql

export ORACLE_SID=eoss
export ORACLE_HOME=/app/eoss/eossdb/9.2.0
PATH=$PATH:$ORACLE_HOME/bin

errorbuf=`sqlplus apps/apps @a.sql`
echo $errorbuf


错误:
Error 45 initializing SQL*Plus
Internal error

Cause
The issue is identified as Bug:3039738. This typically reproduces when SQL script file is on a OCFS filesystem created on shared device (for example, SAN storage).

fix:
The only workaround, until bug is fixed, is to copy the SQL script file to a local disk (in case of Linux, a ext3 filesystem).

阅读(1222) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~