select 'YYY', substr(TABLESPACE_NAME,1, 18) as TABLESPACE_NAME,
CURRENT DATE,
int((TOTAL_PAGES * PAGE_SIZE)/(1024*1024)) as TOTAL,
int((USED_PAGES * PAGE_SIZE)/(1024*1024)) as USED
from table (snapshot_tbs_CFG(cast(null as varchar(20)), -1 )) as x;
I am trying to get a regular user to run this query and it fails with
a
SQL0443N Routine "SYSPROC.SNAPSHOT_TBS_CFG" (specific name
"SNAPSHOT_TBS_CFG") has returned an error SQLSTATE with diagnostic
text "".
SQLSTATE=38553
I granted exec permission to SNAPSHOT_TBS_CFG for this user and it
still did not work.
I did put the user's group in sysmon_group and recycled the server and
that worked, but is that the only way for this to work?
Thank you for your assistance.
Kermit Lowry