SHOW CREATE CATALOG
Descriptionβ
This statement shows the creating statement of a doris catalog.
Syntaxβ
SHOW CREATE CATALOG <catalog_name>;
Required Parametersβ
1. <catalog_name>
The name of the catalog whose creation statement needs to be viewed.
Access Control Requirementsβ
Privilege | Object | Notes |
---|---|---|
ADMIN_PRIV / SELECT_PRIV / LOAD_PRIV / ALTER_PRIV / CREATE_PRIV / SHOW_VIEW_PRIV / DROP_PRIV | Catalog | One of the above permissions is required. |
Exampleβ
- View the creating statement of the oracle catalog in doris
SHOW CREATE CATALOG oracle;
+---------+----------------------------------------------------------------------------------------------------------------------+
| Catalog | CreateCatalog |
+---------+----------------------------------------------------------------------------------------------------------------------+
| oracle |
CREATE CATALOG `oracle` PROPERTIES (
"user" = "XXX",
"type" = "jdbc",
"password" = "*XXX",
"jdbc_url" = "XXX",
"driver_url" = "XXX",
"driver_class" = "oracle.jdbc.driver.OracleDriver",
"checksum" = "XXX"
); |
+---------+----------------------------------------------------------------------------------------------------------------------+