Home » RDBMS Server » Server Administration » When did a datafile autoextend? (11.2, Linux)
When did a datafile autoextend? [message #486969] Tue, 21 December 2010 15:57 Go to next message
John Watson
Messages: 8960
Registered: January 2010
Location: Global Village
Senior Member
Is there a way to find out when a datafile for an undo tablespace with autoextend enabled actually extended? I've done a few tests, and nothing is written to the alert log or any trace file that I've found. I can't find any V$ or DBA view that will give me the history of a file's size.

Probably a simple question, but I can't find the answer.
Re: When did a datafile autoextend? [message #486970 is a reply to message #486969] Tue, 21 December 2010 16:03 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
>Probably a simple question, but I can't find the answer.
I have never looked but you may be able to use DBMS_LOGMNR to see when the change occurred.
Re: When did a datafile autoextend? [message #487019 is a reply to message #486970] Wed, 22 December 2010 01:09 Go to previous messageGo to next message
Michel Cadot
Messages: 68718
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
Database Utilities
Chapter 17 Using LogMiner to Analyze Redo Log Files

Re: When did a datafile autoextend? [message #487046 is a reply to message #487019] Wed, 22 December 2010 03:20 Go to previous messageGo to next message
John Watson
Messages: 8960
Registered: January 2010
Location: Global Village
Senior Member
Thank you, but log miner does nothing for me: I can extract details of manually issued commands to resize datafiles, but not automatically generated commands.
I looked at the alert system too, but I can't get anything out of that either.
Re: When did a datafile autoextend? [message #487063 is a reply to message #487046] Wed, 22 December 2010 05:37 Go to previous messageGo to next message
Michel Cadot
Messages: 68718
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
Autoextend generates recursive statements (among them an update on sys.file$) and so you should be able to find them in logs.

Regards
Michel
Re: When did a datafile autoextend? [message #487082 is a reply to message #487063] Wed, 22 December 2010 10:28 Go to previous message
John Watson
Messages: 8960
Registered: January 2010
Location: Global Village
Senior Member
Well, I can't get anything out of logminer that describes file extension. Segment extension, yes: that is described as updates to seg$, though only for data segments, not undo segments. But nothing for the files. So I guess I'm stuck: no way to tell when an undo tablespace extended. You can get an approximation by looking at dba_hist_tbspc_space_usage.
Previous Topic: DB Shutting down automatically by terminating smon process
Next Topic: Recover database with lost of some datafiles and some archivelogs
Goto Forum:
  


Current Time: Sun Dec 01 13:08:48 CST 2024