473,386 Members | 1,621 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

running table snapshot as regular login

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

Mar 21 '07 #1
3 4511
Ian
Ultrak The DBA wrote:
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?
Yes, that's the only way.
Mar 21 '07 #2
Ultrak The DBA wrote:
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?
No, it's not the only way. You can set the DB2 registry variable
DB2_SNAPSHOT_NOAUTH to "yes". Then all snapshot operations do not require
authorization. Note, however, that this has security and performance
implications and you should make sure you understand them and they are
acceptable.

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Mar 22 '07 #3
Ian
Knut Stolze wrote:
>
No, it's not the only way. You can set the DB2 registry variable
DB2_SNAPSHOT_NOAUTH to "yes". Then all snapshot operations do not require
authorization. Note, however, that this has security and performance
implications and you should make sure you understand them and they are
acceptable.
Be careful, too: DB2_SNAPSHOT_NOAUTH was deprecated in 8.2 (8.1
Fixpack 7), when SYSMON_GROUP was added.

Mar 23 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

29
by: pb648174 | last post by:
I have a very long transaction that runs on the same database that other users need to use for existing data. I don't care if they see data from the transaction before it is done and am only using...
8
by: Jean-Marc Blaise | last post by:
Dear all, It seems there is a problem with some snapshot table functions, if you try to divide by some element that is unset or equal to 0. This generates a trap file with the db2fmp.exe...
2
by: efiryago | last post by:
Is there a way to calculate size of a table without runnig statistics to use NPAGES info. In my case there are a few very large tables in the same tablespace with very outdated stats, so LIST...
5
by: tom | last post by:
Hey All- I've exported a report to Access's "snapshot" format and want to put it on a website for users to view. However, when I click on the link to the snapshot file, I notice that my browser...
2
by: Rick Brandt | last post by:
Well, I am disappointed. We were using the Snapshot format to send a report via Email for a returned goods document that we want the recipient to print and attach to the part. To expedite...
0
by: Rod | last post by:
I orginally posted this to microsoft.public.sqlserver.ce but had not received any responses. I have a CF.NET application (C#) with a SqlCE database. We had originally planned to use SQL...
0
by: jag | last post by:
hi, db2 documentation says that -2 option for SQL table function for taking snapshot gives you global snapshot for all partition but it does not anyone can share any experience with me ? ...
8
by: veffen | last post by:
Hello all, I'm trying to call the snapshot table function SNAP_GET_TBSP via a jdbc connection using the following query: SELECT * FROM TABLE(SNAP_GET_TBSP(CAST(NULL AS VARCHAR(1), -1)) AS T ...
13
JodiPhillips
by: JodiPhillips | last post by:
G'day, I have a silly and simple problem that I need some guidance with. Due to the way our network is set up, I am unable to use the group permissions for Access and have had to implement log...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.