The SYSCS_UTIL.SYSCS_GET_DATABASE_NAME function returns the name of the database of the current connection.
VARCHAR(32672) SYSCS_UTIL.SYSCS_GET_DATABASE_NAME()
By default, all users have execute privilege on this function.
Retrieve the database name:
VALUES SYSCS_UTIL.SYSCS_GET_DATABASE_NAME();