安装orace grid infrastructure 提示“[INS-40404] The installer has detected a configured instance of ..

原创 2013年12月03日 15:46:39

grid infrastructure 提示“[INS-40404] The installer has detected a configured instance of  oracle grid infrastructure software on the server!

 

   今天是2013-12-03,描述一下出现这个错误的过程,我没按照正常的方式删掉 grid infrastructure,而是直接删掉了安装目录,但是并不知道在安装grid infrastructure的时候会做什么隐含的操作,因此在我重新安装的时候就出现了如下所示的错误。

 

这个时候,我尝试了多种办法,结果还是不行(其中包括再次按照正常卸载步骤去操作)。事情往往是这样的,我们换一个思维角度往往就会有一个新的解决办法。既然在重新安装的时候出现这个问题,那么肯定可以从安装脚本内容去分析是到了那一步才会提示这个错误:

#!/bin/sh

# The environment variable $SRCHOME cannot be set during the installation
unset SRCHOME

AWK=/bin/awk
SED=/bin/sed
UNAME=/bin/uname
GETCONF=/usr/bin/getconf

BUNDLE=crs

if [ `$UNAME` = "AIX" ]; then
   OSLEVEL=/bin/oslevel
   UNAME=/bin/uname
   CUT=/bin/cut

   if [ "hello$IGNOREOSLEVEL" = "hello" ]; then
        MAIN_VERSION=`$OSLEVEL -r | $CUT -d"-"  -f1`;
        MinorVersion1=`$OSLEVEL -r | $CUT -d"-"  -f2`;

        if [ $MAIN_VERSION -lt "5300" ]; then
                echo "\nrunInstaller needs minimum oslevel : "5300-05-06"\n";
                exit 0;
        fi

        if [ $MAIN_VERSION -eq "5300" ]; then
                if [ MinorVersion1 -lt "05" ]; then
                        echo "\nrunInstaller needs minimum oslevel : "5300-05-06"\n";
                        exit 0;
                else
                        if [ $MinorVersion1 -eq "05" ]; then
                                MinorVersion2=`$OSLEVEL -s | $CUT -d"-"  -f3`;
                                if [ $MinorVersion2 -lt "06" ]; then
                                        echo "\nrunInstaller needs minimum oslevel : "5300-05-06"\n";
                                        exit 0;
                                fi
                        fi
                fi
        fi
   fi
fi


if [ `$UNAME` = "SunOS" ]; then
                                     

   OCR_LOC=/var/opt/oracle/ocr.loc
else
   OCR_LOC=/etc/oracle/ocr.loc
fi

if [ `$UNAME` = "Linux" ]; then
  if  [  -e $GETCONF ]; then
  value=`$GETCONF LONG_BIT`
    if  [ $value != 64 ]; then
         echo "\"You are attempting to install 64-bit Oracle on a 32-bit operating system.  This is not supported and will not work.\"";
         exit 126; #corresponding to the exit code of oui
    fi
  fi
fi

LOCALONLY=local_only
LOCAL=TRUE
SILENT=FALSE

CMDDIR=`dirname $0`

if [ "$CMDDIR" = "." ]; then
    CMDDIR=`pwd`;
fi

# Replace relative path with fully qualified path.
if [ ! "`echo $CMDDIR|grep '^/'`" ]; then
    CMDDIR=`pwd`/$CMDDIR;
fi

if [ x${PATH} != x ]; then
    PATH=/usr/bin:/usr/ccs/bin:$PATH:$CMDDIR/install
    export PATH
else
    PATH=/usr/bin:/usr/ccs/bin:$CMDDIR/install
    export PATH
fi

# Determine whether there is an existing CRS or not.
# Local is value of local_only in ocr.loc.
# False means there is an existing CRS installation on the system.
if [ -r $OCR_LOC ]; then
    LOCAL=`$AWK -F= /$LOCALONLY/'{print $2}' $OCR_LOC |\
           $SED 'y/aeflrstu/AEFLRSTU/'`

fi

case "$BUNDLE" in
db)
# One-click: only if there is no cmd line argument and it's not on CRS node
if [ $# -gt 0 -o "$LOCAL" = "FALSE" -o \
     ! -r $CMDDIR/install/oneclick.properties ]; then
    $CMDDIR/install/.oui $*
else
    $CMDDIR/install/.oui -oneclick
fi
;;
client)
    $CMDDIR/install/.oui $* CLUSTER_NODES={}
;;
crs)
    $CMDDIR/install/.oui $* -formCluster
;;
dv)
    $CMDDIR/install/.oui $* -oneclick
;;
dbbundle)
    for arg in "$@"
        do
            arg=`echo $arg | $SED 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
        if [ "$arg" = "-silent" ]; then
            SILENT=TRUE
            break
        fi
    done

    if [ "$SILENT" = "TRUE" ]; then
        $CMDDIR/install/.oui $*
    else
        $CMDDIR/install/.oui $* -oneclick -dbbundle
    fi
;;
*)
    $CMDDIR/install/.oui $*
;;
esac

 

上边为安装脚本,可以看到正是出现了上边标红部分才验证不过去。

 

至此可以继续进行安装。

 

相关文章推荐

安装grid时报INS-40404错误

原因: 这种问题一般是系统中上次已经装过grid或是没有装成功,而再次安装时报的错 解决方法: 1、在grid安装目录下查看runInstaller脚本,在脚本中搜索ocr可以找到ocr在系统中...

"oracle Universal Installer has detected that there are processes running

今日一例: AIX6在10.2.0.1 升级10.2.0.5 报错 oracle Universal Installer has detected that there are processes...

No enclosing instance of type Outer is accessible. Must qualify the allocation with an enclosing ins

之前看内部类的时候没发现这个问题,今天写代码的时候遇到,写个最简单的例子: 下面这一段代码 红色的部分就是编译报错: No enclosing instance of type ...

JNI DETECTED ERROR IN APPLICATION: can't call void XXX on instance of java.lang.Class <XXX>解决方案

最近在做一个JNI项目———C回调Java代码的地方出现了如下一个错误:JNI DETECTED ERROR IN APPLICATION: can't call void com.crycheck....

【ios编程报错处理-1】错误提示:App transport security has blocked a exceptions can be configured via your app's

更新到Xcode7后大部分会发现自己的项目的数据加载出现了问题,控制台提示: App transport security has blocked a exceptions can be confi...

MyEclipse has detected that less than 5% of the 64MB of Perm Gen (Non-heap memor

如果没有进行设置的话,在使用 MyEclipse 时经常出现内存不足的提示。 提示中说的很明白: MyEclipse has detected that less than 5% of the 64M...

MyEclipse has detected that less than 5% of the 341MB of PS Old Gen(Heap memory) space remains.

myeclipse导入项目内存问题详解
  • yzwty
  • yzwty
  • 2016年03月24日 13:12
  • 4793

ASM磁盘组创建Grid Infrastructure 12安装图解(二)

装ASM和grid Infrastructure 12C 相关软件的信息如下 名称 版本号 RedHat  rhel-server-6.7-x86_64-dvd ...

ASM磁盘组创建Grid Infrastructure 12安装图解(三)

整个GI+ASM完结篇,相关的管理及验证命令

部署RAC 2.7.1 安装Grid Infrastructure

Grid Infrastructure是11gR2版本新出现的安装包,使用独立的grid用户进行安装。如果要使用Clusterware、ASM、ACFS、ASM动态卷等功能时都需要先安装此包。Grid...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:安装orace grid infrastructure 提示“[INS-40404] The installer has detected a configured instance of ..
举报原因:
原因补充:

(最多只允许输入30个字)