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: decrease initial extent

RE: decrease initial extent

From: Adams, Matthew (GECP, MABG, 088130) <MATT.ADAMS_at_APPL.GE.COM>
Date: Thu, 04 Dec 2003 07:04:29 -0800
Message-ID: <F001.005D8CAA.20031204070429@fatcity.com>


Content-Type: multipart/alternative;
 boundary="----_=_NextPart_001_01C3BA77.BEA16A70" ------_=_NextPart_001_01C3BA77.BEA16A70
Content-Type: text/plain;
 charset="iso-8859-1"

Mladen,

Keep reading, it's further down.

>From the 8.1.7 SQL Reference Manual, under the ALTER TABLE entry
(top of page 8-36):

"If you specify KEEP, then the specified amount of space is kept and the remaining space is freed. When the remaining number of extents is less than MINEXTENTS, then MINEXTENTS is adjusted to the new number of extents. If the initial extent becomes smaller than INITIAL, then INITIAL is adjusted to the new size."



Matt Adams - GE Appliances - matt.adams_at_appl.ge.com Their fundamental design flaws are completely hidden by their superficial design flaws.

-----Original Message-----
Sent: Wednesday, December 03, 2003 5:19 PM To: Multiple recipients of list ORACLE-L

I don't understand. Here is what manual says:

deallocate_unused_clause

Use the deallocate_unused_clause to explicitly deallocate unused space at the end of the table,
partition or subpartition, overflow data segment, LOB data segment, or LOB index and make the
space available for other segments in the tablespace.

It's not supposed to change the characteristics of the initial extent. Funny. I'll test it
at home.

On 12/03/2003 04:44:27 PM, nelson.petersen_at_homehardware.ca wrote:
> Since I agreed with Mladen that it wouldn't work, I just had to test this.
>
> On 8.1.7.3 on OpenVMS the "deallocate unused keep # " shrinks the initial
> extent.
> It shrank a test table from 1m to 8k. I'm not sure why it chose 8k.
> (db_block_size=4k, default initial_extent for the tablespace=64k)
>
> I assume it would work on SYS tables as well.
> (No sacrificial database that I'm willing to try it on.)
>
> Nelson
>
> -----Original Message-----
> [mailto:Alexander.Feinstein_at_mitchell1.com]
> Sent: Wednesday, December 03, 2003 4:09 PM
> To: Multiple recipients of list ORACLE-L
>
>
>
> If you use "keep <int>" it will.
>
> Alex.
>
>
> -----Original Message-----
> <mailto:mladen_at_wangtrading.com> ]
> Sent: Wednesday, December 03, 2003 12:59 PM
> To: Multiple recipients of list ORACLE-L
>
>
> That will not do anything for the initial extent.
> You may try with
>
> alter table <table> pray intensely for the desired change;
>
>
> On 12/03/2003 03:34:25 PM, Alexander.Feinstein_at_mitchell1.com wrote:
> > alter table <tbl_name> deallocate unused keep 1;
> >
> > Alex.
> >
> >
> > -----Original Message-----
> > Sent: Wednesday, December 03, 2003 10:09 AM
> > To: Multiple recipients of list ORACLE-L
> >
> >
> > Is there any way to decrease the initial extent allocated to a table.
> > It is one of the system tables, so I do not want to drop and recreate
> > it. I can not export/import as it appear in noexp$. It has long field
> > so I can not do alter table move.
> >
> > Yechiel Adar
> > Mehish
> > --
> > Please see the official ORACLE-L FAQ: http://www.orafaq.net
> <http://www.orafaq.net>
> > --
> > Author: Yechiel Adar
> > INET: adar76_at_inter.net.il
> >
> > Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> <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).
> >
>
> Mladen Gogala
> Oracle DBA
>
>
>
> Note:
> This message is for the named person's use only. It may contain
> confidential, proprietary or legally privileged information. No
> confidentiality or privilege is waived or lost by any mistransmission. If
> you receive this message in error, please immediately delete it and all
> copies of it from your system, destroy any hard copies of it and notify
the
> sender. You must not, directly or indirectly, use, disclose, distribute,
> print, or copy any part of this message if you are not the intended
> recipient. Wang Trading LLC and any of its subsidiaries each reserve the
> right to monitor all e-mail communications through its networks. Any views
> expressed in this message are those of the individual sender, except where
> the message states otherwise and the sender is authorized to state them to
> be the views of any such entity.
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> <http://www.orafaq.net>
> --
> Author: Mladen Gogala
> INET: mladen_at_wangtrading.com
>
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> <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).
>
>

