473,657 Members | 2,504 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.sta ff
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 1351
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.sta ff
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.sta ff
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
1943
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 databases. Database server = DB2/LINUX 7.1.0
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 tables in TestA database and the reference tables in TestB database. Now i want to select data from TestB database referencing base table in TestA database. One of the way would be Federated Database. I've seen some red books on setting up...
0
1152
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 I have a problem with CREATE SERVER to connect second database. Our sample configuration: - default instance DB2CTLSV
5
3713
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 got this error : ***************************************************** SQL1013N The database alias name or database name "SAMPLE" could not be found. SQLSTATE=42705 *****************************************************
5
3330
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 definition? Thanks Klemens
1
2075
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
1925
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 different database running under the same instance. I have created a stored procedure in one database that takes data and inserts it into the other database. It works perfect when I call the procedure this way in the CLP "CALL DATACOPY(12345)"...I...
4
4611
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
2061
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" 2. "archive" When I create the user mapping on the "live" database:
0
2880
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 the staging database gets the changes performed and then once we're satisfied with how it looks, we push the changes through SQL queries which perform the (deletions, updating, and inserting of articles) onto the production database by comparing it to...
0
8392
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8305
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8823
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8726
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7320
agi2029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6163
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2726
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 we have to send another system
2
1604
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.