2023-10-13 00:14:45 +02:00
|
|
|
### Prerequisites
|
2025-04-16 16:55:51 -07:00
|
|
|
|
2023-10-13 00:14:45 +02:00
|
|
|
1. Create a user which has access to the database you want to ingest.
|
2025-04-16 16:55:51 -07:00
|
|
|
```sql
|
|
|
|
CREATE USER datahub FROM <database> AS PASSWORD = <password> PERM = 20000000;
|
|
|
|
```
|
2023-10-13 00:14:45 +02:00
|
|
|
2. Create a user with the following privileges:
|
2025-04-16 16:55:51 -07:00
|
|
|
|
|
|
|
```sql
|
|
|
|
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.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
|
|
|
|
```
|
|
|
|
|
|
|
|
If you want to run profiling, you need to grant select permission on all the tables you want to profile.
|
2023-10-13 00:14:45 +02:00
|
|
|
|
2023-10-13 21:07:19 +02:00
|
|
|
3. If lineage or usage extraction is enabled, please, check if query logging is enabled and it is set to size which
|
2025-04-16 16:55:51 -07:00
|
|
|
will fit for your queries (the default query text size Teradata captures is max 200 chars)
|
2023-10-13 00:14:45 +02:00
|
|
|
An example how you can set it for all users:
|
2025-04-16 16:55:51 -07:00
|
|
|
`sql
|
|
|
|
REPLACE QUERY LOGGING LIMIT SQLTEXT=2000 ON ALL;
|
|
|
|
`
|
2023-10-13 00:14:45 +02:00
|
|
|
See more here about query logging:
|
2025-04-16 16:55:51 -07:00
|
|
|
[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)
|