|
|
|
|
|
|
| Author |
Message |
Terry *nix forums addict
Joined: 15 Apr 2003
Posts: 55
|
Posted: Wed Feb 23, 2005 3:12 pm Post subject:
Re: Federated setup - additional column
|
|
|
It appears the issue relates to the fixpak level. I located the
following is IBM documentation.
"DB2 for UNIX and Windows Version 7.2 federated databases
To successfully create nicknames for DB2 for UNIX and Windows Version
8 tables and views, you must apply the DB2 for UNIX and Windows
Version 7.2 Fixpak 8 on your DB2 for UNIX and Windows Version 7.2
federated database. If you do not apply Fixpak 8 on your DB2 for UNIX
and Windows Version 7.2 federated database, an error will occur when
you access the nicknames." |
|
| Back to top |
|
 |
Terry *nix forums addict
Joined: 15 Apr 2003
Posts: 55
|
Posted: Tue Feb 15, 2005 11:35 am Post subject:
Federated setup - additional column
|
|
|
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
Remote (R) database is a new database. Id like L to pull values from
R.
Database server = DB2/6000 8.1.4
Note the different version numbers.
I can set up the federated configurations on L to R. When building
nicknames additional, and different, columns are appearing in both the
describe and select.
On R
-----
CREATE TABLE application (
Application_id INTEGER NOT NULL,
Application_name VARCHAR(16) NOT NULL
)
On L (having created a nickname)
--------------------------------
| Quote: | describe table r_application
|
Column Type Type
name schema name Length Scale Nulls
------------------------------ --------- ------------------ --------
APPLICATION_ID SYSIBM INTEGER 4 0 No
APPLICATION_ID0 SYSIBM INTEGER 4 0 No
APPLICATION_NAME SYSIBM VARCHAR 16 0 Yes
Where has the column APPLICATION_ID0 come from?
| Quote: | select * from r_application
|
Returns back rows with the following columns:
Application_id OK
Application_id1 ???
Application_id11 ???
Application_id111 ???
Application_name OK
What are those addition columns?
| Quote: | select APPLICATION_ID0 from r_application
|
Works, returning the values found in APPLICATION_ID0 - which isnt in
the APPLICATION table!
| Quote: | select APPLICATION_ID1 from r_application
|
fails - which is good.
Im perplexed, this is very odd.
Why Im I obtaining additional columns in the describe?
Why Im I obtaining additional columns in the select? Why are these
different form the view?
Any thoughts are welcome.
Thanks
Terry
KEYWORDS: federated, DB2, columns, additional, 7.1, 8.1, describe,
select |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Thu Jan 08, 2009 3:42 am | All times are GMT
|
|
Debt Consolidation | Best Credit Cards | Loan | 0 Credit Cards | Loans
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|