Using LOBs
LOBs (Large OBjects) are a particular data type, used to store large binary or character objects inside the database or outside the database when using BFILEs
. In this recipe, we will see how to use LOB fields to avoid performance degradation and space wasting.
Getting ready
The following steps have to be performed initially;
- Connect to the database as
SYSDBA
:CONNECT /@TESTDB AS SYSDBA
- Grant the following permission to user
SH
:GRANT CREATE ANY DIRECTORY TO SH;
- Create a tablespace for LOBs:
CREATE TABLESPACE ASSM_TS DATAFILE 'ASSM_TS.DBF' SIZE 100M EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;
How to do it...
In this recipe, we will see how to use LOB felds to avoid performance degradation and space wasting. Follow these steps: ...
Get Oracle Database 11gR2 Performance Tuning Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.