zoukankan      html  css  js  c++  java
  • 使用DBCA安装ASM单实例出现的PRCR-1079和ORA-12547的解决方法


    我在安装ASM单实例的环境下,在安装到86%时出现以下错误:

    经网上搜索,亲自试验,解决方法如下:
    这个问题主要是由于权限和变量没有配好。
    我的oracle和grid用户是分开配置的。
    1、首先查看

    oracle和grid用户下$ORACLE_HOME/bin/oracle的权限是否为"-rwsr-s--x"且属于oinstall组:

    [oracle@rtest bin]$ ls -ltr $ORACLE_HOME/bin/oracle

    -r-xrws--x 1 oracle asmadmin 232399473 Jun 20 08:38 /u01/app/oracle/product/11.2.0/dbhome_1/bin/oracle


    [grid@rtest bin]$ ls -ltr $ORACLE_HOME/bin/oracle

    -rwsr-s--x 1 grid oinstall 203972955 Oct 23 11:25 /u01/app/grid/product/11.2.0/grid/bin/oracle

    2、更改组合权限,grid用户的配置是正确,接下来更改oracle用户的组合权限

    [oracle@rtest bin]$ chown oracle:oinstall $ORACLE_HOME/bin/oracle 

    [oracle@rtest bin]$ ls -ltr $ORACLE_HOME/bin/oracle

    -rwxr-x--x 1 oracle oinstall 232399473 Jun 20 08:38 /u01/app/oracle/product/11.2.0/dbhome_1/bin/oracle

    [oracle@rtest bin]$  chmod 6751 $ORACLE_HOME/bin/oracle  

    [oracle@rtest bin]$ ls -ltr $ORACLE_HOME/bin/oracle

    -rwsr-s--x 1 oracle oinstall 232399473 Jun 20 08:38 /u01/app/oracle/product/11.2.0/dbhome_1/bin/oracle

    3、分别查看oracle和grid用户的环境变量设置,分别添加export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib

    首先来添加oracle用户:

    [oracle@rtest ~]$ cat .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

    ORACLE_BASE=/u01/app/oracle

    ORACLE_SID=test0924

    ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1

    PATH=$ORACLE_HOME/bin:$PATH

    export ORACLE_BASE ORACLE_SID ORACLE_HOME PATH

    alias sqlplus='rlwrap sqlplus'

    alias rman='rlwrap rman'

    stty erase ^h

    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib


    其次来添加grid用户的:

    [grid@rtest ~]$ cat .bash_profile

    # .bash_profile

    # Get the aliases and functions

    if [ -f ~/.bashrc ]; then

            . ~/.bashrc

    fi

    # User specific environment and startup programs

    export ORACLE_BASE=/u01/app/grid

    export ORACLE_HOME=/u01/app/grid/product/11.2.0/grid

    export ORACLE_SID=+ASM

    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib

    PATH=$ORACLE_HOME/bin:$PATH

    export PATH


    再安装时即可以安装成功

    [grid@rtest bin]$ crs_stat -t

    Name           Type           Target    State     Host        

    ------------------------------------------------------------

    ora.DATA.dg    ora....up.type ONLINE    ONLINE    rtest       

    ora....ER.lsnr ora....er.type ONLINE    ONLINE    rtest       

    ora....VERY.dg ora....up.type ONLINE    ONLINE    rtest       

    ora.asm        ora.asm.type   ONLINE    ONLINE    rtest       

    ora.cssd       ora.cssd.type  ONLINE    ONLINE    rtest       

    ora.diskmon    ora....on.type OFFLINE   OFFLINE               

    ora.evmd       ora.evm.type   ONLINE    ONLINE    rtest       

    ora.ons        ora.ons.type   OFFLINE   OFFLINE               

    ora.rcat.db    ora....se.type ONLINE    ONLINE    rtest  

  • 相关阅读:
    30岁的程序猿坐的太久,也要用一下脑子
    HIPO图
    CMake入门(二)
    hdu1711 Number Sequence
    EF架构~在ef中支持IQueryable级别的Contains被翻译成了Exists,性能可以接受!
    JS框架~Angularjs
    将不确定变为确定~transactionscope何时提升为分布式事务?(sql2005数据库解决提升到MSDTC的办法)
    SignalR实现服务器与客户端的实时通信
    基础才是重中之重~LazyInitializer.EnsureInitialized对属性实现化的性能优化
    [置顶] 电视机顶盒搜台原理和方法简析
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13316713.html
Copyright © 2011-2022 走看看