로그를 확인 해보았을때는 큰 특이 사항이 보이지 않는데... 일단 조치방법은 아래와 같다
SQL Server 내 특정 DB가 복구 보류중(Recovery Pending) 상태일때 아래와 같이 조치 하면 조치는 된다...
DISK의 문제일 가능성이 높아 보이는데 아래 내용으로 조치 완료했다.
EMERGENCY 상태로 전환
1) ALTER DATABASE [DB명] SET EMERGENCY
즉시 롤백 조건을 넣고 싱글 유저 모드로 전환
2) ALTER DATABASE [DB명] SET SINGLE_USER WITH ROLLBACK IMMEDIATE
데이터 손실 허용해서 REPAIR 조건 넣고 CHECKDB 수행(용량에 따라 시간이 다소 거릴수있다)
3) DBCC CHECKDB ([DB명], REPAIR_ALLOW_DATA_LOSS)
다시 DB를 접속 상태로 변경한다
4) ALTER DATABASE [DB명] SET MULTI_USER WITH ROLLBACK IMMEDIATE
[DBCC명령 수행 후 로그]
DBCC CHECKDB ([DB명], REPAIR_ALLOW_DATA_LOSS);
DBCC results for ' DB 명'.
Service Broker Msg 9675, State 1: Message Types analyzed: 14.
Service Broker Msg 9676, State 1: Service Contracts analyzed: 6.
Service Broker Msg 9667, State 1: Services analyzed: 3.
Service Broker Msg 9668, State 1: Service Queues analyzed: 3.
Service Broker Msg 9669, State 1: Conversation Endpoints analyzed: 0.
Service Broker Msg 9674, State 1: Conversation Groups analyzed: 0.
Service Broker Msg 9670, State 1: Remote Service Bindings analyzed: 0.
Service Broker Msg 9605, State 1: Conversation Priorities analyzed: 0.
DBCC results for 'sys.sysrscols'.
There are 1650 rows in 19 pages for object "sys.sysrscols".
DBCC results for 'sys.sysrowsets'.
There are 177 rows in 2 pages for object "sys.sysrowsets".
DBCC results for 'sys.sysclones'.
There are 0 rows in 0 pages for object "sys.sysclones".
DBCC results for 'sys.sysallocunits'.
There are 201 rows in 3 pages for object "sys.sysallocunits".
DBCC results for 'sys.sysfiles1'.
There are 2 rows in 1 pages for object "sys.sysfiles1".
DBCC results for 'sys.sysseobjvalues'.
There are 0 rows in 0 pages for object "sys.sysseobjvalues".
DBCC results for 'sys.syspriorities'.
There are 0 rows in 0 pages for object "sys.syspriorities".
DBCC results for 'sys.sysdbfrag'.
There are 0 rows in 0 pages for object "sys.sysdbfrag".
DBCC results for 'sys.sysfgfrag'.
There are 0 rows in 1 pages for object "sys.sysfgfrag".
DBCC results for 'sys.sysdbfiles'.
There are 2 rows in 1 pages for object "sys.sysdbfiles".
DBCC results for 'sys.syspru'.
There are 0 rows in 0 pages for object "sys.syspru".
DBCC results for 'sys.sysbrickfiles'.
There are 0 rows in 0 pages for object "sys.sysbrickfiles".
DBCC results for 'sys.sysphfg'.
There are 1 rows in 1 pages for object "sys.sysphfg".
DBCC results for 'sys.sysprufiles'.
There are 2 rows in 1 pages for object "sys.sysprufiles".
DBCC results for 'sys.sysftinds'.
There are 0 rows in 0 pages for object "sys.sysftinds".
DBCC results for 'sys.sysowners'.
There are 15 rows in 1 pages for object "sys.sysowners".
DBCC results for 'sys.sysdbreg'.
There are 0 rows in 0 pages for object "sys.sysdbreg".
DBCC results for 'sys.sysprivs'.
There are 178 rows in 1 pages for object "sys.sysprivs".
DBCC results for 'sys.sysschobjs'.
There are 2371 rows in 35 pages for object "sys.sysschobjs".
DBCC results for 'sys.syscsrowgroups'.
There are 0 rows in 0 pages for object "sys.syscsrowgroups".
DBCC results for 'sys.sysexttables'.
There are 0 rows in 0 pages for object "sys.sysexttables".
DBCC results for 'sys.syscolpars'.
There are 1553 rows in 21 pages for object "sys.syscolpars".
DBCC results for 'sys.sysxlgns'.
There are 0 rows in 0 pages for object "sys.sysxlgns".
DBCC results for 'sys.sysxsrvs'.
There are 0 rows in 0 pages for object "sys.sysxsrvs".
DBCC results for 'sys.sysnsobjs'.
There are 1 rows in 1 pages for object "sys.sysnsobjs".
DBCC results for 'sys.sysusermsgs'.
There are 0 rows in 0 pages for object "sys.sysusermsgs".
DBCC results for 'sys.syscerts'.
There are 0 rows in 0 pages for object "sys.syscerts".
DBCC results for 'sys.sysrmtlgns'.
There are 0 rows in 0 pages for object "sys.sysrmtlgns".
DBCC results for 'sys.syslnklgns'.
There are 0 rows in 0 pages for object "sys.syslnklgns".
DBCC results for 'sys.sysxprops'.
There are 2 rows in 1 pages for object "sys.sysxprops".
DBCC results for 'sys.sysscalartypes'.
There are 34 rows in 1 pages for object "sys.sysscalartypes".
DBCC results for 'sys.systypedsubobjs'.
There are 0 rows in 0 pages for object "sys.systypedsubobjs".
DBCC results for 'sys.sysidxstats'.
There are 335 rows in 5 pages for object "sys.sysidxstats".
DBCC results for 'sys.sysiscols'.
There are 841 rows in 7 pages for object "sys.sysiscols".
DBCC results for 'sys.sysendpts'.
There are 0 rows in 0 pages for object "sys.sysendpts".
DBCC results for 'sys.syswebmethods'.
There are 0 rows in 0 pages for object "sys.syswebmethods".
DBCC results for 'sys.sysbinobjs'.
There are 23 rows in 1 pages for object "sys.sysbinobjs".
DBCC results for 'sys.sysaudacts'.
There are 0 rows in 0 pages for object "sys.sysaudacts".
DBCC results for 'sys.sysobjvalues'.
There are 372 rows in 59 pages for object "sys.sysobjvalues".
DBCC results for 'sys.syscscolsegments'.
There are 0 rows in 0 pages for object "sys.syscscolsegments".
DBCC results for 'sys.syscsdictionaries'.
There are 0 rows in 0 pages for object "sys.syscsdictionaries".
DBCC results for 'sys.sysclsobjs'.
There are 17 rows in 1 pages for object "sys.sysclsobjs".
DBCC results for 'sys.sysrowsetrefs'.
There are 0 rows in 0 pages for object "sys.sysrowsetrefs".
DBCC results for 'sys.sysremsvcbinds'.
There are 0 rows in 0 pages for object "sys.sysremsvcbinds".
DBCC results for 'sys.sysxmitqueue'.
There are 0 rows in 0 pages for object "sys.sysxmitqueue".
DBCC results for 'sys.sysrts'.
There are 1 rows in 1 pages for object "sys.sysrts".
DBCC results for 'sys.sysconvgroup'.
There are 0 rows in 0 pages for object "sys.sysconvgroup".
DBCC results for 'sys.sysdesend'.
There are 0 rows in 0 pages for object "sys.sysdesend".
DBCC results for 'sys.sysdercv'.
There are 0 rows in 0 pages for object "sys.sysdercv".
DBCC results for 'sys.syssingleobjrefs'.
There are 201 rows in 1 pages for object "sys.syssingleobjrefs".
DBCC results for 'sys.sysmultiobjrefs'.
There are 198 rows in 1 pages for object "sys.sysmultiobjrefs".
DBCC results for 'sys.sysguidrefs'.
There are 0 rows in 0 pages for object "sys.sysguidrefs".
DBCC results for 'sys.sysfoqueues'.
There are 0 rows in 0 pages for object "sys.sysfoqueues".
DBCC results for 'sys.syschildinsts'.
There are 0 rows in 0 pages for object "sys.syschildinsts".
DBCC results for 'sys.syscompfragments'.
There are 0 rows in 0 pages for object "sys.syscompfragments".
DBCC results for 'sys.sysftsemanticsdb'.
There are 0 rows in 0 pages for object "sys.sysftsemanticsdb".
DBCC results for 'sys.sysftstops'.
There are 0 rows in 0 pages for object "sys.sysftstops".
DBCC results for 'sys.sysftproperties'.
There are 0 rows in 0 pages for object "sys.sysftproperties".
DBCC results for 'sys.sysxmitbody'.
There are 0 rows in 0 pages for object "sys.sysxmitbody".
DBCC results for 'sys.sysfos'.
There are 0 rows in 0 pages for object "sys.sysfos".
DBCC results for 'sys.sysqnames'.
There are 98 rows in 1 pages for object "sys.sysqnames".
DBCC results for 'sys.sysxmlcomponent'.
There are 100 rows in 1 pages for object "sys.sysxmlcomponent".
DBCC results for 'sys.sysxmlfacet'.
There are 112 rows in 1 pages for object "sys.sysxmlfacet".
DBCC results for 'sys.sysxmlplacement'.
There are 19 rows in 1 pages for object "sys.sysxmlplacement".
DBCC results for 'sys.sysobjkeycrypts'.
There are 0 rows in 0 pages for object "sys.sysobjkeycrypts".
DBCC results for 'sys.sysasymkeys'.
There are 0 rows in 0 pages for object "sys.sysasymkeys".
DBCC results for 'sys.syssqlguides'.
There are 0 rows in 0 pages for object "sys.syssqlguides".
DBCC results for 'sys.sysbinsubobjs'.
There are 3 rows in 1 pages for object "sys.sysbinsubobjs".
DBCC results for 'sys.syssoftobjrefs'.
There are 1 rows in 1 pages for object "sys.syssoftobjrefs".
DBCC results for 'test_fbs'.
There are 3 rows in 1 pages for object "test_fbs".
DBCC results for 'XDBVIRTUAL_ACCT'.
There are 1 rows in 1 pages for object "XDBVIRTUAL_ACCT".
DBCC results for 'XDBEXCHNG_RATE'.
There are 5852171 rows in 189129 pages for object "XDBEXCHNG_RATE".
DBCC results for 'XDBSWEEP_ACT_LIST'.
There are 0 rows in 0 pages for object "XDBSWEEP_ACT_LIST".
DBCC results for 'XDBSWEEP_ACT_LOG'.
There are 0 rows in 0 pages for object "XDBSWEEP_ACT_LOG".
DBCC results for 'XDBDEMAND_CURRENT'.
There are 290759 rows in 6598 pages for object "XDBDEMAND_CURRENT".
DBCC results for 'XDBFOREIGN_CURRENT'.
There are 128 rows in 3 pages for object "XDBFOREIGN_CURRENT".
DBCC results for 'XDBBUYLOAN_ACCT_RET'.
There are 20 rows in 1 pages for object "XDBBUYLOAN_ACCT_RET".
DBCC results for 'XDBSELL_ACCT_RET'.
There are 350 rows in 14 pages for object "XDBSELL_ACCT_RET".
DBCC results for 'XDBTRANS'.
There are 170909 rows in 6877 pages for object "XDBTRANS".
DBCC results for 'XDBBUYLOAN_ACCT_RET_IB'.
There are 0 rows in 0 pages for object "XDBBUYLOAN_ACCT_RET_IB".
DBCC results for 'XDBDEMAND_CURRENT_IB'.
There are 95 rows in 4 pages for object "XDBDEMAND_CURRENT_IB".
DBCC results for 'XDBEXCHNG_RATE_IB'.
There are 5329 rows in 157 pages for object "XDBEXCHNG_RATE_IB".
DBCC results for 'XDBFOREIGN_CURRENT_IB'.
There are 6 rows in 1 pages for object "XDBFOREIGN_CURRENT_IB".
DBCC results for 'XDBSELL_ACCT_RET_IB'.
There are 39 rows in 2 pages for object "XDBSELL_ACCT_RET_IB".
DBCC results for 'XDBSELL_EOEUM_DETAIL_IB'.
There are 6 rows in 1 pages for object "XDBSELL_EOEUM_DETAIL_IB".
DBCC results for 'XDBVIRTUAL_ACCT_IB'.
There are 0 rows in 0 pages for object "XDBVIRTUAL_ACCT_IB".
DBCC results for 'DB명.XDBEBILL'.
There are 2415 rows in 43 pages for object "DB명.XDBEBILL".
DBCC results for 'DB명.SH_BD_BALHAENG_BH'.
There are 0 rows in 0 pages for object "DB명.SH_BD_BALHAENG_BH".
DBCC results for 'DB명.SH_BD_RESULT_LIST'.
There are 0 rows in 0 pages for object "DB명.SH_BD_RESULT_LIST".
DBCC results for 'DB명.IB_PC_EB_ISSUE_LIST'.
There are 0 rows in 0 pages for object "DB명.IB_PC_EB_ISSUE_LIST".
DBCC results for 'DB명.IB_PC_EB_RECV_LIST'.
There are 0 rows in 0 pages for object "DB명.IB_PC_EB_RECV_LIST".
DBCC results for 'DB명.BP_PC_EB_RECV_SIGN_LIST'.
There are 0 rows in 0 pages for object "DB명.BP_PC_EB_RECV_SIGN_LIST".
DBCC results for 'DB명.SH_CS_USE_NO'.
There are 0 rows in 0 pages for object "DB명.SH_CS_USE_NO".
DBCC results for 'DB명.SH_CS_USE_NO_BH'.
There are 0 rows in 0 pages for object "DB명.SH_CS_USE_NO_BH".
DBCC results for 'DB명.SH_CS_PANMAE_GIUP'.
There are 0 rows in 0 pages for object "DB명.SH_CS_PANMAE_GIUP".
DBCC results for 'DB명.XDBB2BSHB_BUYLOAN_REG'.
There are 855 rows in 27 pages for object "DB명.XDBB2BSHB_BUYLOAN_REG".
DBCC results for 'DB명.SH_CS_GUMAE_LIST'.
There are 0 rows in 0 pages for object "DB명.SH_CS_GUMAE_LIST".
DBCC results for 'DB명.SH_CS_JIGEUB_LIST'.
There are 0 rows in 0 pages for object "DB명.SH_CS_JIGEUB_LIST".
DBCC results for 'DB명.XDBEBILL_2'.
There are 2361 rows in 104 pages for object "DB명.XDBEBILL_2".
DBCC results for 'sys.queue_messages_1781581385'.
There are 0 rows in 0 pages for object "sys.queue_messages_1781581385".
DBCC results for 'sys.queue_messages_1813581499'.
There are 0 rows in 0 pages for object "sys.queue_messages_1813581499".
DBCC results for 'sys.queue_messages_1845581613'.
There are 0 rows in 0 pages for object "sys.queue_messages_1845581613".
DBCC results for 'sys.filestream_tombstone_1877581727'.
There are 0 rows in 0 pages for object "sys.filestream_tombstone_1877581727".
DBCC results for 'sys.syscommittab'.
There are 0 rows in 0 pages for object "sys.syscommittab".
DBCC results for 'sys.filetable_updates_1909581841'.
There are 0 rows in 0 pages for object "sys.filetable_updates_1909581841".
DBCC results for 'sys.plan_persist_query_text'.
There are 0 rows in 0 pages for object "sys.plan_persist_query_text".
DBCC results for 'sys.plan_persist_query'.
There are 0 rows in 0 pages for object "sys.plan_persist_query".
DBCC results for 'sys.plan_persist_plan'.
There are 0 rows in 0 pages for object "sys.plan_persist_plan".
DBCC results for 'sys.plan_persist_runtime_stats'.
There are 0 rows in 0 pages for object "sys.plan_persist_runtime_stats".
DBCC results for 'dtproperties'.
There are 0 rows in 0 pages for object "dtproperties".
DBCC results for 'sys.plan_persist_runtime_stats_interval'.
There are 0 rows in 0 pages for object "sys.plan_persist_runtime_stats_interval".
DBCC results for 'sys.plan_persist_context_settings'.
There are 0 rows in 0 pages for object "sys.plan_persist_context_settings".
DBCC results for 'sys.sqlagent_jobs'.
There are 0 rows in 0 pages for object "sys.sqlagent_jobs".
DBCC results for 'sys.sqlagent_jobsteps'.
There are 0 rows in 0 pages for object "sys.sqlagent_jobsteps".
DBCC results for 'sys.sqlagent_job_history'.
There are 0 rows in 0 pages for object "sys.sqlagent_job_history".
DBCC results for 'sys.sqlagent_jobsteps_logs'.
There are 0 rows in 0 pages for object "sys.sqlagent_jobsteps_logs".
CHECKDB found 0 allocation errors and 0 consistency errors in database 'DB명'.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
'DBMS > SQL Server' 카테고리의 다른 글
SQL Server Configuration Manager WMI 공급자 권한 오류 (0) | 2023.08.09 |
---|---|
SQL Server 계정이 잠기면 이렇게 해결 하세요 (0) | 2023.06.28 |