Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Connecting DB2 from the unix script

Posted on 2004-08-19
1
Medium Priority
?
769 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 2

Accepted Solution

by:
ajmcgarry earned 375 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
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…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

650 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