天天看點

db2 監控使用者授權

db2 "create db <dbname> on /db2data1, /db2data2 ...... dbpath on /<db2path> using codeset utf-8 territory CN RESTRICTIVE"
db2 "grant usage on workload sysdefaultuserworkload to user appmon"
db2 "grant all on table <tabname> to user appmon"
db2 "grant execute on package NULLID.SQLUAO20 to appmon"
db2 "grant execute on package NULLID.SQLUFO17 to appmon"
db2 "grant execute on package NULLID.SQLUOO01 to appmon"
db2 "grant execute on package NULLID.SQLUKO0C to appmon"
db2 "grant execute on package NULLID.SQLUCO09 to appmon"
db2 "grant execute on package NULLID.SQLUBO05 to appmon"
db2 "grant execute on package NULLID.SQLUHO0B to user appmon"
db2 "grant execute on package NULLID.SQLC2O29 to appmon"
db2 "grant execute on package NULLID.SQLUPO00 to user appmon"
db2 "grant select on table syscat.functions to user appmon"
db2 "grant select on table SYSCAT.PACKAGES to user appmon"
db2 "grant select on table SYSIBMADM.DBCFG to user appmon"
db2 "grant select on table SYSCAT.INDEXCOLUSE to user appmon"
db2 "grant select on table SYSCAT.INDEXES to user appmon"
db2 "grant select on table SYSCAT.COLUMNS to user appmon"
db2 "grant select on table SYSIBM.SYSCOLUMNS to user appmon"
db2 "grant execute on function SYSPROC.BASE_TABLE to user appmon"