473,503 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Federated database problem

Hi,

I am trying to solve the following problem:

Environment:

AIX5.3+ML1 on virtual partition
DB2/UDB WSE 8.1 + FP4a

I issued following commands:

db2sampl
db2 CREATE DB test1
db2 CONNECT TO test1
db2 CREATE WRAPPER "WRA1" LIBRARY 'libdb2drda.a'
db2 CREATE SERVER R1 TYPE DB2/UDB VERSION '8.1' WRAPPER "WRA1" AUTHID
"db2inst1" PASSWORD "validpass" OPTIONS( ADD DBNAME 'SAMPLE', PASSWORD
'Y')

db2 CREATE USER MAPPING FOR "db2inst1" SERVER "R1" OPTIONS ( ADD
REMOTE_AUTHID 'db2inst1', ADD REMOTE_PASSWORD 'validpass')

db2 CREATE NICKNAME db2inst1.table1 FOR r1.db2inst1.staff
db2 "select * from db2inst1.table1"

result: as expected
next:

db2 terminate
db2 connect to test1
db2 "select * from db2inst1.table1"

and I got SQL1224N error and test1 database is marked as damaged.

There are no such problems on AIX52 environment.
Are there any differences between those environments (AIX 53 v 52)
related to db2?

If so what I hove to look at?
or what am I doing wrong?

Regards

Wojtek

Nov 12 '05 #1
2 1347
wojtekb wrote:
Hi,

I am trying to solve the following problem:

Environment:

AIX5.3+ML1 on virtual partition
DB2/UDB WSE 8.1 + FP4a

I issued following commands:

db2sampl
db2 CREATE DB test1
db2 CONNECT TO test1
db2 CREATE WRAPPER "WRA1" LIBRARY 'libdb2drda.a'
db2 CREATE SERVER R1 TYPE DB2/UDB VERSION '8.1' WRAPPER "WRA1" AUTHID
"db2inst1" PASSWORD "validpass" OPTIONS( ADD DBNAME 'SAMPLE', PASSWORD
'Y')

db2 CREATE USER MAPPING FOR "db2inst1" SERVER "R1" OPTIONS ( ADD
REMOTE_AUTHID 'db2inst1', ADD REMOTE_PASSWORD 'validpass')

db2 CREATE NICKNAME db2inst1.table1 FOR r1.db2inst1.staff
db2 "select * from db2inst1.table1"

result: as expected
next:

db2 terminate
db2 connect to test1
db2 "select * from db2inst1.table1"

and I got SQL1224N error and test1 database is marked as damaged.

There are no such problems on AIX52 environment.
Are there any differences between those environments (AIX 53 v 52)
related to db2?

If so what I hove to look at?
or what am I doing wrong?

There shoudl be nothing that you can do wrong to get this response.
Please call support. If you're lucky it maybe matched against an APAR
fixed in a later fixpack (you are 1 year out of date). If not this is a
new APAR.

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #2
Serge Rielau wrote:
wojtekb wrote:
Hi,

I am trying to solve the following problem:

Environment:

AIX5.3+ML1 on virtual partition
DB2/UDB WSE 8.1 + FP4a

I issued following commands:

db2sampl
db2 CREATE DB test1
db2 CONNECT TO test1
db2 CREATE WRAPPER "WRA1" LIBRARY 'libdb2drda.a'
db2 CREATE SERVER R1 TYPE DB2/UDB VERSION '8.1' WRAPPER "WRA1" AUTHID
"db2inst1" PASSWORD "validpass" OPTIONS( ADD DBNAME 'SAMPLE', PASSWORD
'Y')
You might want to add the following option here:

NODE '<instance-name>'
db2 CREATE USER MAPPING FOR "db2inst1" SERVER "R1" OPTIONS ( ADD
REMOTE_AUTHID 'db2inst1', ADD REMOTE_PASSWORD 'validpass')

db2 CREATE NICKNAME db2inst1.table1 FOR r1.db2inst1.staff
db2 "select * from db2inst1.table1"

result: as expected
next:

db2 terminate
db2 connect to test1
db2 "select * from db2inst1.table1"

and I got SQL1224N error and test1 database is marked as damaged.


Have you verified that the correct ports are used?
--
Knut Stolze
Information Integration
IBM Germany / University of Jena
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1934
by: Terry | last post by:
Problem: ========= Unknown column appearing in federated tables. Description: ============ Local database (L) is an established 'federated' database, extracting values from multiple remote...
4
606
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...
0
1141
by: Yaro | last post by:
Hello (DB2 8.2.2 Win) Sometimes, we need select data from 2 databeses. Databases were on one instance, I used federated databases mechanism. Worked fine. Now, databases are on 2 instances and...
5
3700
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...
5
3309
by: Klemens | last post by:
I get SQL30090 reason 18 by trying to do an insert in a federated table and an update in a local table in one transaction Do I have to change some settings to get done or ist this not possible by...
1
2064
by: terryintransit | last post by:
Problem: ======== I'm receiving SQL1101N when I sttempt to build a nickname in a federated database. Config ====== Server: AIX Version 5.2 DB2: 8.2.1
2
1916
by: mas5 | last post by:
Hello, Sorry if my question is elementary. I've searched google, but can't seem to find exactly what I'm looking for. My client is using db2 8.2. They have 2 companies and each company has a...
4
4596
by: esmith2112 | last post by:
I have a query running on a federated database that takes the form select col1, col2 from nickname1 where <conditions exist> union all select col1,col2 from nickname2
2
2042
by: Damir | last post by:
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"...
0
2844
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...
0
7201
marktang
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,...
0
7083
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...
0
7278
Oralloy
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,...
1
6988
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...
0
7456
tracyyun
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...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3166
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1510
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
379
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.