Enable orachadmin

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
tusharzade
Participant
Posts: 13
Joined: Wed Dec 15, 2004 2:19 am

Enable orachadmin

Post by tusharzade »

I am using Datastage 7.5.1 on AIX server. I need to delete .ds file using unix command.

When I give the command
orachmin delete $Path/xxx.ds

it gives me an error as "ksh: orchadmin: not found".

Can you help me out in enabling the Orchadmin?

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

Post by chulett »

There's nothing to 'enable', you just need to ensure it is in your $PATH. Try setting your environment to the DataStage environment by 'sourcing' dsenv first:

Code: Select all

cd $DSHOME
. ./dsenv
Then run your command again.
-craig

"You can never have too many knives" -- Logan Nine Fingers
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Your dsenv file should have the path of shared library set to $APT_ORCHHOME/lib.
Then you need to run the orchadmin command by running the following

Code: Select all

cd $APT_ORCHHOME/bin
orchadmin delete $Path/xxx.ds 
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Ok. Or just this then:

Code: Select all

$APT_ORCHHOME/bin/orchadmin delete $Path/xxx.ds
I'd still make sure this bin directory is in your PATH somewhere.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

As well as havingAPT_ORCHHOME set and PATH including $APT_ORCHHOME/bin you must have APT_CONFIG_FILE set (pointing to the same configuration file that was used to create the Data Set), and your shared library search path must include $APT_ORCHHOME/lib.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply