首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >sqlplus无法启动的问题及解决(3) (25天)

sqlplus无法启动的问题及解决(3) (25天)

作者头像
jeanron100
发布2018-03-13 17:42:25
8380
发布2018-03-13 17:42:25
举报

今天准备测试一下10g升级到11g的场景,装完10g的,然后再装11g的服务端。sqlplus就报错了。

因为ORACLE_BASE,ORACLE_HOME已经改过来了。但是怎么试都不行。

查了metalink,上面说可能是因为$ORACLE_HOME/oracore/zoneinfo的权限可能有问题,我一条一条比对了下,没发现权限有问题。

metaLink:

SQLPLUS Fails With SP2-1503 SP2-0152 After New 11.2 Installation [ID 974515.1]

不经意间切换用户,发现原来切换用户就能够搞定。

[ora10g@centos ~]$ sqlplus
SP2-1503: Unable to initialize Oracle call interface
SP2-0152: ORACLE may not be functioning properly
[ora10g@centos ~]$ su - ora10g
Password: 
[ora10g@centos ~]$ sqlplus
SQL*Plus: Release 10.2.0.1.0 - Production on Sat Jul 6 07:37:59 2013
Copyright (c) 1982, 2005, Oracle.  All rights reserved.

然后切换回11g

修改 .bash_profile

# User specific environment and startup programs
export ORACLE_BASE=/u01/app/upg11g
#export ORACLE_BASE=/u01/app/ora10g
#export ORACLE_HOME=$ORACLE_BASE/product/10.2/db_1
export ORACLE_HOME=$ORACLE_BASE/product/11.2/db_home1
[ora10g@centos ~]$ source .bash_profile
[ora10g@centos ~]$ sqlplus
SP2-1503: Unable to initialize Oracle call interface
SP2-0152: ORACLE may not be functioning properly
[ora10g@centos ~]$ su - ora10g
Password: 
[ora10g@centos ~]$ sqlplus
SQL*Plus: Release 11.2.0.1.0 Production on Sat Jul 6 07:44:59 2013
Copyright (c) 1982, 2009, Oracle.  All rights reserved.
Enter user-name: 
本文参与 腾讯云自媒体分享计划,分享自微信公众号。
原始发表:2014-03-28,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 杨建荣的学习笔记 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档