Please explan Why static query is more faster than dynamic
query ?
Answers were Sorted based on User's Feedback
Answer / uma
In dynamic SQL the SQL statement is prepared each time
before the Run time.But this not the case with static SQL
it ll be stored in shared SQL area and this will refered if
same Query is used again.So static ll be faster
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / deshabandhu bar
Static query is faster as this keep the Execution plan in
the lib cache. Also it keeps data blocks in the buffer
cache. Next time when a user try to execute the same query
the user hit the cache and execution plan will be ready for
that user. So the time required for parsing and creating
execution plan will be 0. So the Static query is faster
than the dynamic query.
| Is This Answer Correct ? | 5 Yes | 0 No |
What is the difference between a user and a schema in oracle?
What is hot backup and logical backup?
what is shell?
How do you increase the OS limitation for open files (LINUX and/or Solaris)?
When do you get a .pll extension in oracle? Explain its importance
what are the disadvantages of hierarchial database over RDBMS?
What are the Characteristics of Data Files ?
How do I recompile a procedure in oracle?
How do I limit the number of rows returned by an oracle query after ordering?
What are the trigger associated with image items ?
How do you find out from the RMAN catalog if a particular archive log has been backed-up?
Difference between varchar and varchar2 data types?