-
Basics of hard parsing You surely came across this too many times: hard parsing due to literals.Let’s start from the basics: The direct reason for not sharing these two queries (SQL_IDs) are the literals.In this case ‘2026-07-07 13:21:10′ and ‘2026-07-07 13:21:11‘ make those two statements different (see different SQL_IDs: 8gb3f1q98run2 and 8539hwragf3ag), incurring hard parsing.…
-
Let’s get to presenting the entire solution Here is the tiny and simple Java code (there is a reason why I didn’t use PL/SQL) which upon executing will create storm (10,000) of unique SQL_IDs.The underlying SQL statement contains the offending TIMESTAMP expression which is executed in a loop producing a unique literal.cursor_sharing is set to…
