If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 Administrative APIs

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-01-04, 13:47
ajayp ajayp is offline
Registered User
 
Join Date: Mar 2004
Posts: 2
DB2 Administrative APIs

I am new to DB2 and I am trying to implement a tool using DB2 Administrative (C API) API.My requirement is for the tool to query the DB2 servers to get the list of databases in each of the servers.I looked at API's like sqleatin(Attach),sqledosd (open database directory scan) etc: which I believe will give me the necessary info.

My question is :

1.Can I execute the Administrative API's remotely ?? Can I execute this tool (that uses the admin API) in a box that does not have a DB2 installation ??

I am asking this since none of the API's take an IP address / Tcp port as argument.Instead they seem to be using the value of the DB2INSTANCE env variable to identify the instance.

Any help will be highly appreciated....
Reply With Quote
  #2 (permalink)  
Old 03-01-04, 14:11
chuzhoi chuzhoi is offline
Registered User
 
Join Date: Dec 2002
Posts: 134
Re: DB2 Administrative APIs

No you can not execute admin API remotely and no, you can not execute api without db2 client.

If theory the functionality you need (list databases from remote instance) can be achieved via administarive instance (it must be up on a remote box).
I'm not sure if the access API to admin instance is documented.
Reply With Quote
  #3 (permalink)  
Old 03-01-04, 15:19
ajayp ajayp is offline
Registered User
 
Join Date: Mar 2004
Posts: 2
Thanks for your help.I do not have a problem having db2 client on my machine (I guess in this case db2api.lib).

I was just wondering how the DB2 UI tools communicate with the servers ?? They seem to be able to communicate remotely.

By any chance,Does anyone know what API they use ?? Probably that is what I should look for ...

Thanks
Ajay
Reply With Quote
  #4 (permalink)  
Old 03-02-04, 05:12
disaster disaster is offline
Registered User
 
Join Date: Feb 2004
Posts: 24
Hi,

we are using the control center for os/390 to administrate db2 on os/390 or z/os from a remote client.

regards

marc gaines

Quote:
Originally posted by ajayp
Thanks for your help.I do not have a problem having db2 client on my machine (I guess in this case db2api.lib).

I was just wondering how the DB2 UI tools communicate with the servers ?? They seem to be able to communicate remotely.

By any chance,Does anyone know what API they use ?? Probably that is what I should look for ...

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