In article <9a*************************@posting.google.com> ,
Raquel <ra****************@yahoo.com> wrote:
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?
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.