Unloading Smart Large Objects
- For a BLOB value:
blob########
- For a CLOB value:
clob########
In the preceding formats, the pound ( #
) symbols
represent the digits of the unique hexadecimal smart-large-object
identifier of the first smart large object in the file. The maximum
number of digits for a smart-large-object identifier is 17. Most smart
large objects, however, would have an identifier with fewer digits.
When the database server unloads the first smart large object, it creates the appropriate BLOB or CLOB client file with the hexadecimal identifier of the smart large object. If additional smart-large-object values are present in the same column, the database server writes their values to the same file, and lists in the UNLOAD TO file ( *.unl) the sbspace, chunk, and page numbers, and smart large object identifier, for each BLOB or CLOB value in the file.
Object # 1 Space Chunk Page = [5,6,3] Object ID = 1192071051 Object #2 Space Chunk Page = [5,6,4] Object ID = 1192071050 both rows unloaded
start_off,length,client_path
|100,200,/usr/apps/clob9ce7.318|
client_path
|/usr/apps/clob9ce7.318|
For locales that support multibyte code sets, be sure that the declared size (in bytes) of any column that receives character data is large enough to store the entire data string. For some locales, this can require up to 4 times the number of logical characters in the longest data string.
The database server handles any required code-set conversions for CLOB data. For more information, see the HCL OneDB™ GLS User's Guide.