Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-10-2008, 02:02 PM
Damir
 
Posts: n/a
Default Federated database access

Hello,
I have a strange problem with federated access between two DB2 databases,
both on AIX 5, both instances V9.1 (FP02).

For the sake of this post, the two DB2 databases are named:
1. "live"
2. "archive"

When I create the user mapping on the "live" database:

db2 "create user mapping for myuser server my_archive_server options
(remote_authid 'myuser', remote_password 'mypwd')"

and then connect to the "live" database as user "myuser" and try to access
any of the nicknames that point to the tables in the "archive" database, I
get the following error:

SQL0551N "The ODBC authid " does not have the privilege to perform
operation "unknown " on object "unknown ". SQLSTATE=42501

I gave proper (read) priviledges to the tables in the "archive" database, as
well as to the nicknames in the "live" database.
And yet I only managed to get rid of the above error by giving the user
myuser direct DBADM priviledge on the "archive" database?!?

Also (this is without user "myuser" having the DBADM priviledge on the
"archive" db): trying to connect directly to the "archive" database as user
"myuser" (using pwd "mypwd") works OK (connect priviledge given), and I can
select from the tables in that database (select priviledges are given)
without problems.

So, why is the federated access not working with the above mentioned user
mapping (unless given the DBADM priviledge), when the username and password
are OK for connecting to the "archive" db?

Any ideas would be much appreciated!

Regards,
Damir


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-10-2008, 02:03 PM
Lew
 
Posts: n/a
Default Re: Federated database access

did you grant access to the nickname to user myuser

On May 8, 11:11 am, "Damir" <damirwil...@yahoo.com> wrote:
> Hello,
> I have a strange problem with federated access between two DB2 databases,
> both on AIX 5, both instances V9.1 (FP02).
>
> For the sake of this post, the two DB2 databases are named:
> 1. "live"
> 2. "archive"
>
> When I create the user mapping on the "live" database:
>
> db2 "create user mapping for myuser server my_archive_server options
> (remote_authid 'myuser', remote_password 'mypwd')"
>
> and then connect to the "live" database as user "myuser" and try to access
> any of the nicknames that point to the tables in the "archive" database, I
> get the following error:
>
> SQL0551N "The ODBC authid " does not have the privilege to perform
> operation "unknown " on object "unknown ". SQLSTATE=42501
>
> I gave proper (read) priviledges to the tables in the "archive" database, as
> well as to the nicknames in the "live" database.
> And yet I only managed to get rid of the above error by giving the user
> myuser direct DBADM priviledge on the "archive" database?!?
>
> Also (this is without user "myuser" having the DBADM priviledge on the
> "archive" db): trying to connect directly to the "archive" database as user
> "myuser" (using pwd "mypwd") works OK (connect priviledge given), and I can
> select from the tables in that database (select priviledges are given)
> without problems.
>
> So, why is the federated access not working with the above mentioned user
> mapping (unless given the DBADM priviledge), when the username and password
> are OK for connecting to the "archive" db?
>
> Any ideas would be much appreciated!
>
> Regards,
> Damir


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-13-2008, 06:13 PM
Damir
 
Posts: n/a
Default Re: Federated database access


> did you grant access to the nickname to user myuser


I did, and it didn't help.
As I said - when I give user myuser the direct DBADM priviledge on the
"archive" database, all is working well (except for the fact that user
myuser can update/delete data in the "archive" database, which is not
desirable), which means that permissions on the "live" database are OK...



> On May 8, 11:11 am, "Damir" <damirwil...@yahoo.com> wrote:
>> Hello,
>> I have a strange problem with federated access between two DB2 databases,
>> both on AIX 5, both instances V9.1 (FP02).
>>
>> For the sake of this post, the two DB2 databases are named:
>> 1. "live"
>> 2. "archive"
>>
>> When I create the user mapping on the "live" database:
>>
>> db2 "create user mapping for myuser server my_archive_server options
>> (remote_authid 'myuser', remote_password 'mypwd')"
>>
>> and then connect to the "live" database as user "myuser" and try to
>> access
>> any of the nicknames that point to the tables in the "archive" database,
>> I
>> get the following error:
>>
>> SQL0551N "The ODBC authid " does not have the privilege to perform
>> operation "unknown " on object "unknown ". SQLSTATE=42501
>>
>> I gave proper (read) priviledges to the tables in the "archive" database,
>> as
>> well as to the nicknames in the "live" database.
>> And yet I only managed to get rid of the above error by giving the user
>> myuser direct DBADM priviledge on the "archive" database?!?
>>
>> Also (this is without user "myuser" having the DBADM priviledge on the
>> "archive" db): trying to connect directly to the "archive" database as
>> user
>> "myuser" (using pwd "mypwd") works OK (connect priviledge given), and I
>> can
>> select from the tables in that database (select priviledges are given)
>> without problems.
>>
>> So, why is the federated access not working with the above mentioned user
>> mapping (unless given the DBADM priviledge), when the username and
>> password
>> are OK for connecting to the "archive" db?
>>
>> Any ideas would be much appreciated!
>>
>> Regards,
>> Damir

>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:29 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145