
Новые сообщения [новые:0]
Дайджест
Горячие темы
Избранное [новые:0]
Форумы
Пользователи
Статистика
Статистика нагрузки
Мод. лог
Поиск
|
|
12.11.2002, 18:46:15
|
|||
|---|---|---|---|
|
|||
Как узнать, кто и когда переключил базу в SINGLE USER MODE? |
|||
|
#18+
Sabj, в логах об этом можно строить только догадки. Спасибо All'у за поддержку. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
12.11.2002, 18:54:25
|
|||
|---|---|---|---|
Как узнать, кто и когда переключил базу в SINGLE USER MODE? |
|||
|
#18+
Думаю, что никак по журналам SQL Server'а и базы. Следует вести аудит либо журналировать все команды. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
12.11.2002, 19:05:11
|
|||
|---|---|---|---|
|
|||
Как узнать, кто и когда переключил базу в SINGLE USER MODE? |
|||
|
#18+
Можно просто громко спросить. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
12.11.2002, 19:09:03
|
|||
|---|---|---|---|
|
|||
Как узнать, кто и когда переключил базу в SINGLE USER MODE? |
|||
|
#18+
RTFBOL: ------------------------------------------- SINGLE_USER | RESTRICTED_USER | MULTI_USER SINGLE_USER allows one user at a time to connect to the database. All other user connections are broken. The timeframe for breaking the connection is controlled by the termination clause of the ALTER DATABASE statement. New connection attempts are refused. The database remains in SINGLE_USER mode even if the user who set the option logs off. At that point, a different user (but only one) can connect to the database. To allow multiple connections, the database must be changed to RESTRICTED_USER or MULTI_USER mode. RESTRICTED_USER allows only members of the db_owner fixed database role and dbcreator and sysadmin fixed server roles to connect to the database, but it does not limit their number. Users who are not members of these roles are disconnected in the timeframe specified by the termination clause of the ALTER DATABASE statement. Moreover, new connection attempts by unqualified users are refused. MULTI_USER allows all users with the appropriate permissions to connect to the database. MULTI_USER is the default setting. The status of this option can be determined by examining the UserAccess property of the DATABASEPROPERTYEX function. ------------------------------------------- Ищите среди db_owner, dbcreator и sysadmin, надеюсь их у Вас не много... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
12.11.2002, 21:42:19
|
|||
|---|---|---|---|
|
|||
Как узнать, кто и когда переключил базу в SINGLE USER MODE? |
|||
|
#18+
В общем-то КТО - вопрос решён, и когда - примерно тоже вычислен. Это был Maintenance plan. Что получилось, он ночью выполнял DBCC CHECKDB (MyDB, repair_fast), перед этим естественно выставил SINGLE USER, а вот обратно почему-то не смог. Глубоко-глубоко выкопал ошибку из job-log-ов № 8998. Как я понимаю, ошибочка где-то в страницах закралась. Пока писал, результат роявился: dbcc fileheader('MyDB') Size MaxSize 2556160 -1 и DBCC CHECKDB ('MyDB') Server: Msg 8998, Level 16, State 1, Line 0 Page corruptions on the GAM, SGAM, or PFS pages do not allow CHECKALLOC to verify database ID 7 pages from (1:2556160) to (1:2556160). See other errors for cause. Server: Msg 8968, Level 16, State 1, Line 0 Table Corrupt: GAM page (1:2556160) (object ID 99, index ID 0) is out of the range of this database. DBCC results for 'MyDB'. CHECKDB found 1 allocation errors and 0 consistency errors not associated with any single object. DBCC results for 'sysobjects'. There are 556 rows in 11 pages for object 'sysobjects'. Server: Msg 8968, Level 16, State 9, Line 0 Table Corrupt: SGAM page (1:2556161) (object ID 99, index ID 0) is out of the range of this database. CHECKDB found 2 allocation errors and 0 consistency errors in table 'ALLOCATION' (object ID 99). CHECKDB found 3 allocation errors and 0 consistency errors in database 'MyDB'. DBCC execution completed. If DBCC printed error messages, contact your system administrator. И как , уважаемый ALL, теперь с этим бороться? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|
12.11.2002, 23:54:31
|
|||
|---|---|---|---|
|
|||
Как узнать, кто и когда переключил базу в SINGLE USER MODE? |
|||
|
#18+
Всемогущщий ALL будет смеяться, но решение лежало здесь: http://support.microsoft.com/default.aspx?scid=kb;EN-US;264041 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
|
|
|

start [/forum/topic.php?fid=46&mobile=1&tid=1818864]: |
0ms |
get settings: |
4ms |
get forum list: |
9ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
71ms |
get topic data: |
6ms |
get forum data: |
2ms |
get page messages: |
27ms |
get tp. blocked users: |
1ms |
| others: | 247ms |
| total: | 371ms |

| 0 / 0 |
