|
2 | 2 | sidebar_position: 18 |
3 | 3 | author: Paul Ibberson |
4 | 4 | email: paul.ibberson2@teradata.com |
5 | | -page_last_update: Deccember 19th, 2023 |
| 5 | +page_last_update: October 3rd 2024 |
6 | 6 | description: Configure a Teradata Vantage connection in DataHub. |
7 | 7 | keywords: [data warehouses, compute storage separation, teradata, vantage, cloud data platform, object storage, business intelligence, enterprise analytics, datahub, data catalog, data lineage] |
8 | 8 | --- |
@@ -34,25 +34,31 @@ pip install 'acryl-datahub[teradata]' |
34 | 34 | ``` sql |
35 | 35 | CREATE USER datahub FROM <database> AS PASSWORD = <password> PERM = 20000000; |
36 | 36 |
|
37 | | -GRANT SELECT ON dbc.columns TO datahub; |
38 | | -GRANT SELECT ON dbc.databases TO datahub; |
39 | | -GRANT SELECT ON dbc.tables TO datahub; |
40 | | -GRANT SELECT ON DBC.All_RI_ChildrenV TO datahub; |
| 37 | +GRANT SELECT ON DBC.DatabasesV TO datahub; |
| 38 | +GRANT SELECT ON DBC.TablesV TO datahub; |
41 | 39 | GRANT SELECT ON DBC.ColumnsV TO datahub; |
42 | 40 | GRANT SELECT ON DBC.IndicesV TO datahub; |
43 | 41 | GRANT SELECT ON dbc.TableTextV TO datahub; |
44 | | -GRANT SELECT ON dbc.TablesV TO datahub; |
45 | | -GRANT SELECT ON dbc.dbqlogtbl TO datahub; -- if lineage or usage extraction is enabled |
| 42 | +GRANT SELECT ON DBC.All_RI_ChildrenV TO datahub; |
| 43 | + |
| 44 | +-- if lineage or usage extraction is enabled |
| 45 | +GRANT SELECT ON dbc.dbqlogtbl TO datahub; |
| 46 | +GRANT SELECT ON dbc.QryLogV TO datahub; |
| 47 | +GRANT SELECT ON dbc.QryLogSqlV TO datahub; |
46 | 48 | ``` |
| 49 | + |
47 | 50 | * If you want to run profiling, you need to grant select permission on all the tables you want to profile. |
48 | 51 |
|
49 | 52 | * 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: |
50 | 53 |
|
51 | 54 | ``` sql |
52 | 55 | -- set up query logging on all |
53 | | - |
54 | | -REPLACE QUERY LOGGING LIMIT SQLTEXT=2000 ON ALL; |
| 56 | +REPLACE QUERY LOGGING WITH SQL LIMIT SQLTEXT=2000 ON ALL; |
55 | 57 | ``` |
| 58 | +Learn more about query logging in this document: |
| 59 | +[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) |
| 60 | + |
| 61 | + |
56 | 62 |
|
57 | 63 | ## Add a Teradata connection to DataHub |
58 | 64 | 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 |
110 | 116 | * Schema of an entity showing column/field names, data types and usage if it has been captured |
111 | 117 |  |
112 | 118 | * Lineage providing a visual representation of how data is linked between tables and views |
113 | | - |
| 119 | + |
114 | 120 |
|
115 | 121 | ## Summary |
116 | 122 |
|
|
0 commit comments