473,385 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Problem with federated database

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
:
************************************************** ***
[IBM][CLI Driver][DB2/6000] SQL1013N The database alias name or
database name "SAMPLE" could not be found. SQLSTATE=42705
************************************************** ***

Now I have already catalog this databas on the server and I can
directly connect to this database easily but when I try this federated
thing, only then it gives me trouble.
I also tried creating federated link on the server itsef from the
command line but this time i get a different error :
************************************************** ******
While referencing a data source, the federated server received an
unexpected error code from the data source that does not map to a
DB2 equivalent.

Possible error codes include:

o 4901 Trying to open more than 15 cursors

o 4902 Row size exceeds 32K limit
************************************************** ********
Any help will be much appreciated .

Nov 12 '05 #1
5 3694
How did you set up the Federation? What CREATE SERVER, CREATE WRAPPER,
etc. commands did you use?

Larry Edelstein

Alias wrote:
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
:
************************************************** ***
[IBM][CLI Driver][DB2/6000] SQL1013N The database alias name or
database name "SAMPLE" could not be found. SQLSTATE=42705
************************************************** ***

Now I have already catalog this databas on the server and I can
directly connect to this database easily but when I try this federated
thing, only then it gives me trouble.
I also tried creating federated link on the server itsef from the
command line but this time i get a different error :
************************************************** ******
While referencing a data source, the federated server received an
unexpected error code from the data source that does not map to a
DB2 equivalent.

Possible error codes include:

o 4901 Trying to open more than 15 cursors

o 4902 Row size exceeds 32K limit
************************************************** ********
Any help will be much appreciated .

Nov 12 '05 #2
For creating wrapper :

CREATE WRAPPER "DRDA" LIBRARY 'libdb2drda.a';
For creating Server :

CREATE SERVER "mydb" TYPE DB2/UDB VERSION '8.1' WRAPPER "DRDA" AUTHID
"user1" PASSWORD "*****" OPTIONS ( DBNAME 'SAMPLE' );

Infact its here while creating server that I receive the following
error:

[IBM][CLI Driver][DB2/6000] SQL1013N The database alias name or
database name "SAMPLE" could not be found. SQLSTATE=42705

Thanks.


Larry wrote:
How did you set up the Federation? What CREATE SERVER, CREATE WRAPPER,
etc. commands did you use?

Larry Edelstein

Alias wrote:
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
:
************************************************** ***
[IBM][CLI Driver][DB2/6000] SQL1013N The database alias name or
database name "SAMPLE" could not be found. SQLSTATE=42705
************************************************** ***

Now I have already catalog this databas on the server and I can
directly connect to this database easily but when I try this federated
thing, only then it gives me trouble.
I also tried creating federated link on the server itsef from the
command line but this time i get a different error :
************************************************** ******
While referencing a data source, the federated server received an
unexpected error code from the data source that does not map to a
DB2 equivalent.

Possible error codes include:

o 4901 Trying to open more than 15 cursors

o 4902 Row size exceeds 32K limit
************************************************** ********
Any help will be much appreciated .


Nov 12 '05 #3
Have you cataloged the SAMPLE database (let's say this database resides
on instance "B") on instance "A" (the instance from which you are trying
to establish the Federation)? That database needs to be cataloged as a
remote database I believe.

Larry Edelstein

Alias wrote:
For creating wrapper :

CREATE WRAPPER "DRDA" LIBRARY 'libdb2drda.a';
For creating Server :

CREATE SERVER "mydb" TYPE DB2/UDB VERSION '8.1' WRAPPER "DRDA" AUTHID
"user1" PASSWORD "*****" OPTIONS ( DBNAME 'SAMPLE' );

Infact its here while creating server that I receive the following
error:

[IBM][CLI Driver][DB2/6000] SQL1013N The database alias name or
database name "SAMPLE" could not be found. SQLSTATE=42705

Thanks.


Larry wrote:
How did you set up the Federation? What CREATE SERVER, CREATE WRAPPER,
etc. commands did you use?

Larry Edelstein

Alias wrote:
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
:
*********************************************** ******
[IBM][CLI Driver][DB2/6000] SQL1013N The database alias name or
database name "SAMPLE" could not be found. SQLSTATE=42705
*********************************************** ******

Now I have already catalog this databas on the server and I can
directly connect to this database easily but when I try this federated
thing, only then it gives me trouble.
I also tried creating federated link on the server itsef from the
command line but this time i get a different error :
*********************************************** *********
While referencing a data source, the federated server received an
unexpected error code from the data source that does not map to a
DB2 equivalent.

Possible error codes include:

o 4901 Trying to open more than 15 cursors

o 4902 Row size exceeds 32K limit
*********************************************** ***********
Any help will be much appreciated .


Nov 12 '05 #4
Please try your command from the command line. Control center does not
work always.

Please post the following:

db2 list database directory
db2 list node directory

If you are cataloging from aix to windows, aix database directory
should list the db(for this you have to catalog the node and the db,
then try connecting to remote db, before federating).

Nov 12 '05 #5
Well trying from the command line seems to have help. It worked fine .
Infact the step which creates problemis 'create server xxxxx ' ; If I
create server from command line then I can do rest from control centre
easily( creating user mappings/nick names ) but control centre does not
let me create server. So I am creating server from command line and
doing rest from control centre.

Thanks for the help though.

hik...@gmail.com wrote:
Please try your command from the command line. Control center does not
work always.

Please post the following:

db2 list database directory
db2 list node directory

If you are cataloging from aix to windows, aix database directory
should list the db(for this you have to catalog the node and the db,
then try connecting to remote db, before federating).


Nov 12 '05 #6

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

Similar topics

3
by: Evan Smith | last post by:
I have a federated database (7.2 FP11, AIX 4.3) that seems to work fine in most aspects. Today I'm trying to add a new user mapping with the following statement: create user mapping for mngdrq01...
4
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...
5
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...
5
by: Michael Rudolph | last post by:
Hi newsgroup, I have an issue with the configuration of a DB2 federated database (WebSphere Information Integrator) in conjunction with the relational wrapper for Oracle on AIX. DB2 seems to not...
5
by: Suresh | last post by:
Hi Guys I have Db2 server installed on remote server. i am connecting to that remote server by using VPN. I want to connect that remote DB2 server instance using my local machine DB2...
4
by: Praveen_db2 | last post by:
Hi All DB2 8.1.3,Windows I have 2 databases in a single instance, say DB_1 and DB_2.I need to query a table from DB_1 in DB_2.I am try to use a nickname for it.But nickname creation is not...
11
by: Mikael Arhelger | last post by:
Hello, This has been posted a few times but still I could not find a way to connect to our database. We run DB2 Express on WIN2K server with XP clients. I can ping inside network and to the...
4
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
1
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
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
0
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...
0
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
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
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,...
0
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...

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.