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 |
Explain the use of control file?
what is the use of ondelete cascade?
What would you do if a database crashes in production?
What are the differences between interval year to month and interval day to second?
What is a recycle bin in oracle?
how to unbreak sequence numbers during intereptions
How to call a stored function in oracle?
Can select statements be used on views in oracle?
what is primary key and foreign key when and where have to use
Why does oracle 9i treat an empty string as null?
How does the on-delete-cascade statement work?
What is a relational database management system?