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 .)