Database Administration (MOSC)

MOSC Banner

optimize a query

edited Jul 4, 2014 3:52AM in Database Administration (MOSC) 3 commentsAnswered ✓

Hi,

I try to optimize this query that takes 5 minutes to bring 1 row. Sql Tuning Advisor gives nothing because of >= symbole and expressions.

Do you see any way to optimize it ?

Thank you.

NAME                                ;TYPE       ;VALUE

------------------------------------;-----------;-----------

optimizer_dynamic_sampling          ;integer    ;1

optimizer_features_enable           ;string     ;9.2.0

optimizer_index_caching             ;integer    ;0

optimizer_index_cost_adj            ;integer    ;100

optimizer_max_permutations          ;integer    ;2000

optimizer_mode                      ;string     ;CHOOSE

SELECT PV_REQ_NAME, BUSINESS_UNIT, REQ_ID, REQ_STATUS, PV_REQ_STATUS, HOLD_STATUS, TO_CHAR(REQ_DT,'YYYY-MM-DD'), ORIGIN, REQUESTOR_ID, OPRID_ENTERED_BY,

OPRID_MODIFIED_BY, OPRID_APPROVED_BY, TO_CHAR(ENTERED_DT,'YYYY-MM-DD'), TO_CHAR(APPROVAL_DT,'YYYY-MM-DD'), PO_POST_STATUS, APPL_JRNL_ID_ENC, POST_DOC,

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