Ingres Community Forums Login Register Ingres.com  

Ingres Community Forum


Go Back   Ingres Community Forums > Ingres Forums > DBA Forum
 

Reply
 
LinkBack Thread Tools Display Modes
Old 2009-03-16   #1 (permalink)
Junior Member
 
Join Date: Aug 2007
Posts: 6
Default View DB access from iidbdb

Without using accessdb, how do I see what users have been granted access to a database? I can grant and revoke access in iidbdb all day, I just don't know how to view the current access.

Thanks!
cortanderson is offline   Reply With Quote
Old 2009-03-16   #2 (permalink)
Ingres Corp
 
Join Date: Mar 2007
Location: Australia
Posts: 329
Blog Entries: 1
Default

What you need is to run some SQL on the iidbprivileges catalog in iidbdb. Check out appendix A of the database administrators guide for more details as there are lots of things you can find out, but the specific query to answer your question would be something like

Code:
SELECT grantee_name FROM iidbprivileges
WHERE database_name = '<your_database>'
AND gr_type = 'U'
AND db_access = 'Y'
You might also want to consider that some databases are public, which means everyone has access by default. You can find this information out by looking at the "access" column in iidatabase_info (also described in appendix A).
stephenb is offline   Reply With Quote
Old 2009-03-17   #3 (permalink)
Junior Member
 
Join Date: Aug 2007
Posts: 6
Default

This is exactly what I was looking for.

Thanks Stephen!
cortanderson is offline   Reply With Quote

Reply


Thread Tools
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


© 2009 Ingres Corporation. All Rights Reserved