您的位置:首页 > 数据库 > Oracle

折腾了一天一晚上,差点重做的oracle 10g rac启动netca与netmgr问题

2013-02-21 09:58 489 查看
折腾了一天,查看了所有百度谷歌的所有条目都没找到问题的解决方案,如下



安装完oracle 10grac后监听程序死活起不来,启动dbca没问题,好郁闷!

解决方法:

原来是路径配置有问题

我的crs安装路径为/opt/ora10g/product/10.2.0/db_1

我的数据库软件安装路径改成了/opt/ora10g/product/10.2.0/db_2

而ORACLE_HOME设置的路径为/opt/ora10g/product/10.2.0/db_1

说明:ORACLE_HOME的路径为数据库软件的安装路径

所以启动netca和netmgr时启动不起来是由于ORACLE_HOME路径设置有问题

建议:集群软件不要装在ORACLE_HOME定义的目录下,以免事后遇到令人费解的问题!

付:

以前[oracle@rac1 ~]$ vi .bash_profile

# .bash_profile

# Get the aliases and functions

if [ -f ~/.bashrc ]; then

. ~/.bashrc

fi



# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH



export TMP=/tmp



export TMPDIR=$TMP

export ORACLE_BASE=/opt/ora10g



export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1



export ORACLE_SID=RACDB1

export ORACLE_TERM=xterm

export PATH=/usr/sbin:$PATH

export PATH=$ORACLE_HOME/bin:$PATH:/opt/ora10g/product/10.2.0/db_2/bin

export LD_LIBRARY_PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin/

export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

umask 022

现在[oracle@rac1 ~]$ vi .bash_profile

# .bash_profile

# Get the aliases and functions

if [ -f ~/.bashrc ]; then

. ~/.bashrc

fi



# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH



export TMP=/tmp



export TMPDIR=$TMP

export ORACLE_BASE=/opt/ora10g



export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_2



export ORACLE_SID=RACDB1

export ORACLE_TERM=xterm

export PATH=/usr/sbin:$PATH

export PATH=$ORACLE_HOME/bin:$PATH:/opt/ora10g/product/10.2.0/db_2/bin

export LD_LIBRARY_PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin/

export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

umask 022
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: