Santa,
I was testing out your GREAT freespace.sql script:
and I had a couple of questions.
Does the 90% check against 90% of what the current size is or does it check against 90% of what the tablespace can autoextend to?
For instance, if I have 1 tablespace with 1 datafile and that datafile is:
current space used=95MB
current space free=5MB
which would make datafile size=100MB and
autoextend=on
autoextend maxsize=200MB
Would the query report this as being over 90% full? If so, what I need is something smart enough to do the calls on current space used vs. autoextend maxsize, so really this tablespace is only 90/200 or 45% full.
And also along with this, is there a way I can calculate if the autoextend next extent is smaller than the total space available on the mount point where the datafile resides. Like, if the above datafile has an autoextend next parameter of 100MB, so:
datafile size=100MB
current space used=95MB
current space free=5MB
autoextend=on
autoextend maxsize=200MB
autoextend next=100MB
And the location of the file is on /u01 and u01 currently has 20MB free, when oracle goes to autoextend the datafile it will fail and would want to know about that before it happens too.
Thanks for any advice/help in advance!
Kelly
Great script Santa!
I was testing out your GREAT freespace.sql script:
and I had a couple of questions.
Does the 90% check against 90% of what the current size is or does it check against 90% of what the tablespace can autoextend to?
For instance, if I have 1 tablespace with 1 datafile and that datafile is:
current space used=95MB
current space free=5MB
which would make datafile size=100MB and
autoextend=on
autoextend maxsize=200MB
Would the query report this as being over 90% full? If so, what I need is something smart enough to do the calls on current space used vs. autoextend maxsize, so really this tablespace is only 90/200 or 45% full.
And also along with this, is there a way I can calculate if the autoextend next extent is smaller than the total space available on the mount point where the datafile resides. Like, if the above datafile has an autoextend next parameter of 100MB, so:
datafile size=100MB
current space used=95MB
current space free=5MB
autoextend=on
autoextend maxsize=200MB
autoextend next=100MB
And the location of the file is on /u01 and u01 currently has 20MB free, when oracle goes to autoextend the datafile it will fail and would want to know about that before it happens too.
Thanks for any advice/help in advance!
Kelly
Great script Santa!