CREATE TABLE xx_logging_table(seq_no NUMBER(15), MESSAGE VARCHAR2(500));
CREATE SEQUENCE apps.xx_logging_table_s
INCREMENT BY 1
START WITH 1
MAXVALUE 1000000
NOCACHE
CYCLE;
CREATE OR REPLACE PROCEDURE apps.xx_logging_proc (p_message VARCHAR2)
AS
PRAGMA AUTONOMOUS_TRANSACTION;
BEGIN
INSERT INTO xx_logging_table
VALUES (apps.xx_logging_table_s.NEXTVAL, p_message);
COMMIT;
END xx_logging_proc;
commit;
DECLARE
BEGIN
FOR i IN 1 .. 10
LOOP
apps.xx_logging_proc('VALUE' || '-' || i);
END LOOP;
END;
select * from xx_logging_table;
truncate table xx_logging_table;
Logging in Personalization:
fnd_log.string (fnd_log.LEVEL_STATEMENT,
'XX_ENFORCE_EMAILADDR', -- module
v_message --message to be inserted in fnd_log_messages
);
No comments:
Post a Comment