fix oracle long queries query

This commit is contained in:
qgarnier 2017-07-11 14:55:31 +02:00
parent f4560af544
commit 9e79730245
1 changed files with 2 additions and 2 deletions

View File

@ -152,12 +152,12 @@ sub manage_selection {
$self->{alarms}->{global} = { alarm => {} };
my $query = q{
SELECT status, (sql_exec_start - date '1970-01-01')*24*60*60) as sql_exec_start, elapsed_time
SELECT status, ((sql_exec_start - date '1970-01-01')*24*60*60) as sql_exec_start, elapsed_time
FROM v$sql_monitor
};
if ($self->{sql}->is_version_minimum(version => '12')) {
$query = q{
SELECT status, (sql_exec_start - date '1970-01-01')*24*60*60) as sql_exec_start, elapsed_time, username, sql_text
SELECT status, ((sql_exec_start - date '1970-01-01')*24*60*60) as sql_exec_start, elapsed_time, username, sql_text
FROM v$sql_monitor
};
}