DataStage: How To Resolve ‘orchadmin.exe: command not found’

Orchadmin is the command line utility in DataStage. The list of orchadmin commands can be found here.

It is often used to deal with the ds files. For example, you need to use orchadmin delete to remove .ds files. The .ds file does not contain the actual data. It contains the metadata to point the location of the actual data. Therefore, deleting the .ds file with ‘rm’ command does not remove the actual data.

The Grid Toolkit contains orchadmin.exe. After installing the toolkit, you will still get ‘orchadmin.exe: command not found’ without the further configuration steps.

To enable orchadmin, you need to run the command below for Linux server. The path will be different depending on how you installed DataStage.

export APT_CONFIG_FILE=/opt/IBM/InformationServer/Server/Configurations/default.apt
export APT_ORCHHOME=/opt/IBM/InformationServer/Server/PXEngine
export PATH=$PATH:$APT_ORCHHOME/bin
source /opt/IBM/InformationServer/Server/DSEngine/dsenv

The above script can be added to .bash_profile (or .bashrc, .bash_login, .profile depending on your Linux distribution)  in your home dir so that  you don’t need to run the script every time you need to use orchadmin.

ETL
Running Jobs with Informatica Cloud REST API

Informatica Cloud offers REST API for us to interact with the platform programmatically. At this point in time, the latest official reference is found here. In this post, we are going to use Python to trigger jobs through API. Triggering a job is a 2-step process. We need to authenticate …

ETL
Tips and Troubleshooting For Uploading CSV to Database In Talend

There will be time when you want to upload a big csv file (with many rows and hundreds of columns) to a relational database table. Talend Open Studio is an open source ETL tool that I use regularly to do odd jobs like that. I like using it because it …

ETL
How To Rename Mapping Job In Informatica Cloud

Mappings are where all the magic happens in Informatica Cloud. When I started using it, it took me a while to work out how to rename a mapping job. Since then, a few people asked me the same question. So, I decided to write about it. This is probably the …