|
принудительный DROP DATABASE
|
|||
---|---|---|---|
#18+
Привет всем! Работаю с DB2 SDK 7.2.6. Как мне принудительно зделать DROP DATABASE TEMP01, если есть уже открытые к ней коннекты? Я сейчас делаю вот так Код: plaintext 1. 2. 3. 4.
Но мне бы хотелось если можно чтобы команда db2 force applications all - применялась только к тем кто использует TEMP01 а команды db2 terminate db2 db2stop db2 db2start совсем не использовать. Что вы про ето все думаете ? В доке я ничего конкретного не вижу ? SQL1035N The database is currently in use. Explanation: One of the following conditions exists: Exclusive use was requested, but the database is already in use as a shared database by another user (in the same process). Exclusive use was requested, but the database is already in use as an exclusive database. (Two different processes are trying to access the same database.) The maximum number of connections to the database has been reached. The database is being used by another user on another system. Activate/Deactivate database is in progress. The command cannot be processed. User Response: Possible solutions include: Resubmit the command later when the database is not in use. Change the authorization to match the current user or wait until the database is not in use. Wait until the database is not in exclusive use. Wait until other users on another system have disconnected from the database. ... |
|||
:
Нравится:
Не нравится:
|
|||
08.04.2004, 13:48 |
|
принудительный DROP DATABASE
|
|||
---|---|---|---|
#18+
LIST APPLICATIONS FOR DATABASE TEMP01 FORCE APPLICATION ( 1,2,3...) ? ... |
|||
:
Нравится:
Не нравится:
|
|||
08.04.2004, 14:07 |
|
принудительный DROP DATABASE
|
|||
---|---|---|---|
#18+
БОЛЬШОЕ СПАСИБО!!!!!!!!!!! то что надо :) но если бы еще ето можно было бы зделать одной командой например: FORCE APPLICATION ( LIST APPLICATIONS FOR DATABASE TEMP01 ) было бы просто супер. можно или нет ??? ... |
|||
:
Нравится:
Не нравится:
|
|||
08.04.2004, 14:17 |
|
принудительный DROP DATABASE
|
|||
---|---|---|---|
#18+
Я тут поизвращался и зделал следующее Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43.
но результат не очень меня утешил Auth Id Application Appl. Application Id DB # of Name Handle Name Agents -------- -------------- ---------- ------------------------------ -------- ----- DB2INST httpd 31 *LOCAL.db2inst.040409204241 TEMP03 1 DB2INST httpd 38 *LOCAL.db2inst.040409205107 TEMP03 1 Before 31 38 DB20000I The FORCE APPLICATION command completed successfully. DB21024I This command is asynchronous and may not be effective immediately. After SQL1611W No data was returned by Database System Monitor. SQLSTATE=00000 SQL1035N The database is currently in use. SQLSTATE=57019 SQL1611W No data was returned by Database System Monitor. SQLSTATE=00000 SQL1035N The database is currently in use. SQLSTATE=57019 SQL1611W No data was returned by Database System Monitor. SQLSTATE=00000 SQL1035N The database is currently in use. SQLSTATE=57019 SQL1611W No data was returned by Database System Monitor. SQLSTATE=00000 SQL1035N The database is currently in use. SQLSTATE=57019 как видите This command is asynchronous and may not be effective immediately не гарантирует что можна уже делать ДРОП БД :( Что Вы про ето все думаете? ... |
|||
:
Нравится:
Не нравится:
|
|||
10.04.2004, 12:51 |
|
принудительный DROP DATABASE
|
|||
---|---|---|---|
#18+
Чем не устраивает db2 db2stop force DB2 v 7.2 for Win ... |
|||
:
Нравится:
Не нравится:
|
|||
12.04.2004, 04:33 |
|
принудительный DROP DATABASE
|
|||
---|---|---|---|
#18+
так ведь будут разорваны все конекты а мне нужно только ети что работают с конкретной БД. Как ты себе ето представляеш? Работает пользователь з проектом и тут унего розрывается коннект и проект вылетает? Одним словом, мне нужно написать тулз чтобы из web(на php) можна было создавать и удалять БД, при етом чтобы небыло ни каких db2stop db2start force etc... Все ето я уже добился но только с помощю db2stop db2start force... помогите кто может ... ... |
|||
:
Нравится:
Не нравится:
|
|||
17.04.2004, 18:49 |
|
принудительный DROP DATABASE
|
|||
---|---|---|---|
#18+
QUIESCE Command Forces all users off the specified instance and database and puts it into a quiesced mode. In quiesced mode, users cannot connect from outside of the database engine. While the database instance or database is in quiesced mode, you can perform administrative tasks on it >>-QUIESCE--+-DATABASE-+--+-IMMEDIATE-+-------------------------> '-DB-------' '-DEFER-----' .-FORCE CONNECTIONS-. >--+-------------------+--------------------------------------->< ... |
|||
:
Нравится:
Не нравится:
|
|||
17.04.2004, 21:40 |
|
|
start [/forum/topic.php?fid=43&fpage=156&tid=1606305]: |
0ms |
get settings: |
9ms |
get forum list: |
14ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
43ms |
get topic data: |
13ms |
get forum data: |
3ms |
get page messages: |
47ms |
get tp. blocked users: |
2ms |
others: | 13ms |
total: | 152ms |
0 / 0 |