If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Grant database authorities to instance owner ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-25-10, 03:05
vilius vilius is offline
Registered User
 
Join Date: Nov 2007
Posts: 55
Grant database authorities to instance owner ?

Hello,

Using db2 v9.5 on AIX v6.1.

Recently I did redirected restore(changed db SID). One of the tasks after restore is to change db authorities - because db owner is changed.
So previous db owner was granted all db authorities and grantor was SYSIBM - so I revoked that and wanted to grant the same db authorities to new instabce owner:
Code:
SQL0554N  An authorization ID cannot grant a privilege or authority to itself.
SQLSTATE=42502
Because now new instance owner tries to grant to itself.

What should I do ?
Do not grant these authorities to instance owner ?
Or somehow grant as SYSIBM user ?

thanks
Vilius
Reply With Quote
  #2 (permalink)  
Old 10-25-10, 05:46
Marcus_A Marcus_A is online now
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
I am assuming that you did the redirected restore to a different instance, and you did not try and change the instance owner of an existing instance.

You do not need to grant authority to the new instance owner since the instance owner already has SYSADM authority.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On