SQL Performance (MOSC)

MOSC Banner

MERGE JOIN CARTESIAN on one row causes lots of 'direct path write temp'

edited Dec 17, 2018 8:06AM in SQL Performance (MOSC) 5 commentsAnswered ✓

Hello,

We're running a query on 11.2.0.2 on IBM/AIX...

It looks like:

select ...

FROM schema1.ABC abc, schema2.DEF def

WHERE def.type = 'N'

Table DEF contains 2 rows, with type='N' it returns one row; *no* columns from DEF appear

in the SELECT clause; and as you noticed - no join between the two tables.

ABC contains almost 9,900,000 rows. None of them is temporary: just regular tables. The

statement can't be modified (it's made by a tool, dozens of tables are processed the same

way, sometimes this cartesian join makes sense - but here in this case it doesn't indeed,

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