Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Stored Outline Problem

RE: Stored Outline Problem

From: Jamadagni, Rajendra <Rajendra.Jamadagni_at_espn.com>
Date: Wed, 17 Dec 2003 07:19:25 -0800
Message-ID: <F001.005DA2F5.20031217071925@fatcity.com>


I think it is the hash value for sql text .... something like

hash(sql_text_here) ... probably used to do a fast match with trying to lookup outlines ...

Raj



Rajendra dot Jamadagni at nospamespn dot com All Views expressed in this email are strictly personal. QOTD: Any clod can have facts, having an opinion is an art !

-----Original Message-----
Sent: Wednesday, December 17, 2003 10:09 AM To: Multiple recipients of list ORACLE-L

Hi all,

I'm trying to set up stored outlines and am running into the following problem (OUTLN tables are initially empty and the shared pool has just been flushed):

ALTER SESSION SET CREATE_STORED_OUTLINES = TRUE; SELECT 'THISISMYTEST' FROM DUAL; ALTER SESSION SET CREATE_STORED_OUTLINES = FALSE; SQL> SELECT HASH_VALUE,SQL_TEXT FROM OUTLN.OL$; HASH_VALUE SQL_TEXT

---------- ------------------------------------------------------------
1024768383 SELECT 'THISISMYTEST' FROM DUAL SQL> SELECT HASH_VALUE,SQL_TEXT FROM V$SQL WHERE SQL_TEXT LIKE '%THISISMYTEST%'; HASH_VALUE SQL_TEXT
---------- ------------------------------------------------------------
2081312514 SELECT 'THISISMYTEST' FROM DUAL 2452395670 SELECT HASH_VALUE,SQL_TEXT FROM V$SQL WHERE SQL_TEXT LIKE '%             THISISMYTEST%' Now (as expected) there is now one row in OUTLN.OL$ but the HASH_VALUE != the HASH_VALUE for the given SELECT statement in v$sql. In fact the HASH_VALUE doesn't match anything in v$sql.

Obviously (and demonstratively) the outline will not be used if the query hashes to a different value that the outline. Am I missing something? (CREATE ANY OUTLINE is granted)

Thanks for any help,
- Bill.

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Bill Buchan
  INET: wbuchan_at_uk.intasys.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).

This e-mail message is confidential, intended only for the named recipient(s) above and may contain information that is privileged, attorney work product or exempt from disclosure under applicable law. If you have received this message in error, or are not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 and delete this e-mail message from your computer, Thank you.
**************************************************************************************5

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Jamadagni, Rajendra
  INET: Rajendra.Jamadagni_at_espn.com
Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Wed Dec 17 2003 - 09:19:25 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US