Hello,
Recently, I attended an Oracle DBA interview. The question was - Two users submitted two identical READ ONLY SQL Statements.
- The second user (user2)noticed that the result took longer to return that the first user(user1). Explain.
I answered as follow:
This is one of those "gotcha" questions, there could be various reasons.
1)There could be resource locked down by user1 depending on how much data is being fetched by user1 statement.
2)Also, there is a possibility that the data block being is no longer available in the buffer cache, that is, it has been flushed from the Buffer Cache by another user process (not user1) or put at the LRU end of the LRU list in the buffer cache.
3)If there is a sort in the select statement, large pool might being involved and the size of the large pool.
I did not get any feedback from my interview, hence this has been bothering me.
Please let me know if you have different take on this. Also, let me know if there are any oracle interview questions out there that I can study.
Thanks,
tekpr00
Recently, I attended an Oracle DBA interview. The question was - Two users submitted two identical READ ONLY SQL Statements.
- The second user (user2)noticed that the result took longer to return that the first user(user1). Explain.
I answered as follow:
This is one of those "gotcha" questions, there could be various reasons.
1)There could be resource locked down by user1 depending on how much data is being fetched by user1 statement.
2)Also, there is a possibility that the data block being is no longer available in the buffer cache, that is, it has been flushed from the Buffer Cache by another user process (not user1) or put at the LRU end of the LRU list in the buffer cache.
3)If there is a sort in the select statement, large pool might being involved and the size of the large pool.
I did not get any feedback from my interview, hence this has been bothering me.
Please let me know if you have different take on this. Also, let me know if there are any oracle interview questions out there that I can study.
Thanks,
tekpr00