Ad Widget

Collapse

find long running query of oracle in zabbix dashboard

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sniperking
    Junior Member
    • Mar 2021
    • 2

    #1

    find long running query of oracle in zabbix dashboard

    We are currently using Zabbix 4.2.4, we have the zabbix oracle database which stores the information of the server level(CPU) and database level problems(Locking) in the database.

    Is there any table which stores the information of long running SQL in zabbix database.

    please let me know if you need more information.
  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #2
    You can configure Zabbix server to log long queries to the log file. See option LogSlowQueries in https://www.zabbix.com/documentation.../zabbix_server

    E. g. to log SQL queries that take more than 3 seconds:
    Code:
    LogSlowQueries=3000

    Comment


    • sniperking
      sniperking commented
      Editing a comment
      Dear Dimir, thank you for responding. is there any tables in zabbix which stores the long running Queries.
      For example the zabbix database has tables like HISTORY_UINT_TMP,TRENDS,TASK_ACKNOWLEDGE,APPLICATI ONS
  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #3
    Nope, long queries can only be logged to the log file.

    Comment

    • sniperking
      Junior Member
      • Mar 2021
      • 2

      #4
      Thanks for the response dimir :-)

      Comment

      Working...