Re: decrease initial extent
Thanks to all who replied. Alter table/index deallocate keep 64k worked like a charm. I did not checked it in depth but I think that it keep 64k from the actual end of the data, not the high water mark. When I read the manual about keep nk I was sure that it means above the high water mark. Yechiel Adar Mehish - Original Message - To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] Sent: Thursday, December 04, 2003 12:19 AM 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, [EMAIL PROTECTED] 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:[EMAIL PROTECTED] 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:[EMAIL PROTECTED] ] 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, [EMAIL PROTECTED] 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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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
RE: decrease initial extent
Title: RE: decrease initial extent 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 - [EMAIL PROTECTED] Their fundamental design flaws are completely hidden by their superficial design flaws. - Douglas Adams -Original Message- From: Mladen Gogala [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 03, 2003 5:19 PM To: Multiple recipients of list ORACLE-L Subject: Re: decrease initial extent 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, [EMAIL PROTECTED] 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:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED] ] 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, [EMAIL PROTECTED] 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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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
Re: decrease initial extent
You can move it after you convert the long field to LOB. As it is one of the system tables which appears in noexp$, it's not guaranteed that your database will work afterward. OK, let me restate it: it's guaranteed that it will not work. Other then that, it's only exp/imp of the full database, and after editing sql.bsq (not for fainthearted) On 12/03/2003 01:09:28 PM, Yechiel Adar wrote: 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 -- Author: Yechiel Adar INET: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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).
Re: decrease initial extent
Yechiel, I thought that the mantra of oracle sales people was disks are cheap, which i very correct, especially when they don't pay for the disks from their own pockets. What is measly 130M today? My son stores music in GB, not MB. Surely, you company can afford an iPod sized disk? On 12/03/2003 02:39:24 PM, Yechiel Adar wrote: Thank you. OK. Another 130MB down the drain. Yechiel Adar Mehish - Original Message - To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] Sent: Wednesday, December 03, 2003 8:49 PM You can move it after you convert the long field to LOB. As it is one of the system tables which appears in noexp$, it's not guaranteed that your database will work afterward. OK, let me restate it: it's guaranteed that it will not work. Other then that, it's only exp/imp of the full database, and after editing sql.bsq (not for fainthearted) On 12/03/2003 01:09:28 PM, Yechiel Adar wrote: 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 -- Author: Yechiel Adar INET: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Yechiel Adar INET: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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
RE: decrease initial extent
Title: RE: decrease initial extent alter table tbl_name deallocate unused keep 1; Alex. -Original Message- From: Yechiel Adar [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 03, 2003 10:09 AM To: Multiple recipients of list ORACLE-L Subject: decrease initial extent 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 -- Author: Yechiel Adar INET: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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).
RE: decrease initial extent
Title: RE: decrease initial extent 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-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]Sent: Wednesday, December 03, 2003 4:09 PMTo: Multiple recipients of list ORACLE-LSubject: RE: decrease initial extent If you use "keep int" it will. Alex. -Original Message- From: Mladen Gogala [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 03, 2003 12:59 PM To: Multiple recipients of list ORACLE-L Subject: Re: decrease initial extent 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, [EMAIL PROTECTED] 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-LIs 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 -- Author: Yechiel Adar INET: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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).
Re: decrease initial extent
For tables/indexes, the minimum initial extent size is 2 blocks (8k = 2* 4k). Block 0 contains the segment header, block 1 contains the data/index entries. Daniel Fink [EMAIL PROTECTED] 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_extentfor 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