Restrictions on Caching Oracle Database LOB Data
There are restrictions when caching Oracle Database LOB data into TimesTen.
These restrictions apply to caching Oracle Database LOB data in TimesTen cache groups:
-
Column size is enforced when a cache group is created.
VARBINARY,VARCHAR2andNVARCHAR2data types have a size limit of 4 megabytes. Values that exceed the user-defined column size are truncated at run time without notification. -
Empty values in fields with
CLOBandBLOBdata types are initialized but not populated with data. EmptyCLOBandBLOBfields are treated as follows:-
Empty
LOBfields in the Oracle database are returned asNULLvalues. -
Empty
VARCHAR2andVARBINARYfields in TimesTen are propagated asNULLvalues.
-
In addition, cache groups that are configured for autorefresh operations have these restrictions on caching LOB data:
-
When LOB data is updated in the Oracle database by OCI functions or the
DBMS_LOBPL/SQL package, the data is not automatically refreshed in the cache group in TimesTen. This occurs because TimesTen caching operations depend on Oracle Database triggers, and Oracle Database triggers are not processed when these types of updates occur. TimesTen does not notify the user that updates have occurred without being refreshed in TimesTen. When the LOB data is updated in the Oracle database through a SQL statement, a trigger is fired and autorefresh brings in the change. -
Since autorefresh operations always refresh entire rows, LOB data in the cache is updated when any other column in the same row is updated.