블로그 이미지
010-9967-0955 보미아빠

카테고리

보미아빠, 석이 (500)
밥벌이 (16)
싸이클 (1)
일상 (1)
Total
Today
Yesterday

달력

« » 2024.4
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

공지사항

최근에 올라온 글


net start mssql$sql2008r2 /m

ADMIN:.\sql2008r2

접속완료

update sys.sysdbreg set status = status |32 where name ='db'
update sys.sysdbreg set status = status &~32 where name ='db'

이런거 강제로 셋팅이 가능.


restore database db with recovery

Error: 927, Severity: 14, State: 2
먼저 에러가 나고 다음 아래와 같은 에러 발생


메시지 4333, 수준 16, 상태 1, 줄 2
로그가 복원되지 않아 데이터베이스를 복구할 수 없습니다.
메시지 3013, 수준 16, 상태 1, 줄 2
RESTORE DATABASE이(가) 비정상적으로 종료됩니다.

메시지 4333, 수준 16, 상태 1, 줄 2
The database cannot be recovered because the log was not restored.
메시지 3013, 수준 16, 상태 1, 줄 2
RESTORE DATABASE is terminating abnormally.



restore log db from disk ='c:\a.log1' with norecovery , CONTINUE_AFTER_ERROR



메시지 4320, 수준 16, 상태 11, 줄 1
데이터베이스 또는 파일 복원을 통해 파일 "db"을(를) 완전히 복원하지 못했습니다. 이 백업 세트를 적용하기 전에 전체 파일을 복원해야 합니다.
메시지 3119, 수준 16, 상태 1, 줄 1
RESTORE 문을 계획하는 동안 문제가 발견되었습니다. 자세한 내용은 이전 메시지를 참조하십시오.
메시지 3013, 수준 16, 상태 1, 줄 1
RESTORE LOG이(가) 비정상적으로 종료됩니다.

메시지 4320, 수준 16, 상태 11, 줄 2
The file "db" was not fully restored by a database or file restore. The entire file must be successfully restored before applying this backup set.
메시지 3119, 수준 16, 상태 1, 줄 2
Problems were identified while planning for the RESTORE statement. Previous messages provide details.
메시지 3013, 수준 16, 상태 1, 줄 2
RESTORE LOG is terminating abnormally.

dbcc traceon (3604)
dbcc dbtable


1 = autoclose; set with sp_dboption.
4 = select into/bulkcopy; set with sp_dboption.
8 = trunc. log on chkpt; set with sp_dboption.
16 = torn page detection, set with sp_dboption.
32 = loading.
64 = pre recovery.
128 = recovering.
256 = not recovered.
512 = offline; set with sp_dboption.
1024 = read only; set with sp_dboption.
2048 = dbo use only; set with sp_dboption.
4096 = single user; set with sp_dboption.
32768 = emergency mode.
4194304 = autoshrink.
1073741824 = cleanly shutdown.

binary diff 이용하기 위해 aptdiff winmerge 같은 툴 이용할것


drmsqlinit
drmsqlbackup
drmsqllogbackup

backup log a with no_log

씨봉~ ㅠ.ㅠ~

Posted by 보미아빠
, |
서비스 계정에 권한을 주면 된다.
restore 를 할 경우도 해당 윈도우 계정이 c:\에 권한이 없으면 명령을 수행하지 못한다.


Posted by 보미아빠
, |

노트북을 가볍게 만들어 줄것을 약속 드립니다. 쿨럭~ 쥑이네~
soluto 프로그램을 깔아서 분석해 보세요


Posted by 보미아빠
, |

최근에 달린 댓글

최근에 받은 트랙백

글 보관함