Use PL/SQL without installing the Oracle client

Source: Internet
Author: User

Use PL/SQL without installing the Oracle client

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 URL is as follows: publish Client. select a suitable version for downloading in 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 a network/admin folder in this path and a tnsnames. ora file in the C:/instantclient/network/admin folder. 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 the environment variable
Create in user variable: variable name: nls_lang variable value: SIMPLIFIED CHINESE_CHINA.ZHS16GBK add C: \ instantclient to 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 has been configured. Now pl/SQL developer can be used properly.

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

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

Remote connection configuration of Oracle Client and PL/SQL

Install and configure InstantClient and 64-bit PL/SQL on Linux

PL/SQL Developer log on to Oracle 12c

PL/SQL Developer Practical Skills

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

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.