2

I need to produce a query that shows a table(table_name, column_name) of where BLOBs are stored inline from user_tables. Any help would be much appreciated.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
user1712258
  • 117
  • 3
  • 7

1 Answers1

2

To determine whether a LOB column is stored in-line or out-of-line, you need to take a look at the IN_ROW column value of user_lobs view (or [dba] [all] _lobs views depending on the privileges granted): YES - inline, NO - out-of-line:

For instance:

select t.table_name
     , t.column_name
     , t.in_row
  from user_lobs t
where table_name = 'BLOB_TABLE'

Result:

Table Name   Column Name In Row 
--------------------------------
BLOB_TABLE   COL1        YES 
BLOB_TABLE   COL2        YES 
BLOB_TABLE   COL3        YES 
Nick Krasnov
  • 26,886
  • 6
  • 61
  • 78