Unix Technical Forum

PRO C for two database

This is a discussion on PRO C for two database within the Oracle Miscellaneous forums, part of the Oracle Database category; --> Hi , I need to connect to two databases(Oracle 8.0.5 and 10g) . What should be the $ORACLE_HOME for ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 10:16 AM
abhi147@gmail.com
 
Posts: n/a
Default PRO C for two database

Hi ,

I need to connect to two databases(Oracle 8.0.5 and 10g) . What
should be the $ORACLE_HOME for such a case ?

Thanks!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 10:16 AM
Sybrand Bakker
 
Posts: n/a
Default Re: PRO C for two database

On 31 Aug 2006 22:23:06 -0700, abhi147@gmail.com wrote:

>Hi ,
>
> I need to connect to two databases(Oracle 8.0.5 and 10g) . What
>should be the $ORACLE_HOME for such a case ?
>
>Thanks!


AFAIK it's not going to work, because 8.0.5 won't communicate with 10g
and vice versa.
Too many major releases in between.

--
Sybrand Bakker, Senior Oracle DBA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 10:18 AM
abhi147@gmail.com
 
Posts: n/a
Default Re: PRO C for two database


Sybrand Bakker wrote:
> On 31 Aug 2006 22:23:06 -0700, abhi147@gmail.com wrote:
>
> >Hi ,
> >
> > I need to connect to two databases(Oracle 8.0.5 and 10g) . What
> >should be the $ORACLE_HOME for such a case ?
> >
> >Thanks!

>
> AFAIK it's not going to work, because 8.0.5 won't communicate with 10g
> and vice versa.
> Too many major releases in between.
>
> --
> Sybrand Bakker, Senior Oracle DBA


Hi ,
Actually it's okay if it doesn't communicate . But can I have
some serial connections i.e., connect to 10g , get the data , close the
10g connection , then connect to 8 and execute some stored procedures .


In tha case , what should my Environment variables link $ORACLE_HOME
and $LD_LIBRARY_PATH should be ?

Thanks !

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-08-2008, 10:19 AM
Ed Prochak
 
Posts: n/a
Default Re: PRO C for two database


abhi147@gmail.com wrote:
> Sybrand Bakker wrote:
> > On 31 Aug 2006 22:23:06 -0700, abhi147@gmail.com wrote:
> >
> > >Hi ,
> > >
> > > I need to connect to two databases(Oracle 8.0.5 and 10g) . What
> > >should be the $ORACLE_HOME for such a case ?
> > >
> > >Thanks!

> >
> > AFAIK it's not going to work, because 8.0.5 won't communicate with 10g
> > and vice versa.
> > Too many major releases in between.
> >
> > --
> > Sybrand Bakker, Senior Oracle DBA

>
> Hi ,
> Actually it's okay if it doesn't communicate . But can I have
> some serial connections i.e., connect to 10g , get the data , close the
> 10g connection , then connect to 8 and execute some stored procedures .
>
>
> In tha case , what should my Environment variables link $ORACLE_HOME
> and $LD_LIBRARY_PATH should be ?
>
> Thanks !


Easier would be two programs:
one compiled for 8i
one compiled for 10g

then pipline the data between them. (or shared memory, or text files,
whatever)
Anyway, no need to keep opening/closing ORACLE connections and no funky
build process.

HTH,
Ed

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-08-2008, 10:19 AM
Brian Peasland
 
Posts: n/a
Default Re: PRO C for two database

abhi147@gmail.com wrote:
> Sybrand Bakker wrote:
>> On 31 Aug 2006 22:23:06 -0700, abhi147@gmail.com wrote:
>>
>>> Hi ,
>>>
>>> I need to connect to two databases(Oracle 8.0.5 and 10g) . What
>>> should be the $ORACLE_HOME for such a case ?
>>>
>>> Thanks!

>> AFAIK it's not going to work, because 8.0.5 won't communicate with 10g
>> and vice versa.
>> Too many major releases in between.
>>
>> --
>> Sybrand Bakker, Senior Oracle DBA

>
> Hi ,
> Actually it's okay if it doesn't communicate . But can I have
> some serial connections i.e., connect to 10g , get the data , close the
> 10g connection , then connect to 8 and execute some stored procedures .
>
>
> In tha case , what should my Environment variables link $ORACLE_HOME
> and $LD_LIBRARY_PATH should be ?
>
> Thanks !
>


The problem comes in when trying to compile your Pro*C app. You can
compile it with Oracle 8 libraries or with Oracle 10g libraries, but not
both. And it is the libraries that give you the network connectivity to
the database. You can test it out compiling the app under one version or
the other, but I would suspect that you will see errors when connecting
to the *other* database version.

Any reason why you cannot upgrade the Oracle 8 db to at least 9i?

HTH,
Brian

--
================================================== =================

Brian Peasland
dba@nospam.peasland.net
http://www.peasland.net

Remove the "nospam." from the email address to email me.


"I can give it to you cheap, quick, and good.
Now pick two out of the three" - Unknown
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-08-2008, 10:19 AM
Frank van Bortel
 
Posts: n/a
Default Re: PRO C for two database

Brian Peasland schreef:
> abhi147@gmail.com wrote:
>> Sybrand Bakker wrote:
>>> On 31 Aug 2006 22:23:06 -0700, abhi147@gmail.com wrote:
>>>
>>>> Hi ,
>>>>
>>>> I need to connect to two databases(Oracle 8.0.5 and 10g) . What
>>>> should be the $ORACLE_HOME for such a case ?
>>>>
>>>> Thanks!
>>> AFAIK it's not going to work, because 8.0.5 won't communicate with 10g
>>> and vice versa.
>>> Too many major releases in between.
>>>
>>> --
>>> Sybrand Bakker, Senior Oracle DBA

>>
>> Hi ,
>> Actually it's okay if it doesn't communicate . But can I have
>> some serial connections i.e., connect to 10g , get the data , close the
>> 10g connection , then connect to 8 and execute some stored procedures .
>>
>>
>> In tha case , what should my Environment variables link $ORACLE_HOME
>> and $LD_LIBRARY_PATH should be ?
>>
>> Thanks !
>>

>
> The problem comes in when trying to compile your Pro*C app. You can
> compile it with Oracle 8 libraries or with Oracle 10g libraries, but not
> both. And it is the libraries that give you the network connectivity to
> the database. You can test it out compiling the app under one version or
> the other, but I would suspect that you will see errors when connecting
> to the *other* database version.
>
> Any reason why you cannot upgrade the Oracle 8 db to at least 9i?
>
> HTH,
> Brian
>

Would compiling against 9 be an option?
Should connect to 8, as well as 10

--
Regards,
Frank van Bortel

Top-posting is one way to shut me up...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:03 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com