Problem with ORAOCI in DataStage.....

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
knvenkat
Participant
Posts: 5
Joined: Mon Jun 30, 2003 7:36 am

Problem with ORAOCI in DataStage.....

Post by knvenkat »

Hey All,
I got a problem when Im using with ORAOCI, and ORAOCI8 as Source side. Right now I am using DataStage5.2 Administrator, Designer, Director and Manager in Windows 2000 Professional to my system.

Here I have taken ORAOCI as Lookup. It compiled fine but when I validate this Job in Director. Its giving the Following Fatal Error...

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

Here everything fine means ODBC Connections and all.
So I am transferring data to Sequenctial file as Target.
Pls help me out in this. Thanks in Advance.

Regards
Ravi :D
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

If you're using Oracle OCI stages this is not the same as ODBC. Your DataStage server must have Oracle Client installed and configured. Your message indicates that the tnsnames.ora file does not contain the connection string or if it does it is invalid. From a DataStage server you should try tnsping to make sure the server sees the instance. Until you can do that, DataStage doesn't have a chance.

Good luck!
-Ken
Teej
Participant
Posts: 677
Joined: Fri Aug 08, 2003 9:26 am
Location: USA

Re: Problem with ORAOCI in DataStage.....

Post by Teej »

knvenkat wrote: ORA-12154: TNS:could not resolve service name
Ensure that your DataStage's ORACLE_HOME is pointing to the correct path, and ensure that the tnsnames.ora file within the ORACLE_HOME\admin directory have that particular instance you are attempting to connect to (Database name). You may need to contact your DBA administrator for help on this.

I am using 6.0, and I found that defining ORACLE_HOME within the project environment would help DataStage identify the right one.

-T.J.
RAJEEV KATTA
Participant
Posts: 103
Joined: Wed Jul 06, 2005 12:29 am

Re: Problem with ORAOCI in DataStage.....

Post by RAJEEV KATTA »

Hi Ravi,
If you want to work with Oracle plugin the following things are required or set

1) Oracle client has to be installed where DataStage server is there.
2) Create the DSN in tns names.ora file where you need to specify Oracle server address.
3) Set the ORACLE_HOME environment variable in user defined variables from DS Administrator.
4) Provide the DSN name being created in tnsnames.ora in Oracle plug-in stage.

This would make your job work.

Cheers,
Rajeev.
knvenkat wrote:Hey All,
I got a problem when Im using with ORAOCI, and ORAOCI8 as Source side. Right now I am using DataStage5.2 Administrator, Designer, Director and Manager in Windows 2000 Professional to my system.

Here I have taken ORAOCI as Lookup. It compiled fine but when I validate this Job in Director. Its giving the Following Fatal Error...

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

Here everything fine means ODBC Connections and all.
So I am transferring data to Sequenctial file as Target.
Pls help me out in this. Thanks in Advance.

Regards
Ravi :D
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I'm sorry, but again - why in the heck are you running around and responding to two year old posts? :evil:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply