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 > V7.2 - USAGEAUTH on a SEQUENCE

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-15-06, 10:59
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
V7.2 - USAGEAUTH on a SEQUENCE

DB2 V7.2 on Unix

How do you identify whether USAGE has been granted to PUBLIC on a sequence ?

I don't seem to remember how it used to be and searches haven't helped much (yet!)

Thanks
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #2 (permalink)  
Old 02-15-06, 15:36
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
sathyaram,

Check out syscat.sequenceauth
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #3 (permalink)  
Old 02-15-06, 16:01
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Thanks

Doesn't exist on 7.2 .. IIRC, the view was introduced in V8 only

/home/myuserid>db2 "select * from syscat.sequenceauth"
SQL0204N "SYSCAT.SEQUENCEAUTH" is an undefined name. SQLSTATE=42704
Quote:
Originally Posted by Cougar8000
sathyaram,

Check out syscat.sequenceauth
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #4 (permalink)  
Old 02-16-06, 04:20
sun4u sun4u is offline
Registered User
 
Join Date: Dec 2005
Posts: 18
Grant or Revoke it again, it will not make a difference.
Reply With Quote
  #5 (permalink)  
Old 02-16-06, 09:02
Cougar8000 Cougar8000 is offline
Registered User
 
Join Date: Nov 2005
Location: IL
Posts: 554
Quote:
Originally Posted by sathyaram_s
Thanks

Doesn't exist on 7.2 .. IIRC, the view was introduced in V8 only

/home/myuserid>db2 "select * from syscat.sequenceauth"
SQL0204N "SYSCAT.SEQUENCEAUTH" is an undefined name. SQLSTATE=42704
I was hoping it would not be the case. I wonder if it is under different name on 7.2
__________________
--
IBM Certified DBA on DB2 for Linux, UNIX, and Windows

DB2 v9.1.0.2 os 5.3.0.0
Reply With Quote
  #6 (permalink)  
Old 02-16-06, 16:00
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Grant/Revoke is not the problem ..

At a customer site, i'm developing a SQL script to consolidate and present the current authorizations on the database ... Obvioulsy, it should be possible to run anytime later .. I hate tell - 'In V7, if a normal user is able to use a SEQUENCE, permissions are granted to PUBLIC' ..

Thanks

Sathyaram

Quote:
Originally Posted by sun4u
Grant or Revoke it again, it will not make a difference.
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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