I want to execute few commands one different db2 database
One simple way to do this through shell is :
a. Connect to first db2 database
b. Fire required commands
c. Disconnect to first db2 database
d. Connect to second db2 database
e. Fire required commands
f. Disconnect to second db2 database
I want to avoid step 'c'
Is there a way by which we can be connected to two db2 database and fire commands on any of them
a. Connect to first db2 database
b. Connect to second db2 database
c. Fire few commands on either of the db2 database
Note : Unix is already configured to connect to both the databases
One simple way to do this through shell is :
a. Connect to first db2 database
b. Fire required commands
c. Disconnect to first db2 database
d. Connect to second db2 database
e. Fire required commands
f. Disconnect to second db2 database
I want to avoid step 'c'
Is there a way by which we can be connected to two db2 database and fire commands on any of them
a. Connect to first db2 database
b. Connect to second db2 database
c. Fire few commands on either of the db2 database
Note : Unix is already configured to connect to both the databases
Comment