The CURRENT_INSTANCE function returns the ID of the currently connected instance. When the connected instance is stopped, NULL is returned.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition provides only the MySQL mode.
Syntax
DBMS_UTILITY.CURRENT_INSTANCE
RETURN NUMBER;