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.
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;
In this recipe, we will see how to use LOB felds to avoid performance degradation and space wasting. Follow these steps: