You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the application attempts to execute SELECT against SYS.V_$DIAG_ALERT_EXT.
However, the docker-compose/oracle/grant_permissions.sql script does not include the necessary GRANT SELECT statement for the pdbadmin user to access this view.
logger.Info("Failed to query the alert log three consecutive times, so will not try any more")
Steps to Reproduce:
docker compose up
Observe the application logs for errors related to querying SYS.V_$DIAG_ALERT_EXT.
observability-exporter | time=2025-04-02T00:45:35.414Z level=INFO source=alertlog.go:40 msg="Log destination file does not exist, will try to create it: /log/alert.log"
observability-exporter | time=2025-04-02T00:45:35.577Z level=ERROR source=alertlog.go:113 msg="Error querying the alert logs" !BADKEY="dpiStmt_execute: ORA-00942: table or view \"SYS\".\"V_$DIAG_ALERT_EXT\" does not exist"
observability-exporter | time=2025-04-02T00:45:50.416Z level=ERROR source=alertlog.go:113 msg="Error querying the alert logs" !BADKEY="dpiStmt_execute: ORA-00942: table or view \"SYS\".\"V_$DIAG_ALERT_EXT\" does not exist"
observability-exporter | time=2025-04-02T00:46:05.415Z level=ERROR source=alertlog.go:113 msg="Error querying the alert logs" !BADKEY="dpiStmt_execute: ORA-00942: table or view \"SYS\".\"V_$DIAG_ALERT_EXT\" does not exist"
observability-exporter | time=2025-04-02T00:46:20.413Z level=INFO source=alertlog.go:29 msg="Failed to query the alert log three consecutive times, so will not try any more"
Expected Behavior:
The grant_permissions.sql script should include the following SQL statement to grant the pdbadmin user the necessary permissions:
grantselectonsys.v_$diag_alert_ext TO pdbadmin;
The text was updated successfully, but these errors were encountered:
4Aiur
added a commit
to 4Aiur/oracle-db-appdev-monitoring
that referenced
this issue
Apr 2, 2025
Problem:
In
alertlog.go
oracle-db-appdev-monitoring/alertlog/alertlog.go
Line 108 in 3f08a60
the application attempts to execute
SELECT
againstSYS.V_$DIAG_ALERT_EXT
.However, the
docker-compose/oracle/grant_permissions.sql
script does not include the necessaryGRANT SELECT
statement for thepdbadmin
user to access this view.oracle-db-appdev-monitoring/docker-compose/oracle/grant_permissions.sql
Line 11 in 3f08a60
This discrepancy results in three error occurrences upon
docker-compose
startup, as the application lacks the required permissions to query the view.oracle-db-appdev-monitoring/alertlog/alertlog.go
Line 29 in 3f08a60
Steps to Reproduce:
SYS.V_$DIAG_ALERT_EXT
.Expected Behavior:
The
grant_permissions.sql
script should include the following SQL statement to grant thepdbadmin
user the necessary permissions:The text was updated successfully, but these errors were encountered: