I am using a Surrogate Key generator stage.It runs fine with with a source type = 'File'.But when I am using the Database(DB2) sequence, the job aborts with error :
Surrogate_Key_Generator_1,1: Error Idx = 1;
DB2Driver Embedded SQL message: ;
sqlcode = -1390;
sqlstate =
Surrogate_Key_Generator_1,1: Failed to connect to the database
Surrogate_Key_Generator_1,1: The runLocally() of the operator failed.
Please advise.
Problem with Surrogate Key generator stage
Moderators: chulett, rschirm, roy
Since it couldn't connect to the database did you check the userid, password and instance to ensure that they are correct? Have you connected to DB2 in you installation already?
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You can do it using this command
Code: Select all
db2 ? sql-1390
Last edited by ArndW on Fri May 09, 2008 4:21 am, edited 1 time in total.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
db2 ? sql-1390
SQL1390C The environment variable DB2INSTANCE is not defined or
is invalid.
Explanation:
The environment variable DB2INSTANCE is not defined or is not set
to a valid instance owner.
User Response:
Set the DB2INSTANCE environment variable to the name of the
instance to use. If you do not know the name of the instance to
use or how to set the DB2INSTANCE environment variable to the
instance name, refer to the Administration Guide .
Federated system users: refer to the Federated Systems Guide for
DB2INSTANCE information.
Ensure your PATH environment variable contains the sqllib/adm
path in the home directory of the instance you want to use (for
example, /u/instance/sqllib/adm, where /u/instance is the home
directory of the instance owner on a UNIX system).
SQL1390C The environment variable DB2INSTANCE is not defined or
is invalid.
Explanation:
The environment variable DB2INSTANCE is not defined or is not set
to a valid instance owner.
User Response:
Set the DB2INSTANCE environment variable to the name of the
instance to use. If you do not know the name of the instance to
use or how to set the DB2INSTANCE environment variable to the
instance name, refer to the Administration Guide .
Federated system users: refer to the Federated Systems Guide for
DB2INSTANCE information.
Ensure your PATH environment variable contains the sqllib/adm
path in the home directory of the instance you want to use (for
example, /u/instance/sqllib/adm, where /u/instance is the home
directory of the instance owner on a UNIX system).