Solved

Connecting DB2 from the unix script

Posted on 2004-08-19
1
761 Views
Last Modified: 2009-07-29
Hi,
    We are using informatica tool.in that we running the script in the pre session.
In pre session we are connecting to the database,
"connect to $DB_NAME user $USER using $PWD"
the exit status of the prev command is 255.and also its not connecting to the database.even its not showing any error.But while checking the error status it is 255

But if i run the script in the unix its workking and connecting tothe database also
What will be problem and what it means that error code 255
-Pari.

0
Comment
Question by:pari205
1 Comment
 
LVL 2

Accepted Solution

by:
ajmcgarry earned 125 total points
ID: 12015066
If you are running the command as above, directly in the Pre-Session, are you considering the Environment Variables.

The command "connect to $DB_NAME user $USER using $PWD" run in Unix with your profile and your Environment Variables is different to the same command run in the Informatica "dtm" process with different Environment Variables.

Try the command hardcoded in the Pre Session with the database, user and password. Or better...... instead of running the commands in the Pre-Session, run a shell script file so you can source the proper parameters. This would also provide more flexibility.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction: Often, when running a query with joins, the results show up "duplicates", and often, those duplicates can be "eliminated" in the results using DISTINCT, for example. Using DISTINCT is simple: just add it after the SELECT keyword, an…
This article describes some very basic things about SQL Server filegroups.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now