Large Objects : Introduction « Large Objects « Oracle PL/SQL Tutorial

Oracle PL/SQL Tutorial
1. Introduction
2. Query Select
3. Set
4. Insert Update Delete
5. Sequences
6. Table
7. Table Joins
8. View
9. Index
10. SQL Data Types
11. Character String Functions
12. Aggregate Functions
13. Date Timestamp Functions
14. Numerical Math Functions
15. Conversion Functions
16. Analytical Functions
17. Miscellaneous Functions
18. Regular Expressions Functions
19. Statistical Functions
20. Linear Regression Functions
21. PL SQL Data Types
22. PL SQL Statements
23. PL SQL Operators
24. PL SQL Programming
25. Cursor
26. Collections
27. Function Procedure Packages
28. Trigger
29. SQL PLUS Session Environment
30. System Tables Data Dictionary
31. System Packages
32. Object Oriented
33. XML
34. Large Objects
35. Transaction
36. User Privilege
Java
Java Tutorial
Java Source Code / Java Documentation
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Oracle PL/SQL Tutorial » Large Objects » Introduction 
34. 1. 2. Large Objects

Large objects (LOBs) may be used to store binary data, character data, and references to external files.

LOBs are widely used to store documents such as Word and PDF documents.

LOBs can store a maximum of 128 terabytes of data depending on the block size of your database.

There are four LOB types:

CLOB is the character LOB type.

CLOB is used to store character data.

NCLOB is the national language character LOB type.

NCLOB is used to store multiple byte character data (typically used for non-English characters).

BLOB is the binary LOB type.

BLOB is used to store binary data.

BFILE is the binary FILE type.

BFILE is used to store pointers to files located in the file system.

Columns created using CLOB and BLOB types have three advantages over those created using the older LONG and LONG RAW types:

LOB columns can store up to 128 terabytes of data.

This is far more data than you can store in a LONG and LONG RAW column.

A LONG and LONG RAW column may only store up to 2 gigabytes of data.

Note: The RAW type may store up to 4 kilobytes of data.

A table can have multiple LOB columns, but a table can only have one LONG or LONG RAW column.

LOB data can be accessed in random order.

LONG and LONG RAW data can only be accessed in sequential order.

A LOB consists of two parts:

The LOB locator A pointer that specifies the location of the LOB content.

The LOB content The actual character or byte data stored in the LOB.

Depending on the size of the LOB content, the actual data will either be stored in the table or out of the table.

If the LOB content is less than 4 kilobytes in size, the content is stored in the table containing the LOB column.

If it's bigger, the content is stored outside the table.

With BFILE columns, only the locator is stored in the database-the locator points to the external file containing the LOB content.

Quote from:

Oracle Database 10g SQL (Osborne ORACLE Press Series) (Paperback)

# Paperback: 608 pages

# Publisher: McGraw-Hill Osborne Media; 1st edition (February 20, 2004)

# Language: English

# ISBN-10: 0072229810

# ISBN-13: 978-0072229813

34. 1. Introduction
34. 1. 1. Handling Large Objects in the Database
34. 1. 2. Large Objects
34. 1. 3. Using CLOBs and BLOBs
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.