Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Script to find space bound objects
Jack,
I think following script will do what you want...
Regards
Rafiq
col substr(seg.owner,1,10) heading OWNER col substr(seg.segment_name,1,30) heading "SEGMENT NAME" col substr(seg.segment_type,1,10) heading "TYPE" col substr(seg.tablespace_name,1,20) heading "TS NAME" prompt ****************************************************; prompt * THIS SHOWS THE DEFICIT OF FREE SPACE *; prompt ****************************************************;
spool /tmp/small;
select
substr(seg.owner,1,10),substr(seg.segment_name,1,30),substr(seg.segment_type,1,10),substr(seg.tablespace_name,1,20) from sys.dba_segments seg, sys.dba_clusters c
substr(seg.owner,1,10),substr(seg.segment_name,1,30),substr(seg.segment_type,1,10),substr(seg.tablespace_name,1,20) from sys.dba_segments seg, sys.dba_indexes i
substr(seg.owner,1,10),substr(seg.segment_name,1,30),substr(seg.segment_type,1,10),substr(seg.tablespace_name,1,20) from sys.dba_segments seg, sys.dba_tables t
Reply-To: ORACLE-L_at_fatcity.com
To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
Date: Tue, 26 Jun 2001 06:30:45 -0800
Hi All,
I thought I had a script to check for space bound objects (can not allocate next extent for whatever reason) but seem to have misplaced it.
Anybody want to save me the time?
TIA Jack
Indien bovenstaand e-mailbericht niet aan u is gericht, verzoeken wij u vriendelijk doch dringend het e-mailbericht te retourneren aan de verzender en het origineel en eventuele kopieën te verwijderen en te vernietigen.
Ernst & Young hanteert bij de uitoefening van haar werkzaamheden algemene voorwaarden, waarin een beperking van aansprakelijkheid is opgenomen. De algemene voorwaarden worden u op verzoek kosteloos toegezonden.
If you are not the intended recipient of this communication please return the communication to the sender and delete and destroy all copies.
In carrying out its engagements, Ernst & Young applies general terms and conditions, which contain a clause that limits its liability. A copy of these terms and conditions is available on request free of charge.
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: nlzanen1_at_EY.NL Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- 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). _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Mohammad Rafiq INET: rafiq9857_at_hotmail.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- 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 Tue Jun 26 2001 - 14:22:51 CDT