Data Change Alert

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
alicinar
Posts: 13
Joined: Fri 03 Oct 2008 10:06

Data Change Alert

Post by alicinar » Fri 27 Apr 2012 14:28

My table two user operate on the same record.
The first user is reading.The second user is reading,but second user is data changing.
How to alert first user when the update?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Data Change Alert

Post by AlexP » Fri 27 Apr 2012 15:21

hello,

To implement notification of users about changes in tables, you can use the TOraChangeNotification components. The sample of using this component is in the demo projects folder.

alicinar
Posts: 13
Joined: Fri 03 Oct 2008 10:06

Re: Data Change Alert

Post by alicinar » Mon 30 Apr 2012 07:46

Demo project in ChangeNotification is exception.
Exception message:Change notification is not support in Direct mode.

Do not have any other way?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: Data Change Alert

Post by AlexP » Mon 30 Apr 2012 10:40

hello,

As we use the OCI callback function for implementation of notification, this functionality is unavailable in Direct mode. You can implement the notification gear by means of the PL/SQL stored procedure. You can find more details at the Oracle site http://docs.oracle.com/cd/B19306_01/appdev.102/b14251/adfns_dcn.htm

alicinar
Posts: 13
Joined: Fri 03 Oct 2008 10:06

Re: Data Change Alert

Post by alicinar » Mon 30 Apr 2012 10:45

thanks alex.

Post Reply