From the not-really-one-and-never-read FAQ:
Stack Overflow is for professional and enthusiast programmers, people who write code because they love it. We feel the best Stack Overflow questions have a bit of source code in them, but if your question generally covers …
- a specific programming problem
- a software algorithm
- software tools commonly used by programmers
- matters that are unique to the programming profession
Please note, software tools commonly used by programmers does include RDBMSes. I would also argue that this includes how to configure and manage them, as long as this is from a programmer's perspective.
As the user is asking how to track queries run on the database, and this is an action quite often done by programmers, I think the question is well within the hazy penumbra of on-topic questions on StackOverflow.
Edit: I always forget about DBA. I'd migrate there before migrating to SF/SU.