Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Unix Max Extent Script

RE: Unix Max Extent Script

From: Post, Ethan <Ethan.Post_at_ps.net>
Date: Thu, 16 Jan 2003 12:40:11 -0800
Message-ID: <F001.0053207C.20030116124011@fatcity.com>


Or perhaps this...

Write a program that will manually allocate extents to each object until you run out of space, then capture error and number of extents and write to a flat file using UTL_FILE package. Then export object, truncate table and import to recover the space you allocated during each test. Then use SQL loader to bring the data from the flat file into the database and write queries against the X$ constructs to see if you are approaching too many extents. Use a minimum of 5 .sh scripts and 8 control files to accomplish this task. From what I have seen this will qualify you for numerous jobs as a Senior Oracle DBA.

DISLAIMER: THE ABOVE WAS A JOKE BUT DOES REFLECT THE TYPES OF THINGS I HAVE SEEN IN THE PAST. :)

-----Original Message-----
Sent: Thursday, January 16, 2003 12:36 PM To: Multiple recipients of list ORACLE-L

I have found many great SQL scripts to identify segments whose next extents will not fit into their tablespace and segments whose number of extents are approaching the max number of extents. But, what I am looking for is a Unix shell script that will run one of these scripts and mail alerts based on the results. Has anyone written a shell script that will do this that they would like to share? There are many other SQL scripts that I would like to run from cron to evaluate SQL script results.

Thanks
Erik  

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Post, Ethan
  INET: Ethan.Post_at_ps.net

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Thu Jan 16 2003 - 14:40:11 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US