05 Oct 2020 10:53 AM
Hello,
Is it possible to retrieve SQLIDs from PurePaths or somewhere else in Dynatrace?
I've read the documentation about Oracle Insights and it does not specifically mentions it, but I thought maybe that would help Dynatrace retrieve additional data.
https://www.dynatrace.com/support/help/how-to-use-dynatrace/databases/analysis/database-insights/
Regards,
Serhat
Solved! Go to Solution.
05 Oct 2020 11:29 AM
Yes, you can retrieve SQLIDs in Oracle Insights. Click the "View Statements" button and they will be available there.
05 Oct 2020 11:40 AM
Hey Antonio,
Do you think is it possible to do this without installing Oracle Insights?
One thing that comes up to my mind is to post this data and retrieve it inside user sessions. I would like to hear your opinions.
05 Oct 2020 12:05 PM
I don't think so. SQLIDs are internal stuff from Oracle, and applications shouldn't have access to it. So don't expect to get them from the Databases menu in the Dynatrace platform.
So I'm not sure what you mean when you refer to "post this data". Does your application have access to it? If so, and I would love to know how, you could use Request Attributes or even post it into User Sessions as you refer.
05 Oct 2020 12:26 PM
I mean retrieving and posting the SQLID from development side and retrieving it using Key Attributes inside User Sessions.
I am new to Dynatrace and still in the phase of learning basic features. It is very possible that some stuff I mention might not make sense 🙂
05 Oct 2020 01:34 PM
I'm just curious how you got the SQLIDs from the application side, but if you do, there is no doubt you can use them. It's not out of the box, though.
05 Oct 2020 01:53 PM
Something similar to this Link
Getting this ID after every statement and storing it in a variable or property, then posting it similar to username, userID, etc into user sessions and catching it there. It might seem like a hacky solution, but this is what comes up to my mind as a solution within my limited knowledge.
05 Oct 2020 02:18 PM - last edited on 16 Oct 2023 03:19 PM by random_user
Your link is interesting. Didn't know about the SQL*Plus trick 🙂
Now, if you've been interacting with the V$% performance views, that's exactly how Dynatrace does it with Oracle Insights.
Concerning the link between Purepaths and SQLIDs in Oracle Insights, it is not yet possible, but you can vote in a RFE that I created some time ago:
I would suggest you try Oracle Insights a try. It has been very helpful to me.