Error with ORAOCI and ORAOCI8

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
nvkravi
Participant
Posts: 22
Joined: Mon Jun 09, 2003 12:01 am
Location: India

Error with ORAOCI and ORAOCI8

Post by nvkravi »

Hey,

Can anybody give Suggestions to the following Error.

Here Im using DataStage5.2 in Windows 2000 Professional. Both
Server and clients are in my system.

And Here Im using ORAOCI as Lookup Ref. Link to Transformer Stage
and Sequential file stage as target.
It Compiled successfully. But when I validate this I got this
error.

Project:Training (xxx)
Job name:Exercise7
Event #:18
Timestamp:7/7/2002 2:49:16 PM
Event type:Fatal
User:xxxAdministrator
Message:
Exercise7..ORAOCI814: Oracle Error - OCI_INVALID_HANDLE
ORA-12154: TNS:could not resolve service name

But Its working fine by using ODBC Stage this TNS Connection. Pls
let me know your suggestions or Solutions?

Regards
Ravi
tonystark622
Premium Member
Premium Member
Posts: 483
Joined: Thu Jun 12, 2003 4:47 pm
Location: St. Louis, Missouri USA

Post by tonystark622 »

Sure looks like the Oracle drivers are not correctly configured on the system. Hard to imagine that the ODBC drivers work correctly when the Oracle driver doesn't.

The only thing I can think of is that the server name and the ODBC DSN are not the same and perhaps, you're using the same name in both. Look in the ODBC DSN and see what the Oracle server name is.

Good Luck,
Tony
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

ODBC and OCI are different creatures. Do you have access to the DataStage server and can verify the Oracle client installation and tnsnames.ora file? That's where your problem lies.

Kenneth Bland
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

The fact that ODBC works has no bearing on your OCI connectivity as ODBC is not using your TNS information, AFAIK. Use something like SQL*Plus to verify your ability to connect to Oracle on that machine, from that machine.

Have you setup whatever is required by the OCI stages on Windows? On the Unix side, environment variables need to be set in the 'dsenv' file and the server restarted before OCI will function... is there something similar that needs to be configured? It should be documented in the readme for the server.

-craig
nvkravi
Participant
Posts: 22
Joined: Mon Jun 09, 2003 12:01 am
Location: India

Post by nvkravi »

Hey All,
Thakx your Suggestions. Well Its worked Successfully to my Standalone system. But Its not working to my other Server. May be the problem they have not Initialized. Again Thanx to all your Suggestions.

Regards
Ravi
Post Reply