When type in echo $(db2 -x "select count(*) from dict_area") in bash, I get 446.
But when I type in echo $(db2 -x "select count(*) from dict_area";db2 -x "select count(*) from dict_area"), I get
SQL1024N A database connection does not exist. SQLSTATE=08003 SQL1024N A database connection does not exist. SQLSTATE=08003
This has nothing to do with my work. I just want to know how does that happen. Can you help me?