C++ connect with oracle on linux - Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Webmaster Tech > Programming > Other Programming - Perl, C++, Java, ASP, .NET Development

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 03-25-2011, 02:56 AM   #1 (permalink)
Member
 
Join Date: Sep 2010
Posts: 228
Default C++ connect with oracle on linux

Hi,

I want to connect my c++ code (running on Linux platform) to Oracle database which exist on another Remote Linux machine working with Netbeans IDE 6.9.1 (GCC compiler 4.1.2) please help me how i can connect my c++ code to Oarcle existing on remote machine

Thanks And Regards
Lafaso870 is offline   Reply With Quote
Sponsored Links
Old 04-25-2011, 02:25 AM   #2 (permalink)
Member
 
Join Date: Apr 2011
Posts: 136
Default Re: C++ connect with oracle on linux

To connect to Oracle from C++ you have to use OCI API.

Euflexxa | Buy Plavix online | Buy Perlane | Company Fuel Cards
sweetsianjali is offline   Reply With Quote
Old 04-25-2011, 02:27 AM   #3 (permalink)
Member
 
Join Date: Apr 2011
Posts: 136
Default Re: C++ connect with oracle on linux

try
Code:

find /opt/oracle/product/9.2.0 -name occi.h

Use the path you find to the file like this:
Code:

$ g++ -L/opt/oracle/product/9.2.0/lib \
-L/opt/oracle/product/9.2.0/rdbms/lib \
-I opt/oracle/product/9.2.0<path you found>
-o test.o -c test.cpp

Canada Drugs | Canada Drugs | Buy Orthovisc|
sweetsianjali is offline   Reply With Quote
Old 05-12-2011, 01:54 AM   #4 (permalink)
Junior Member
 
Join Date: Apr 2011
Posts: 57
Default Re: C++ connect with oracle on linux

Quote:
Originally Posted by sweetsianjali View Post
try
Code:

find /opt/oracle/product/9.2.0 -name occi.h

Use the path you find to the file like this:
Code:

$ g++ -L/opt/oracle/product/9.2.0/lib \
-L/opt/oracle/product/9.2.0/rdbms/lib \
-I opt/oracle/product/9.2.0<path you found>
-o test.o -c test.cpp

Canada Drugs | Canada Drugs | Buy Orthovisc|
thank you man
pread is offline   Reply With Quote
Old 05-27-2011, 07:09 AM   #5 (permalink)
Junior Member
 
Join Date: May 2011
Location: msdnguide
Posts: 20
Default Re: C++ connect with oracle on linux

use Oracle oci libraries to do the connection. They ship both 32 and 64 bit libraries
msdnguide is offline   Reply With Quote
Old 06-08-2011, 07:08 AM   #6 (permalink)
Junior Member
 
Join Date: Jun 2011
Posts: 5
Default Re: C++ connect with oracle on linux

I don't have any idea regarding these topic.
rebena is offline   Reply With Quote
Old 07-07-2011, 01:00 AM   #7 (permalink)
t0l
Junior Member
 
Join Date: Jul 2011
Location: Beijing
Posts: 31
Default Re: C++ connect with oracle on linux

sweetsianjali has great answer.
t0l is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 07:11 PM.


Powered by vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
Webmaster Forums
Web Hosting | Chicago Web Hosting | Web Hosting