niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Oracle » Tools
Common pro*c code for both Oracle and non-Oracle environments
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
Author Message
Ed Prochak
*nix forums Guru Wannabe


Joined: 17 Mar 2005
Posts: 271

PostPosted: Tue Apr 12, 2005 2:31 pm    Post subject: Re: Common pro*c code for both Oracle and non-Oracle environments Reply with quote

I'm just curious, but what sort of business requirements cause you to
build code you will not use?

Ed
Back to top
Golan
*nix forums beginner


Joined: 05 Apr 2005
Posts: 9

PostPosted: Thu Apr 07, 2005 2:45 am    Post subject: Re: Common pro*c code for both Oracle and non-Oracle environments Reply with quote

Well the pro*c does required an Oracle clinet installation, but we
intend to compile the code on a client which has this installation,
but to run it not necessarily on the same client.
Regarding checking DB connection, I'll adapt this idea.

Thanks
Back to top
Rauf Sarwar
*nix forums Guru


Joined: 03 May 2005
Posts: 353

PostPosted: Wed Apr 06, 2005 3:35 pm    Post subject: Re: Common pro*c code for both Oracle and non-Oracle environments Reply with quote

Mark C. Stock wrote:
Quote:
"Golan" <bcg008@mot.com> wrote in message
news:35e0ae97.0504052237.184b53ec@posting.google.com...
Hi,
I have a PRO*C code that may run also on PCs where Oracle is not
installed. In this case ofcourse the code that read & write from
the
database should be ignored.
What should I specify in the code so the oricedures with the
database
access will be ignored in case Oracle is not installed?

Thanks

your initial attempt to connect to the database will fail -- just
record
that fact in the variable of your choice, and check that variable in
your
code before attempting any database access

++ mcs

Doesn't Pro*C require Oracle client to be installed for remote
connections (atleast middleware SQL*Net/Net8/Net9 etc at minimum)?. If
so, then how could he launch the process without required Oracle client
dll's installed before even attempting a connection?

Regards
/Rauf
Back to top
Mark C. Stock
*nix forums Guru


Joined: 05 May 2005
Posts: 730

PostPosted: Wed Apr 06, 2005 10:13 am    Post subject: Re: Common pro*c code for both Oracle and non-Oracle environments Reply with quote

"Golan" <bcg008@mot.com> wrote in message
news:35e0ae97.0504052237.184b53ec@posting.google.com...
Quote:
Hi,
I have a PRO*C code that may run also on PCs where Oracle is not
installed. In this case ofcourse the code that read & write from the
database should be ignored.
What should I specify in the code so the oricedures with the database
access will be ignored in case Oracle is not installed?

Thanks

your initial attempt to connect to the database will fail -- just record
that fact in the variable of your choice, and check that variable in your
code before attempting any database access

++ mcs
Back to top
Golan
*nix forums beginner


Joined: 05 Apr 2005
Posts: 9

PostPosted: Wed Apr 06, 2005 4:37 am    Post subject: Common pro*c code for both Oracle and non-Oracle environments Reply with quote

Hi,
I have a PRO*C code that may run also on PCs where Oracle is not
installed. In this case ofcourse the code that read & write from the
database should be ignored.
What should I specify in the code so the oricedures with the database
access will be ignored in case Oracle is not installed?

Thanks
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [5 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 1:05 am | All times are GMT
navigation Forum index » Databases » Oracle » Tools
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Move Oracle 10g database to another location Selt Server 0 Fri Jul 21, 2006 2:14 pm
No new posts Oracle runtime Spitfire Server 0 Fri Jul 21, 2006 1:18 pm
No new posts Oracle Text Score Computation jatinder.1975@gmail.com Server 0 Fri Jul 21, 2006 1:00 pm
No new posts Where is this code not freeing memory ? jithoosin C++ 2 Fri Jul 21, 2006 9:39 am
No new posts Where is this code not freeing memory ? jithoosin C++ 1 Fri Jul 21, 2006 9:27 am

Pacotes Reveillon Salvador | Loans | Credit Counseling | Mortgages | Babb Fest
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2083s ][ Queries: 20 (0.1267s) ][ GZIP on - Debug on ]