Search This Blog

Thursday, January 30, 2014

DB2 Security Commands

Build a script to grant user execute privilege on all packages.
=>db2 "select 'db2 grant execute on package '||pkgschema||'.'||pkgname||' to user ;' from syscat.packages where pkgschema = 'NULLID'" > output.file

Security Notes
  • dbadm auth must be revoked before any other database privlege.
  • create_not_fenced_routine must be revoked before create_external_routine

No comments:

Post a Comment

Error 'Unable to connect to server' is displayed when you run a task that prompts for server restart

  Problem On Windows system, when you select a task that requires a server restart in Administration Services UI, and run that task, the tas...