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 2 2034
did you grant access to the nickname to user myuser
On May 8, 11:11 am, "Damir" <damirwil...@yahoo.comwrote:
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
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.comwrote:
>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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: mikereiche |
last post by:
I'm configuring a 'Federated Database Object' -> Wrapper -> DB2Wrapper
-> Server Definitions -> RTLALL (my remote db). I fill in the
username/password and dbname. ( I can connect using this...
|
by: uthuras |
last post by:
Greetings all,
Is it possible to have federated db feature implemented among DB2
family? I intend to create federated within DB2 databases. I have 2
databases TestA and TestB. I have some base...
|
by: vrbala |
last post by:
Hi All,
I have a issue in federated database.
I will explain the scenario
I have a table T1 in database called offlinedb. It has one column F1
I have an another table T2 in database uatdb.
I...
|
by: Alias |
last post by:
Hi Guys ,
I am trying to create a federated database link between 2
UDB 8.1 databases running on AIX on the same box but under different
instances. When i tried this thru the control centre , I...
|
by: Michael Rudolph |
last post by:
Hi,
at the moment i try to use the federated database feature (DB2/NT 8.2.3)
to use a remote host db2 (DB2 OS/390 7.1.2).
I am unsure what privileges are needed for the host db2 user.
A...
|
by: TheAndroid |
last post by:
All,
I'm having a difficult time trying to implement two-phase commits
across federated database members in UDB 8.3. I've tried using MQ (v
6.0) as the transaction manager and UDB tells me that...
|
by: imusion |
last post by:
Hi,
I have 2 servers each running AIX and both have a DB2 database setup on them. I'm building a news management application and in our setup we need to have a staging and production setup. So...
|
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
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |