Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

c libraries to access db2

 
Goto page 1, 2
   Database Help (Home) -> DB2 RSS
Next:  Error during login to SQL Server 2005  
Author Message
News

External


Since: Feb 23, 2008
Posts: 10



(Msg. 1) Posted: Sat Dec 06, 2008 12:27 am
Post subject: c libraries to access db2
Archived from groups: comp>databases>ibm-db2 (more info?)

HI ! could anyone point me to where can I find and install c libraries
for db2 8.2 under AIX 5.3 ? I means contents of sqllib/include and
sqllib/lib
regards

 >> Stay informed about: c libraries to access db2 
Back to top
Login to vote
Larry3

External


Since: Dec 09, 2003
Posts: 93



(Msg. 2) Posted: Sat Dec 06, 2008 2:25 pm
Post subject: Re: c libraries to access db2 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

News wrote:
> HI ! could anyone point me to where can I find and install c libraries
> for db2 8.2 under AIX 5.3 ? I means contents of sqllib/include and
> sqllib/lib
> regards
Which "C" libraries do you want? Generally, if one needs C libraries
under AIX, one must purchase them and order them in the form of the AIX
C Runtime Libraries:

http://www-01.ibm.com/software/sw-bycategory/subcategory/SW760.html

Larry E.

 >> Stay informed about: c libraries to access db2 
Back to top
Login to vote
News

External


Since: Feb 23, 2008
Posts: 10



(Msg. 3) Posted: Sat Dec 06, 2008 8:50 pm
Post subject: Re: c libraries to access db2 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 6 déc, 19:26, Larry wrote:
> News wrote:
> > HI ! could anyone point me to where can I find and install c libraries
> > fordb28.2 under AIX 5.3 ? I means contents of sqllib/include and
> > sqllib/lib
> > regards
>
> Which "C" libraries do you want?

"C" libraries to build c applications with embeded SQL to access DB2
under AIX
 >> Stay informed about: c libraries to access db2 
Back to top
Login to vote
News

External


Since: Feb 23, 2008
Posts: 10



(Msg. 4) Posted: Sun Dec 07, 2008 12:36 am
Post subject: Re: c libraries to access db2 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 7 déc, 07:23, "Mark A" wrote:
> > "News" wrote in message
> >
> > "C" libraries to build c applications with embeded SQL to accessDB2
> > under AIX
>
> If you want the libraries in the directories you mentioned earlier, you
> download the DB2 8.2 Try and Buy code for AIX and install the code.

what's DB2 8.2 code means ? any URL ?

we have DB2 8.2 entreprise edition installed with permanent license
but the directories sqllib/lib and include are empty
 >> Stay informed about: c libraries to access db2 
Back to top
Login to vote
News

External


Since: Feb 23, 2008
Posts: 10



(Msg. 5) Posted: Sun Dec 07, 2008 12:38 am
Post subject: Re: c libraries to access db2 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 7 déc, 06:27, Larry wrote:
> News wrote:
> > On 6 déc, 19:26, Larry wrote:
>
> >>News wrote:
>
> >>>HI ! could anyone point me to where can I find and install c libraries
> >>>fordb28.2 under AIX 5.3 ? I means contents of sqllib/include and
> >>>sqllib/lib
> >>>regards
>
> >>Which "C" libraries do you want?
>
> > "C" libraries to build c applications with embeded SQL to accessDB2
> > under AIX
>
> Again, the ones that I know about for AIX, one must purchase them and
> order them in the form of the AIX C Runtime Libraries:

we have XL C/C++ for AIX installed and then ? what about the contents
of sqllib ?

according to you it comes with c compiler and according to Mark it
comes with DB2 ?
 >> Stay informed about: c libraries to access db2 
Back to top
Login to vote
Mark A

External


Since: Aug 29, 2008
Posts: 52



