Yves, May 03, 2002 - 6:35 pm UTC
What do you mean by "inline up to 4000 bytes"? Is 4k the upper limit for XMLType? I thought XMLTType was really a metatype for CLOBs. If the latter is true, the smallest chunk size for a clob is a DB block. Please clarify your response.
May 03, 2002 - 7:33 pm UTC
No, I mean CLOBS are stored (by default) "inline" -- in the table itself -- not in the clob segment -- when they are 4000 or less characters.
They are moved "out of line" when they exceed that (from 4000 bytes to 4 gigabytes).
XMLType is built on a clob.
A clob will be "in line" -- stored in the table, not the clob segment -- upto 4000 bytes.
A clob will move out of line taking up one or more chunksize when it exceeds that.
So, your clobs that are small -- they will NOT consume a chunk. The will just be in the table (like a varchar2 would).
This is totally transparent to you.
clobs and table spaces
A reader, July 31, 2004 - 5:40 pm UTC
Does it make sense to store clob data in a separate
tablespace? (e.g. the tablespace could have a bigger
block size?) what are the pros and cons for this?
thanx!
July 31, 2004 - 6:08 pm UTC
I would not be looking at multiple block sizes for this no.
you'd do it because it was easier to admin for whatever reason, because it made you feel better.
you would definitely do it if it were nologging.
if it is nocache -- you might do it just to be able to control where the IO's are going.
In general, people do it -- for administrative reasons. You can manage the space in a more control fashion (you have a "blob" tablespace). Lobs do their "undo" mgmt in their tablespaces so they tend to have different "growth" patterns than tables do.
thanx!
A reader, July 31, 2004 - 6:51 pm UTC
"if it is nocache -- you might do it just to be able to control where the IO's
are going."
I suppose you mean that you can control I/O because
you can ultimately map a tablespace to datafiles to disks,
correct? And may be you could put these data files on
a separate disk for example?
"you would definitely do it if it were nologging."
Not sure what you mean here...why do we need to do it
in this case? Perhaps so that you can take it offline
separately due to some reason?
Many thanx!
July 31, 2004 - 7:02 pm UTC
correct.
it would make sense to have your nologging stuff separate -- you'll be backing it up differently and backups predominantly happen at the tablespace level so...
thanx!!!!!
A reader, July 31, 2004 - 7:35 pm UTC