Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Adding datafile automatically when tablespace is 90% full

sanora600Jul 22 2008 — edited Jul 22 2008
Hi,
I have a tablesspace having a name user01.dbf(Auto extensible to 4 GB) user02.dbf(Auto extensible to 4GB) ..........
I am just thinking about automatically creating datafile(alter tablespace add datafile).


1. (total number of datafiel in tablespace) *4 - space used by dba_segments belonging to user tablespace. if it returns less then 1 GB space, then add a datafile.

And I will put it on CRONTAB. and it will run every 24/7.

Does not this look weired?

---------
Advice:


1. Don't we have any option like the database server will trigger an event when it is 90% and I can trap this event and run a command to add a datafile. I know internally it will do the same but still I feel if you have a feature then why not use it.

Any information will be helpful in this regards. And the same question is for OS level do I have to check it every second, space on the file system?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 19 2008
Added on Jul 22 2008
6 comments
4,470 views