1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[SQL] log insertions/updates/deletions in oracle database

Discussão em 'Outras Linguagens' iniciado por Stack, Novembro 8, 2024 às 08:12.

  1. Stack

    Stack Membro Participativo

    To understand an application it would be quite helpful if every database change could be logged somehow. Then you can execute an action on the frontend and see what happens in the database. (I only care about the last 5 minutes, or so, but more would not hurt.) What possibilities exist for that?

    I know it is possible to configure the JDBC driver to log the executed statements, but it logs rather more than I want to see (I don't care about queries, for instance) and is mixed wildly into your logfiles. :-/

    Another thing I can think of is to create triggers for each table that write data on the changes into a logging-table. Did anyone manage to do that? Especially creating a script that creates those triggers for a given set of tables?

    Continue reading...

Compartilhe esta Página