Solved

Connecting DB2 from the unix script

Posted on 2004-08-19
1
762 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: I have seen many questions on EE and elsewhere, asking about how to find either gaps in lists of numbers (id field, usually) ranges of values or dates overlapping date ranges combined date ranges I thought it would be a good …
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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…

932 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

9 Experts available now in Live!

Get 1:1 Help Now