FIX: fix dbms_workload_repository package syntax error in Oracle mode

This commit is contained in:
AntiTopQuark
2023-09-05 08:44:51 +00:00
committed by ob-robot
parent 065913ae86
commit 85fd1ae1a8
2 changed files with 2 additions and 1 deletions

View File

@ -38,6 +38,7 @@ CREATE OR REPLACE PACKAGE BODY dbms_ash_internal AS
' a.in_committing, ' || ' a.in_committing, ' ||
' a.in_storage_read, ' || ' a.in_storage_read, ' ||
' a.in_storage_write, ' || ' a.in_storage_write, ' ||
' a.in_remote_das_execution, ' ||
' a.module, a.action, a.client_id ' || ' a.module, a.action, a.client_id ' ||
'FROM GV$ACTIVE_SESSION_HISTORY a ' || 'FROM GV$ACTIVE_SESSION_HISTORY a ' ||
'WHERE 1=1 '; 'WHERE 1=1 ';

View File

@ -356,7 +356,7 @@ BEGIN
' SUM(CASE IN_SEQUENCE_LOAD WHEN ''N'' THEN 0 ELSE 1 END) IN_SEQUENCE_LOAD, ' || ' SUM(CASE IN_SEQUENCE_LOAD WHEN ''N'' THEN 0 ELSE 1 END) IN_SEQUENCE_LOAD, ' ||
' SUM(CASE IN_COMMITTING WHEN ''N'' THEN 0 ELSE 1 END) IN_COMMITTING, ' || ' SUM(CASE IN_COMMITTING WHEN ''N'' THEN 0 ELSE 1 END) IN_COMMITTING, ' ||
' SUM(CASE IN_STORAGE_READ WHEN ''N'' THEN 0 ELSE 1 END) IN_STORAGE_READ, ' || ' SUM(CASE IN_STORAGE_READ WHEN ''N'' THEN 0 ELSE 1 END) IN_STORAGE_READ, ' ||
' SUM(CASE IN_STORAGE_WRITE WHEN ''N'' THEN 0 ELSE 1 END) IN_STORAGE_WRITE ' || ' SUM(CASE IN_STORAGE_WRITE WHEN ''N'' THEN 0 ELSE 1 END) IN_STORAGE_WRITE, ' ||
' SUM(CASE IN_REMOTE_DAS_EXECUTION WHEN ''N'' THEN 0 ELSE 1 END) IN_REMOTE_DAS_EXECUTION ' || ' SUM(CASE IN_REMOTE_DAS_EXECUTION WHEN ''N'' THEN 0 ELSE 1 END) IN_REMOTE_DAS_EXECUTION ' ||
'FROM (' || DBMS_ASH_INTERNAL.ASH_VIEW_SQL || ') top_event ) phases ' || 'FROM (' || DBMS_ASH_INTERNAL.ASH_VIEW_SQL || ') top_event ) phases ' ||
' unpivot ' || ' unpivot ' ||