DB2 block all connections to a database - svcename

23 March,2013 by Tom Collins

Taking a OFFLINE DB2 backup requires shutdown of all database  connections . Often you'll see the SQL1035N The database is currently in use  mesage. There are a number of workarounds to achieve the outcome of starting the OFFLINE backup, such as :

 

db2 force applications all 
--or

QUIESCE DATABASE IMMEDIATE FORCE CONNECTIONS  

 

 Sometimes the required outcome does not occur., particularly with very persistent connection attempts.

 

One method of blocking connections to the DB2 database server instance is to change the SVCENAME configuration parameter. This forces the attempted connections to all databases on the instance to fail. If you don’t want all connections to the database server instance to be blocked, do not use this method.

Once you’ve completed the OFFLINE backup , change the SVCENAME back to the original value .

 

db2 UPDATE DBM CFG USING SVCENAME 50006

 Read More

Force connections of a database in DB2

Author: Rambler(http://www.dba-db2.com)

Share:

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment on DB2 block all connections to a database - svcename

Comments are moderated, and will not appear until the author has approved them.


dba-db2.com | DB2 Performance Tuning | DBA DB2:Everything | FAQ | Contact | Copyright