Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Magic of varchar2
DA Morgan schrieb:
> Laurenz Albe wrote:
>
>> ... and secondly the total size of the index will depend on the length >> of the >> indexed columns. >> >> Yours, >> Laurenz Albe
What Laurenz meant is probably:
SQL> show parameter db_block_size
NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ db_block_size integer 8192SQL> create table x(
2 a varchar2(2000), 3 b varchar2(2000), 4 c varchar2(2000), 5 d varchar2(2000), 6 e varchar2(2000));
Table created.
SQL>
SQL> create table y(
2 a varchar2(10), 3 b varchar2(10), 4 c varchar2(10), 5 d varchar2(10), 6 e varchar2(10));
Table created.
SQL>
SQL> create index y_idx on y(a,b,c,d);
Index created.
SQL>
SQL> create index x_idx on x(a,b,c,d);
create index x_idx on x(a,b,c,d)
*
In addition, to mentioned in this thread (all valid arguments), iirc Tom Kyte mentioned it , that on the client side by fetching rows memory will be allocated according defined column sizes, so inappropriate sizing will lead to memory vastage.
Best regards
Maxim Received on Wed Mar 15 2006 - 11:58:51 CST