相信很多人都遇到過資料被誤刪除然後要求DBA將資料還原回來,但是使用者只知道發生的大概時間。這個時候查看備份可能看到有兩個備份的時間跟錯誤發生的時間差不多。如果你還原到最後一個的話,可能查看資料發現已經出問題了,那麼你得重新來一遍。如果Log很多的話這個是很花時間的。今天看到ORACLE的恢複原理中有這麼一句話:Beforeusing the OPEN RESETLOGS command to open the database in read/writemode after an
還原資料庫檔案組的時候出現下面的錯誤: Msg 3159, Level 16, State 1, Line 1The tail of the log for the database "testfile" has not been backedup. Use BACKUP LOG WITH NORECOVERY to backup the log if it contains work you donot want to lose. Use the WITH REPLACE or WITH
The SQL Server SQLOS uses schedulersto manage the execution of user requests. SQLOS Schedulers map to CPUs. Assuminga 4-CPU Server, there would be 4 SQLOS schedulers by default. The following diagrams depict a simplifiedversion of execution model
曾經看到有人遇到過NDF檔案損壞或者丟失想要通過MDF直接附加資料庫,但是結果是失敗。在網上也Google了一下看到很多人問這個問題,答案是不可以的。 來自MSDN:FORATTACH requires the following: · Alldata files (MDF and NDF) must be available.· Ifmultiple log files exist, they must all be available. Ifa
ALTER proc [dbo].[usp_EmailLongRunningSQL]asbegindeclare@LongRunningQueries AS TABLE( lrqId int IDENTITY(1,1)PRIMARY KEY, spid int NULL, batch_duration bigintNULL, program_namenvarchar(500)NULL, hostname nvarchar(100)NULL, loginame nvarchar(100
今天對一個Index做了調整,為了提高效能將Index修改為FilteredIndex,結果一個JAVA程式出現了下面的錯誤: Error: 1934, Severity: 16, State: 1 INSERT failed because thefollowing SET options have incorrect settings: 'ARITHABORT'. Verify that SET options are correct for use withindexed views
在論壇碰到有人問到無法Attach資料庫的問題,錯誤資訊為: Msg 5171, Level 16, State 1, Line2“path\allen_log.ldfis not a primary database file. 很明顯這個錯誤表示Attch資料庫選擇的檔案不是主要資料庫檔案,但是看附加的資料檔案確實是MDF結尾的。問使用者是否有多個MDF檔案,使用者說是,但是他確定選擇的檔案肯定是主要資料檔案,不會有錯。他認為資料庫檔案是損壞了,我很確信這個錯誤是因為選擇的主要資料檔案不對。
Not considering service levelagreements (SLAs) when designing a database environment and/or not consideringthe need for scheduled downtime for service pack/hotfix application,Defining "disaster" toonarrowly and not simulating/practicing a disaster