Home » RDBMS Server » Server Administration » user_tab_modifications not showing data for new table (Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production)
|
|
Re: user_tab_modifications not showing data for new table [message #665881 is a reply to message #665880] |
Thu, 28 September 2017 08:10   |
Andrey_R
Messages: 441 Registered: January 2012 Location: Israel
|
Senior Member |
|
|
Thanks Roachcoach for the quick reply!
But I don't see it happening as you described, or I misunderstood what you've meant...
I gathered stats and then right away selected from the view - no luck 
SQL> exec DBMS_STATS.gather_table_stats(user, 'T');
PL/SQL procedure successfully completed.
SQL> select * from user_tab_modifications where table_name ='T';
no rows selected
SQL>
[Updated on: Thu, 28 September 2017 08:11] Report message to a moderator
|
|
|
Re: user_tab_modifications not showing data for new table [message #665882 is a reply to message #665881] |
Thu, 28 September 2017 08:13   |
Roachcoach
Messages: 1576 Registered: May 2010 Location: UK
|
Senior Member |
|
|
The act of gathering table stats wipes out the data in *_tab_modifications.
That view holds the data which has occurred since the last statistic gather, in your case, no DML.
You can see the attribute in here:
select monitoring from dba_tables where table_name ='&TABNAME'
I have not checked but I understand that this can no longer be turned off anyway, although the command to do so still fires ok. This would explain why the attribute is is not in metadata or the create table pages of the docs.
[Updated on: Thu, 28 September 2017 08:21] Report message to a moderator
|
|
|
|
|
|
Re: user_tab_modifications not showing data for new table [message #665888 is a reply to message #665886] |
Thu, 28 September 2017 11:12  |
Andrey_R
Messages: 441 Registered: January 2012 Location: Israel
|
Senior Member |
|
|
BlackSwan wrote on Thu, 28 September 2017 16:36Andrey_R wrote on Thu, 28 September 2017 06:25
MANY MANY THANKS !
So what will you do differently with your new knowledge?
I don't know yet. Happy to have another tool in my arsenal.
As for the immediate case - I helped a programmer to be able to monitor transactions in a place where the application failed. I warned him to use with cautious and not to do it on production environments (also needs permissions for it anyway ).
Regards,
Andrey
|
|
|
Goto Forum:
Current Time: Sat May 03 03:49:39 CDT 2025
|