Configure Oracle 11g Green client and Plsql remote connection environment

Source: Internet
Author: User
Tags sqlplus

Configure Oracle 11g Green client and PLSQL environment

This approach is done by using the Oracle-provided lite client, which is a green, free-to-install client. There are many versions of the Instant client: primarily basic and basic Lite. The basic version includes all of the files that support running OCI, OCCI, JDBC, Jdbc-oci, and multiple languages. Basic Lite is a lite version of the basic edition that includes only the error descriptions in English and only supports Unicode, ASCII, and European character sets. Therefore, if the database server is a Chinese character set, such as simplified Chinese_china. ZHS16GBK), you must download the basic version. The configuration method is as follows: First, the download of the basic version of the compressed package to a directory (the directory can be customized according to personal preferences, placed in D:\Program Files (x86) \instantclient_11_2); Configure Environment variables: (Open environment Variable Configuration Interface actions: My Computer---properties---advanced---environment variables, you can create new or edit them in the System Variables section. Win7 The above operating system is: computer--attribute-Advanced system settings-environment variables 1) variable name: Oracle_home (if the machine does not have a server, test can be omitted) variable value: D:\Program Files (x86) \instantclient_11 _2
2) variable name: Tns_admin variable Value: D:\Program files (x86) \instantclient_11_2\ Description: This configuration item specifies the storage path of the Tnsnames.ora file. It is recommended that the last ' \ ' symbol of this value not be omitted, otherwise it may affect the plsql, the test is configured, missing ' \ ', the result plsql cannot read the data in the file. But it does not seem to affect the use of sqlplus. 3) variable name: Nls_lang variable value: Simplified Chinese_china. ZHS16GBK Description: This value defines the encoding that is used by the connected database, and other types can be viewed by the server themselves or looked up online. 4) Modify the path variable, add D:\Program files (x86) \instantclient_11_2 Three, in the Tns_admin (the value of the variable name) directory you defined, copy the file name Tnsnames.ora, and add your own database alias configuration in the file, examples are as follows:

Fsfsdb =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.70.128) (PORT = 1521))
(Connect_data =
(SERVER = dedicated)
(service_name = fsfsdb)
)
)

Mainly modifies the first = previous alias, host is the IP address, and Service_Name is the instance name of the database server. Iv. installation and use of Plsql. If there are no surprises, you can now connect to the database using Plsql or Sqlplus. Unload method: In the system variable, delete oracle_home, tns_admin, Nls_lang Three variables, modify the path variable, remove D:\Program Files (x86) \instantclient_11_2 directory.

Configure Oracle 11g Green client and Plsql remote connection environment

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.