(Msg. 6) Posted: Sun Dec 07, 2008 1:23 am
Post subject: Re: c libraries to access db2 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> "News" wrote in message
>
> "C" libraries to build c applications with embeded SQL to access DB2
> under AIX

If you want the libraries in the directories you mentioned earlier, you
download the DB2 8.2 Try and Buy code for AIX and install the code.

I assume you can find the exact same libraries in the DB2 8.3 for Windows
version, in which case just down load 8.2 FP17 Server code and install it
(license will expire in 90 days). You might be able to extract the files on
the windows version without installing the DB2 product.
 >> Stay informed about: c libraries to access db2 
Back to top
Login to vote
Larry3

External


Since: Dec 09, 2003
Posts: 93



(Msg. 7) Posted: Sun Dec 07, 2008 1:25 am
Post subject: Re: c libraries to access db2 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

News wrote:
> On 6 déc, 19:26, Larry wrote:
>
>>News wrote:
>>
>>>HI ! could anyone point me to where can I find and install c libraries
>>>fordb28.2 under AIX 5.3 ? I means contents of sqllib/include and
>>>sqllib/lib
>>>regards
>>
>>Which "C" libraries do you want?
>
>
> "C" libraries to build c applications with embeded SQL to access DB2
> under AIX
Again, the ones that I know about for AIX, one must purchase them and
order them in the form of the AIX C Runtime Libraries:

http://www-01.ibm.com/software/sw-bycategory/subcategory/SW760.html

You might also be able to find freeware "C" libraries somewhere, but
you'd need to check with DB2 support to find out if they would be
supported with DB2.

Larry E.
 >> Stay informed about: c libraries to access db2 
Back to top
Login to vote
News

External


Since: Feb 23, 2008
Posts: 10



(Msg. 8) Posted: Sun Dec 07, 2008 6:47 am
Post subject: Re: c libraries to access db2 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 7 déc, 15:41, "Mark A" wrote:
> "News" wrote in message
>
>
>
> > we haveDB28.2 entreprise edition installed with permanent license
> > but the directories sqllib/lib and include are empty
>
> Do you have an instance created (using db2icrt)? That is when the sqllib
> directory is created.
>
> The path is <instance-home>/sqllib/lib
>
> where <instance-home> is the home directory of the instance owner userid.
>
> If those directories are there for an existing instance, but are empty, I
> don't have an answer. Maybe someone deleted them? Try creating a new
> instance.

in fact, sqllib/include and sqllib/lib are symbolic link to
directories where software is installed. Include is almost empty (it
contains only asn.h since we use replication). lib contains a lot of
files but not the required ones to link c program..
 >> Stay informed about: c libraries to access db2 
Back to top
Login to vote
Mark A

External


Since: Aug 29, 2008
Posts: 52



(Msg. 9) Posted: Sun Dec 07, 2008 9:41 am
Post subject: Re: c libraries to access db2 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"News" wrote in message

> we have DB2 8.2 entreprise edition installed with permanent license
> but the directories sqllib/lib and include are empty

Do you have an instance created (using db2icrt)? That is when the sqllib
directory is created.

The path is <instance-home>/sqllib/lib

where <instance-home> is the home directory of the instance owner userid.

If those directories are there for an existing instance, but are empty, I
don't have an answer. Maybe someone deleted them? Try creating a new
instance.
 >> Stay informed about: c libraries to access db2 
Back to top
Login to vote
Mark A

External


Since: Aug 29, 2008
Posts: 52



(Msg. 10) Posted: Sun Dec 07, 2008 10:25 am
Post subject: Re: c libraries to access db2 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> "News" wrote in message
>
> in fact, sqllib/include and sqllib/lib are symbolic link to
> directories where software is installed. Include is almost empty (it
> contains only asn.h since we use replication). lib contains a lot of
> files but not the required ones to link c program..

