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 > java get/set monitor switches

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-19-10, 21:45
peperino666 peperino666 is offline
Registered User
 
Join Date: Feb 2010
Posts: 3
Arrow java get/set monitor switches

Hello All,

I'm a DB2 newbie trying to write a litle java program.

But i must get and set some monitor switches before doing some things.

I have seen that C API has support for doing this, but i was unable to find it in java, somebody has at least a clue ?


Regards,
Leonardo
Reply With Quote
  #2 (permalink)  
Old 02-22-10, 08:33
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Try using the ADMIN_CMD stored procedure:

IBM DB2 9.5 Information Center for Linux, UNIX, and Windows

Andy
Reply With Quote
  #3 (permalink)  
Old 02-22-10, 09:23
peperino666 peperino666 is offline
Registered User
 
Join Date: Feb 2010
Posts: 3
Thank you very much for your response ARWinner.
But i guess this is only for V9.5.
I am administering V7.X, 8.x and 9.x

So, im wondering to execute a cmd file inside command window / shell (using windows and unix)

Let me know if you know other method.

Thanks so much !
Leonardo
Reply With Quote
  #4 (permalink)  
Old 02-22-10, 11:43
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
The only other way would be to use JNDI. You will have to research that on your own.

Andy
Reply With Quote
  #5 (permalink)  
Old 02-24-10, 18:17
peperino666 peperino666 is offline
Registered User
 
Join Date: Feb 2010
Posts: 3
Ok, but JNDI sounds more accurated to work with ldap, on so on.

I will register myself in a java community and will ask about to embed C code inside Java Platform.

With C API its all possible .


Well, thanks for all your hel.
Regards
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