Hi guys,
Is there a way to force application off one database while allowing other to continue in same instance.
My requirement is to restore one database POS only while GAMING will be still running.
So I think that I have to force the application on POS and when they are off, I will deactivate DB and DROP DB.
So.
Code:
LIST APPLICATIONS FOR DATABASE POS
FORCE APPLICATIONS (?,?,?,?,?. . . . .)
deactivate db POS
DROP DB POS
RESTORE DB POS FROM . . . . .
So I need a function or select query that can be passed to FORCE APPLICATIONS.
I tried following query
Code:
SELECT AGENT_ID FROM
TABLE(SYSPROC.SNAPSHOT_APPL_INFO(CURRENTSERVER, -1)) AS SNP_TBL
WHERE INPUT_DB_ALIAS='POS'
But Force Applications does not accept the output of this query.
Is there any other function or statement.
DB2 V8.2 and V9.5 on Win 2K3 servers
Thanks in adv,
DBFinder