interface环境SP2-1503: Unable to initialize Oracle call interface(同时装10g和11g)
2013-05-24 21:35
429 查看
最近使用开发的过程中出现了一个小问题,顺便记录一下原因和方法--interface环境
1。现象
在11g的环境下执行 sqlplus / as sysdba 报错
SP2-1503: Unable to initialize Oracle call interface
SP2-0152: ORACLE may not be functioning properly
2。分析
(1)在同一个AIX机器上装完10g后又装了个11g的环境
11g的环境变量配置如下(注意红色部份)
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/oracle/product/11.2.0/
export ORA_DB=/oracle/product/11.2.0/dbs
export ORACLE_SID=ora11g
export ORACLE_TERM=vt100
export ORA_NLS33=/oracle/product/11.2.0/ocommon/nls/admin/data
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:.
export ORACLE_HOME=/oracle/product/11.2.0
export BRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
(2)怀疑在执行sqlplus时调用的仍然是调用10g的,致使10g的sqlplus与11g的其他组件不兼容
$ echo $PATH
/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java5/jre/bin:/usr/java5/bin:/home/oracle/bin:/opt/oracle/product/10.1.0//bin:/home/oracle/bin:/oracle/product/11.2.0//bin:.:/home/oracle/bin:/oracle/product/11.2.0//bin:.
每日一道理
水仙亭亭玉立,兰花典雅幽香,牡丹雍容华贵,梨花洁白无暇……美丽的花朵总能得到世人的羡慕与赞叹,殊不知,它从一粒小小的种子到最后开花,要历经无数的艰辛与坎坷!我们的成长也是如此。只有做辛勤的“织梦者”,我们的梦想才会成真!
果然,11g的bin在10g之后。变动PATH的值,将$ORACLE_HOME/bin提早
export PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin:.
$ echo $PATH
/oracle/product/11.2.0//bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java5/jre/bin:/usr/java5/bin:/home/oracle/bin:/opt/oracle/product/10.1.0//bin:/home/oracle/bin:/oracle/product/11.2.0//bin:.:/home/oracle/bin:.
3。验证通过
$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Fri May 24 16:27:29 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
文章结束给大家分享下程序员的一些笑话语录:
女人篇
有的女人就是Windows虽然很优秀,但是安全隐患太大。
有的女人就是MFC她条件很好,然而不是谁都能玩的起。
有的女人就是C#长的很漂亮,但是家务活不行。
有的女人就是C++,她会默默的为你做很多的事情。
有的女人就是汇编虽然很麻烦,但是有的时候还得求它。
有的女人就是SQL,她会为你的发展带来莫大的帮助。
---------------------------------
原创文章 By
interface和环境
---------------------------------
1。现象
在11g的环境下执行 sqlplus / as sysdba 报错
SP2-1503: Unable to initialize Oracle call interface
SP2-0152: ORACLE may not be functioning properly
2。分析
(1)在同一个AIX机器上装完10g后又装了个11g的环境
11g的环境变量配置如下(注意红色部份)
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/oracle/product/11.2.0/
export ORA_DB=/oracle/product/11.2.0/dbs
export ORACLE_SID=ora11g
export ORACLE_TERM=vt100
export ORA_NLS33=/oracle/product/11.2.0/ocommon/nls/admin/data
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:.
export ORACLE_HOME=/oracle/product/11.2.0
export BRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
(2)怀疑在执行sqlplus时调用的仍然是调用10g的,致使10g的sqlplus与11g的其他组件不兼容
$ echo $PATH
/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java5/jre/bin:/usr/java5/bin:/home/oracle/bin:/opt/oracle/product/10.1.0//bin:/home/oracle/bin:/oracle/product/11.2.0//bin:.:/home/oracle/bin:/oracle/product/11.2.0//bin:.
每日一道理
水仙亭亭玉立,兰花典雅幽香,牡丹雍容华贵,梨花洁白无暇……美丽的花朵总能得到世人的羡慕与赞叹,殊不知,它从一粒小小的种子到最后开花,要历经无数的艰辛与坎坷!我们的成长也是如此。只有做辛勤的“织梦者”,我们的梦想才会成真!
果然,11g的bin在10g之后。变动PATH的值,将$ORACLE_HOME/bin提早
export PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin:.
$ echo $PATH
/oracle/product/11.2.0//bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/java5/jre/bin:/usr/java5/bin:/home/oracle/bin:/opt/oracle/product/10.1.0//bin:/home/oracle/bin:/oracle/product/11.2.0//bin:.:/home/oracle/bin:.
3。验证通过
$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Fri May 24 16:27:29 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL>
文章结束给大家分享下程序员的一些笑话语录:
女人篇
有的女人就是Windows虽然很优秀,但是安全隐患太大。
有的女人就是MFC她条件很好,然而不是谁都能玩的起。
有的女人就是C#长的很漂亮,但是家务活不行。
有的女人就是C++,她会默默的为你做很多的事情。
有的女人就是汇编虽然很麻烦,但是有的时候还得求它。
有的女人就是SQL,她会为你的发展带来莫大的帮助。
---------------------------------
原创文章 By
interface和环境
---------------------------------
相关文章推荐
- SP2-1503: Unable to initialize Oracle call interface(同时装10g和11g)
- win7下非管理员用户使用sqlplus 10.2.0.1版本遇到的问题--SP2-1503: Unable to initialize Oracle call interface
- SP2-1503: Unable to initialize Oracle call interface问题的解决办法
- sqlplus连不上数据库--SP2-1503: Unable to initialize Oracle call interface
- oracle 11g 错误之ORA-09925: Unable to create audit trail file解决办法之一!
- 解决 组件服务和Unable to initialize Windows Sockets interface, error code
- Oracle 10g 11g 单机环境的安装
- Windows环境中同时安装Oracle9i、10g和11g-体系架构
- Oracle Linux 6.1 安装Oracle 10g ORA-27125:unable to create shared memory segment 解决方法
- 重装Oracle 11g rac 删除ASM磁盘是报错Unable to clear disk "DISK_FRA"
- Oracle 10g 异常:ORA-01658:unable to create INITIAL extent for segmnet in tablespace SYSTEM
- oracle jdeveloper 11g 安装到quickstart选择启动 异常:Unable to create an instance of the Java Virtual Machine
- Oracle 10g 异常:ORA-01658:unable to create INITIAL extent for segmnet in tablespace SYSTEM
- oracle 11g R2 单实例 ASM 启动:ORA-29701:+unable+to+connect+to+Cluster+Synchronization+Service
- (16ecd5cc) unable to initialize windows socket interface
- Unable to obtain network interface list from Oracle ClusterwarePRCT-1011 : Failed to run "oifcfg".
- Windows环境中同时安装Oracle9i 10g和11g
- Oracle Linux 6.1 安装Oracle 10g ORA-27125:unable to create shared memory segment 解决方法
- Oracle Linux 6.1 安装Oracle 10g ORA-27125:unable to create shared memory segment 解决方法
- Unable to initialize Windows Sockets interface, error code 0.解决办法