SQL Performance (MOSC)

MOSC Banner

A question about huge difference in cardinality of a query with 3 predicates

edited Oct 23, 2017 6:37AM in SQL Performance (MOSC) 4 commentsAnswered

Hi All,

I am having an issue of a query getting a bad plan  -which I have narrowed down to major mismatch between estimated and actual cardinality of one of the tables involved in the query. I need 

help from experts on understanding why the cardinality estimate is wrong and what can be done to rectify.  For this purpose I have created a test table with required columns and tried to

create same situation (of cardinality mismatch) and following are the details on it. (Oracle version is : 11.2.0.4 on Linux.)

Table structure: CREATE TABLE processes

(

process_id    NUMBER (12) NOT NULL PRIMARY KEY,

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center