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: Little competition

Re: Little competition

From: Tim Gorman <tim_at_sagelogix.com>
Date: Thu, 11 Dec 2003 05:34:32 -0800
Message-ID: <F001.005D98D0.20031211053432@fatcity.com>



Re: Little competition


Neither the PCTFREE and PCTUSED clauses go inside the STORAGE clause.  They are independent of it.  That is why the error was thrown, not because PCTFREE is invalid with ASSM...

Essentially, an erroneous interpretation of the error message.

If it was really going to prove his point, the CREATE syntax in the article should have read instead:

   create table test_table (c1 number)
   tablespace test_assm
   pctfree 20 pctused 30;

It succeeds, by the way...


on 12/11/03 6:14 AM, ryan_oracle@cox.net at ryan_oracle@cox.net wrote:

#1. these instances are still on 8i. We are supposed to go to 9i, but its not my call

#2. its read only for the users. We do batch loads at night and I did not notice any slow down in the loads. I run statspack regularly. no problem. Just gotta do an alter table move periodically when we get too much row migration, but I can do that over the weekend.

Depends on your situation. There are cases for dense blocks
and there are cases where you dont want to do this.

again, what is so bad with what burleson said about the pctfree and pctused?
>
> From: Tim Gorman <tim@sagelogix.com>
> Date: 2003/12/11 Thu AM 07:59:25 EST
> To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
> Subject: Re: Little competition
>
> >> I can cut 45 minutes off my load times by shrinking the data file?
>
> And how much overhead gets added to DML statements as blocks madly shift on
> and off the freelists with each operation?  Priorities, priorities,
> priorities...
>
> If you’re using 9i or above, the table COMPRESS feature might be a more
> effective mechanism?
>
>
>
> on 12/11/03 5:44 AM, ryan_oracle@cox.net at ryan_oracle@cox.net wrote:
>
> > hopefully i wont sound like a complete idiot, but what is wrong with wanting
> > to be able to handle your own pctfree and pctused. Ok oracle handles the next
> > and initial extent sizes...(which causes fragmentation).
> >
> > I use transportable tablespaces and in order to increase the time it takes to
> > copy these datafiles, I use pctused 99 and pctfree 1 in order to compact the
> > tables. I can cut 45 minutes off my load times by shrinking the data file?
> >> >
> >> > From: "Richard Foote" <richard.foote@bigpond.com>
> >> > Date: 2003/12/11 Thu AM 06:39:26 EST
> >> > To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
> >> > Subject: Little competition
> >> >
> >> > Little competition for you all :)
> >> >
> >> > It's a two part question:
> >> >   a..     What's wrong with the following piece of expert analysis ?
> >> >   b..     Which well know "Oracle Guru" published this (and continues to
> >> display it on his web-page) ?
> >> >
> >> >
> >> > "Sadly, Oracle9i doesn't allow you to specify the value for PCTFREE if
> >> you're using automatic space management. This is a serious limitation because
> >> Oracle9i can't know in advance about the amount of VARCHAR expansion in a
> >> table row, leading to excessive row chaining and poor access performance."
> >> >
> >> > SQL> create table
> >> >   2   test_table
> >> >   3   (c1 number)
> >> >   4  tablespace
> >> >   5   asm_test
> >> >   6  storage
> >> >   7   ( pctfree 20 pctused 30 )
> >> >   8  ;
> >> >  
> >> >    ( pctfree 20 pctused 30 )
> >> >      *
> >> > ERROR at line 7:
> >> > ORA-02143: invalid STORAGE option
> >> >
> >> > However, here's an important point. While Oracle9i rejects the PCTFREE and
> >> PCTUSED parameters with locally managed tablespaces with automatic space
> >> management, it does allow you to enter invalid settings for NEXT and
> >> FREELISTS settings"
> >> >
> >> >
> >> >
> >> > You've gotta love it !!
> >> >
> >> > Sorry no clues ....
> >> >
> >> > Cheers ;)
> >> >
> >> > Richard
> >> >
> >> >
> >
> >
> > Little competition for you all :)
> >  
> > It's a two part question:
> > *     What's wrong with the following piece of expert analysis ?
> > *     Which well know "Oracle Guru" published this (and continues to display
> > it on his web-page) ?
> >  
> >  
> > "Sadly, Oracle9i doesn’t allow you to specify the value for PCTFREE if you’re
> > using automatic space management. This is a serious limitation because
> > Oracle9i can’t know in advance about the amount of VARCHAR expansion in a
> > table row, leading to excessive row chaining and poor access performance."
> >  
> > SQL> create table
> >   2   test_table
> >   3   (c1 number)
> >   4  tablespace
> >   5   asm_test
> >   6  storage
> >   7   ( pctfree 20 pctused 30 )
> >   8  ;
> >  
> >    ( pctfree 20 pctused 30 )
> >      *
> > ERROR at line 7:
> > ORA-02143: invalid STORAGE option
> >
> > However, here’s an important point. While Oracle9i rejects the PCTFREE and
> > PCTUSED parameters with locally managed tablespaces with automatic space
> > management, it does allow you to enter invalid settings for NEXT and FREELISTS
> > settings"
> >  
> >  
> >  
> > You've gotta love it !!
> >  
> > Sorry no clues ....
> >  
> > Cheers ;)
> >  
> > Richard
> >
>
>
>
>


