dbTalk Databases Forums  

SNAPSHOT_TABLE

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss SNAPSHOT_TABLE in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default SNAPSHOT_TABLE - 05-22-2006 , 11:15 AM






Hallo,
ich habe mit folgenden fehlermeldung zu kämpfen:

C:\>db2 select * from table(snapshot_table('Sample',-1)) as snap

SNAPSHOT_TIMESTAMP ROWS_WRITTEN ROWS_READ
OVERFLOW_AC
-------------------------- -------------------- --------------------
-----------
SQL0443N Routine "*OT_TABLE" (specific name "") has returned an error
SQLSTATE with diagnostic text "SQL1092 Reason code or token:
ADMINISTRATOR
". SQLSTATE=38553



wäre über hilfe sehr dankbar...

gruss khoco


Reply With Quote
  #2  
Old   
Artur
 
Posts: n/a

Default Re: SNAPSHOT_TABLE - 05-22-2006 , 03:06 PM






db2 ? SQL1092

will give you the explanation. The user ADMINISTRATOR has no rights to
issue snapshots.

the user should have one of the following:

* sysadm
* sysctrl
* sysmaint
* sysmon

Read more about SYSMON_GROUP database manager parameter.

-- Artur Wronski


Reply With Quote
  #3  
Old   
AT
 
Posts: n/a

Default Re: SNAPSHOT_TABLE - 05-23-2006 , 02:20 AM



How can i give the administrator the rights to issue snapshots?
How can i give him the rights in the following groups:
* sysadm
* sysctrl
* sysmaint
* sysmon
?
thx


Reply With Quote
  #4  
Old   
Mark A
 
Posts: n/a

Default Re: SNAPSHOT_TABLE - 05-23-2006 , 02:42 AM



<khosravi (AT) gmx (DOT) de> wrote

Quote:
How can i give the administrator the rights to issue snapshots?
How can i give him the rights in the following groups:
* sysadm
* sysctrl
* sysmaint
* sysmon
?
thx

First define the group name you want in the operating system. Then you
define the group name in the dbm config (instance). Try this:
db2 get dbm cfg
and you will see where the group names are defined for the various
authorization levels you have indicated above..

Then add the user id to the group at the operating system level. You may
need to restart the instance (db2stop and db2start) for it to take effect
(but I am not sure).




Reply With Quote
  #5  
Old   
AT
 
Posts: n/a

Default Re: SNAPSHOT_TABLE - 05-23-2006 , 03:29 AM



but today it works with a domain user but not with the local admin!!!
I have a Domain user (TEST) as DBA and Local Admin on the server and i
have the local admin(administrator).
I have no rights with the local admin to issue snapshots but with the
domain user and i have no group define...

?????
Thank in advance!


Reply With Quote
  #6  
Old   
Artur
 
Posts: n/a

Default Re: SNAPSHOT_TABLE - 05-23-2006 , 04:11 AM



By default Windows administrators have all the authorities (SYSADM).
You don't have to define the groups and update the instance parameters
if you accept the default.

BUT:

If you started DB2 using Domain user, domain administrators are "the
DB2 administrators".

-- Artur Wronski


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.