Hello:
When I ran the following SQL Statement from a non-SYSADM user, I
getting SQL0443N errors.
select table_name from table(snapshot_lock(' ', -1)) snapshot where
table_name is not null order by table_name
TABLE_NAME
---------------------------------------------------------------------------------------------------------------------
-----------
SQL0443N Routine "SYSPROC.SNAPSHOT_LOCK" (specific name
"SNAPSHOT_LOCK") has
returned an error SQLSTATE with diagnostic text "". SQLSTATE=38553
However, when I ran the same as a instance owner, it runs fine:
select table_name from table(snapshot_lock(' ', -1)) snapshot where
table_name is not null order by table_name
TABLE_NAME
---------------------------------------------------------------------------------------------------------------------
0 record(s) selected.
Any insights greately appreciated.
Thanks
Sarvesh
Ian - 27 Jun 2006 20:44 GMT
> Hello:
>
[quoted text clipped - 3 lines]
> select table_name from table(snapshot_lock(' ', -1)) snapshot where
> table_name is not null order by table_name
As documented, users need to either be members of the SYSADM group
or the SYSMON group to use the snapshot facility (whether it's
coming from the CLI or the SNAPSHOT tables).
SR - 27 Jun 2006 22:46 GMT
> > Hello:
> >
[quoted text clipped - 7 lines]
> or the SYSMON group to use the snapshot facility (whether it's
> coming from the CLI or the SNAPSHOT tables).
Thanks Ian! One more question for you (forgive me for my ignorance as I
am new to DB2), how do I grant SYSMON privilege to this user? Should I
create a seperate OS group? Can I do this using Control Center?
Regards
Sarvesh
Ian - 28 Jun 2006 16:52 GMT
> Thanks Ian! One more question for you (forgive me for my ignorance as I
> am new to DB2), how do I grant SYSMON privilege to this user? Should I
> create a seperate OS group? Can I do this using Control Center?
You have to:
1) create a new OS group
2) assign users to it,
3) update the database manager config file to set SYSMON_GROUP
4) Recycle the instance
SR - 28 Jun 2006 16:55 GMT
> > Thanks Ian! One more question for you (forgive me for my ignorance as I
> > am new to DB2), how do I grant SYSMON privilege to this user? Should I
[quoted text clipped - 6 lines]
> 3) update the database manager config file to set SYSMON_GROUP
> 4) Recycle the instance
Thank you very much!!
Regards
Sarvesh
Shashi Mannepalli - 27 Jun 2006 20:45 GMT
The NON-SYSADM id should be atleast in SYSMON_GROUP in DBM cfg.
To run snapshot functions.
Shashi Mannepalli
> Hello:
>
[quoted text clipped - 27 lines]
> Thanks
> Sarvesh
SR - 28 Jun 2006 16:57 GMT
Thanks Shashi!
Regards
Sarvesh
> The NON-SYSADM id should be atleast in SYSMON_GROUP in DBM cfg.
> To run snapshot functions.
[quoted text clipped - 32 lines]
> > Thanks
> > Sarvesh