Hi
i m trying to connect DB2 via unix. it is successfully connect. but the connect is getting disconnect .
below is the query ,
countvalue=$(db2 "connect to <Database> user <username> using <Password>" | db2 -x 'select count(*) from <tablename>' ); echo $countvalue
while execute this query it returns countvalue properly but not all the times. sometimes it says the below error,
SQL1024N A database connection does not exist. SQLSTATE=08003
Do have any option to make the connect stable.
Thanks in Advance,
Baski