4 Replies Latest reply: Apr 9, 2011 12:03 PM by Catch-22 RSS

    Oracle install on Snow Leopard

    420656
      I'm trying to install Oracle on an up-to-date Mac Pro desktop and am running into what appears to be a "new" problem.

      System Software Overview:

      System Version:     Mac OS X 10.6.7 (10J869)
      Kernel Version:     Darwin 10.7.0
      Boot Volume:     Intel SSD
      Boot Mode:     Normal
      Computer Name:     My Mac Pro
      User Name:     Me (me)
      Secure Virtual Memory:     Not Enabled
      64-bit Kernel and Extensions:     Yes
      Time since boot:     20:02

      I downloaded Oracle Database 10g Rel 2 for Mac OS X on Intel x86-64 and prepared for the install following the "install guides from Oracle, Oracle ACE Raimonds Simanovskis, and Oracle ACE Alex Gorbachev."

      [http://www.oracle.com/technetwork/topics/macos/whatsnew/index-082778.html]

      JDK 1.4.2 appears to be aliased on Snow Leopard. The only other problem I found is that 'uname' is in /usr/bin instead of bin.

      I haven't seen this Exception in any of the discussions I've read.

      Any ideas? They would be much appreciated.


      nimbus:Disk1 tom$ ./runInstaller -J -d32
      Darwin
      Starting Oracle Universal Installer...

      No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
      Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-04-04_12-23-40PM. Please wait ...-------------------------------------------------------
      Total args: 26
      Command line argument array elements ...
      Arg:0:/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/bin/java:
      Arg:1:-Doracle.installer.library_loc=/tmp/OraInstall2011-04-04_12-23-40PM/oui/lib/mac_osx:
      Arg:2:-Doracle.installer.oui_loc=/tmp/OraInstall2011-04-04_12-23-40PM/oui:
      Arg:3:-Doracle.installer.bootstrap=TRUE:
      Arg:4:-Doracle.installer.startup_location=/opt/oracle_install/db/Disk1/install:
      Arg:5:-Doracle.installer.jre_loc=/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/:
      Arg:6:-Doracle.installer.extjre=true:
      Arg:7:-Doracle.installer.nlsEnabled="TRUE":
      Arg:8:-Doracle.installer.prereqConfigLoc=/tmp/OraInstall2011-04-04_12-23-40PM/prereq :
      Arg:9:-Doracle.installer.unixVersion=10.7.0:
      Arg:10::
      Arg:11:-mx150m:
      Arg:12:-cp:
      Arg:13:/tmp/OraInstall2011-04-04_12-23-40PM:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/OraInstaller.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/oneclick.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/xmlparserv2.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/srvm.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/share.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/OraInstallerNet.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/xml.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/orai18n-collation.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/orai18n-mapping.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/emCfg.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/ojmisc.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/InstImages.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/InstHelp.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/InstHelp_de.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/InstHelp_es.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/InstHelp_fr.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/InstHelp_it.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/InstHelp_ja.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/InstHelp_ko.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/InstHelp_pt_BR.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/InstHelp_zh_CN.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/InstHelp_zh_TW.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/oracle_ice.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/help4.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/help4-nls.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/ewt3.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/ewt3-swingaccess.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/ewt3-nls.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/swingaccess.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/classes12.jar::/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/OraPrereq.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/jewt4.jar:/tmp/OraInstall2011-04-04_12-23-40PM/oui/jlib/jewt4-nls.jar:
      Arg:14:oracle.sysman.oii.oiic.OiicInstaller:
      Arg:15:-scratchPath:
      Arg:16:/tmp/OraInstall2011-04-04_12-23-40PM:
      Arg:17:-sourceLoc:
      Arg:18:/opt/oracle_install/db/Disk1/install/../stage/products.xml:
      Arg:19:-sourceType:
      Arg:20:network:
      Arg:21:-timestamp:
      Arg:22:2011-04-04_12-23-40PM:
      Arg:23:-jreLoc:
      Arg:24:/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/:
      Arg:25:-d32:
      -------------------------------------------------------
      Initializing Java Virtual Machine from /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/bin/java. Please wait...
      nimbus:Disk1 tom$ Exception in thread "main" java.lang.NoClassDefFoundError:
      Caused by: java.lang.ClassNotFoundException:
      at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        • 1. Re: Oracle install on Snow Leopard
          420656
          More info...

          Installation took off after I installed Java 1.5 as described in this link:

          [http://chxor.chxo.com/post/183013153/installing-java-1-5-on-snow-leopard]

          set runInstaller to use JDK 1.5.0 and executed it without the "recommended" -J -d32 options.

          The first phase of the Install was "successful", but the "Linking" phase then produced an error:

          INFO: - Linking hsodbc agent

          INFO: rm -f /Volumes/Macintosh_HD_2/app/oracle/product/10.2.0/db_1/rdbms/lib/hsodbc

          INFO: gcc -m32 -o /Volumes/Macintosh_HD_2/app/oracle/product/10.2.0/db_1/rdbms/lib/hsodbc -L/Volumes/
          Macintosh_HD_2/app/oracle/product/10.2.0/db_1/rdbms/lib32/ -L/Volumes/Macintosh_HD_2/app/oracle/produ
          ct/10.2.0/db_1/lib32/ /Volumes/Macintosh_HD_2/app/oracle/product/10.2.0/db_1/hs/lib32/hsodbc.o
          /Volumes/Macintosh_HD_2/app/oracle/product/10.2.0/db_1/rdbms/lib32/defopt.o /Volumes/Macintosh_HD_2/app/oracle/product/10.2.0/db_1/rdbms/lib32/homts.o -L/Volumes/Macintosh_HD_2/app/oracle/product/10.2.0/db_1/lib3INFO: 2/ -lnavhoa -lhsnav -lhsbase -lagent10 -lclntsh -lpls10 -lplp10 -lsnls10 -lnls10 -lcore10
          -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lxml10 -lcore10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls
          10 `cat /Volumes/Macintosh_HD_2/app/oracle/product/10.2.0/db_1/lib32/ldflags` -lnsslb10 -lncrypt10
          -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 -lnro10 `cat /Volumes/Macintosh_HD_2/app/oracle/product/10.2.
          0/db_1/lib32/ldflags` -lnsslb10 -lncrypt10 -lnsgr10 -lnzjs10 -ln10 -lnnz10 -lnl10 `cat /Volumes/
          Macintosh_HD_2/app/oracle/product/10.2.0/db_1/lib32/sysliblist` -L/Volumes/Macintosh_HD_2/app/oracle/product
          /10.2.0/db_1/lib -lm `cat /Volumes/Macintosh_HD_2/app/oracle/product/10.2.0/db_1/lib32/sysliblist`
          -L/Volumes/Macintosh_HD_2/app/oracle/product/10.2.0/db_1/lib -lm -lvsn10

          INFO: i686-apple-darwin10-gcc-4.2.1: /Volumes/Macintosh_HD_2/app/oracle/product/10.2.0/db_1/hs/lib32/hsodbc.o: No such file or directory

          INFO: make[1]: *** [Volumes/Macintosh_HD_2/app/oracle/product/10.2.0/db_1/rdbms/lib/hsodbc] Error 1
          INFO: make: *** [ihsodbc32] Error 2

          INFO: End output from spawned process.
          INFO: ----------------------------------
          INFO: Exception thrown from action: makeException Name: MakefileException
          Exception String: Error in invoking target 'all_no_orcl ipc_g ihsodbc32' of makefile '/Volumes/Macint
          osh_HD_2/app/oracle/product/10.2.0/db_1/rdbms/lib/ins_rdbms.mk'. See '/Volumes/Macintosh_HD_2/app/oracle/oraInventory/logs/installActions2011-04-04_03-45-29PM.log' for details.
          Exception Severity: 1
          INFO: The output of this make operation is also available at: '/Volumes/Macintosh_HD_2/app/oracle/pro
          duct/10.2.0/db_1/install/make.log'

          Edited by: tmc on Apr 4, 2011 8:43 PM
          • 2. Re: Oracle install on Snow Leopard
            420656
            Most of the way there...

            I should have paid closer attention to the installation "guides".

            [http://www.pythian.com/news/1937/quick-install-guide-for-oracle-10g-release-2-on-mac-os-x-leopard-intel/]

            Here's the fix for the "Linking" problem:

            Snow Leopard update 14-Sep-09: If you get Error in invoking target ‘all_no_orcl ipc_g ihsodbc32 error during linking then edit file $ORACLE_HOME/rdbms/lib/ins_rdbms.mk (without exiting installer – just switch to the terminal) and comment out line with $(HSODBC_LINKLINE) — just place hash # in front. Then switch back to the error in the installer and click “Retry”. I picked it up from Raimonds Simanovskis’s post — thanks a bunch.

            Raimond also suggests how to fix Java GUI tools (netca and dbca) so that they run on Snow Leopard. Quoting him — “modify $ORACLE_HOME/jdk/bin/java script and change …java -Xbootclasspath… to …java -d32 -Xbootclasspath…“.

            I changed the Oracle java script to point to the previously installed Apple 1.5.0 JDK and again omitted the -d32 argument.

            #!/bin/sh -f
            /System/Library/Frameworks/JavaVM.framework*/Versions/1.5.0/*Home/bin/java -Xbootclasspath/a:/Volumes/Macintosh_HD_2/app/oracle/product/10.2.0/db_1/jdk/jre/lib/ext:/Volumes/Macintosh_HD_2/app/oracle/product/10.2.0/db_1/jdk/lib/ext $*

            Database creation failed so I still don't have a database but what I was really after was the toolset.
            • 3. Re: Oracle install on Snow Leopard
              420656
              After enduring a rather painful experience of installing Oracle on Snow Leopard, here's my recommendation:

              Most of the information you need can be found in the three guides cited on the Oracle OS X page:

              [[http://www.oracle.com/technetwork/topics/macos/whatsnew/index-082778.html]

              Read them carefully before starting your installation.

              If you just skim over them, you will find yourself spending all the time you think you are saving when you have to go back and re-read them to solve your installation problems.

              I learned this the hard way.
              • 4. Re: Oracle install on Snow Leopard
                Catch-22
                It looked promising for Mac OS X when 10g was released, but that seems all history now. Unfortunately Oracle 10g has reached the end of its lifecycle. It's too bad that Oracle does apparently not support Apple, but from a business professional perspective there is no technical or support disadvantage to run a dedicated Oracle Server on Enterprise Linux instead of Mac OS X. For semi-professional use I recommend to install free Oracle Virtualbox for Intel Mac and install Oracle Linux as a guest OS, followed by Oracle 11gR2. It will be a lot less hassle than trying to run an outdated Oracle product on unsupported OS.