>> I can cut 45 minutes off my load times by shrinking the data file?

And how much overhead gets added to DML statements as blocks madly shift on and off the freelists with each operation?  Priorities, priorities, priorities...

If you’re using 9i or above, the table COMPRESS feature might be a more effective mechanism?



on 12/11/03 5:44 AM, ryan_oracle@cox.net at ryan_oracle@cox.net wrote:

hopefully i wont sound like a complete idiot, but what is wrong with wanting to be able to handle your own pctfree and pctused. Ok oracle handles the next and initial extent sizes...(which causes fragmentation).

I use transportable tablespaces and in order to increase the time it takes to copy these datafiles, I use pctused 99 and pctfree 1 in order to compact the tables. I can cut 45 minutes off my load times by shrinking the data file?
>
> From: "Richard Foote" <richard.foote@bigpond.com>
> Date: 2003/12/11 Thu AM 06:39:26 EST
> To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
> Subject: Little competition
>
> Little competition for you all :)
>
> It's a two part question:
>   a..     What's wrong with the following piece of expert analysis ?
>   b..     Which well know "Oracle Guru" published this (and continues to display it on his web-page) ?
>
>
> "Sadly, Oracle9i doesn't allow you to specify the value for PCTFREE if you're using automatic space management. This is a serious limitation because Oracle9i can't know in advance about the amount of VARCHAR expansion in a table row, leading to excessive row chaining and poor access performance."
>
> SQL> create table
>   2   test_table
>   3   (c1 number)
>   4  tablespace
>   5   asm_test
>   6  storage
>   7   ( pctfree 20 pctused 30 )
>   8  ;
>  
>    ( pctfree 20 pctused 30 )
>      *
> ERROR at line 7:
> ORA-02143: invalid STORAGE option
>
> However, here's an important point. While Oracle9i rejects the PCTFREE and PCTUSED parameters with locally managed tablespaces with automatic space management, it does allow you to enter invalid settings for NEXT and FREELISTS settings"
>
>
>
> You've gotta love it !!
>
> Sorry no clues ....
>
> Cheers ;)
>
> Richard
>
>


Little competition for you all :)

It's a two part question:
  •    What's wrong with the following piece of expert analysis ?
  •    Which well know "Oracle Guru" published this (and continues to display it on his web-page) ?

 
"Sadly, Oracle9i doesn’t allow you to specify the value for PCTFREE if you’re using automatic space management. This is a serious limitation because Oracle9i can’t know in advance about the amount of VARCHAR expansion in a table row, leading to excessive row chaining and poor access performance."

SQL> create table
  2   test_table
  3   (c1 number)
  4  tablespace
  5   asm_test
  6  storage
  7   ( pctfree 20 pctused 30 )
  8  ;
 
   ( pctfree 20 pctused 30 )
     *
ERROR at line 7:
ORA-02143: invalid STORAGE option

However, here’s an important point. While Oracle9i rejects the PCTFREE and PCTUSED parameters with locally managed tablespaces with automatic space management, it does allow you to enter invalid settings for NEXT and FREELISTS settings"

 
 
You've gotta love it !!

Sorry no clues ....

Cheers ;)

Richard




-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Tim Gorman
  INET: tim_at_sagelogix.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 11 2003 - 07:34:32 CST

Original text of this message

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