DB2 Grant add,update,delete to user -
I need to add, update and delete a user named "Trial" in a database that I am associated with
What will be the syntax? I have tried:
db2 grant without luck
Add to database to test, update , Delete Using DB2 10 in AICE (Command Line)
You must check the permissions of the type Can give a database and its objects in
I think the "add" is included, but it is given on a table, the database is not the same for updates and deletions.
You can allow yourself, if only you have a super authority, such as sysadm, dbadm or secadm (depending on DB version 2, and security configured).
For example:
Enter, update, delete the table db2inst1.emp in the DB2 grant user trial all the DML Permission on schema db2inst1 in Table emp
If you want to pass all the tables, you should create a grant sentence:
db2 -x + o -z commands.sql "Choose 'Insert, Update, Delete' Trim (Tabs) || '.' || Trim (TabNA) || 'User Test;' From Syscat.tables where type = 't' "& gt; Db2 -tvf commands.sql The first command has allowed all grants along with these signals. Second, the output of the first order is executed.
You can execute both commands in the same line through both the loops, but there is a limit of unix that blocks the output.
db2 -x "Select 'internal entry ... ... pay =' t '" | DB2 + P -TV - Grant Information -
- DB2 + P Explanation -
Comments
Post a Comment