---
title: "DB2 Large Object Data Types LOB"
description: "Large objects datatype in DB2 are 3 types. Those are BLOB, CLOB, and DBCLOB"
url: https://srinimf.com/2012/06/17/db2-large-object-data-types-lob/
date: 2012-06-17
modified: 2026-10-10
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2012/06/pexels-photo-5310566.jpeg?fit=1880%2C1253&ssl=1
categories: ["Mainframe DB2"]
tags: ["DB2 Blob", "DB2 Tips and Solutions"]
type: post
lang: en
---

# DB2 Large Object Data Types LOB

In DB2, we store unstructured data in LOBs. There are three types:

1. BLOB – Binary data
2. CLOB- Character data
3. DBCLOB- Double byte character data.

Performance-wise, we need to take some special care for LOBs. When creating a tablespace, we need to give LOG NO. So that logging will not occur and your performance will be improved.

Related[How to Migrate DB2 BLOB to Oracle](https://srinimf.com/2013/03/02/db2-to-oracle/)

This is a query to create a tablespace:

CREATE LOB TABLESPACE SRIPHOTO

Related[8 Date Types of Oracle SQL You Need](https://srinimf.com/2016/08/02/8-different-data-types-in-oracle/)

```
IN DSN111A
     USING STOGROUP DSN111B
PRIQTY 3200
SECQTY 1600
LOCKSIZE LOB
BUFFERPOOL BP16K0
ABPCACHE SYSTEM
LOG NO
     CLOSE NO;
```

### Share this:

-
- [Tweet](https://twitter.com/share)
- [![](https://i0.wp.com/assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png)](https://www.pinterest.com/pin/create/link/?url=https%3A%2F%2Fsrinimf.com%2F2012%2F06%2F17%2Fdb2-large-object-data-types-lob%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2012%2F06%2Fpexels-photo-5310566.jpeg%3Ffit%3D1200%252C800%26ssl%3D1&description=DB2%20Large%20Object%20Data%20Types%20LOB)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2012/06/17/db2-large-object-data-types-lob/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2012/06/17/db2-large-object-data-types-lob/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2012/06/17/db2-large-object-data-types-lob/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2012/06/17/db2-large-object-data-types-lob/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%20DB2%20Large%20Object%20Data%20Types%20LOB&body=https%3A%2F%2Fsrinimf.com%2F2012%2F06%2F17%2Fdb2-large-object-data-types-lob%2F&share=email)
-

### Like this:

Like Loading…
