Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old May 22nd, 2006, 05:15 PM
khosravi@gmx.de
Guest
 
Posts: n/a
Default SNAPSHOT_TABLE

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

  #2  
Old May 22nd, 2006, 09:05 PM
Artur
Guest
 
Posts: n/a
Default Re: SNAPSHOT_TABLE

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

  #3  
Old May 23rd, 2006, 08:25 AM
khosravi@gmx.de
Guest
 
Posts: n/a
Default Re: SNAPSHOT_TABLE

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

  #4  
Old May 23rd, 2006, 08:45 AM
Mark A
Guest
 
Posts: n/a
Default Re: SNAPSHOT_TABLE

<khosravi@gmx.de> wrote in message
news:1148368859.882396.327040@u72g2000cwu.googlegr oups.com...[color=blue]
> 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
>[/color]

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).


  #5  
Old May 23rd, 2006, 09:35 AM
khosravi@gmx.de
Guest
 
Posts: n/a
Default Re: SNAPSHOT_TABLE

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!

  #6  
Old May 23rd, 2006, 10:15 AM
Artur
Guest
 
Posts: n/a
Default Re: SNAPSHOT_TABLE

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

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,338 network members.