メインコンテンツまでスキップ
に最終更新

SHOW CREATE CATALOG

Description​

This statement shows the creating statement of a doris catalog.

Property Masking​

The shared masking policy is planned for Doris 4.2.0 and for 5.0 and later releases. Sensitive properties display as *XXX; some internal properties are omitted. Explicit JDBC connection strings are entirely hidden, while ordinary URIs are sanitized according to their values. See Catalog property masking rules. The example below uses this policy; it does not describe 4.0, 4.1 or 3.x. In the example, *XXX is a masking marker; other XXX values are illustrative placeholders.

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​

PrivilegeObjectNotes
ADMIN_PRIV / SELECT_PRIV / LOAD_PRIV / ALTER_PRIV / CREATE_PRIV / SHOW_VIEW_PRIV / DROP_PRIVCatalogOne of the above permissions is required.

Example​

  1. 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"
); |
+---------+----------------------------------------------------------------------------------------------------------------------+