Oracle Installation-free PL/SQL connection

Source: Internet
Author: User

Use PL/SQL to connect to Oracle without installing the Oracle client
 
1. Download a software named Instant Client Package from the Oracle website. This software does not need to be installed and can be used as long as it is decompressed. : Http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html.
 
2. download the software package, decompress it to any directory (for example, D: \ Program Files \ oracle_client), create a NETWORK folder under this directory, create an ADMIN folder under it, and then create tnsnames. the ora file contains the following content:
RFITMS =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP) (HOST = 10.88.248.95) (PORT = 1521 ))
)
(CONNECT_DATA =
(SERVICE_NAME = rfitms)
)
)
Set it here based on your actual situation.

3. Enable PL/SQL and configure tools> preferences> connection.
Oracle Home = D: \ Program Files \ oracle_client \ instantclient10_1
OCI library = D: \ Program Files \ oracle_client \ instantclient10_1 \ oci. dll
This is also set based on your actual situation.


4. Add an environment variable named TNS_ADMIN. The value is the path of the tnsnames. ora file (for example, D: \ Program
Files \ oracle_client \ NETWORK \ ADMIN) to locate tnsnames. ora. When setting the ORACLE language, you need to add the environment variable: NLS_LANG = SIMPLIFIED CHINESE_CHINA.ZHS16GBK.
 
5. Restart PLsql

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.