cancel
Showing results for 
Search instead for 
Did you mean: 
Knowledge Sharing Hub
Dive into a collaborative space where members like YOU can exchange knowledge, tips, and best practices. Join the conversation today and unlock a wealth of collective wisdom to enhance your experience and drive success.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable unity catalog system tables?

DouglasMoore
New Contributor III

Unity Catalog system tables provide lots of metadata & log data related to the operations of Databricks. System tables are organized into separate schemas containing one to a few tables owned and updated by Databricks. The storage and the cost of the system tables are on Databricks while the customer pays for the compute the query the system tables. To enable the system schemas, you have to be a Databricks Account Admin. A quick run down of enabling the system tables via command line. This article assumes you have setup the databricks command line interface (cli).

First, obtain the METASTORE_ID with the command:

databricks metastores current --profile <DATABRICKS_CONFIG_PROFILE>

To list the available schemas:

databricks system-schemas list <METASTORE_ID> --profile <DATABRICKS_CONFIG_PROFILE>

Enable the `query` schema, containing query history, via command line:

databricks system-schemas enable <METASTORE_ID> query --profile <DATABRICKS_CONFIG_PROFILE>

 

1 REPLY 1

NandiniN
Honored Contributor

Hi @DouglasMoore ,

Thank you for sharing this. Until now I used to check the information schema.

I am not able to find these details in any official doc. Do you have a reference? 

 

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group