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

来源:互联网 发布:域名法律纠纷案例 编辑:程序博客网 时间:2024/04/30 13:32

折腾了一天,查看了所有百度谷歌的所有条目都没找到问题的解决方案,如下


安装完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