The CREATE OR REPLACE the TRIGGER TRIGGER_TU_CUSTOME_INFO
AFTER the INSERT or UPDATE of the name, nation_user, idno, idtype, VALID_IDCARD
ON DBCUST. TU_CUSTOME_INFO
FOR EACH ROW
The BEGIN
IF updating THEN
Insert into antiml. AML_CUSTINFO_CHANGE (CUST_ID, CUST_TYPE) values (: new, CUST_ID, 'cust_update');
END the IF;
IF inserting THEN
Insert into antiml. AML_CUSTINFO_CHANGE (CUST_ID, CUST_TYPE) values (: new, CUST_ID, 'cust_add');
END the IF;
The EXCEPTION
The WHEN OTHERS THEN
DBMS_OUTPUT. PUT_LINE (' TT_BASE_MCHINFO ANTIML TRIGGER! ');
END;
Now because the table1 changes significantly, the trigger can't timing, all want to use a job implementation timing to execute a stored procedure, please change the stored procedure how to write???????
Hope everybody to give directions
CodePudding user response:
Probably use materialized log + + job regularly execute stored proceduresCodePudding user response:
The problem is the stored procedure can't write, for example is givenCodePudding user response:
This is a bit like you log tabletrigger processing is a good wayIn addition, also can be in the front desk program processing