[Info-Ingres] imadb privilges -
10-05-2011
, 04:25 AM
Hi All,
Exactly what priviliges does an ordinary user need to run queries on imadb?
I've read the manual and can't find anything specific but although the users can access imadb and can execute queries with no error ... they get no data.
As an example, I have written a program for them which traces the locks they have taken in an application.
The program connects to imadb and after updating ima_mib_objects to look atall servers in the installation it executes:
select
ll.locklist_session_id,
ss.db_name, ss.effective_user, ss.real_user,
lt.tx_transaction_id,
l.lock_request_mode,
l.lock_state,
r.resource_key
from
ima_locks l join ima_locklists ll
on l.vnode = ll.vnode and l.locklist_id = ll.locklist_id
join ima_resources r
on l.vnode = r.vnode and l.resource_id = r.resource_id
join ima_server_sessions ss
on ll.locklist_session_id = ss.session_id
and ll.locklist_server_pid = ss.server_pid
join ima_log_transactions lt
on ss.server_pid = lt.tx_server_pid
and ss.session_id = lt.tx_session_id
This query will return rows when I execute it as user ingres (and there is something to report), but it will never return rows when run by any other user.
Martin Bowes |