Comparing two tables for differences



In a convoluted way, I started a topic about trying to find the
differences between two tables. I wanted to know the old and new
values for the particular fields that were changed from one version of
the table to another. Just wanted to pass along the news that it can
be done. Another DBA pointed me to the following link, which turned
out to be exactly what I needed...
http://www.oracle.com/technology/oramag/code/tips2004/012504.html.
Thanks to Sanjay Ray for developing this script and Oracle for sharing
it. Saved me a lot of headaches.

Just as an example of my problem... I want to compare yesterday's
version of a table to today's version of the same table and I want to
produce an "audit" of the changes that were made. I need to see the
old and new values for any updates, as well as the key values used to
identify the record. I also want to see any key values that were added
or deleted since yesterday. While the script example at the link above
needed a little tweaking to meet my specific needs, the logic used in
the script was extremely useful. Hpoe this helps someone else.

Mike

.



Relevant Pages

  • Re: No one could logon to productio database for a while
    ... Puget Sound Oracle Users Group ... code for script is quite simple, it does a v$sql to find all sql ... The script ask for the hash value of the SQL statement. ... col "SLAVE SQL" format A95 WORD_WRAP ...
    (comp.databases.oracle.server)
  • [Fwd: Re: failed: ERROR OCIEnvNlsCreate. Check (everything)]
    ... So, DBI is ok, and most of Apache is also ok. ... The lone problem is ORACLE 10 access. ... the script accesses Oracle fine from a command line. ... but they should differ between CGI and command line mode. ...
    (perl.dbi.users)
  • RE: Problems with external password store.
    ... I am rebuilding my DBD installation on server A (the one ... I set my environment for oracle 10g, ... I have wallet working, but every time I run a script I ...
    (perl.dbi.users)
  • Re: cant drop any user
    ... error occurred at recursive SQL level 2 ... exact fetch returns more than requested number of rows ... I want to see the entire shell script you're using to try to drop ... and you engage Oracle support. ...
    (comp.databases.oracle.server)
  • Re: Init script not called during system shutdown
    ... successful startup, and remove it on a successful stop. ... Oracle OK. ... stopped and started with this script. ... echo "Oracle startup: cannot start" ...
    (RedHat)