RAC数据库环境变量设置
[oracle@rac1 ~]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Fri Aug 31 12:45:01 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/opt/oracle/product/10.2.0/db_1/dbs/initorcl1.ora'
[oracle@rac1 dbs]$ more initORCL1.ora
SPFILE='+DATA/ORCL/spfileORCL.ora'
注意此处 initORCL1.ora sid为ORCL1 为大写,所以在设置ORACLE_SID 时需要注意下。
export ORACLE_SID=ORCL1
SQL> conn / as sysdba
Connected to an idle instance.
SQL> create pfile from spfile='+DATA/ORCL/spfileORCL.ora';
File created.
SQL> startup
ORA-29760: instance_number parameter not specified
这里是因为没有指定instance_number
export ORACLE_SID=ORCL1 注意后面的数字‘1’
补充:一则案例
http://www.itpub.net/thread-1713063-1-1.html
pfile 配置:
*.db_name='ORCL'
.bash_profile配置:
export ORACLE_SID=orcl1
根本原因不是大小的问题,而是安装时dba,不够细心导致,是安装规范的问题,如果在dbca 建库是在写入的oracle sid 是小写,或者后期环境变量配置是,sid真确配置成大写就不会出现现在的问题 。