PL/SQL connection to Oracle database

Source: Internet
Author: User

PL/SQL Connect Oracle Database 1, Introduction

Use PL/SQL to connect to a remote Oracle database without installing an Oracle database.


2, the specific steps:

A) Install PL/SQL, install the Oracle client based on your operating system (not related to the version of Oracle database).

b) Set the connection information to connect to the remote Oracle database, three ways (mainly to add remote database connection information in the Tnsnames.ora file), and the following three ways to append the last content in the file is based on my own database connection information, only for reference:

I. When the Oracle client is installed, a dialog box pops up to set the Tnsnames.ora file? Click Yes, add connection information, append at the end of the file:

II. My client installed directory is located in the D:\Program files file, after installing the client in the following address D:\Program files\instant Client\network\admin found Tnsnames.ora File open, append to file Last:

III. or login PL/SQL (no account login) Click help--"Support info--" TNS Names in the last append:


3. Additional content

Here, for example, my own connection information-remote database information:

<url>jdbc:oracle:thin:@10.45.35.67:1521:orcl67</url>
<!--Database Account--
<user>chy_user</user>
<!--database Password--
<passwd>chy_pwd</passwd>

From the above you can see the database information:

Instance Name: orcl67

Machine ip:10.45.35.67:1521

Account Number: Chy_user

Password: chy_pwd

Additional content:

orcl67 =  (DESCRIPTION = (    address_list = (      ADDRESS = (PROTOCOL = TCP) (HOST = 10.45.35.67) (PORT = 1521))    
    (Connect_data =      (SERVER = dedicated)      (service_name = orcl67)

The next step is to enter the user name password and log in.


4. Summary

Things are very simple, but do not do or do not know.

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.