Mladen Gogala
Oracle DBA

Note:
This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Wang Trading LLC and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Mladen Gogala
  INET: mladen_at_wangtrading.com

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).

------_=_NextPart_001_01C3BA77.BEA16A70
Content-Type: text/html;
 charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2655.35">
<TITLE>RE: decrease initial extent</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Mladen,</FONT>
</P>

<P><FONT SIZE=2>Keep reading, it's further down.</FONT>
</P>
<BR>

<P><FONT SIZE=2>From the 8.1.7 SQL Reference Manual, under the ALTER TABLE entry</FONT>
<BR><FONT SIZE=2>(top of page 8-36):</FONT>
</P>

<P><FONT SIZE=2>&quot;If you specify KEEP, then the specified amount of space is kept</FONT>
<BR><FONT SIZE=2>and the remaining space is freed. When the remaining</FONT>
<BR><FONT SIZE=2>number of extents is less than MINEXTENTS, then</FONT>
<BR><FONT SIZE=2>MINEXTENTS is adjusted to the new number of extents. If the</FONT>
<BR><FONT SIZE=2>initial extent becomes smaller than INITIAL, then INITIAL</FONT>
<BR><FONT SIZE=2>is adjusted to the new size.&quot;</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2>----</FONT>
<BR><FONT SIZE=2>Matt Adams - GE Appliances - matt.adams_at_appl.ge.com</FONT>
<BR><FONT SIZE=2>Their fundamental design flaws are completely</FONT>
<BR><FONT SIZE=2>hidden by their superficial design flaws.</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - Douglas Adams</FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Mladen Gogala [<A HREF="mailto:mladen_at_wangtrading.com">mailto:mladen_at_wangtrading.com</A>]</FONT>
<BR><FONT SIZE=2>Sent: Wednesday, December 03, 2003 5:19 PM</FONT>
<BR><FONT SIZE=2>To: Multiple recipients of list ORACLE-L</FONT>
<BR><FONT SIZE=2>Subject: Re: decrease initial extent</FONT>
</P>
<BR>

<P><FONT SIZE=2>I don't understand. Here is what manual says:</FONT>
</P>

<P><FONT SIZE=2>deallocate_unused_clause</FONT>
</P>

<P><FONT SIZE=2>Use the deallocate_unused_clause to explicitly deallocate unused space at the end of the table,</FONT>
<BR><FONT SIZE=2>partition or subpartition, overflow data segment, LOB data segment, or LOB index and make the </FONT>
<BR><FONT SIZE=2>space available for other segments in the tablespace.</FONT>
</P>

<P><FONT SIZE=2>It's not supposed to change the characteristics of the initial extent. Funny. I'll test it</FONT>
<BR><FONT SIZE=2>at home.</FONT>
</P>
<BR>

