Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3548

M_SQL_PLAN_CACHE: Prepare statement for other user?

$
0
0

Is there a way to prepare a sql statement and store the prep-results in M_SQL_PLAN_CACHE other than execute the statement? Can it be done for another user? Can it be done on SQL-level?

 

Background for the question is that our statements take ~30s to prepare but once in M_SQL_PLAN_CACHE they run in about 300 ms. We tried `ALTER SYSTEM RECOMPILE SQL PLAN CACHE ENTRY 123` but (as expected) this just invalidated the entry and did not update it immediately.


Viewing all articles
Browse latest Browse all 3548

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>