3 Replies Latest reply on Apr 9, 2014 2:32 PM by Michael OBrien

    silent 12.1.2 install not recognizing -force option - will not install to nonempty oracle home

    Michael OBrien

                      In a putty session to a RHEL 5 VM, I am currently having issues getting the 12.1.2.0 installer to get past it's own nonempty install directory (the 11g installer had no issues).

                      Cleaning the directory does not work – I think it is an issue with the [-force] flag override.

                      According to the docs – this flag should skip a non-empty dir.

      Arg:32:-force

       

       

       

       

      - as my user

      - define an empty /opt/weblogic12 directory for use as the oracle inventory home

      - let oracle create the dir and set group permissions

       

      -bash-3.2$  sudo /tmp/createCentralInventory1396900603112.sh /opt/weblogic12 weblogic

      [sudo] password for michael.obrien:

      Setting the inventory to /opt/weblogic12

      Setting the group name to weblogic

      Creating inventory pointer file in /etc directory

      Creating the Oracle inventory pointer file (/etc/oraInst.loc)

      Creating the Oracle inventory directory (/opt/weblogic12)

      Changing permissions of /opt/weblogic12 to 770.

      Changing groupname of /opt/weblogic12 to weblogic.

      The execution of the script is complete

       

       

      - as weblogic user attempt to silent install into the empty directory

      - Oracle installs a log and a lock file - which forces us to use the [-force] option

       

       

      [weblogic@dev-wla-03.corp.domain.ca install]$ /usr/lib/jvm/java-1.7.0-oracle-1.7.0.51.x86_64/bin/java -d64 -Xmx1024m -jar wls_121200.jar -silent -responseFile /home/weblogic/install/response -force -invPtrLoc /etc/oraInst.loc -debug

      Extracting files.......

      Starting Oracle Universal Installer

       

       

      Checking if CPU speed is above 300 MHz.   Actual 2933.437 MHz    Passed

      Checking swap space: must be greater than 512 MB.   Actual 4192956 MB    Passed

      Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)

      Checking temp space: must be greater than 300 MB.   Actual 8168 MB    Passed

       

       

      Preparing to launch the Oracle Universal Installer from /tmp/OraInstall2014-04-08_02-10-19PM

       

       

      Command line arguments:

      Arg:0:/usr/lib/jvm/java-1.7.0-oracle-1.7.0.51.x86_64/bin/java

      Arg:1:-cp

      Arg:2:/tmp/OraInstall2014-04-08_02-10-19PM/oui/mw/common/framework/jlib/engine-nextgen.jar

        :/tmp/OraInstall2014-04-08_02-10-19PM/oui/mw/common/framework/jlib/message.jar

        :/tmp/OraInstall2014-04-08_02-10-19PM/oui/mw/common/framework/jlib/oneclick.jar

        :/tmp/OraInstall2014-04-08_02-10-19PM/oracle_common/modules/oracle.dms_11.1.1/dms.jar

        :/tmp/OraInstall2014-04-08_02-10-19PM/oracle_common/modules/oracle.odl_11.1.1/ojdl.jar

        :/tmp/OraInstall2014-04-08_02-10-19PM/oracle_common/modules/oracle.odl_11.1.1/ojdl2.jar

        :/tmp/OraInstall2014-04-08_02-10-19PM/oracle_common/modules/oracle.odl_11.1.1/ojdl-log4j.jar

        :/tmp/OraInstall2014-04-08_02-10-19PM/oracle_common/modules/oracle.dms_12.1.2/dms.jar

        :/tmp/OraInstall2014-04-08_02-10-19PM/oracle_common/modules/oracle.odl_12.1.2/ojdl.jar

        :/tmp/OraInstall2014-04-08_02-10-19PM/oracle_common/modules/oracle.odl_12.1.2/ojdl2.jar

        :/tmp/OraInstall2014-04-08_02-10-19PM/oracle_common/modules/oracle.odl_12.1.2/ojdl-log4j.jar

        :/tmp/OraInstall2014-04-08_02-10-19PM/oracle_common/jlib/share.jar

        :/tmp/OraInstall2014-04-08_02-10-19PM/oracle_common/jlib/ewt3.jar

        :/tmp/OraInstall2014-04-08_02-10-19PM/oracle_common/jlib/oracle_ice.jar

        :/tmp/OraInstall2014-04-08_02-10-19PM/oracle_common/jlib/ohj.jar

        :/tmp/OraInstall2014-04-08_02-10-19PM/oracle_common/jlib/help-share.jar

        :/tmp/OraInstall2014-04-08_02-10-19PM/oracle_common/jlib/jewt4.jar

        :/tmp/OraInstall2014-04-08_02-10-19PM/oracle_common/jlib/jgoodies-looks.jar

        :/tmp/OraInstall2014-04-08_02-10-19PM/oracle_common/jlib/wizardCommonResources.jar

        :/tmp/OraInstall2014-04-08_02-10-19PM/oui/modules/installer-launch.jar

        :/tmp/OraInstall2014-04-08_02-10-19PM/oui/modules/jsch.jar

        :/tmp/OraInstall2014-04-08_02-10-19PM/oui/modules/ojmisc.jar

        :/tmp/OraInstall2014-04-08_02-10-19PM/oui/modules/xml.jar

        :/tmp/OraInstall2014-04-08_02-10-19PM/oui/modules/InstImages.jar

        :/tmp/OraInstall2014-04-08_02-10-19PM/oui/modules/orai18n-mapping.jar

      Arg:3:-Doracle.installer.extjre=true

      Arg:4:-Doracle.installer.paramFile=/tmp/orcl8393866157425910629.tmp/Disk1/install/linux64/oraparam.ini

      Arg:5:-Doracle.installer.nlsEnabled=true

      Arg:6:-Doracle.installer.oui_loc=/tmp/OraInstall2014-04-08_02-10-19PM/oui

      Arg:7:-Doracle.installer.debug=true

      Arg:8:-Doracle.installer.startup_location=/tmp/orcl8393866157425910629.tmp/Disk1/install/linux64

      Arg:9:-Doracle.installer.prereqConfigLoc=/tmp/OraInstall2014-04-08_02-10-19PM/oui/mw/wls/prereq

      Arg:10:-Doracle.installer.library_loc=/tmp/OraInstall2014-04-08_02-10-19PM/oui/lib/linux64

      Arg:11:-Doracle.installer.unixVersion=2.6.18-371.3.1.el5

      Arg:12:-Doracle.installer.bootstrap=true

      Arg:13:-Doracle.installer.scratchPath=/tmp/OraInstall2014-04-08_02-10-19PM

      Arg:14:-DisNextGen=true

      Arg:15:-Doracle.installer.launch_loc=/home/weblogic/install

      Arg:16:-Doracle.installer.jre_loc=/usr/lib/jvm/java-1.7.0-oracle-1.7.0.51.x86_64

      Arg:17:-mx512m

      Arg:18:-XX:MaxPermSize=512m

      Arg:19:-Doracle.installer.appendjre=true

      Arg:20:oracle.sysman.oio.oioc.OiocOneClickInstaller

      Arg:21:-scratchPath

      Arg:22:/tmp/OraInstall2014-04-08_02-10-19PM

      Arg:23:-sourceType

      Arg:24:network

      Arg:25:-timestamp

      Arg:26:2014-04-08_02-10-19PM

      Arg:27:-paramFile

      Arg:28:/tmp/orcl8393866157425910629.tmp/Disk1/install/linux64/oraparam.ini

      Arg:29:-silent

      Arg:30:-responseFile

      Arg:31:/home/weblogic/install/response

      Arg:32:-force

      Arg:33:-invPtrLoc

      Arg:34:/etc/oraInst.loc

      Arg:35:-debug

       

       

       

       

      Log: /opt/weblogic12/logs/install2014-04-08_02-10-19PM.log

      Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.

      Reading response file..

      Expected result: One of enterprise-4,enterprise-5,enterprise-6,redhat-6,redhat-4,redhat-5,SuSE-10,SuSE-11

      Actual Result: enterprise-5

      Check complete. The overall result of this check is: Passed

      CertifiedVersions Check: Success.

      Expected result: 1.7

      Actual Result: 1.7.0_51

      Check complete. The overall result of this check is: Passed

      CheckJDKVersion Check: Success.

      Verifying data......

      [VALIDATION] [ERROR]:INST-07319: Validation of Oracle Home location failed. The location specified already exists and is a nonempty directory and not a valid Oracle Home

      [VALIDATION] [SUGGESTION]:Provide an empty or nonexistent directory location, or a valid existing Oracle Home

      installation Failed. Exiting installation due to data validation failure.

      The Oracle Universal Installer failed.  Exiting.

      [weblogic@dev-wla-03.corp.domain.ca install]$

       

       

      Response file

      #The oracle home location. This can be an existing Oracle Home or a new Oracle Home

      ORACLE_HOME=/opt/weblogic12

       

       

      oraInst.loc

      inventory_loc=/opt/weblogic12

      inst_group=weblogic

       

       

       

       

      >oracle writes to its own install then complains the directory is not empty because of the lock and log files

      adding -force does not work and looks like a bug

       

      http://docs.oracle.com/middleware/1212/core/OUIRF/silent.htm

      "

      -force

      Allow the silent installation to proceed in a non-empty directory.

      11g and 12c

      ".

       

       

      thank you

      /michael

        • 1. Re: silent 12.1.2 install not recognizing -force option - will not install to nonempty oracle home
          Jayaprakash -Oracle

          Hi Michael,

           

          Oracle recommends that WLS 12.1.2 installation should ALWAYS be done to an empty or non-existing directory. This is the best solution to the problem.

           

          Note that in Weblogic Server 12.1.2 , the -force flag is not valid, since using this may cause improper configuration. If it is necessary to bypass the validation for specific reasons, it is possible to use the -novalidation flag.

           

          -novalidation: Disables all validation checking performed by the installer.

           

          However, this is not recommended. The -novalidation flag disables checks that are needed to prevent problems with the installation.

           

          Note:As there is bug which BUG:17181891 - WLS12.1.2 SILENT INSTALL DOES NOT HONOR FORCE FLAG, IT ERRORD INST-07319 and would be fixed in the next releases,

           

          Regards,

          Prakash.

          • 2. Re: silent 12.1.2 install not recognizing -force option - will not install to nonempty oracle home
            Michael OBrien

            Prakash,

                Thank you for the reply.  This error occurs in a previously empty directory.  The oracle installer adds a log and lock directory.  I am using the -force flag only to get around the installer files (not to be confused with the /tmp installer files elsewhere).  I thought about turning validation off but I still need it.

            I can't access the bug.  Is there a way to force the installer to not write to the empty directory before it validates that is is empty by writing the log and lock directory elsewhere?

             

                 However, with the -novalidation flag the WebLogic 12.1.2.0 silent install is proceeding - I will verify it shortly

             

             

             

            Check complete. The overall result of this check is: Passed

            CertifiedVersions Check: Success.

            Expected result: 1.7

            Actual Result: 1.7.0_51

            Check complete. The overall result of this check is: Passed

            CheckJDKVersion Check: Success.

            Verifying data......

            Copying Files...

            -----------20%----------40%----------60%--

             

            thank you

            Michael

            • 3. Re: silent 12.1.2 install not recognizing -force option - will not install to nonempty oracle home
              Michael OBrien

              Fixed,

               

              My oraInst.loc was pointing to the oracle_home

               

              -inventory_loc=/opt/weblogic12

              +inventory_loc=/tmp/weblogic12

               

              Log: /tmp/weblogic12/logs//tmp/wls12log.log

               

              I thought inventory meant the inventory dir ahead of oracle_home.

              No need for the –novalidation flag.