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 > public access to catalog tables after migration

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-15-12, 22:50
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
public access to catalog tables after migration

Let's say, a v9.1 or v9.5 db is created without RESTRICTIVE option. Then, select is revoked from public for all catalog tables/views. This v9.1 or v9.5 db gets migrated (in-place or via a restore) to v9.7. Select is granted back to public during migration. This only happens if the db was originally created without RESTRICTIVE option.

Do you think this is normal?
Reply With Quote
  #2 (permalink)  
Old 01-16-12, 07:48
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
I don't know if it is normal, but RESTRICTIVE option is useless since it does not even allow access to packages that is needed to execute many SQL statements (such as cursor packages).
__________________
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
  #3 (permalink)  
Old 01-16-12, 18:58
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
I think RESTRICTIVE is useful in their case because their security standards state that public should have no grants at all (I think this applies to all default packages as well but will verify). But not all database were created with this option and migration just grants everything (will verify about packages) back to public. I'm not sure why db2 doesn't revoke what was not supposed to be granted in the first place...
Reply With Quote
  #4 (permalink)  
Old 01-16-12, 22:24
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
Quote:
Originally Posted by db2girl View Post
I think RESTRICTIVE is useful in their case because their security standards state that public should have no grants at all (I think this applies to all default packages as well but will verify).
It does apply to the default packages, and makes the database unusable. The DB2 supplied packages are not documented as to which are needed, so the implementation is ridculous. There should be a difference between a user created package, and those used by DB2 internally to run basic queries (select, insert, update, delete). If you turn on restrictive, you can expect outages trying to figure out which ones to grant access for, which is something that many of us cannot tolerate.
__________________
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