User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Oracle section within the Web Development category of DaniWeb, a massive community of 332,579 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,127 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Oracle advertiser:
Views: 277 | Replies: 4
Reply
Join Date: Dec 2007
Location: India
Posts: 200
Reputation: Agni is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 27
Sponsor
Agni's Avatar
Agni Agni is offline Offline
Posting Whiz in Training

find which tables get updated..

  #1  
12 Days Ago
Hi Guys...

i'm not so good at oracle, sql and related stuff.. but i do need to write some simple query's from time to time and i do need to understand that which all tables get updated by a particular transaction. I can do that by going through the code, but problem is i'm damn lazy and also that usually i like to automate most of this donkey work. would be great if any of you oracle guru's could tell me that is there someway i can find that which all tables got updated by a transaction. i expect some system view or some system table to contain the states of the tables(last modified) or something like that which i can query before and after i run a transaction or something on those lines.
Last edited by Agni : 12 Days Ago at 12:31 am.
thanks
-chandra
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Nov 2007
Posts: 51
Reputation: Nige Ridd is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 8
Nige Ridd Nige Ridd is offline Offline
Junior Poster in Training

Re: find which tables get updated..

  #2  
11 Days Ago
You could always write some PL/SQL which adds a trigger to each table, as the table gets changed you could produce some sort of log.

Nige
Reply With Quote  
Join Date: Dec 2007
Location: India
Posts: 200
Reputation: Agni is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 27
Sponsor
Agni's Avatar
Agni Agni is offline Offline
Posting Whiz in Training

Re: find which tables get updated..

  #3  
11 Days Ago
hmm.. but what if i dont want to modify the db? .. isn't there a system view which has the state of the tables? .. adding a trigger on each table will make the system too slow, even for a development team....
thanks
-chandra
Reply With Quote  
Join Date: Nov 2007
Posts: 51
Reputation: Nige Ridd is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 8
Nige Ridd Nige Ridd is offline Offline
Junior Poster in Training

Re: find which tables get updated..

  #4  
10 Days Ago
Don't know of any view, but to not alter the database you could get the last SCN and for each table output whats changed since then.
You can use:
SELECT current_scn, SYSTIMESTAMP FROM gv$database;
to get the current SCN and then for each table:
SELECT * FROM tablea AS OF SCN nnnnn;
to see if any changes have been made.
Nige
( http://www.oracle-base.com/articles/...ashback10g.php for more details )
Reply With Quote  
Join Date: Dec 2006
Posts: 23
Reputation: alit2002 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
alit2002 alit2002 is offline Offline
Newbie Poster

Re: find which tables get updated..

  #5  
9 Days Ago
Have you thought about using Log Miner to view the transactions? It may give you what you need.

Alistair
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Oracle Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Oracle Forum

All times are GMT -4. The time now is 12:48 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC