Solved

Connecting DB2 from the unix script

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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Assigning Database Principals to Database Roles 3 39
A question about syntax 5 52
mysql vs miscrosoft sql server 6 56
Database movement 2 10
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
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…
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…

737 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