I don't know what files you are talking about, but you need a C compiler
(not included with DB2) to compile C programs. I have compiled C programs
running against DB2 on Linux using GCC, but I don't know if that is
available for AIX. IBM has a C compiler for AIX, but you must purchase that.
 >> Stay informed about: c libraries to access db2 
Back to top
Login to vote
Larry3

External


Since: Dec 09, 2003
Posts: 93



(Msg. 11) Posted: Sun Dec 07, 2008 8:25 pm
Post subject: Re: c libraries to access db2 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

News wrote:
> On 7 déc, 06:27, Larry wrote:
>
>>News wrote:
>>
>>>On 6 déc, 19:26, Larry wrote:
>>
>>>>News wrote:
>>
>>>>>HI ! could anyone point me to where can I find and install c libraries
>>>>>fordb28.2 under AIX 5.3 ? I means contents of sqllib/include and
>>>>>sqllib/lib
>>>>>regards
>>
>>>>Which "C" libraries do you want?
>>
>>>"C" libraries to build c applications with embeded SQL to accessDB2
>>>under AIX
>>
>>Again, the ones that I know about for AIX, one must purchase them and
>>order them in the form of the AIX C Runtime Libraries:
>
>
> we have XL C/C++ for AIX installed and then ? what about the contents
> of sqllib ?
>
> according to you it comes with c compiler and according to Mark it
> comes with DB2 ?
Well, you said you wanted c libraries that would enable you to "build c
applications with embeded SQL to access DB2". You must have a C compiler
to do so.

Larry E.
 >> Stay informed about: c libraries to access db2 
Back to top
Login to vote
News

External


Since: Feb 23, 2008
Posts: 10



(Msg. 12) Posted: Mon Dec 08, 2008 6:05 am
Post subject: Re: c libraries to access db2 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 8 déc, 02:14, Larry wrote:
> News wrote:
> > On 7 déc, 06:27, Larry wrote:
>
> >>News wrote:
>
> >>>On 6 déc, 19:26, Larry wrote:
>
> >>>>News wrote:
>
> >>>>>HI ! could anyone point me to where can I find and install c libraries
> >>>>>fordb28.2 under AIX 5.3 ? I means contents of sqllib/include and
> >>>>>sqllib/lib
> >>>>>regards
>
> >>>>Which "C" libraries do you want?
>
> >>>"C" libraries to build c applications with embeded SQL to accessDB2
> >>>under AIX
>
> >>Again, the ones that I know about for AIX, one must purchase them and
> >>order them in the form of the AIX C Runtime Libraries:
>
> > we have XL C/C++ for AIX installed and then ? what about the contents
> > of sqllib ?
>
> > according to you it comes with c compiler and according to Mark it
> > comes withDB2?
>
> Well, you said you wanted c libraries that would enable you to "build c
> applications with embeded SQL to accessDB2". You must have a C compiler
> to do so.
>

sorry ! having c compiler it's not enough

for embedded SQL some include files must be there as sqladef.h and
sqlca.h.... These files are part of DB2 and not of the compiler

I cannot find these files !!!
 >> Stay informed about: c libraries to access db2 
Back to top
Login to vote
News

External


Since: Feb 23, 2008
Posts: 10



(Msg. 13) Posted: Mon Dec 08, 2008 6:19 am
Post subject: Re: c libraries to access db2 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 7 déc, 16:25, "Mark A" wrote:
> > "News" wrote in message
> >
> > in fact, sqllib/include and sqllib/lib are symbolic link to
> > directories where software is installed. Include is almost empty (it
> > contains only asn.h since we use replication). lib contains a lot of
> > files but not the required ones to link c program..
>
> I don't know what files you are talking about

after precompiling sqc file usinf db2 prep ..

there's

#include "sqladef.h"

/*
EXEC SQL INCLUDE SQLCA;
*/

is translatled

/* SQL Communication Area - SQLCA - structures and constants */
#include "sqlca.h"

and so on ..

I need theses include .h files

and I didn't reach linking to know what lib are missing
 >> Stay informed about: c libraries to access db2 
