Skip to content

health_check.contrib.db_heartbeat does not work on Oracle DB #481

@luzfcb

Description

@luzfcb

Oracle doesn't support a SELECT without a FROM statement in pure SQL.

To achieve the same behavior as SELECT 1; in Oracle, simply use Oracle's native dummy table, called DUAL, i.e., do SELECT 1 FROM DUAL;.

Related docs:

https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/Selecting-from-the-DUAL-Table.html

Note: On Oracle 23+, it is now optional to select expressions using the FROM DUAL clause

https://docs.oracle.com/en/database/oracle/oracle-database/23/sqlrf/Selecting-from-the-DUAL-Table.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions