What is a cursor in the dbMonitor Object tree?
Posted: Fri 21 Feb 2014 22:40
Hi:
What are these cursor objects that are displayed under the connection object in the Object tree?
I assumed that the Connection node (in the Object Tree) corresponds to the TSQLConnection object in the app. I am however confused by the Cursor objects.
I have the following scenario:
1. Connect to oracle as user1
2. Run query1 (using TSQLStoredProc)
3. Disconnect
4. Connect to oracle as user2 using the same TSQLConnection object as at step 1
5. Run query2 (using TSQLQuery)
In the dbMonitor query1 & query2 appear associated with the same cursor. I found this confusing and I was hoping that you could clarify what a cursor is in this context and why two queries run in different sessions appear under the same cursor. The cursors in the dbMonitor doesn't seem to correlate with the information returned by the v$open_cursor view.
I also looked in the dbMonitor help and there is no specification of cursors.
Thanks!
Update: After more testing with a second app in debug mode, the dbmonitor created a second connection object, even though we use a single TSQLConnection object. So, at this point, I am not sure the Connection nodes in the Object tree map to the TSQLConnection object.
What are these cursor objects that are displayed under the connection object in the Object tree?
I assumed that the Connection node (in the Object Tree) corresponds to the TSQLConnection object in the app. I am however confused by the Cursor objects.
I have the following scenario:
1. Connect to oracle as user1
2. Run query1 (using TSQLStoredProc)
3. Disconnect
4. Connect to oracle as user2 using the same TSQLConnection object as at step 1
5. Run query2 (using TSQLQuery)
In the dbMonitor query1 & query2 appear associated with the same cursor. I found this confusing and I was hoping that you could clarify what a cursor is in this context and why two queries run in different sessions appear under the same cursor. The cursors in the dbMonitor doesn't seem to correlate with the information returned by the v$open_cursor view.
I also looked in the dbMonitor help and there is no specification of cursors.
Thanks!
Update: After more testing with a second app in debug mode, the dbmonitor created a second connection object, even though we use a single TSQLConnection object. So, at this point, I am not sure the Connection nodes in the Object tree map to the TSQLConnection object.