Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: WARNING: CURSOR_SHARING=FORCE on 8.1.7
Eeeek! It just keeps getting worse! Can someone on 8.1.7.x on a NON-HP platform using CURSOR_SHARING=FORCE and CBO at the system level try the following test for me?
DROP TABLE REJ_TEST CASCADE CONSTRAINTS ;
CREATE TABLE REJ_TEST (
ACCESSCONTROLID NUMBER (10) NOT NULL,
RESOURCE_NAME VARCHAR2 (10) NOT NULL,
ACTION VARCHAR2 (10) NOT NULL, ISALLOWED NUMBER (5) NOT NULL, PARTYID NUMBER (10) NOT NULL, PTYPE NUMBER (3) NOT NULL); insert into rej_test values (23, 'ESR', 'upd1', -1, 60, 1); insert into rej_test values (60, 'ESR', 'upd1', -1, 13, 2);
analyze table rej_test compute statistics;
REM SELECT 1
SELECT Resource_Name, Action
FROM rej_test
WHERE
(PartyID=60 AND IsAllowed=-1 AND PType=1) OR (PartyID=13 AND IsAllowed=-1
AND PType=2);
ALTER SESSION SET CURSOR_SHARING=EXACT;
REM SELECT 2
SELECT Resource_Name, Action
FROM rej_test
WHERE
(PartyID=60 AND IsAllowed=-1 AND PType=1) OR (PartyID=13 AND IsAllowed=-1 AND PType=2);
ALTER SESSION SET CURSOR_SHARING=FORCE;
REM SELECT 3
SELECT Resource_Name, Action
FROM rej_test
WHERE
(PartyID=60 AND IsAllowed=-1 AND PType=1)
OR
(PartyID=13 AND IsAllowed=-1 AND PType=2);
I've purposely formatted each SELECT a little differently in order to force a hard parse. The problem I'm seeing is that SELECT #1 and #3 *RETURN NO ROWS*! If #3's formatted to be just like #2, it works fine, which leads me to believe the problem's in the parse.
TIA!
Rich Jesse System/Database Administrator Rich.Jesse_at_qtiworld.com Quad/Tech International, Sussex, WI USA
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Jesse, Rich INET: Rich.Jesse_at_qtiworld.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- 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-LReceived on Tue Aug 21 2001 - 12:23:08 CDT
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
![]() |
![]() |