information_schema.catalogs view to get information about catalogs (databases in SQL terminology). You can use a SELECT query to return information about each database as shown in the example below.
In order to view catalog information, you must have catalog privileges or have ownership of the catalog object.