Use PL/SQL without installing the Oracle client

Source: Internet
Author: User
To connect to Oracle, you often need to install an ORACLE client of hundreds of megabytes, which is very troublesome. This section describes how to use a thin client that does not need to be installed with PL

To connect to Oracle, you often need to install an ORACLE client of hundreds of megabytes, which is very troublesome. This section describes how to use a thin client that does not need to be installed with PL

To connect to Oracle, you often need to install an ORACLE client of hundreds of megabytes, which is very troublesome. This section describes how to connect to the oracle database by using a thin client that does not require installation.

In fact, these operations are very simple. If you write them here, you should consider it as a knowledge management. If you forget how to configure them, open this blog.

First download the installation package

Download Oracle Instantclient Basic package from the official Oralce website. The address is as follows: Find the Instant Client in the middle of the page and select the appropriate version to download from the Instant Client Downloads.

Step 2: unzip the installation package
1> after downloading, decompress the compressed file to a local path, for example, C:/instantclient.
2> Create the network/admin folder in this path and create tnsnames in the C:/instantclient/network/admin folder. ora file, the file content is the TNS information of the database to be connected. For example:

WORCL =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.1.4) (PORT = 1521 ))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)

)

The red part is my personal settings. The ORACLE Database Server IP address is 192.168.1.4 and the database service name is orcl. If you do not know the service name, run the following command:

Show parameter service_name

Step 3: Set Environment Variables
Create in user variable:

Variable name: nls_lang

Variable value: SIMPLIFIED CHINESE_CHINA.ZHS16GBK

Add C: \ instantclient to the system variable Path.

Step 4: Configure pl/SQL developer
Start PL/SQL Developer. On the logon window, click the cancel button to go to the main interface. Click Tools> Preferences. The following two parameters must be configured in Connection:
Oracle Home: C: \ instantclient
OCI Library: C: \ instantclient \ oci. dll

Now that the configuration is complete, pl/SQL developer can be used normally.

-------------------------------------- Split line --------------------------------------

Use PL/SQL to connect to Oracle without installing the Oracle client

Remote connection configuration of Oracle Client and PL/SQL

On Linux, how does one install and configure InstantClient and 64-bit PL/SQL? Id = 100170 & cid = 7

Settings for automatic transaction submission by PL/SQL Developer

PL/SQL Developer log on to Oracle 12c

PL/SQL Developer Practical Skills

-------------------------------------- Split line --------------------------------------

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.