Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 07:25 AM
Raquel
Guest
 
Posts: n/a
Default DB2 APIs

A very basic question to all the esteemed listers. I am going through
UDB manual. At the end of each chapter, "DB2 APIs" are listed. For
example a multi-page description of the DB2 API "db2Restore" is
provided at the end of the chapter on 'Database Restore'.

Now, what are these APIs and how can I use them?

TIA
Raquel.
  #2  
Old November 12th, 2005, 07:25 AM
Mark A
Guest
 
Posts: n/a
Default Re: DB2 APIs

"Raquel" <raquel_rodriguezus@yahoo.com> wrote in message
news:9a73b58d.0405132330.b0905a5@posting.google.co m...[color=blue]
> A very basic question to all the esteemed listers. I am going through
> UDB manual. At the end of each chapter, "DB2 APIs" are listed. For
> example a multi-page description of the DB2 API "db2Restore" is
> provided at the end of the chapter on 'Database Restore'.
>
> Now, what are these APIs and how can I use them?
>
> TIA
> Raquel.[/color]

Most DBA's don't need them, they just use the DB2 commands in a script.
Someone who was writing software like the Control Center, might use them to
invoke a DB2 command from inside a C or Java program.


  #3  
Old November 12th, 2005, 07:25 AM
Hildo Biersma
Guest
 
Posts: n/a
Default Re: DB2 APIs

In article <9a73b58d.0405132330.b0905a5@posting.google.com> ,
Raquel <raquel_rodriguezus@yahoo.com> wrote:[color=blue]
>A very basic question to all the esteemed listers. I am going through
>UDB manual. At the end of each chapter, "DB2 APIs" are listed. For
>example a multi-page description of the DB2 API "db2Restore" is
>provided at the end of the chapter on 'Database Restore'.
>
>Now, what are these APIs and how can I use them?[/color]

The DB2 APIs are documented in a separate manual (Administrative API
Reference) and generally require you to write a C/C++ program to use
them. They are the low-level primitives in terms of which most of the
DB2 utilities are implemented.

Using the admin apis, you can efficiently perform operations that would
be less efficient (but easier) using the DB2 command-line processor,
e.g. get a snapshot, list active applications, query tablespace
information, etc.

I would not recommend using the API to perform database restores, as I
expect the existing command-line utility performs a lot of additional
argument checking before invoking the low-level admin API call.
  #4  
Old November 12th, 2005, 07:25 AM
Raquel
Guest
 
Posts: n/a
Default Re: DB2 APIs

Thank you Mark and Hildo. This makes things clearer for me.

Thanks.
Raquel.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,248 network members.