mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-04 07:34:44 +00:00
1.5 KiB
1.5 KiB
Prerequisites
-
Create a user which has access to the database you want to ingest.
CREATE USER datahub FROM <database> AS PASSWORD = <password> PERM = 20000000;
-
Create a user with the following privileges:
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.
-
If lineage or usage extraction is enabled, please, check if query logging is 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 REPLACE QUERY LOGGING LIMIT SQLTEXT=2000 ON ALL;
See more here about query logging: https://docs.teradata.com/r/Teradata-VantageCloud-Lake/Database-Reference/Database-Administration/Tracking-Query-Behavior-with-Database-Query-Logging-Operational-DBAs