"all the needed rights" is a bit vague, but if you're looking for a broad set of permissions, here's a script that provides extensive rights (though it's crucial to adjust it based on your actual needs):
GRANT CONNECT ON DATABASE TO USER technical_user;
GRANT SELECT, INSERT, UPDATE, DELETE ON ALL TABLES IN SCHEMA schema_name TO USER technical_user;
GRANT EXECUTE ON ALL PROCEDURES IN SCHEMA schema_name TO USER technical_user;
GRANT USAGE ON ALL SEQUENCES IN SCHEMA schema_name TO USER technical_user;
GRANT CREATETAB, BINDADD, CREATE_NOT_FENCED, IMPLICIT_SCHEMA ON DATABASE TO USER technical_user;
COMMIT;
------------------------------
Youssef Sbai Idrissi
Software Engineer
------------------------------
Original Message:
Sent: Thu August 24, 2023 04:56 AM
From: Jörg Burdorf
Subject: DMC - wich grants to use on a restricted Db2 DB
Hi folks!
Is there a sql grant script to grant all the needed rights to a technical user on a restricted Db2 DB? That means, there are no public grants at all in the system.
The only DBAUTH right is connect grantet to a role where the technical user is assigned to. Also the technical user is not in one of the DBM SYS groups.
If there is no script, where can I find the infromation, wich grants are needed?
regards
Joerg
------------------------------
Jörg Burdorf
------------------------------