Originally posted by: SystemAdmin
Hello, I'd appreciate any help with the following problem I'm having using ssh to execute a pipeline on a remote server.
The following pipeline works...
$ ssh user1@host1 ". ./.profile; db2 connect to sample; db2 values current timestamp"
Database Connection Information
Database server = DB2/AIX64 8.2.7
SQL authorization ID = USER1
Local database alias = SAMPLE
1
2007-10-05-15.44.32.284687
1 record(s) selected.
However, the same pipeline on another different server fails...
$ ssh user1@host2 ". ./.profile; db2 connect to sample; db2 values current timestamp"
Database Connection Information
Database server = DB2/6000 8.2.7
SQL authorization ID = USER1
Local database alias = SAMPLE
SQL1024N A database connection does not exist. SQLSTATE=08003
Both servers are running AIX 5.3.0.0 and OpenSSH 4.3.0.5301.
I can't figure out why the database connection gets closed and what I can do to keep the database connection alive. Has anyone experienced this problem before or have any suggestions as why the database connection is being dropped ?
Regards
Rob.
#AIX-Forum