<P><FONT SIZE=2>On 12/03/2003 04:44:27 PM, nelson.petersen_at_homehardware.ca wrote:</FONT>
<BR><FONT SIZE=2>&gt; Since I agreed with Mladen that it wouldn't work, I just had to test this.</FONT>
<BR><FONT SIZE=2>&gt;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; On 8.1.7.3 on OpenVMS the &quot;deallocate unused keep # &quot; shrinks the initial</FONT>
<BR><FONT SIZE=2>&gt; extent.</FONT>
<BR><FONT SIZE=2>&gt; It shrank a test table from&nbsp; 1m to 8k.&nbsp; I'm not sure why it chose 8k.</FONT>
<BR><FONT SIZE=2>&gt; (db_block_size=4k, default initial_extent for the tablespace=64k)</FONT>
<BR><FONT SIZE=2>&gt;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; I assume it would work on SYS tables as well.</FONT>
<BR><FONT SIZE=2>&gt; (No sacrificial database that I'm willing to try it on.)</FONT>
<BR><FONT SIZE=2>&gt;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; Nelson</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; -----Original Message-----</FONT>
<BR><FONT SIZE=2>&gt; [<A HREF="mailto:Alexander.Feinstein_at_mitchell1.com">mailto:Alexander.Feinstein_at_mitchell1.com</A>]</FONT>
<BR><FONT SIZE=2>&gt; Sent: Wednesday, December 03, 2003 4:09 PM</FONT>
<BR><FONT SIZE=2>&gt; To: Multiple recipients of list ORACLE-L</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; If you use &quot;keep &lt;int&gt;&quot; it will. </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Alex. </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; -----Original Message----- </FONT>
<BR><FONT SIZE=2>&gt; &lt;<A HREF="mailto:mladen_at_wangtrading.com">mailto:mladen_at_wangtrading.com</A>&gt; ] </FONT>
<BR><FONT SIZE=2>&gt; Sent: Wednesday, December 03, 2003 12:59 PM </FONT>
<BR><FONT SIZE=2>&gt; To: Multiple recipients of list ORACLE-L </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; That will not do anything for the initial extent. </FONT>
<BR><FONT SIZE=2>&gt; You may try with </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; alter table &lt;table&gt; pray intensely for the desired change; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; On 12/03/2003 03:34:25 PM, Alexander.Feinstein_at_mitchell1.com wrote: </FONT>
<BR><FONT SIZE=2>&gt; &gt; alter table &lt;tbl_name&gt; deallocate unused keep 1; </FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; Alex. </FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; -----Original Message----- </FONT>
<BR><FONT SIZE=2>&gt; &gt; Sent: Wednesday, December 03, 2003 10:09 AM </FONT>
<BR><FONT SIZE=2>&gt; &gt; To: Multiple recipients of list ORACLE-L </FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; Is there any way to decrease the initial extent allocated to a table. </FONT>
<BR><FONT SIZE=2>&gt; &gt; It is one of the system tables, so I do not want to drop and recreate </FONT>
<BR><FONT SIZE=2>&gt; &gt; it. I can not export/import as it appear in noexp$. It has long field </FONT>
<BR><FONT SIZE=2>&gt; &gt; so I can not do alter table move. </FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; Yechiel Adar </FONT>
<BR><FONT SIZE=2>&gt; &gt; Mehish </FONT>
<BR><FONT SIZE=2>&gt; &gt; -- </FONT>
<BR><FONT SIZE=2>&gt; &gt; Please see the official ORACLE-L FAQ: http://www.orafaq.net</FONT>
<BR><FONT SIZE=2>&gt; &lt;http://www.orafaq.net&gt;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; &gt; -- </FONT>
<BR><FONT SIZE=2>&gt; &gt; Author: Yechiel Adar </FONT>
<BR><FONT SIZE=2>&gt; &gt;&nbsp;&nbsp; INET: adar76_at_inter.net.il </FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; &gt; Fat City Network Services&nbsp;&nbsp;&nbsp; -- 858-538-5051 http://www.fatcity.com</FONT>
<BR><FONT SIZE=2>&gt; &lt;http://www.fatcity.com&gt;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; &gt; San Diego, California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Mailing list and web hosting services </FONT>
<BR><FONT SIZE=2>&gt; &gt; --------------------------------------------------------------------- </FONT>
<BR><FONT SIZE=2>&gt; &gt; To REMOVE yourself from this mailing list, send an E-Mail message </FONT>
<BR><FONT SIZE=2>&gt; &gt; to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in </FONT>
<BR><FONT SIZE=2>&gt; &gt; the message BODY, include a line containing: UNSUB ORACLE-L (or the </FONT>
<BR><FONT SIZE=2>&gt; &gt; name of mailing list you want to be removed from).&nbsp; You may also send </FONT>
<BR><FONT SIZE=2>&gt; &gt; the HELP command for other information (like subscribing). </FONT>
<BR><FONT SIZE=2>&gt; &gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Mladen Gogala </FONT>
<BR><FONT SIZE=2>&gt; Oracle DBA </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Note: </FONT>
<BR><FONT SIZE=2>&gt; This message is for the named person's use only.&nbsp; It may contain</FONT>
<BR><FONT SIZE=2>&gt; confidential, proprietary or legally privileged information.&nbsp; No</FONT>
<BR><FONT SIZE=2>&gt; confidentiality or privilege is waived or lost by any mistransmission.&nbsp; If</FONT>
<BR><FONT SIZE=2>&gt; you receive this message in error, please immediately delete it and all</FONT>
<BR><FONT SIZE=2>&gt; copies of it from your system, destroy any hard copies of it and notify the</FONT>
<BR><FONT SIZE=2>&gt; sender.&nbsp; You must not, directly or indirectly, use, disclose, distribute,</FONT>
<BR><FONT SIZE=2>&gt; print, or copy any part of this message if you are not the intended</FONT>
<BR><FONT SIZE=2>&gt; recipient. Wang Trading LLC and any of its subsidiaries each reserve the</FONT>
<BR><FONT SIZE=2>&gt; right to monitor all e-mail communications through its networks. Any views</FONT>
<BR><FONT SIZE=2>&gt; expressed in this message are those of the individual sender, except where</FONT>
<BR><FONT SIZE=2>&gt; the message states otherwise and the sender is authorized to state them to</FONT>
<BR><FONT SIZE=2>&gt; be the views of any such entity.</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; -- </FONT>
<BR><FONT SIZE=2>&gt; Please see the official ORACLE-L FAQ: http://www.orafaq.net</FONT>
<BR><FONT SIZE=2>&gt; &lt;http://www.orafaq.net&gt;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; -- </FONT>
<BR><FONT SIZE=2>&gt; Author: Mladen Gogala </FONT>
<BR><FONT SIZE=2>&gt;&nbsp;&nbsp; INET: mladen_at_wangtrading.com </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; Fat City Network Services&nbsp;&nbsp;&nbsp; -- 858-538-5051 http://www.fatcity.com</FONT>
<BR><FONT SIZE=2>&gt; &lt;http://www.fatcity.com&gt;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; San Diego, California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Mailing list and web hosting services </FONT>
<BR><FONT SIZE=2>&gt; --------------------------------------------------------------------- </FONT>
<BR><FONT SIZE=2>&gt; To REMOVE yourself from this mailing list, send an E-Mail message </FONT>
<BR><FONT SIZE=2>&gt; to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the</FONT>
<BR><FONT SIZE=2>&gt; message BODY, include a line containing: UNSUB ORACLE-L (or the name of</FONT>
<BR><FONT SIZE=2>&gt; mailing list you want to be removed from).&nbsp; You may also send the HELP</FONT>
<BR><FONT SIZE=2>&gt; command for other information (like subscribing).</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
</P>

