Configure Oracle Database Client remote connection database server under Mac

Source: Internet
Author: User
Tags mkdir

Download Mac Database client:

Address: http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html

Download these two: (Source: http://www.cnblogs.com/xiaobo-Linux/p/7821402.html)

12.12.0.1.0 version of:

Unzip Instantclient package to CD ~

Create a directory Lib and then make a file connection:

  mkdir ~/lib  ln-s ~/instantclient_12_2/libclntsh.dylib ~/lib/  ln-s ~/instantclient_12_2/ libclntsh.dylib.12.1 ~/lib/

Do a listening: Tnsnames.ora file

If you intend to co-locate optional the Oracle configuration files such as tnsnames.ora ,, sqlnet.ora or with ldap.ora oraaccess.xml Instant Client, Then create a network/admin subdirectory. For example:

  Mkdir-p ~/instantclient_12_2/network/admin

Vim Tnsnames.ora

Below, configure IP address, IP address is server address, port default 1521;

Oralocal =

(DESCRIPTION =

(Address_list =

(ADDRESS = (PROTOCOL = TCP) (HOST = 10.211.55.14) (PORT = 1521))

(Connect_data = (SERVER = dedicated) (service_name = ORCL)))

Connecting Windows oraclez11g

You can look at the IP address:

You need to close the firewall when you connect, or configure the port to allow connections.

Configure the Environment variables:

~ Vim. Profile

Append the following:

Orcl_library_path= "Instantclient_12_2"

Export Orcl_library_path

Export Oracle_home= $ORCL _library_path

Export path= $ORACLE _home: $PATH

Take effect:

~ Source. Profile

Login:

~ Sqlplus Sys/[email PROTECTED]:1521/ORCL as Sysdba

Configure Oracle Database Client remote connection database server under Mac

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.