PL/SQL (MOSC)

MOSC Banner

A select from a column of type CHAR is too slow using TRIM

edited May 19, 2009 3:11AM in PL/SQL (MOSC) 5 commentsAnswered
Stored Procedure too slow. A select from a column of type CHAR is too slow using the TRIM function. The execution period is around 3 minutes.

This is slow even when run on the PL/SQL editor.

Now removing the TRIM function for the column, when executed the query on a PL/SQL editor is supremely fast and gave the desired results. Less than 10 seconds.

However without the TRIM function on the same "Select" and inside an stored procedure gave NO RESULTS. This is completely weird and confusing.

NOTE: We are retrieving the values from the production table which is really huge. The synopsis of the select statement is,

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