The CURRENT_INSTANCE function returns the ID of the currently connected instance. When the connected instance is stopped, NULL is returned.
Syntax
DBMS_UTILITY.CURRENT_INSTANCE
RETURN NUMBER;
Meet OceanBase AI Lakebase, the unified database for operational data, real-time analytics, and AI.
Meet OceanBase AI Lakebase, the unified database for operational data, real-time analytics, and AI. Explore ->
OceanBase Database
Download PDF
The CURRENT_INSTANCE function returns the ID of the currently connected instance. When the connected instance is stopped, NULL is returned.
DBMS_UTILITY.CURRENT_INSTANCE
RETURN NUMBER;