How to install the Oracle Instant Client

Source: Internet
Author: User
Tags sqlplus

Oracle Instant Client is a lightweight database client released by Oracle, let's look at the official definition:

Instant client allows you to run your applications without installing the standard Oracle client or have an oracle_home. OCI, OCCI, Pro*c, ODBC, and JDBC applications work without modification, while using significantly less disk space than B Efore. Even Sql*plus can is used with Instant Client. No recompile, no hassle.

It can be seen that Oracle Instant client is a better choice if you are simply connecting to the database server side with SQL developer, or using Sql*plus to operate the database, compared to standard clients, which greatly simplifies the client installation process and takes up very little space , but includes the necessary OCI, OCCI interface, and ODBC, JDBC driver.

Let's take a look at the official installation package:

Download Link: http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html

Because our background database version is 11.2.0.1 32-bit, and we need to install the client under Windows, so download

Instantclient-basic-win32-11.2.0.1.0.zip (51,458,190 bytes)

Instantclient-sqlplus-win32-11.2.0.1.0.zip (758,913 bytes)

If you don't need sqlplus, choose Basic.

below to see how to install.

first, the Instantclient-basic and instantclient-sqlplus two installation packages in the same directory, decompression .

Here, we put under E:\Oracle, extract to the current folder, and finally automatically generate a new folder Instantclient_11_2, two packages of files will be placed in this folder, that is E:\Oracle\instan Tclient_11_2.

Second, modify the system variables

1> adding E:\Oracle\instantclient_11_2 to the system variable path

2> New System Variables

Nls_lang=american_america. we8mswin1252-->> Server-side character set

Tns_admin=e:\oracle\instantclient_11_2-->> Specify where Tnsnames.ora is located

Note: If the installation of the online method system variable is still not effective, you need to restart the computer for the modified system variables to take effect.

Third, the new Tnsnames.ora configuration file under E:\Oracle\instantclient_11_2, the contents are as follows:

Orcl=(DESCRIPTION=(Address_list=(ADDRESS=(PROTOCOL=TCP) (HOST= 192.168.1.11) (PORT= 1521)) ) (Connect_data=(SERVER=dedicated) (Service_Name=orcl.being.com )))

Four, with Sql*plus landing test.

c:\windows\system32>sqlplus scott/[email protected]

SQL*Plus:release11.2.0.1.0Production onFri8 Ten: -: -  theCopyright (c)1982, ., Oracle. Allrights reserved. Connected to: OracleDatabase11g Enterprise Edition Release11.2.0.1.0 -Production withThe partitioning, OLAP, Data Mining and RealApplication Testing Optionssql>

Test ok!

At this point, the Oracle Instant client and Sql*plus installation are complete.

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.