SQL Performance (MOSC)

MOSC Banner

RefreshWorkspace slowed because of another SQL.

edited May 30, 2017 5:01AM in SQL Performance (MOSC) 7 commentsAnswered

I apologize if this is the not the correct forum. I have noticed a slowness in a call to DBMS_WM.REFRESHWORKSPACE.

In debugging the problem I used the "oradebug hanganalyze 3" command which showed that it is waiting on the

following SQL:

SELECT SUM(DECODE(INSTR(DL.COLUMN_NAME, '"'), 0, BYTES, BYTES*20)/DECODE(NUM_ROWS, 0, 1, NVL(NUM_ROWS, 1)))

FROM DBA_TABLES DT, DBA_LOBS DL, DBA_SEGMENTS DS WHERE DT.OWNER = :B2 AND DT.TABLE_NAME = :B1 || '_LT' AND DL.OWNER = DT.OWNER

AND DL.TABLE_NAME = DT.TABLE_NAME AND DL.OWNER = DS.OWNER AND DL.SEGMENT_NAME = DS.S....

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