- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to manipulate LOB large objects ?
Operating System - HP-UX
1820879
Members
4112
Online
109628
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 02:11 PM
08-25-2004 02:11 PM
How to manipulate LOB large objects ?
Hi,
How to manipulate LOB large objects ?
The object types CLOB, BLOB, BFILE,
LONG, RAW, LONG RAW ...
As a develper, also as DBA, how to manage
these objects.
Any special care needed while doing export
& import, or any limitations in select or
in any DML statments, ...
Please guide me, I am new to this area.
Thanks
Ezhil
How to manipulate LOB large objects ?
The object types CLOB, BLOB, BFILE,
LONG, RAW, LONG RAW ...
As a develper, also as DBA, how to manage
these objects.
Any special care needed while doing export
& import, or any limitations in select or
in any DML statments, ...
Please guide me, I am new to this area.
Thanks
Ezhil
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2004 04:05 PM
08-25-2004 04:05 PM
Re: How to manipulate LOB large objects ?
Hi Ezhil,
LOBs can be broadly categorized as Internal LOBs and External LOBs. Internal LOBS can store binary data (BLOBs), single-byte character data (CLOBs), or multi-byte character data (NCLOBs).
External LOBs (referred to as BFILES), are stored in operating system files outside the database tablespaces. These LOBs do not participate in transactions
There are 4 types of LOB:
CLOB, BLOB, NCLOB stored internally to Oracle
BFILE stored externally
Data stored in a LOB is called the LOB's value. To the Oracle8 Server, a LOB's value is unstructured and cannot be queried against. LOBs can be stored along with other row data or separate from row data. Regardless of how the data is stored, every LOB has a locator associated with it which can be viewed as a handle or pointer to the actual location. Selecting a LOB returns the LOB locator instead of the LOB value. Two new special functions in Oracle8 SQL DML, EMPTY_BLOB() and EMPTY_CLOB(), allow initialization of NULL or non-NULL LOB columns to empty.
PL/SQL provides a mechanism to manipulate these LOBs via the DBMS_LOB package
The DBMS_LOB package provides functions and procedures which allow manipulation
of specific parts as well as complete internal LOBs and read-only operations on BFILEs.
The LOBs can also be manipulated using OCI. Here is a comparison of the DBMS_LOB package procedures and the OCI functions.
You can export/import LOB data. Export/import with the above data types restrictions are described in the Oracle8i uilities
1. Import with INDEXFILE parameter to generate the script that can be used to modify the LOB's tablespace clause.
$imp system/manager fromuser=scott tables=\(circul\)
indexfile=create_lob_table
2. Edit the generated script file create_lob_table.sql:
3. Run the script create_lob_table
4. Import the data only in the created table, ignoring the CREATE TABLE statement failure.
Attached is a document from metalink describing manipulations with LOBS.
I hope this helps
Indira A
LOBs can be broadly categorized as Internal LOBs and External LOBs. Internal LOBS can store binary data (BLOBs), single-byte character data (CLOBs), or multi-byte character data (NCLOBs).
External LOBs (referred to as BFILES), are stored in operating system files outside the database tablespaces. These LOBs do not participate in transactions
There are 4 types of LOB:
CLOB, BLOB, NCLOB stored internally to Oracle
BFILE stored externally
Data stored in a LOB is called the LOB's value. To the Oracle8 Server, a LOB's value is unstructured and cannot be queried against. LOBs can be stored along with other row data or separate from row data. Regardless of how the data is stored, every LOB has a locator associated with it which can be viewed as a handle or pointer to the actual location. Selecting a LOB returns the LOB locator instead of the LOB value. Two new special functions in Oracle8 SQL DML, EMPTY_BLOB() and EMPTY_CLOB(), allow initialization of NULL or non-NULL LOB columns to empty.
PL/SQL provides a mechanism to manipulate these LOBs via the DBMS_LOB package
The DBMS_LOB package provides functions and procedures which allow manipulation
of specific parts as well as complete internal LOBs and read-only operations on BFILEs.
The LOBs can also be manipulated using OCI. Here is a comparison of the DBMS_LOB package procedures and the OCI functions.
You can export/import LOB data. Export/import with the above data types restrictions are described in the Oracle8i uilities
1. Import with INDEXFILE parameter to generate the script that can be used to modify the LOB's tablespace clause.
$imp system/manager fromuser=scott tables=\(circul\)
indexfile=create_lob_table
2. Edit the generated script file create_lob_table.sql:
3. Run the script create_lob_table
4. Import the data only in the created table, ignoring the CREATE TABLE statement failure.
Attached is a document from metalink describing manipulations with LOBS.
I hope this helps
Indira A
Never give up, Keep Trying
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP