diff --git a/quickstarts/manage-data/configure-a-teradata-vantage-connection-in-datahub.md b/quickstarts/manage-data/configure-a-teradata-vantage-connection-in-datahub.md index e6e9518198..e19af207d9 100644 --- a/quickstarts/manage-data/configure-a-teradata-vantage-connection-in-datahub.md +++ b/quickstarts/manage-data/configure-a-teradata-vantage-connection-in-datahub.md @@ -2,7 +2,7 @@ sidebar_position: 18 author: Paul Ibberson email: paul.ibberson2@teradata.com -page_last_update: Deccember 19th, 2023 +page_last_update: October 3rd 2024 description: Configure a Teradata Vantage connection in DataHub. keywords: [data warehouses, compute storage separation, teradata, vantage, cloud data platform, object storage, business intelligence, enterprise analytics, datahub, data catalog, data lineage] --- @@ -34,25 +34,31 @@ pip install 'acryl-datahub[teradata]' ``` sql CREATE USER datahub FROM AS PASSWORD = PERM = 20000000; -GRANT SELECT ON dbc.columns TO datahub; -GRANT SELECT ON dbc.databases TO datahub; -GRANT SELECT ON dbc.tables TO datahub; -GRANT SELECT ON DBC.All_RI_ChildrenV TO datahub; +GRANT SELECT ON DBC.DatabasesV TO datahub; +GRANT SELECT ON DBC.TablesV TO datahub; GRANT SELECT ON DBC.ColumnsV TO datahub; GRANT SELECT ON DBC.IndicesV TO datahub; GRANT SELECT ON dbc.TableTextV TO datahub; -GRANT SELECT ON dbc.TablesV TO datahub; -GRANT SELECT ON dbc.dbqlogtbl TO datahub; -- if lineage or usage extraction is enabled +GRANT SELECT ON DBC.All_RI_ChildrenV TO datahub; + +-- if lineage or usage extraction is enabled +GRANT SELECT ON dbc.dbqlogtbl TO datahub; +GRANT SELECT ON dbc.QryLogV TO datahub; +GRANT SELECT ON dbc.QryLogSqlV TO datahub; ``` + * If you want to run profiling, you need to grant select permission on all the tables you want to profile. * If you want to extract lineage or usage metadata, query logging must be enabled and it is set to size which will fit for your queries (the default query text size Teradata captures is max 200 chars) An example how you can set it for all users: ``` sql -- set up query logging on all - -REPLACE QUERY LOGGING LIMIT SQLTEXT=2000 ON ALL; +REPLACE QUERY LOGGING WITH SQL LIMIT SQLTEXT=2000 ON ALL; ``` +Learn more about query logging in this document: +[https://docs.teradata.com/r/Teradata-VantageCloud-Lake/Database-Reference/Database-Administration/Tracking-Query-Behavior-with-Database-Query-Logging-Operational-DBAs](https://docs.teradata.com/r/Teradata-VantageCloud-Lake/Database-Reference/Database-Administration/Tracking-Query-Behavior-with-Database-Query-Logging-Operational-DBAs) + + ## Add a Teradata connection to DataHub With DataHub running, open the DataHub GUI and login. In this example this is running at localhost:9002 @@ -110,7 +116,7 @@ Clicking on "Succeeded" after a sucessful execution will bring up a dialogue sim * Schema of an entity showing column/field names, data types and usage if it has been captured ![Schema display](../other-integrations/images/configure-a-teradata-connection-in-datahub/schema.png) * Lineage providing a visual representation of how data is linked between tables and views -![Lineage picture](../other-integrations/images/configure-a-teradata-connection-in-datahub/lineage-weather.png) +![Lineage picture](../other-integrations/images/configure-a-teradata-connection-in-datahub/lineage-example.png) ## Summary diff --git a/quickstarts/other-integrations/images/configure-a-teradata-connection-in-datahub/finish-up.png b/quickstarts/other-integrations/images/configure-a-teradata-connection-in-datahub/finish-up.png index b9d0aa83cc..bf30308fa4 100644 Binary files a/quickstarts/other-integrations/images/configure-a-teradata-connection-in-datahub/finish-up.png and b/quickstarts/other-integrations/images/configure-a-teradata-connection-in-datahub/finish-up.png differ diff --git a/quickstarts/other-integrations/images/configure-a-teradata-connection-in-datahub/lineage-example.png b/quickstarts/other-integrations/images/configure-a-teradata-connection-in-datahub/lineage-example.png new file mode 100644 index 0000000000..d6bea3d667 Binary files /dev/null and b/quickstarts/other-integrations/images/configure-a-teradata-connection-in-datahub/lineage-example.png differ