473,386 Members | 1,602 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,386 software developers and data experts.

Federation issue, DB2 to Oracle

Hi - I'm having some federation difficulties and am looking for some
help. On AIX 5.3, I'm running DB2 ESE 8.2 FP12 with Federation
enabled. Oracle client 10.2.0.2. I can connect to a remote oracle
instance using sqlplus, so I'm pretty confident the Oracle client is
OK. I'm able to create a NET8 wrapper, and to create a Server using
that wrapper. Control Center is able to discover all instances listed
in my tnsnames.ora, so I'm pretty sure it's able to find and parse
through it OK. I create my user mappings between local account and
oracle account without a problem. However, after I run set passthru
CTFOQ and try to run a query against it, I get an error "ORA-12154:
TNS:could not resolve the connect identifier specified". Again, using
the same id, I can resolve it just fine using sqlplus from the
command-line.

Any ideas/suggestions?

Thanks,
Dan

Nov 2 '06 #1
2 2336
Did you purchase and install Information Integrator with an Oracle
Wrapper or the new Information Server product?

Larry Edelstein

bspdan wrote:
Hi - I'm having some federation difficulties and am looking for some
help. On AIX 5.3, I'm running DB2 ESE 8.2 FP12 with Federation
enabled. Oracle client 10.2.0.2. I can connect to a remote oracle
instance using sqlplus, so I'm pretty confident the Oracle client is
OK. I'm able to create a NET8 wrapper, and to create a Server using
that wrapper. Control Center is able to discover all instances listed
in my tnsnames.ora, so I'm pretty sure it's able to find and parse
through it OK. I create my user mappings between local account and
oracle account without a problem. However, after I run set passthru
CTFOQ and try to run a query against it, I get an error "ORA-12154:
TNS:could not resolve the connect identifier specified". Again, using
the same id, I can resolve it just fine using sqlplus from the
command-line.

Any ideas/suggestions?

Thanks,
Dan
Nov 2 '06 #2
bspdan wrote:
........ However, after I run set passthru
CTFOQ and try to run a query against it, I get an error "ORA-12154:
TNS:could not resolve the connect identifier specified". Again, using
the same id, I can resolve it just fine using sqlplus from the
command-line.

Any ideas/suggestions?
Hi Dan,

The first sanity check I usually do is to check the NODE for the server
in the DB2 catalog and make sure it is correct. Try something like this
to check it out:

select varchar(servername,40) as server, servertype,
varchar(setting,40) as node
from syscat.serveroptions
where option = 'NODE';

If that's not it, maybe the wrapper and the discovery code are finding
two different tnsnames.ora files. Are you using the TNS_ADMIN
environment variable? If so, make sure you also set it to the same
value in your instance's sqllib/cfg/db2dj.ini file.

-Harold

Nov 3 '06 #3

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

Similar topics

14
by: spencer | last post by:
My client is going through a large project to replace existing data warehouse physical infastructure which is running DB2 8.1.6. In the past we had a much more distributed environment where we had...
0
by: vbace2 | last post by:
Using DB2 v9.1 fixpak 2 (WSE with HADR feature) on Windows 2003 Servers We are trying to set up HADR for two production databases. The two primary databases reside on two different servers. We...
1
by: biexplorer | last post by:
Hi, I am new to DB2. We recently migrated from Oracle to DB2. And now, I want to setup what we call a DB link (in Oracle) in DB2. I have done some research / read some posts in this forum...
1
by: Kozy | last post by:
Hello everyone, I have a problem with federation between Oracle and DB2. Once every few weeks my DB2 federation request "dies". What happens is DB2 thinks it is still geting information from...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...

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.