Install the Oracle client On Debian

Source: Internet
Author: User

1. In the http://www.oracle.com/technetwork/database/index.html, enter the Instant Client for Linux x86 page,

Then download the following installation package (10 Gb client, 11 GB latest ):

Oracle-instantclient-basic-10.2.0.5-1.i386.rpm

Oracle-instantclient-devel-10.2.0.5-1.i386.rpm

Oracle-instantclient-jdbc-10.2.0.5-1.i386.rpm

Oracle-instantclient-sqlplus-10.2.0.5-1.i386.rpm

2. debian cannot directly install the rpm package. You need to use alien

Run apt-get install alien to automatically download and install alien;

3. Install basic and the other three.

(Use the alien-I xxx. rpm command)

After the installation is complete, ORA_HOME should be/usr/lib/oracle/10.2.0.5/client/, which needs to be set later.

4. Add a line at the end of the/etc/ld. so. conf file:

/Usr/lib/oracle/10.2.0.5/client/lib

Then execute ldconfig to make the configuration take effect.

(Execute sqlplus to verify the configuration .)

5. At the end of the/etc/profile file, add:

Export ORACLE_HOME =/usr/lib/oracle/10.2.0.5/client/

Export LD_LIBRARY_PATH =: $ ORACLE_HOME/lib:/usr/local/lib: $ LD_LIBRARY_PATH :.

Export TNS_ADMIN = $ ORACLE_HOME

Export PATH = $ PATH: $ ORACLE_HOME/bin :.

Run source/etc/profile to make the configuration take effect.

(Run echo $ ORACLE_HOME to verify the configuration .)

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.