web-dev-qa-db-ja.com

読み取りMDFファイルは理由15105で失敗しました

いずれかのデータベースのログ配布バックアップジョブが失敗し、次のエラーメッセージが表示されます。

"D:\ Data\Filename.mdf"の読み取りに失敗しました:1(このエラーのテキストを取得できませんでした。理由:15105)

(これが追加のデータを収集するかどうかを確認するために)ジョブをスケジュール外で実行しようとすると、同じメッセージで失敗します。

このメッセージの原因は何ですか?どのように解決しますか?

_Select @@VERSION_:

Microsoft SQL Server 2008 R2(SP3)-10.50.6220.0(X64)2015年3月19日12:32:14 Copyright(c)Microsoft Corporation Standard Edition(64-bit)on Windows NT 6.1(Build 7601:Service Pack 1)

DB互換性レベル:SQL Server 2008(100)

復旧モデル:一括ログ

DBCC CHECKDBの結果

DBCC CHECKDB ('DatabaseName') WITH PHYSICAL_ONLYレポート:

_DBCC results for 'DatabaseName'.
Msg 8966, Level 16, State 2, Line 1
Unable to read and latch page (1:2112497) with latch type SH. 1(failed to retrieve text for this error. Reason: 15105) failed.
Msg 8966, Level 16, State 2, Line 1
Unable to read and latch page (1:2112498) with latch type SH. 1(failed to retrieve text for this error. Reason: 15105) failed.
Msg 8966, Level 16, State 2, Line 1
Unable to read and latch page (1:2112499) with latch type SH. 1(failed to retrieve text for this error. Reason: 15105) failed.
Msg 8966, Level 16, State 2, Line 1
Unable to read and latch page (1:2112500) with latch type SH. 1(failed to retrieve text for this error. Reason: 15105) failed.
CHECKDB found 0 allocation errors and 4 consistency errors not associated with any single object.
Msg 2533, Level 16, State 1, Line 1
Table error: page (1:2112497) allocated to object ID 557349150, index ID 1, partition ID 72057601138884608, alloc unit ID 72057601177681920 (type In-row data) was not seen. The page may be invalid or may have an incorrect alloc unit ID in its header.
Msg 2533, Level 16, State 1, Line 1
Table error: page (1:2112498) allocated to object ID 557349150, index ID 1, partition ID 72057601138884608, alloc unit ID 72057601177681920 (type In-row data) was not seen. The page may be invalid or may have an incorrect alloc unit ID in its header.
Msg 2533, Level 16, State 1, Line 1
Table error: page (1:2112499) allocated to object ID 557349150, index ID 1, partition ID 72057601138884608, alloc unit ID 72057601177681920 (type In-row data) was not seen. The page may be invalid or may have an incorrect alloc unit ID in its header.
Msg 2533, Level 16, State 1, Line 1
Table error: page (1:2112500) allocated to object ID 557349150, index ID 1, partition ID 72057601138884608, alloc unit ID 72057601177681920 (type In-row data) was not seen. The page may be invalid or may have an incorrect alloc unit ID in its header.
CHECKDB found 0 allocation errors and 4 consistency errors in table 'schemaname.tablename' (object ID 557349150).
CHECKDB found 0 allocation errors and 8 consistency errors in database 'DatabaseName'.
repair_allow_data_loss is the minimum repair level for the errors found by DBCC CHECKDB (DatabaseName).
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
_
2
Rob

CHECKDBは、テーブル 'schemaname.tablename'(オブジェクトID 557349150)で0個の割り当てエラーと4個の整合性エラーを検出しました。 repair_allow_data_lossは、DBCC CHECKDB(DatabaseName)によって検出されたエラーの最小修復レベルです。

データベースが破損しているため、バックアップジョブが失敗しているため、アカウントの権限は問題とは関係ないと思います。破損が少し深刻で、checkdbが一部の内部チェックを中止したこともわかります。

テーブルエラー:オブジェクトID 557349150に割り当てられたページ(1:2112497)、インデックスID 1、パーティションID 72057601138884608、割り当てユニットID 72057601177681920(行内データ型)

破損はクラスター化インデックスを持つテーブルを示しているため、テーブルにインデックスを削除して再作成しても役に立ちません

ソリューション:

私が目にする解決策は、クリーンなバックアップからデータベースを復元することです。バックアップに疑問がある場合は、最初に_restore verifyonly_を実行して_backup set is valid_が返されるかどうかを確認します。そうでない場合は、他のバックアップセットを試す必要があります。

_continue after error_句を使用してデータベースをバックアップし、運が良かったかどうかを確認することもできます。あなたが同じ場合、他のサーバーでバックアップを復元し、dbcc checkdb (db_name) repair_allow_data_lossを実行して、失う可能性があるデータの量を確認してください。 repair_allow_data_lossは最後の手段でなければならないことに注意してください。データを回復する手段がない場合にのみ使用してください。

サードパーティのデータ復旧ソリューションを試すこともできます。まだ試したことがないのでおすすめできません。

2
Shanky

あなたの言及エラーとして

"D:\ Data\Filename.mdf"の読み取りに失敗しました:1(このエラーのテキストを取得できませんでした。理由:15105)

MS SQLエラー15105は、ユーザーがネットワーク共有ディスクにデータベースファイルのバックアップを作成しようとしたとき、またはネットワーク共有でのデータベースファイルのホストがサポートされていないときに発生するエラーメッセージであり、その結果、このようなエラーメッセージイベントが発生します。

MS SQLエラー15105はどのように発生しますか?

MS SQL error 15105 is caused due to following stuffs.

1)Trying to attach an .mdf file, that has not been detached properly.
2)There might not be enough free space on the destination where the user wants to keep his database backup file.
3)There might not be the permission to access the location of the backup file that is assigned in in the SQL Server service account.
4)It may also be possibility that the location of the folder in the error message is not the same instance where the user want to restore the backup. In this case it’s unlikely that the service has access to the folder.
5)If the user has copied the backup file from another computer, then the destination computer may block the file due to security reason.
6)Corruption of Windows Operating System
7)Attack of Viruses
8)Incomplete software installation
9)Excessive startup entries and registry errors.

参照用 ここここ

2

SQL Server 2008R2で同じエラーが発生しました。方法の1つは、影響のあるインデックスを削除して再作成することです。別の方法は、データ、インデックス、トリガーを使用してテーブルを複製することです。次に、影響を受けるテーブルを交換して削除します。

どちらの方法もDBCC修復をバイパスします。

0
user170294