Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > IBM DB2 > Federated datab...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 8866 of 9130
Post > Topic >>

Federated database access

by "Damir" <damirwilder@[EMAIL PROTECTED] > May 8, 2008 at 05:11 PM

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
 




 3 Posts in Topic:
Federated database access
"Damir" <dam  2008-05-08 17:11:51 
Re: Federated database access
Lew <sethwai@[EMAIL PR  2008-05-09 07:06:05 
Re: Federated database access
"Damir" <dam  2008-05-12 15:02:09 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Thu Jul 24 3:16:09 CDT 2008.