Installation of Oracle database on Mac and solution of some problems in process _oracle

Source: Internet
Author: User
Tags oracle database

1. Visit the official website of oralce, download the related compression package
Http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html

Note: Under the Mac mountain lion operating system, download the x86 32-bit version. Can't use 64-bit. Otherwise, Navicat can't use it.
2. Compress all the files into one directory (I'm using/desktop/oracle)
3. Copy this Oralce directory to the/OPT directory
There's a/opt/oracle/instantclient_10_2 directory under the/OPT directory.
4. Setting Environment variables
A. Enter the current user's home directory with the cd~ command
B. Vi. Bash_profile Modifying the environment configuration file

Dyld_library_path= "/opt/oracle/instantclient_10_2" 

export dyld_library_path 

export Oracle_home= $DYLD _ Library_path 

tns_admin=/opt/oracle/tns 

export tns_admin 

export nls_lang= "American_america. UTF8 " 

5. Reboot the machine and use Env to see if the environment variable is set to succeed
6. In Mac's Mountion Lion system, when this environment variable is set, an error occurs when sudo is run:
DYLD:DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid

Actually, this is a bug in Mountain Lion.

But there are ways to solve it, if you have the same reason as me, then execute the following sentence and delete the top of the environment variable configuration is OK

sudo ln-s/opt/oracle/instantclient_10_2/libociei.dylib/usr/lib/libociei.dylib

Here's a look at some of the problems you might encounter during installation:

Question 1:

Exception in thread "main" Java.lang.InternalError:Can ' t connect to window server-not enough permissions.

The graphical installation interface could not be started, and the final solution was to log in via an Oracle user and not through the SU way, although Xclock could log in, but Runinstaller could not start the graphics installation.

Question 2:

Java.lang.UnsatisfiedLinkError:/private/tmp/orainstall/oui/lib/mac_osx/liborainstaller.dylib:no Suitable image Found. Did Find:/private/tmp/orainstall/oui/lib/mac_osx

This can be done by:

Runinstaller-j-d32

Forced to start a 32-bit Java environment to resolve

Question 3:
The following error was encountered during installation:

Error in invoking target ' ALL_NO_ORCL ipc_g IHSODBC32 Error during linking then edit file $ORACLE _home/rdbms/lib/ins_rdbms . mk 

You can modify the Ins_rdbms.mk gaze $ (hsodbc_linkline) line at this time. Retry can be done by installing.

Question 4:
DBCA cannot be run and database creation cannot be started.
Modify $ORACLE _home/jdk/bin/java Script
Will Java-xbootclasspath ...
Change to Java-d32-xbootclasspath ...

It is also mandatory to start the 32-bit Java Runtime environment.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.