Hi,
When I am connecting Main frame DB through JDBC Adapter, i require basic notification …but in that configured operation i can`t find the “WHERE” clause which i needed…
Tell me how to come over the situation if i have to use JDBC only
I hv switched to ODBC which provides the solution
Regards
Deepak Maheshwari
hi,
For JDBC Adapter Basic Notification, we need to do like following,
- Insert New Configured Operation, Select Basic Notification.
- Source Table : Ex. JDBCTEST1.
Notification Table : Ex. WMB_JDBCTEST1.
In the Tables Tab, Select the Notification Table Name(WMB_JDBCTEST1)
- In the SELECT Tab, Select the required fields, mentioned the Notification Priority and Check the Delete Selected Records.
- In the Initialization Tab, Type the following triggers
For CREATE Statements,
-
CREATE TABLE WMB_JDBCTEST1(TNO NUMBER(2),TNAME VARCHAR2(30),WM_ROWID NUMBER(9) PRIMARY KEY)
-
CREATE SEQUENCE WMB_JDBCTEST1_SEQ
-
CREATE TRIGGER WM_BasicNotificationTrigger AFTER INSERT OR UPDATE ON JDBCTEST1 FOR EACH ROW WHEN ( new.TSTATUS = ‘0’) BEGIN INSERT INTO WMB_jdbctest1 (TNO, TNAME, wm_rowid) VALUES (:new.TNO, :new.TNAME, wmb_jdbctest1_seq.NEXTVAL); END;
For Drop Statements,
- drop trigger wm_basicnotificationtrigger
- drop sequence wmb_jdbctest1_seq
- drop table wmb_jdbctest1
Thanks,
Sreeni