Debug logs in the database
Create the table:
1 2 create table TMP_LOG (HORA date, ENTRADA varchar(4000));
Write the things I need to the table:
1 2 INSERT INTO TMP_LOG (HORA, ENTRADA) VALUES(SYSDATE, 3 'V_NOM_DESTINATARIO1: '||V_NOM_DESTINATARIO1||', V_DOM_DESTINATARIO1: '||V_DOM_DESTINATARIO1|| 4 ', P_NOM_DESTINATARIO_2: '||P_NOM_DESTINATARIO_2||', P_DOM_DESTINATARIO_2: '||P_DOM_DESTINATARIO_2|| 5 ', B_DESTINATARIO: '||B_DESTINATARIO|| 6 ', V_NOM_DESTINATARIO2: '||V_NOM_DESTINATARIO2||', V_DOM_DESTINATARIO2: '||V_DOM_DESTINATARIO2); 7
Consult the things written:
1 2 select * from tmp_log order by hora desc;
Dont forget to drop it at the end:
1 2 drop table TMP_LOG;