<P><FONT SIZE=2>Mladen Gogala</FONT>
<BR><FONT SIZE=2>Oracle DBA</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2>Note:</FONT>
<BR><FONT SIZE=2>This message is for the named person's use only.&nbsp; It may contain confidential, proprietary or legally privileged information.&nbsp; No confidentiality or privilege is waived or lost by any mistransmission.&nbsp; If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender.&nbsp; You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Wang Trading LLC and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks.</FONT></P>

<P><FONT SIZE=2>Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity.</FONT></P>

<P><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>Please see the official ORACLE-L FAQ: http://www.orafaq.net</FONT>
<BR><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>Author: Mladen Gogala</FONT>
<BR><FONT SIZE=2>&nbsp; INET: mladen_at_wangtrading.com</FONT>
</P>

<P><FONT SIZE=2>Fat City Network Services&nbsp;&nbsp;&nbsp; -- 858-538-5051 http://www.fatcity.com</FONT>
<BR><FONT SIZE=2>San Diego, California&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Mailing list and web hosting services</FONT>
<BR><FONT SIZE=2>---------------------------------------------------------------------</FONT>
<BR><FONT SIZE=2>To REMOVE yourself from this mailing list, send an E-Mail message</FONT>
<BR><FONT SIZE=2>to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in</FONT>
<BR><FONT SIZE=2>the message BODY, include a line containing: UNSUB ORACLE-L</FONT>
<BR><FONT SIZE=2>(or the name of mailing list you want to be removed from).&nbsp; You may</FONT>
<BR><FONT SIZE=2>also send the HELP command for other information (like subscribing).</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C3BA77.BEA16A70--

------=_NextPartTM-000-244f4a71-c784-428e-8f75-b912327ce048--

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Adams, Matthew (GECP, MABG, 088130)
  INET: MATT.ADAMS_at_APPL.GE.COM

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 Dec 04 2003 - 09:04:29 CST

Original text of this message

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