Back to top
Login to vote
News

External


Since: Feb 23, 2008
Posts: 10



(Msg. 14) Posted: Mon Dec 08, 2008 7:28 am
Post subject: Re: c libraries to access db2 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 8 déc, 15:19, News wrote:
> On 7 déc, 16:25, "Mark A" wrote:
>
> > > "News" wrote in message
> > >
> > > in fact, sqllib/include and sqllib/lib are symbolic link to
> > > directories where software is installed. Include is almost empty (it
> > > contains only asn.h since we use replication). lib contains a lot of
> > > files but not the required ones to link c program..
>
> > I don't know what files you are talking about
>
> after precompiling sqc file usinfdb2prep ..
>
> there's
>
> #include "sqladef.h"
>
> /*
> EXEC SQL INCLUDE SQLCA;
> */
>
> is translatled
>
> /* SQL Communication Area - SQLCA - structures and constants */
> #include "sqlca.h"
>
> and so on ..
>
> I need theses include .h files
>
> and I didn't reach linking to know what lib are missing

finally i found out the missing files part of "Application Development
Client" that needs to be downloaded and installed from here

http://www-01.ibm.com/support/docview.wss?rs=71&uid=swg21256046
 >> Stay informed about: c libraries to access db2 
Back to top
Login to vote
Mark A

External


Since: Aug 29, 2008
Posts: 52



(Msg. 15) Posted: Mon Dec 08, 2008 10:26 am
Post subject: Re: c libraries to access db2 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"News" wrote in message

> sorry ! having c compiler it's not enough
>
> for embedded SQL some include files must be there as sqladef.h and
> sqlca.h.... These files are part of DB2 and not of the compiler
>
> I cannot find these files !!!

I found the include files on a DB2 V9.5 FP 2 Linux system that I installed
at ../sqllib/include (within home directory of instance) with symbolic link
to /opt/ibm/db2/V9.5/include (this would be slightly different for AIX).

But on another Linux system (DB2 V9.5 FP 2 installed by our system
administrator) there is only the asn.h file in that directory.

I also found them on a DB2 Express-C for Windows systems that I have running
on my PC, also at ..\sqllib\include.

It could be that you need the Application Development Client installed along
with the server, I am not sure. If you download DB2 8.2 Fixpack 17 for
Windows, you should be able to extract them out of there (or you may have to
do an DB2 install on a PC to get them).
 >> Stay informed about: c libraries to access db2 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Force different access plan? - Some background (sorry for the length of this post): I have a query in a production environment that is performing badly. It somehow slipped through our performance test, without anyone noticing. If I run the query in our test env. I can repeat the bad..

Access plan question - Hi, When I explain the following SQL, the optimizer conjures up two columns $C0 and $C1. It appears that they might refer to min and max values for the range of values returned by the sub-select. Is that correct? From the access plan graph it appear...

OSERR : 5 "Access is denied." - I get this message in the db2diag.log. 2008-04-01-10.41.37.174000+120 E13321H539 LEVEL: Error (OS) PID : 3528 TID : 144 PROC : db2syscs.exe INSTANCE: DB2 NODE : 000 DB : XDKD01 APPHDL :..

How to access DB2 using DataSource? - Hello, I wrote a program that is working OK which access DB2 using the following code: String w_conn = "jdbc:db2:DB2MAIN; Class.forName("COM.ibm.db2.jdbc.app.DB2Driver"); Connection db2Conn = DriverManager.getConnection(w_conn,w_userid,...

Access Plan - Operator question - Hi: First, thank you for looking into this posting... Running UDB V8 FP11. The question is around the below query branch. I would like to know what it means and if there are ways to avoid it. What does the operations above HSJOIN do? HSJOIN --> SO...
   Database Help (Home) -> DB2 All times are: Pacific Time (US & Canada)
Goto page 1, 2
Page 1 of 2

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]