Please, HELP

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
ogmios
Participant
Posts: 659
Joined: Tue Mar 11, 2003 3:40 pm

Re: Please, HELP

Post by ogmios »

From the computer on which you run DataStage server, execute "tnsping oracleid" as the user under which you run the datastage jobs.

Possible causes:
- general changes in the environment (no ORACLE_HOME defined anymore)
- wrong access rights on the oracle files
- something wrong with the Oracle server

Ogmios
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

ORACLE_HOME needs to be set in dsenv file in order for Oracle plugins to work. The Oracle client needs to working properly as well. If you cannot connect with sqlplus then DataStage cannot connect either.
Mamu Kim
rreyespe
Participant
Posts: 23
Joined: Tue Jun 15, 2004 3:12 am

Post by rreyespe »

The Oracle client work perfectly, I can connect with SqlPlus. But where is th dsenv file?
ogmios
Participant
Posts: 659
Joined: Tue Mar 11, 2003 3:40 pm

Post by ogmios »

rreyespe wrote:The Oracle client work perfectly
You have to be able to use the Oracle client on the server WITH the userid you use to run your jobs. dsenv is somewhere in the `cat /.dshome`

Ogmios
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Check, too, that the TNSNAMES.ORA file is in the expected location and readable.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
rreyespe
Participant
Posts: 23
Joined: Tue Jun 15, 2004 3:12 am

Post by rreyespe »

the TNSNAMES is also in the correct place and readable
sandhya
Participant
Posts: 6
Joined: Fri Oct 17, 2003 4:48 am

Post by sandhya »

Is the service name available in your TNSNAMES
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The dsenv file is a script executed by all DataStage processes, principally to set necessary environment variables. The file is in the DataStage engine directory which, at version 7.x, is defined using the DSHOME environment variable. The file /.dshome may also exist, depending whether or not you're running in impersonation mode: if it does, it contains the pathname of the DataStage engine directory.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
rreyespe
Participant
Posts: 23
Joined: Tue Jun 15, 2004 3:12 am

Post by rreyespe »

Yes the service name is available
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Because dsenv is a shell script, order of execution is unimportant. Put the commands anywhere you want.
Bourne shell syntax is preferred (I've forgotten why).

Code: Select all

ORACLE_HOME=pathname ; export ORACLE_HOME
Don't forget that there are no spaces beside the "=" character when setting environment variables. (They're mandatory in uvodbc.config, isn't it great to have consistency?!)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
leo_t_nice
Participant
Posts: 25
Joined: Thu Oct 02, 2003 8:57 am

Post by leo_t_nice »

Hi

dsenv is usually found in $DSHOME/../DSEngine
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

In Windows environment variables can be set in Control Panel > System > Environment.
They can also be set using DataStage Administrator, in the "user defined environment variables" section (on both platforms).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ariear
Participant
Posts: 237
Joined: Thu Dec 26, 2002 2:19 pm

Post by ariear »

If I remember correctly there's no DSENV on windows and you're on windows right ?
The ORACLE environment is all in the registry (even ORACLE_HOME)
I don't remember how 2 ORACLE clients can co-exist and function on the same client host . sometime the oracle client can be installed even on another remote host and the re-boot lost the connection or something like that
Post Reply