Reporting Update, Delete and Insert Transactions in Certain Tables as SQL Scripts.

Hi Experts,

I need a Log table in which update, delete and insert transactions in certain  tables
will be  written as SQL scripts.     So, the dml  SQl commands which applied  in these tables  will be reported.   How can I do that ?


orcun_turkecAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

slightwv (䄆 Netminder) Commented:
Have you looked at auditing and log miner?

If you want to write it yourself I thing you will need triggers.
0
orcun_turkecAuthor Commented:
I haven' t looked at auditing  or log-miner  Slightwv.
Could you send me   some links or  info about auditing  ?  
0
orcun_turkecAuthor Commented:
And If I try to make it with triggers, how will the SQLs that make the dml changes  be  formed ?
I think I must use this way because I don' t have the sys user of the database.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

slightwv (䄆 Netminder) Commented:
On mobile and cannot find the links.  The online docs have all the info if you search the docs.

With triggers you just build the DML with the 'when updating', 'when inserting' and when deleting' clauses with the :old and :new column values based on what you want to do.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
orcun_turkecAuthor Commented:
Thank you
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.