Database Tuning (MOSC)

MOSC Banner

Programatically evaluate the cost of a query

edited Jan 28, 2009 11:59PM in Database Tuning (MOSC) 3 commentsAnswered
Hi,
I want to find a mechanism to evaluate the cost of a query before executing it.  The query is built in a java based application, based on the user's input and I want to prevent large executing queries being executed by the application.

Is there a way for me to problematically execute an explain plan for the sql statement and get the cost of the query?

One way that I am thinking is to create a function and use that function to return the cost, but I don't think this is the cleanest and most efficient way to get the results I want.......

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