KP, May 23, 2001 - 1:38 am UTC
As usal yr reply is excellent. But u missed
answer to one of my question that is
Whether it is better to define a
data_type as number or number(10)?
String data type
A reader, June 24, 2003 - 6:39 pm UTC
Hi Tom,
I found the following data type in a program:
varx string(1000);
Can you tell me what kind of data type this is and when it is appropiate to use it?
I cannot find any information about this data type in the Oracle documentation.
Thanks for any help with this.
June 25, 2003 - 11:42 am UTC
it is in standard.sql as a subtype:
create or replace
package STANDARD AUTHID CURRENT_USER is -- careful on this line; SED edit occurs!
type BOOLEAN is (FALSE, TRUE);
type DATE is DATE_BASE;
type NUMBER is NUMBER_BASE;
subtype FLOAT is NUMBER; -- NUMBER(126)
subtype REAL is FLOAT; -- FLOAT(63)
subtype "DOUBLE PRECISION" is FLOAT;
.....
subtype VARCHAR is VARCHAR2;
subtype STRING is VARCHAR2;
pctused
reader, February 24, 2004 - 6:04 pm UTC
If I set PCTUSED = 0, then the blocks are never reused for future inserts? Is this true? Thanks.
February 25, 2004 - 7:45 am UTC
no, not at all.
the block will be used for inserts up until it hits it's pctfree setting. then it would have to effectively empty out before being used for inserts again.
so, upto pctfree -- block is used for subsequent inserts. empty the block and it'll be used for subsequent inserts.
Hi
A reader, August 10, 2004 - 3:33 pm UTC
I am seeing the value of pctused is null for all the tables in my database. I tried to alter the table by setting the value of pctused to 90. Even then it is showing the value as null.
I am checking the value of pctused by quering the user_tables.
Do you know why?
thanks,
August 10, 2004 - 4:04 pm UTC
you are using ASSM (automatic segment space management) where by pctused is "not meaningful anymore" perhaps.
Hi
A reader, August 10, 2004 - 4:08 pm UTC
Thanks. I checked the tablespace definition in fact it was set to AUTO.
Do you think setting it to AUTO is good in huge data warehouse environment over setting it to MANUAL?
August 10, 2004 - 4:24 pm UTC
in a DW, probably manual -- ASSM was designed for OLTP environments where lots of concurrency (removed the need to set freelists and such). It uses space in order to make things more concurrent.
In a DW, you typically want to pack the data, don't have a high degree of concurrency.
Than again in a DW, you wouldn't be looking at PCTUSED, since you dont really UPDATE :)