Connect to Oracle

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
crouse
Charter Member
Charter Member
Posts: 204
Joined: Sun Oct 05, 2003 12:59 pm
Contact:

Post by crouse »

Does DataStage use the tnsnames.ora file that you added the hosts to?

The tnsnames.ora file must be the proper place under $ORACLE_HOME as set in dsenv, or else declare via $TNS_ADMIN in dsenv.

-Craig
Craig Rouse
Griffin Resouces, Inc
www.griffinresources.com
crouse
Charter Member
Charter Member
Posts: 204
Joined: Sun Oct 05, 2003 12:59 pm
Contact:

Post by crouse »

Does DataStage use the tnsnames.ora file that you added the hosts to?

The tnsnames.ora file must be the proper place under $ORACLE_HOME as set in dsenv, or else declare via $TNS_ADMIN in dsenv.

-Craig
Craig Rouse
Griffin Resouces, Inc
www.griffinresources.com
keshav0307
Premium Member
Premium Member
Posts: 783
Joined: Mon Jan 16, 2006 10:17 pm
Location: Sydney, Australia

Post by keshav0307 »

- check which services are currently known by the listener by executing: lsnrctl services <listener name>

- Check that the SERVICE_NAME parameter in the connect descriptor of the net service name used specifies a service known by the listener.

- If an easy connect naming connect identifier was used, check that the service name specified is a service known by the listener.

- Check for an event in the listener.log file.
kishorenvkb
Participant
Posts: 54
Joined: Mon Dec 24, 2007 9:27 am

Post by kishorenvkb »

Actually... we do not have the databases on the same server as the DataStage.
We were using the EZCONNECT instead of tnsnames.ora. It was working before because the port that we were supposed to be using was the default port on the server.
But, with the change in the port numbers... the default port is not the port that we should be connected to and hence it was failing.
After adding the port number to the server name like in //ServName:Port/DatabaseName, the jobs started working.

Thanks for all the hints on this one.
Post Reply