Install the Oracle 11 client under Fedora 12

Source: Internet
Author: User

Objective: To install Oracle-client (v11) under "/opt/oracle /"

Prepare the following three installation packages in a directory, such as:/root/software/oracle
[Root @ localhost oracle] # pwd

/Root/software/oracle

[Root @ localhost oracle] # ls

Oracle-instantclient11.2-basic-11.2.0.2.0.i386.rpm

Oracle-instantclient11.2-devel-11.2.0.2.0.i386.rpm // This is the SDK

Oracle-instantclient11.2-sqlplus-11.2.0.2.0.i386.rpm

[Root @ localhost oracle] #

Create the target folder (oracle will be installed under/opt)
[Root @ localhost opt] # mkdir oracle

[Root @ localhost opt] # mkdir oracle/network oracle/sdk

[Root @ localhost opt] # mkdir oracle/network/admin

Decompress two rpm packages (basic, sqlplus)
[Root @ localhost ~] # Cd/root/software/oracle

[Root @ localhost oracle] # pwd

/Root/software/oracle

 

[Root @ localhost oracle] # ls

Oracle-instantclient11.2-basic-11.2.0.2.0.i386.rpm

Oracle-instantclient11.2-devel-11.2.0.2.0.i386.rpm

Oracle-instantclient11.2-sqlplus-11.2.0.2.0.i386.rpm

[Root @ localhost oracle] # rpm2cpi oracle-instantclient11.2-basic-11.2.0.2.0.i386.rpm | cpio-div

./Usr/lib/oracle/11.2/client/bin/adrci

./Usr/lib/oracle/11.2/client/bin/genezi

./Usr/lib/oracle/11.2/client/lib/libclntsh. so.11.1

./Usr/lib/oracle/11.2/client/lib/libnnz11.so

./Usr/lib/oracle/11.2/client/lib/libocci. so.11.1

./Usr/lib/oracle/11.2/client/lib/libociei. so

./Usr/lib/oracle/11.2/client/lib/libocijdbc11.so

./Usr/lib/oracle/11.2/client/lib/ojdbc5.jar

./Usr/lib/oracle/11.2/client/lib/ojdbc6.jar

./Usr/lib/oracle/11.2/client/lib/xstreams. jar

336597

[Root @ localhost oracle] # rpm2cpi oracle-instantclient11.2-sqlplus-11.2.0.2.0.i386.rpm | cpio-div

./Usr/bin/sqlplus

./Usr/lib/oracle/11.2/client/bin/sqlplus

./Usr/lib/oracle/11.2/client/lib/glogin. SQL

./Usr/lib/oracle/11.2/client/lib/libsqlplus. so

./Usr/lib/oracle/11.2/client/lib/libsqlplusic. so

5321

[Root @ localhost oracle] # ls

Oracle-instantclient11.2-basic-11.2.0.2.0.i386.rpm

Oracle-instantclient11.2-devel-11.2.0.2.0.i386.rpm

Oracle-instantclient11.2-sqlplus-11.2.0.2.0.i386.rpm

Usr

Move the bin and lib in the decompressed usr directory to/opt/oracle/, and then delete the usr directory:
[Root @ localhost oracle] # mv usr/lib/oracle/11.2/client/bin/opt/oracle/

[Root @ localhost oracle] # mv usr/lib/oracle/11.2/client/lib/opt/oracle/

[Root @ localhost oracle] # rm-rf usr

Decompress the remaining rpm package (devel)
[Root @ localhost oracle] # rpm2cpi oracle-instantclient11.2-devel-11.2.0.2.0.i386.rpm | cpio-div

./Usr/include/oracle/11.2/client/ldap. h

./Usr/include/oracle/11.2/client/nzerror. h

./Usr/include/oracle/11.2/client/nzt. h

./Usr/include/oracle/11.2/client/occi. h

./Usr/include/oracle/11.2/client/occiAQ. h

./Usr/include/oracle/11.2/client/occiCommon. h

./Usr/include/oracle/11.2/client/occiControl. h

./Usr/include/oracle/11.2/client/occiData. h

./Usr/include/oracle/11.2/client/occiObjects. h

./Usr/include/oracle/11.2/client/oci. h

./Usr/include/oracle/11.2/client/oci1.h

./Usr/include/oracle/11.2/client/oci8dp. h

./Usr/include/oracle/11.2/client/ociap. h

./Usr/include/oracle/11.2/client/ociapr. h

./Usr/include/oracle/11.2/client/ocidef. h

./Usr/include/oracle/11.2/client/ocidem. h

./Usr/include/oracle/11.2/client/ocidfn. h

./Usr/include/oracle/11.2/client/ociextp. h

./Usr/include/oracle/11.2/client/ocikpr. h

./Usr/include/oracle/11.2/client/ocixmldb. h

./Usr/include/oracle/11.2/client/ocixstream. h

./Usr/include/oracle/11.2/client/odci. h

./Usr/include/oracle/11.2/client/oratypes. h

./Usr/include/oracle/11.2/client/ori. h

./Usr/include/oracle/11.2/client/orid. h

./Usr/include/oracle/11.2/client/orl. h

./Usr/include/oracle/11.2/client/oro. h

./Usr/include/oracle/11.2/client/ort. h

./Usr/include/oracle/11.2/client/xa. h

./Usr/lib/oracle/11.2/client/lib/libclntsh. so

./Usr/lib/oracle/11.2/client/lib/libocci. so

./Usr/lib/oracle/11.2/client/lib/ottclasses.zip

./Usr/share/oracle/11.2/client/cdemo81.c

./Usr/share/oracle/11.2/client/demo. mk

./Usr/share/oracle/11.2/client/occidemo. SQL

./Usr/share/oracle/11.2/client/occidemod. SQL

./Usr/share/oracle/11.2/client/occidml. cpp

./Usr/share/oracle/11.2/client/occiobj. cpp

./Usr/share/oracle/11.2/client/occiobj. typ

./Usr/share/oracle/11.2/client/ott

3833

[Root @ localhost oracle] #

Move all files in the decompressed usr directory to/opt/Alibaba El/sdk and delete useless usr directories.
[Root @ localhost oracle] # mv usr/*/opt/oracle/sdk/

[Root @ localhost oracle] # rm-rf usr

So far, the oracle11 client has been installed, and then configure

  • 1
  • 2
  • Next Page

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.