Can we add a DBSERVER entry dynamically to the SQLHOSTS file without bouncing the database server?
Cause
A need exist to add a new connection to the instance dynamically without any down time.
Answer
Starting with Informix version 11.50.xC6 we have the ability to Dynamically Start, Stop and Restart Listen threads with the onmode -P command or by using the SQL Admin API.
This feature allows a new listener thread to be started on a port without the need to restart the database server. Adding new entries in to the sqlhosts file and the DBSERVERALIAS parameter of the onconfig file and executing the onmode -P or SQL API commands will allow new connections to utilize the new server name.
Steps:
1. Modify the sqlhosts to add the new connection:
new_test_tcp onsoctcp myhost 4567
2. Modify the DBSERVERALIAS parameter of the onconfig file:
DBSERVERALIASES main_prim_shm:new_test_tcp
3. Start a listener thread for the new alias:
onmode -P start new_test_tcp
OR use the sysadmin SQL API :
execute function admin("start listen","new_test_tcp");
'Informix > informix reference' 카테고리의 다른 글
UPDATE STATISTICS commands to allow the optimizer to work its best (0) | 2013.05.20 |
---|---|
How to collect information for active SQL sessions on an Informix Dynamic server 7.31 database (0) | 2013.05.20 |
Changing hostname of the DB2 server (0) | 2013.04.17 |
IBM Moblie OpenAdmin Tool for Informix (0) | 2013.04.02 |
Determining how many CPUs you have on HP-UX (0) | 2013.04.02 |