I'm trying to improve performance to specific query in my DB. One of the tables in the query, has parallel degree which is greater than 1 in dba_tables.
I founded that if I add a hint of
NO_PARALLEL
my query back to run very fast.
The problem is that I don't want to touch and change the source of query.
So I found this article:
http://intermediatesql.com/oracle/how-to-add-a-hint-to-oracle-query-without-touching-its-text/
which explain how to use alias with block names to create a profile and actually execute the hint with no touching the query.
I used it before for use an index even the optimizer decide to execute FTS.
But in case of parallel - I just didn't understand how to do that.
I just want to add the action that will simulate the no_parallel hint on the whole query.
Additionally, I don't want to set the parallel parameter or alter the session.. just change for this query.
Someone?
Thanks.