SQLPLUS Fails With SP2-1503 SP2-0152 After New 11.2 Installation解决

简介: 今天准备测试一下10g升级到11g的场景,装完10g的,然后再装11g的服务端。sqlplus就报错了。 因为ORACLE_BASE,ORACLE_HOME已经改过来了。
今天准备测试一下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: 
目录
相关文章
|
11月前
|
数据库
Could not create connection to database server. Attempted reconnect 3 times. Giving up.
Could not create connection to database server. Attempted reconnect 3 times. Giving up.
119 0
|
SQL Oracle 关系型数据库
关于数据库安装的问题SP2-0667: Message file sp1.msb not found
昨天自己在OEL上准备把10g,11g的环境都准备一下,我规划了一下硬盘空间,然后创建了相应的用户,12c的Oms也在这次的范围之内。 drwx------  4 oms10g  dba     4096 Jan 18 20:56 oms10g...
3192 0
|
SQL 数据库 Windows
The Windows account sa does not exist and cannot be provisioned as a SQL Server system administrator
今天遇到一个案例,在使用命令修改一个测试服务器(SQL Server 2014标准版)的服务器排序规则时,遇到了下面错误信息 (具体账号信息脱敏处理,随机生成一个账号密码) The Windows account sa does not exist and cannot be provisione...
1686 0
|
SQL Go 数据库
Microsoft SQL Server Product Samples:Database
原文:Microsoft SQL Server Product Samples:Database 从SQL Server 2005 之后示例数据都为AdventureWorks,需要的通过codeplex网站下载。
939 0