- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Oracle 9i and indexing CLOBS
Operating System - HP-UX
1753525
Members
4981
Online
108795
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
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
02-16-2005 03:07 AM
02-16-2005 03:07 AM
Oracle 9i and indexing CLOBS
Our application used to have a field that was too small, so, they changed that fields to a CLOB and now, we can do string searches within that field.
Now, I know/think, that we can not use LIKE operator on LOBs, so, I assume that internally, the app is using DBMS_LOB package to do these searches, assuming all it is entering on these fileds are strings.
How have you experience been on adding indeces on CLOBs, especifically ? The data lives withing the DB, so we ar enot talking BFILES here.
Any issues with performance ( we are trying to improve the searches by adding the indeces ), operability ? What happens if we have something other then a string on these fields ?
We are going to do any modifications on our staging environment, at first, and then, understand what the issues are, and go from there.
Any info would be appreciated !!
Thanks,
Henrique Silva
Now, I know/think, that we can not use LIKE operator on LOBs, so, I assume that internally, the app is using DBMS_LOB package to do these searches, assuming all it is entering on these fileds are strings.
How have you experience been on adding indeces on CLOBs, especifically ? The data lives withing the DB, so we ar enot talking BFILES here.
Any issues with performance ( we are trying to improve the searches by adding the indeces ), operability ? What happens if we have something other then a string on these fields ?
We are going to do any modifications on our staging environment, at first, and then, understand what the issues are, and go from there.
Any info would be appreciated !!
Thanks,
Henrique Silva
"to be or not to be, what was the question ???? "
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2005 02:12 PM
02-16-2005 02:12 PM
Re: Oracle 9i and indexing CLOBS
Hi Henrique Silva,
LOB indexes are also similar to normal indexes except that they always reside in the same tablespace as the LOB locator. You can use alter index rebuild for the LOB index and see if it improves the performance.
There are 4 types of LOB:
CLOB, BLOB, NCLOB stored internally to Oracle
BFILE stored externally
CLOB - Character LOB (single byte characters only), <= 4Gig.
When a LOB is stored in a table the data (LOB VALUE) and a pointer to that data, called a LOB LOCATOR, are held separately. The data may be stored along with the locator in the table itself or in a separate table.
lob_index_clause is deprecated as of Oracle8i. Oracle generates an index for each LOB column. Oracle names and manages the LOB indexes internally. Although it is still possible for you to specify this clause, Oracle strongly recommends that you no longer do so. In any event, do not put the LOB index in a different tablespace from the LOB data.
The LOB index is located in the same tablespace as the LOB segment with the same storage values, except the NEXT and MAXEXTENTS values.
· the NEXT value of the lobindex = INITIAL default value of the tablespace (LOB segment)
· the MAXEXTENTS value of the lobindex = unlimited value (2Gb)
All storage modifications are based on this original table t_lob.
Regarding performance, working with LOBs generally requires more than one round trip to the database. The application first has to obtain the locator and only then can perform operations against that locator. This is true for inline or out of line LOBS. The buffer size used to read / write the LOB can have a significant impact on performance.
BFILEs are quite different to internal LOBS as the only real storage issue is the space required for the inline locator. This is about 20 bytes PLUS the length of the directory and filename elements of the BFILENAME.
Attaches is note from metalink "Note 66431.1" describing the storage, redo and performance issues of LOBS.
Indir
LOB indexes are also similar to normal indexes except that they always reside in the same tablespace as the LOB locator. You can use alter index rebuild for the LOB index and see if it improves the performance.
There are 4 types of LOB:
CLOB, BLOB, NCLOB stored internally to Oracle
BFILE stored externally
CLOB - Character LOB (single byte characters only), <= 4Gig.
When a LOB is stored in a table the data (LOB VALUE) and a pointer to that data, called a LOB LOCATOR, are held separately. The data may be stored along with the locator in the table itself or in a separate table.
lob_index_clause is deprecated as of Oracle8i. Oracle generates an index for each LOB column. Oracle names and manages the LOB indexes internally. Although it is still possible for you to specify this clause, Oracle strongly recommends that you no longer do so. In any event, do not put the LOB index in a different tablespace from the LOB data.
The LOB index is located in the same tablespace as the LOB segment with the same storage values, except the NEXT and MAXEXTENTS values.
· the NEXT value of the lobindex = INITIAL default value of the tablespace (LOB segment)
· the MAXEXTENTS value of the lobindex = unlimited value (2Gb)
All storage modifications are based on this original table t_lob.
Regarding performance, working with LOBs generally requires more than one round trip to the database. The application first has to obtain the locator and only then can perform operations against that locator. This is true for inline or out of line LOBS. The buffer size used to read / write the LOB can have a significant impact on performance.
BFILEs are quite different to internal LOBS as the only real storage issue is the space required for the inline locator. This is about 20 bytes PLUS the length of the directory and filename elements of the BFILENAME.
Attaches is note from metalink "Note 66431.1" describing the storage, redo and performance issues of LOBS.
Indir
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP