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 > Schema/User Permission issue

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-24-11, 02:46
db2champ db2champ is offline
Registered User
 
Join Date: Jul 2011
Posts: 46
Schema/User Permission issue

I installed DB2 on windows XP with domain user so it created schema with name of “user.name” and stored all sample database object under that user, now when I connect sample database and trying to select any table it gives insufficient permission error even all object are available in same user schema.
Reply With Quote
  #2 (permalink)  
Old 10-24-11, 04:27
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
probably because you created the object from within another user
eg
connect to db user db2inst1
create table xx.yy
in that case grant should be given to xx
if create tab auth was give to xx
connect to db user xx
create table xx.yy
this user would have all auth
do some reading in infocenter about this
Authorization
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 10-24-11, 07:18
db2champ db2champ is offline
Registered User
 
Join Date: Jul 2011
Posts: 46
SAMPLE Database object permission

I did not created any object in SAMPLE database, these all objects are created on DB2 installation under mine window system domain name schema.
Reply With Quote
  #4 (permalink)  
Old 10-24-11, 07:34
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
so : grant is needed for this user/public.....

did you use user.name as schema ??
check if this character . is allowed.....
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
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