Skip to content

[BUG] default metric 'wait_time' fail with error ORA-00904: "TIME_WAITED_SEC_TOTAL": invalid identifier" #344

@romankspb

Description

@romankspb

Description

On some oracledb instances request wait_time from default-metrics.toml fail with error "ORA-00904: "TIME_WAITED_SEC_TOTAL": invalid identifier".

select
inst_id,
wait_class,
round(time_waited/100,3) time_waited_sec_total,
con_id
from gv$system_wait_class
where wait_class <> 'Idle'
group by inst_id, wait_class, con_id, time_waited_sec_total

Request below working everywhere

select
inst_id,
wait_class,
round(time_waited/100,3) time_waited_sec_total,
con_id
from gv$system_wait_class
where wait_class <> 'Idle'
group by inst_id, wait_class, con_id, round(time_waited/100,3)

Environment

  • OS: official docker image
  • Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production Version 19.26.0.0.0
  • Exporter version: 2.0.3, 2.0.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions