Oracle client connection

Source: Internet
Author: User

I haven't written a blog for a while recently. I learned too many things instead of being lazy. Later, I will try again.

1. Add an ORACLE data source to ODBC

The first condition for adding an ORACLE data source in ODBC:Install Oracle client. After the installation is complete, add a connection to the installation directory c:/Oracle/ora90/Network/admin/tnsnames. ora, in the following format:

DxS =
(Description =
(Address_list =
(Address = (Protocol = TCP) (host = 9.83.70.13) (Port = 1521 ))
)
(CONNECT_DATA =
(SERVICE_NAME = dealer)
)
)

 

This information must be viewed on the Oracle server.

2. Connect to Oracle through sqlplus

To connect to Oracle through sqlplus, you must Ping tnsping first,

 

Previously, the ping failed, but the ping still failed.Net mangerAdd a service name, or add a connection string to C:/Oracle/product/10.2.0/client_1/Network/admin/tnsnames. ora in the format of 1.

Then you can use:

1. sqlplus/nolog

2. Conn user/pass @ service name

Connected.

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.