Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 09:00 AM
Hans-Michael Rupp
Guest
 
Posts: n/a
Default Monitoring changes in a database

Hello!

I need to monitor a db2 database from a java application. Everytime any
other application changes a table in the database an event should be
fired containing information which table an which dataset has been
changed/inserted/deleted. I am not allowed to use triggers.
Is there anyway to accomplish this? If yes, where can I find a primer?

Many thanks,

Hans

  #2  
Old November 12th, 2005, 09:00 AM
Amit
Guest
 
Posts: n/a
Default Re: Monitoring changes in a database

If your Db2 database is on windows/unix you can use event monitors.

Hans-Michael Rupp <hans.rupp@danet.de> wrote in message news:<2m9ps8Fkg66tU1@uni-berlin.de>...[color=blue]
> Hello!
>
> I need to monitor a db2 database from a java application. Everytime any
> other application changes a table in the database an event should be
> fired containing information which table an which dataset has been
> changed/inserted/deleted. I am not allowed to use triggers.
> Is there anyway to accomplish this? If yes, where can I find a primer?
>
> Many thanks,
>
> Hans[/color]
  #3  
Old November 12th, 2005, 09:00 AM
klh
Guest
 
Posts: n/a
Default Re: Monitoring changes in a database

Hans-Michael Rupp <hans.rupp@danet.de> wrote in message news:<2m9ps8Fkg66tU1@uni-berlin.de>...[color=blue]
> Hello!
>
> I need to monitor a db2 database from a java application. Everytime any
> other application changes a table in the database an event should be
> fired containing information which table an which dataset has been
> changed/inserted/deleted. I am not allowed to use triggers.
> Is there anyway to accomplish this? If yes, where can I find a primer?
>
> Many thanks,
>
> Hans[/color]

Hans,

You don't say which version of DB2 you are on, or what platform. Your
options will vary based upon that information. If you are on a
Windows\Unix\Linux platform running DB2 UDB, then you should have
db2audit available to you. It logs all requests hitting the database.
If an sql command comes across that updates 1000 rows you will only
see the sql command itself, not the 1000 changed rows. This may or
may not be what you need.

HTH,
klh
 

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.