dbTalk Databases Forums  

OCI application for Oracle 9i / 10g

comp.databases.oracle.tools comp.databases.oracle.tools


Discuss OCI application for Oracle 9i / 10g in the comp.databases.oracle.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
kvmanoj@gmail.com
 
Posts: n/a

Default OCI application for Oracle 9i / 10g - 05-10-2007 , 02:30 AM






Hi,

I am developing an application which uses OCI to connect to Oracle 9i/
10g databases.

On Windows, I am using "oci.dll" provided by Oracle 10g and built my
application.
Application works fine(able to connect and fetch data) on Oracle 9i /
10g databases.

On Linux, "libclntsh.so" is the symbolic link which points to
"libclntsh.so.9.0" on Oracle 9i
and "libclntsh.so.10.1" on Oracle 10g. These libraries are OCI
libraries.

So when I build my application using "-lclntsh" option on Oracle 9i, I
am not able to work deploying the application on 10g because my
application is depending on "libclntsh.so.9.0" on which I compiled the
application.

As of now, I have built my application for Oracle 9i and 10g
separately.

Is there a way where only one application works on 9i and 10g ??


Manoj


Reply With Quote
  #2  
Old   
Mathias Waack
 
Posts: n/a

Default Re: OCI application for Oracle 9i / 10g - 05-10-2007 , 07:02 AM






kvmanoj (AT) gmail (DOT) com wrote:

Quote:
On Linux, "libclntsh.so" is the symbolic link which points to
"libclntsh.so.9.0" on Oracle 9i
and "libclntsh.so.10.1" on Oracle 10g. These libraries are OCI
libraries.

So when I build my application using "-lclntsh" option on Oracle 9i, I
am not able to work deploying the application on 10g because my
application is depending on "libclntsh.so.9.0" on which I compiled the
application.

As of now, I have built my application for Oracle 9i and 10g
separately.

Is there a way where only one application works on 9i and 10g ??
An OCI app linked against 10g libs should work with 9i without any problems.

Mathias


Reply With Quote
  #3  
Old   
kvmanoj@gmail.com
 
Posts: n/a

Default Re: OCI application for Oracle 9i / 10g - 05-10-2007 , 08:35 AM



Hi,

I built my application using libclntsh.so.10.1 and its working fine on
Oracle 10g.

But when I run it on Oracle 9i, it says "error loading shared library
libclntsh.so.10.1" because Oracle 9i doesnot have that library.

Thanks,
Manoj


Mathias Waack wrote:
Quote:
kvmanoj (AT) gmail (DOT) com wrote:

On Linux, "libclntsh.so" is the symbolic link which points to
"libclntsh.so.9.0" on Oracle 9i
and "libclntsh.so.10.1" on Oracle 10g. These libraries are OCI
libraries.

So when I build my application using "-lclntsh" option on Oracle 9i, I
am not able to work deploying the application on 10g because my
application is depending on "libclntsh.so.9.0" on which I compiled the
application.

As of now, I have built my application for Oracle 9i and 10g
separately.

Is there a way where only one application works on 9i and 10g ??

An OCI app linked against 10g libs should work with 9i without any problems.

Mathias


Reply With Quote
  #4  
Old   
Mathias Waack
 
Posts: n/a

Default Re: OCI application for Oracle 9i / 10g - 05-11-2007 , 02:44 AM



kvmanoj (AT) gmail (DOT) com wrote:
Quote:
I built my application using libclntsh.so.10.1 and its working fine on
Oracle 10g.

But when I run it on Oracle 9i, it says "error loading shared library
libclntsh.so.10.1" because Oracle 9i doesnot have that library.
ok, there's a misunderstanding: you can run an app built in a 10g
environment against a 9i database. But of course you'll not be able to run
an app built in a 10g environment in a 9i environment. So you have to
either stick with two builds or you ship your app with its own environment.

Mathias



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.