Орион ошибка 3013

FORUM_NAME: АРМ Орион Про версии до 1.20
Описание: АРМ «Орион Про» — пакет программного обеспечения для аппаратно-программного комплекса ИСО «Орион», на котором реализуются системы охранной сигнализации, контроля и управления доступом, охранного видеонаблюдения, автоматика противопожарных систем, сопряженные с инженерными системами объектов.
Справочная информация, руководства для АРМ Орион Про версии до 1.20
Модератор: Модераторы

Dimon
Автор темы
Dimon
Автор темы
Репутация: 0
Сообщения: 6
Зарегистрирован: 06.03.2013
С нами: 10 лет 6 месяцев
Профессия: техник

Орион Про 1.11 . Рухнула БД, при попытке восстановить из резервной копии (.bak) проверка резервной копии проходит успешно (загорается зелёная галочка), а потом выдается сообщение :
Ошибка востановления базы данных.
No entry in sysdevices for backup device ‘OrionBackup’. Update sysdevices and rerun statement
Помогите советом


Sia-Ori
Активный участник
Активный участник
Sia-Ori
Активный участник
Активный участник
Возраст: 53
Репутация: 5
Сообщения: 774
Зарегистрирован: 04.02.2012
С нами: 11 лет 7 месяцев
Профессия: инженер СКУД
Откуда: Ростов на Дону

Непрочитанное сообщение #2 Sia-Ori » 08.03.2013, 10:46

Как restore выполняется?
Указывай имена дисков, c:\backup\orion11_5.bak


Dimon
Автор темы
Dimon
Автор темы
Репутация: 0
Сообщения: 6
Зарегистрирован: 06.03.2013
С нами: 10 лет 6 месяцев
Профессия: техник

Непрочитанное сообщение #3 Dimon » 08.03.2013, 11:10

Можно подробнее?
Файл на другом диске, указывю его в мастере восстановления он его цепляет, проверяет, а потом выдает ошибку.


AlexRuden
AlexRuden
Возраст: 45
Репутация: 0
Сообщения: 1091
Зарегистрирован: 13.01.2012
С нами: 11 лет 8 месяцев
Профессия: Наёмник.
Откуда: Россия.

Непрочитанное сообщение #4 AlexRuden » 08.03.2013, 11:41

Какая версия SQL? («SQL server 2000» или «SQL server 2005»)?
Попробуйте скопировать бэкап на диск c:\ и оттуда восстановить.

Курите man‘ы , господа.


Dimon
Автор темы
Dimon
Автор темы
Репутация: 0
Сообщения: 6
Зарегистрирован: 06.03.2013
С нами: 10 лет 6 месяцев
Профессия: техник

Непрочитанное сообщение #5 Dimon » 08.03.2013, 13:54

Версия 2005 , попробую после праздников.


pet-and M
Активный участник
Активный участник
pet-and M
Активный участник
Активный участник
Возраст: 44
Репутация: 138
Сообщения: 3287
Зарегистрирован: 11.11.2012
С нами: 10 лет 10 месяцев
Профессия: инженер
Откуда: Санкт-Петербург

Непрочитанное сообщение #6 pet-and » 08.03.2013, 18:21

Попробуйте отсоединить все базы от сервера, создайте новую базу и на нее накатить восстановление из корневой папки.


Dimon
Автор темы
Dimon
Автор темы
Репутация: 0
Сообщения: 6
Зарегистрирован: 06.03.2013
С нами: 10 лет 6 месяцев
Профессия: техник

Непрочитанное сообщение #7 Dimon » 12.03.2013, 18:29

Всех приветствую! БД восстановил. При помощи менеджера SQL, а не «орионовского»
Всех благодарю!



Вернуться в «АРМ Орион Про версии до 1.20»

Overview of MS SQL Server Error Code 3013/3266

When you are trying to perform a database backup to a disk or tape, or a restore from disk or tape, error 3013/3266 may occur. For different SQL users, they may receive different messages when they encounter the error.

For SQL Server 7.0 Users:

sql server error message-1

For SQL Server 2000 Users:

sql sever error 3013-2

For SQL Server 2005 Users:

sql server error 3013-3

What Can Cause Error Code 3013/3266

Several reasons can cause the «BACKUP DATABASE is terminating abnormally» error. Let us have a look:

  • Media failure in which the data backup has been stored.
  • Write failure occurs during the execution of the backup process at the same time.
  • Connectivity loss occurred during the network backup procedure.
  • There’s not enough space. The size of the database is 2 GB while a separate database is larger than 2 GB. It is restored in an existing database.
  • The database is unable to read the file mark, which is available in a backup device or inaccessibility of file mark itself. 

Method 1. Manually Fix MS SQL Error 3013

To fix the error manually, follow the solutions below:

1. Delete or Erase the Device

To fix the error, you must delete or erase the device to perform new backups to the backup device. Before you delete or erase your data, back up your database in advance.

BACKUP DATABASE mydatabase TO DISK=’C:\MyDatabase.bak’ with FORMAT

2. Run Query Analyzer

If the error message occurs during a restore operation, it may be possible to retrieve other backup sets from the device by specifying the file number. Run the following command to retrieve the backup from Query Analyzer.

RESTORE HEADERONLY FROM DISK=’C:\MyDatabase.bak’

Each backup set has one entry in the output. To indicate a specific backup set, use this code:

RESTORE DATABASE mydatabase FROM DISK=’C:\MyDatabase.bak WITH FILE = FileNumber

Important: FileNumber is the backup set number you want to restore.

Method 2. Fix Microsoft SQL 3013 Error with EaseUS MS SQL Recovery

What if error 3013 still exists even after performing all the manual solutions? What can you do? You can restore the data from a corrupt .bak file. You should try EaseUS MS SQL Recovery to fix this error. It is a superior database repair software. It can repair corrupted MDF or NDF SQL server database and solve SQL database problems. Besides, it can do the following things:

  • Repairs corrupted SQL server database components — tables, triggers, indexes, keys, rules & stored procedures.
  • Undelete SQL records from SQL Database.
  • Save the database scan results to resume data recovery at a later stage.
  • Export the repaired file to CSV, MDF, HTML, and MDF formats.

Follow the steps to repair your database and fix the error:

Step 1: Select the corrupted database for recovery

  • Launch EaseUS MS SQL Recovery.
  • Select the corrupted database file by clicking «Browse» (the two dots) or «Search».
  • After selecting the file, click the «Repair» button to start the Analyzing process. 

select the SQL database file

Note: To use this software, you need to stop the SQL Server service.

Step 2: Repair the corrupted database

  • The software displays all the recoverable items in a tree-like structure. The items are shown in a left pane.
  • Select the desired component to be recovered. From the window, click the «Export» button. 

Select the database objects

Step 3: Export to the database or as scripts

  • Choose to export the database objects to database or export the items as scripts
  • If you choose «Export to database», enter the information required and choose the target database.

export the SQL database objects

  • A window appears up asking you to provide credentials to connect to the server and the destination to save the recovered items. In order to begin the repairing process, click «OK». 

Note: Before clicking «OK», you need to restart the SQL Server service.

Работает Орион Про, необходимо заменить компьютер на другой.
На работающем компьютере Windows XP Pro SP2 x64 и Орион Про 1.12, ключи зелёные.
На новом Windows 10 Pro x64, и он пока стоит отдельно не подключенный к пультам и без ключей.
Установил Орион Про 1.12
Установил патч orion_1_12_2_1.exe
Установил драйверы ключей.
Скопировал prvd.ini рядом с cso.exe.
Всё ставил по умолчанию. 
На старом компьютере cделал резервное копирование в менеджере центрального сервера. Получился файл в 700 мегабайт. Скопировал этот файл на новый компьютер, запустил восстановление в менеджере центрального сервера. В результате:
Ошибка восстановления базы данных
Не удалось загрузить динамическую библиотеку xpstar.dll или одну из библиотек, на которую она ссылается. Причина (Null)

Название библиотеки начинается на XP, как и операционка на исходном компьютере. Дальше этого умозаключения я не продвинулся. Что делать? Как перенести базу?

==============
Установил вручную SQL_express_2008, архивная база установилась. 
==================
Что должно работать без связи с пультами и без ключей?
В оболочке активны только иконки Персональная карточка и Клиент статистики.
Иконка CSO неактивна, хотя CSO запущен.
Иконка ОЗ неактивна. Можно запустить ОЗ файлом вручную, но в окне ОЗ опять всё неактивно.

5 лет 11 месяцев назад

avatar

Иванов Андрей Львович

2708

#ссылка

4 ответа

Имя ПК и IP совпадают со старым? Если нет, в АБД «подогнать» к новому. А работает все и без ПКУ и без ключей.

5 лет 11 месяцев назад

avatar

Тремасов Константин Александрович

5398

#ссылка

На новой машине утилита Настройка опроса показывает COM-порты 1,2, 3, 4, 5, 6 и 9, хотя физически на машине только 1, 3 и 4.
Откуда лишние, пришли вместе с конфигурацией со старого компьютера? Так как  раз физически есть 6 и 9, и в утилите настройки опроса тоже есть 6 и 9.
Получается, мне нужно скопировать настройки из старых 6 и 9 в новые 3 и 4?

Должно быть как-то так?

Вот так было на старом, порт 9

5 лет 11 месяцев назад

avatar

Иванов Андрей Львович

2708

#ссылка

Зачем я загрузился в DOS и запустил программу Checkit? Она показывает, что в системе нет COM3 и COM4. Понятно, что нет, DOS не видит плату расширения. Пойду, попытаюсь подключить хотя бы на COM1, уж он-то точно есть.
 

5 лет 11 месяцев назад

avatar

Иванов Андрей Львович

2708

#ссылка

Попробуй ппрогом пульт найти.

5 лет 11 месяцев назад

avatar

Олещенко Игорь Николаевич

2176

#ссылка

Добавить ответ

Для добавления сообщений на форуме вам необходимо зарегистрироваться и указать мобильный телефон в своем профиле (зачем?)

ЗАДАН

5 лет 11 месяцев назад

По каждому вопросу/ответу можно добавлять комментарии. Комментарии предназначены для уточнения вопроса/ответа.

Ошибка при восстановлении баз на SQL сервере 2012 ☑ 0

sergey1982

10.11.13

12:48

Подскажите , пожалуйста, создаю  базу на новом сервере sql и восстанавливаю в нее данные их архивной копии, сделанной со старого физического сервера sql. Пара баз восстановилась нормально, а остальные стали ругаться таким образом : для восстановления не выбран резервный набор данных. Заранее большое спасибо

1

МихаилМ

10.11.13

12:56

2

sergey1982

10.11.13

12:58

Читал. На 2008 сервере я указывал при восстановлении файл базы и лога. А в 2012 он не дает, все поля не активны.

3

sergey1982

10.11.13

12:59

У меня просто копии, модель восстановления на всех базах простая была. А сейчас он требует журнал транзакция, как я понимаю

4

МихаилМ

10.11.13

13:04

(3)

ерунду («требует журнал транзакция») Вы понимаете.

либо не полный список ошибок.

читайте заново

http://msdn.microsoft.com/ru-ru/library/ms186390.aspx

приведите номер ошибки.

5

shuhard

10.11.13

13:04

(3) так бэкап полный или инкрементный

6

sergey1982

10.11.13

13:07

бекап полный

7

sergey1982

10.11.13

13:11

Номера ошибки нет, просто Выбираю базу данных, пустую, которую создал через 1с , дальше выбираю Задачи — Восстановить — база данных. Открывается окно гдн Источник , выбираю устройство и ище местоположения архива, Назначение — пустая база данных. А вот где Таблица с Восстанавливаемыми резервными наборами данных, которая, как я понимаю, определяет что за архив я буду разворачивать, эта таблица не активна, пустая. А когда все хорошо, она паказывает архив

8

МихаилМ

10.11.13

13:12

9

sergey1982

10.11.13

13:15

Вначале пишет Чтение заголовка устройств резервного копирования, идет зеленая полоса прогресса, а потом красный крестик Для восстановления не выбран резервный набор данных. Я не понимаю почему ему не нравятся архивы?

10

sergey1982

10.11.13

13:16

Может установить родной 2008 с которого архивы все делались вместо 2012

11

МихаилМ

10.11.13

13:20

select @@VERSION

что говорит ?

12

sergey1982

10.11.13

13:23

секундочку

13

shuhard

10.11.13

13:23

(9)[Я не понимаю почему ему не нравятся архивы?]

а это к чему ?

14

sergey1982

10.11.13

13:24

Пишет    Microsoft SQL Server 2012 — 11.0.2100.60 (X64)

    Feb 10 2012 19:39:15

    Copyright (c) Microsoft Corporation

    Enterprise Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: )

15

sergey1982

10.11.13

13:26

shuhard, раньше получалось же восстановить архив в любую базу, выбирал только расположение самой базы и лога транзакций и все. А сейчас он ничего не дает выбрать, все неактивно Только пишет:

  для восстановления не выбран резервный набор данных

16

sergey1982

10.11.13

13:27

Через запрос пишу  

RESTORE DATABASE IP_Bogdanova

FROM DISK = ‘C:\IP_Bogdanova.bak’

   WITH FILE=1, NORECOVERY;

А он пишет :

Сообщение 3154, уровень 16, состояние 4, строка 1

Резервный набор данных содержит копию базы данных, отличной от существующей базы данных «IP_Bogdanova».

Сообщение 3013, уровень 16, состояние 1, строка 1

RESTORE DATABASE прервано с ошибкой.

17

МихаилМ

10.11.13

13:28

18

МихаилМ

10.11.13

13:29

19

sergey1982

10.11.13

13:31

не перейти по ссылке (

20

shuhard

10.11.13

13:36

(15) напиши ещё сто раз одно и то же

21

sergey1982

10.11.13

13:38

это мне адресовано?

22

sergey1982

10.11.13

13:41

короче задница полная, бухи останутся без работы

23

МихаилМ

10.11.13

13:45

24

sergey1982

10.11.13

14:28

он не дает мне изменить параметры восстановления !

25

МихаилМ

10.11.13

14:38

(0)

9. Если во время выполнения операции восстановления возникает ошибка 3154, перезапишите существующую базу данных используя команду RESTORE DATABASE с опцией WITH REPLACE или выполните восстановление в базу данных с другим именем.

Ошибка 3154 возникает, когда Вы пытаетесь восстановить базу поверх существующей, но существующая база данных была создана оператором CREATE DATABASE с другим набором инструкций, чем при создании базы данных, восстанавливаемой из резервной копии.

26

sergey1982

10.11.13

14:40

Михаил, скажите пожалуйста, так как можно восстановить в пустую базу данных данные из архива, чтобы сервер не ругался?

27

МихаилМ

10.11.13

14:46

(26)

из (17) узнаёте параметры базы;

создаете с такими же пораметрами новую бд

восстанавливаете.

28

sergey1982

10.11.13

14:49

Извиняюсь, я уже просто запутался совсем. Уже установил скуль 2008 в котором первоначально все архивы делались. Он теперь пишет ЗАГОЛОВОК: Microsoft SQL Server Management Studio

——————————

При выполнении инструкции или пакета Transact-SQL возникло исключение. (Microsoft.SqlServer.ConnectionInfo)

——————————

ДОПОЛНИТЕЛЬНЫЕ СВЕДЕНИЯ:

RESTORE HEADERONLY прервано с ошибкой. (Microsoft SQL Server, ошибка: 3013)

Чтобы получить справку, щелкните: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.00.1600&EvtSrc=MSSQLServer&EvtID=3013&LinkId=20476

——————————

КНОПКИ:

ОК

——————————

29

sergey1982

10.11.13

14:50

На том скриншоте, который Вы мне прислали надо параметры изменить, куда типа архив будт восстанавливаться, но он мне не дает залесть в параметры  требует источник восстановления выбрать, я выбираю, а он пишет

ЗАГОЛОВОК: Microsoft SQL Server Management Studio

——————————

При выполнении инструкции или пакета Transact-SQL возникло исключение. (Microsoft.SqlServer.ConnectionInfo)

——————————

ДОПОЛНИТЕЛЬНЫЕ СВЕДЕНИЯ:

RESTORE HEADERONLY прервано с ошибкой. (Microsoft SQL Server, ошибка: 3013)

Чтобы получить справку, щелкните: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.00.1600&EvtSrc=MSSQLServer&EvtID=3013&LinkId=20476

——————————

КНОПКИ:

ОК

——————————

30

Мимохожий Однако

10.11.13

14:55

Кроме архивов SQL неплохо делать стандартную выгрузку из 1С

31

sergey1982

10.11.13

14:55

баз много, было бы несколько — запросто

32

sergey1982

10.11.13

14:55

беда совсем

33

sergey1982

10.11.13

14:56

Никак не зайти в параметры и не выбрать местоположение базы и журнала.

34

ilkoder

10.11.13

14:59

Ошибка здесь — Выбираю базу данных, пустую, которую создал через 1с — создай просто пустую базу через sql менеджер — в нее востанови базу, а потом укажи путь к ней для сервера 1с

35

sergey1982

10.11.13

15:00

Забыл сказать, что резервные копии были сжаты средст

вами sql

36

МихаилМ

10.11.13

15:02

маловероятно, что все копии испортились, если их хранили не на флэш.

разверните более ранние архивы.

37

ilkoder

10.11.13

15:02

Когда создаешь базу через 1с — она уже будет не пустой — в ней будут куча таблиц 1с. если восстанавливать из dt, то да, а если скл — то нужно просто пустая  скл-база

38

sergey1982

10.11.13

15:03

так в пустую и восстанавливаю данные из архива

39

МихаилМ

10.11.13

15:03

скорее всего Вы не тот скл 2008 развернули

скл 2008 и скл 2008 R2 различные версии.

40

ilkoder

10.11.13

15:05

(38) — пустую базу как создаешь?

41

sergey1982

10.11.13

15:05

Я всегда это делал, как уже говорил, через меню параметры. Там соответственно проставлял базу и журнал. Сейчас он мне зайти туда не дает пишет Выберите сначала источник восстановления. А выбираю источник пишет ЗАГОЛОВОК: Microsoft SQL Server Management Studio

——————————

При выполнении инструкции или пакета Transact-SQL возникло исключение. (Microsoft.SqlServer.ConnectionInfo)

——————————

ДОПОЛНИТЕЛЬНЫЕ СВЕДЕНИЯ:

RESTORE HEADERONLY прервано с ошибкой. (Microsoft SQL Server, ошибка: 3013)

Чтобы получить справку, щелкните: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.00.1600&EvtSrc=MSSQLServer&EvtID=3013&LinkId=20476

——————————

КНОПКИ:

ОК

——————————

42

sergey1982

10.11.13

15:06

Пустую создаю через значок 1с — создание новой базы

43

sergey1982

10.11.13

15:06

Вы думаете лучше создавать все только скулем?

44

МихаилМ

10.11.13

15:06

45

sergey1982

10.11.13

15:06

в свойствах программа пишет просто 2008 без R2

46

ilkoder

10.11.13

15:07

(43) — конечно

47

sergey1982

10.11.13

15:07

Михаил, он мне в опции не дает зайти (

48

sergey1982

10.11.13

15:09

Создал чере скуль — все то же самое

49

sergey1982

10.11.13

15:10

Михаил, как на Вашем скриншоте, я так всегда и восстанавливал в пустую базу. Но сейчас засада какая-то.

50

ilkoder

10.11.13

15:12

» А вот где Таблица с Восстанавливаемыми резервными наборами данных, которая, как я понимаю, определяет что за архив я буду разворачивать, эта таблица не активна, пустая.» — значит архивы битые, сразу не все прочитал, там по любому должна быть куча информация от даты создания, названия базы и пр

51

sergey1982

10.11.13

15:14

Как вы поняли, я не мега спец по СКУЛЮ, читаю Уильяма Станека, но прост осейчас надо все мегасрочно к завтра исправить. А что за таблица я не совсем понимаю?

52

sergey1982

10.11.13

15:15

Все началось с того, что все работало нормально. Начальник решил вбить в домен этот несчастный сервер. После того, как он его вбил в домен, сервер уже не узнавал сам себя. Ну а разбираться мне крайнему

53

sergey1982

10.11.13

15:20

Кстати вот эти архивные копии я скопировал на свой внешний жесткий диск, а хранились они на рэйде 10 ssd. Может при копировании на другой тип носителя архивная копия и глючит?

54

sergey1982

10.11.13

15:20

я уже нифига не понимаю

Summary:
This blog will discuss version-specific occurrences of the SQL Server Error 3013, the reasons behind the error, and methods to fix it. If you cannot restore the database (DB) from backup, it usually means that the backup (.bak) file is damaged or corrupt. There is no manual method to restore the database from a corrupt .bak file. In that case, use Stellar Repair for MS SQL Technician for backup recovery to recover the DB from the backup (.bak) file.

Free Download for Windows

Contents

  • Version-Specific Occurrences of SQL Error 3013
  • What Causes SQL Server Error 3013?
  • Methods to Fix SQL Server Error 3013
  • What if You Cannot Restore SQL Server Database from Backup?
  • Conclusion

Sometimes, when performing an SQL Server database (DB) backup to a storage device or trying to restore the DB from backup, you may encounter the following error message:

Msg 3013, Level 16, State 1, Line 1
BACKUP DATABASE is terminating abnormally.

The frequency of this error may vary depending on the versions of SQL Server application you are using.

Version-Specific Occurrences of SQL Error 3013

  • SQL Server 7.0: In this SQL version, the error occurs when a clustered index is created in every filegroup of the table. The error message is as follows:

SQL Server 7.0 error message 3013

  • SQL Server 2000: If the database of volume less than 2 GB is already available and an attempt is made to back up another database having more than the existing volume, it results in 3013 error code. And, you will receive an error message similar to:

SQL Server 2000 error message 3013

  • SQL Server 2005: In this version, the error occurs when Backup Administrator tries to restore data files and log files together in a single instance of time. The error message appears as:

SQL Server error message 3013

What Causes SQL Server Error 3013?

Plausible reasons that result in SQL Server restore database is terminating abnormally error are as follows:

  • An attempt to view the Network drive has been made by an unauthorized user.
  • The storage device, on which the backup file (.bak) is stored, has failed.
  • A write failure has occurred during backup creation.
  • When there is not enough storage on the backup drive.
  • When an attempt is made to execute backup on transactional logs when Database is in SUSPECT mode.

Methods to Fix SQL Server Error 3013

NOTE: Since backup has terminated abruptly, avoid rewriting the same backup, as it may result in the same error again.

Depending on the version-specific occurrence of SQL Server Error 3013, follow these methods to fix the error:

NOTE: Methods 1, 2, and 3 may resolve the problem, provided the error has not occurred during backup restoration. But, if you have encountered backup failed error 3013 during the restoration process, skip to Method 4.

Method 1 – Check the Security Permission for User

Follow these steps to check if a user is denied permission to take DB backups in SQL Server:

Step 1: Browse the location of the backup folder to find the database ‘.bak’ file.

Step 2: Right-click the backup file, and select Properties.

Stellar

Step 3: In the Properties window, click the Security Tab.

Stellar

Step 4: Now check the Deny permissions for Authenticated Users.

Stellar

Step 5: Click Edit and remove the denied permission.

Stellar

Step 6: Click OK.

Method 2 – Delete the Previous Backup

Manually delete the previous backup and enable the SQL server to execute new backups to the backup device to fix the error. Use the following command for manual deletion of the last backup:

BACKUP DATABASE mydatabase TO DISK= ‘C:Mydatabase.bak’ with format

Method 3 – Perform Full Backup Restoration

Sometimes, partial restoration is not the solution, try performing a full backup restoration technique. To perform a full backup, first, uninstall the backup application followed by re-installation. Check that the account under which SQL service binds is the member of Domain User Group and has been provided with ‘Write’ access to the Windows server.

Method 4 – Try Retrieving another Backup Set

If backup restoration is behind the error, try retrieving other backup sets within the backup device by specifying the file number. 

NOTE: The file number signifies the backup set series that needs to be restored.

Run the following command to retrieve the backup set from Query Analyzer:

RESTORE HEADERONLY FROM DISK=’C: MyDatabase.bak

Next, specify the particular backup set for retrieval by using the following command:

RESTORE DATABASE mydatabase FROM DISK=’C: MyDatabase.bak WITH FILE = FileNumber

The above command may help you restore some backup sets from the damaged device, but there is a possibility that the backup restoration process is not complete. So, it is mandatory to verify the integrity of the restored database. 

You can identify the success or failure of backup operation or restore operation in the SQL Server error log, as well as, from the backup history tables in the MSDB system database.

What if You Cannot Restore SQL Server Database from Backup?

If you’re unable to restore your database from the .bak file, it is likely that the file has turned corrupt. And, you cannot restore from a corrupt .bak file. But, you can try to extract data from the file by using Stellar Repair for MSSQL Technician software. It is trusted by Microsoft MVPs and is a combination of 3 powerful tools that help repair corrupt SQL Server database, extracts database from corrupt .bak file, and reset SQL Server password.

Stellar

Conclusion

When your backup system is hit with SQL Server Error 3013 before restoring the database, you can try any of these manual methods to fix the error:

  • Check for user security permission and change it.
  • Try deleting the old data from the backup device and enable SQL Server application to implement a new backup operation.
  • Try performing a full backup restoration.

If you get a 3013 error when restoring the DB, check for other backup sets available on the storage device and retrieve them. But, if you’re unable to restore the .bak file, chances are that the file is corrupt. If that’s the case, you can try extracting data from the .bak file by using the Stellar Repair for MS SQL Technician software.

About The Author

Priyanka Chauhan

Priyanka is a technology expert working for key technology domains that revolve around Data Recovery and related software’s. She got expertise on related subjects like SQL Database, Access Database, QuickBooks, and Microsoft Excel. Loves to write on different technology and data recovery subjects on regular basis. Technology freak who always found exploring neo-tech subjects, when not writing, research is something that keeps her going in life.

Let us examine the error SQL server backup error 3013, and the reasons causing it. At Bobcares our MSSQL support services can give you a detailed overview of the error and the troubleshooting steps to remove the error.

SQL Server Error 3013 Restore Database

The Error will display in the following way:

Msg 3201, Level 16, State 1, Line 4
Cannot open backup device 'D:Adventureworks.bak'. Operating system error 5(Access is denied.).
Msg 3013, Level 16, State 1, Line 4
BACKUP DATABASE is terminating abnormally.

Causes For the SQL Server Backup Database Error 3013

SQL 3013 frequently appears on the screen when an administrator is backing up the database. The following are some of the possible causes for this SQL server backup issue 3013:

  • A write failure will occur during the backup creation: The file is compressed when there is insufficient storage space on the backup disk.
  • SQL Server may generate the error when unauthorized users attempt to examine network drives.
  • Media failure occurred: If the storage device where the backup file is saved experiences a media failure, SQL Server Error may occur.
  • The issue may occur when the database is in Suspect mode and the user attempts to backup the transactional log.

Version-Specific Occurrences of SQL Error 3013

  • SQL Server 7.0: The problem happens in this SQL version when establishing a clustering index in each filegroup of the table. The following is the error message:

    Sever: Msg 3013. Level 16, State 1, Line 1
    Backup or restore operation terminating abnormally

  • SQL Server 2000: If a database with a volume less than 2 GB is already accessible and an attempt is made to back up another database with a volume greater than the existing volume, the 3013 error code is returned. We will also see an error notice that looks like this:

    Server: Msg 3013, Level 16, State 1, Line 1
    BACKUP DATABASE is terminating abnormally

  • SQL Server 2005: The error occurs in this version when Backup Administrator attempts to restore data files and log files at the same time. The error message appears as follows:

    sql server backup error 3013

    Priyanka Chauhan

    Priyanka is a technology expert working for key technology domains that revolve around Data Recovery and related software’s. She got expertise on related subjects like SQL Database, Access Database, QuickBooks, and Microsoft Excel. Loves to write on different technology and data recovery subjects on regular basis. Technology freak who always found exploring neo-tech subjects, when not writing, research is something that keeps her going in life.

Let us examine the error SQL server backup error 3013, and the reasons causing it. At Bobcares our MSSQL support services can give you a detailed overview of the error and the troubleshooting steps to remove the error.

SQL Server Error 3013 Restore Database

The Error will display in the following way:

Msg 3201, Level 16, State 1, Line 4
Cannot open backup device 'D:Adventureworks.bak'. Operating system error 5(Access is denied.).
Msg 3013, Level 16, State 1, Line 4
BACKUP DATABASE is terminating abnormally.

Causes For the SQL Server Backup Database Error 3013

SQL 3013 frequently appears on the screen when an administrator is backing up the database. The following are some of the possible causes for this SQL server backup issue 3013:

  • A write failure will occur during the backup creation: The file is compressed when there is insufficient storage space on the backup disk.
  • SQL Server may generate the error when unauthorized users attempt to examine network drives.
  • Media failure occurred: If the storage device where the backup file is saved experiences a media failure, SQL Server Error may occur.
  • The issue may occur when the database is in Suspect mode and the user attempts to backup the transactional log.

Version-Specific Occurrences of SQL Error 3013

  • SQL Server 7.0: The problem happens in this SQL version when establishing a clustering index in each filegroup of the table. The following is the error message:

    Sever: Msg 3013. Level 16, State 1, Line 1
    Backup or restore operation terminating abnormally

  • SQL Server 2000: If a database with a volume less than 2 GB is already accessible and an attempt is made to back up another database with a volume greater than the existing volume, the 3013 error code is returned. We will also see an error notice that looks like this:

    Server: Msg 3013, Level 16, State 1, Line 1
    BACKUP DATABASE is terminating abnormally

  • SQL Server 2005: The error occurs in this version when Backup Administrator attempts to restore data files and log files at the same time. The error message appears as follows:

Troubleshooting Methods for Resolving SQL Server Error 3013

It is important to note that as the termination on the backup was sudden, rewriting the same backup may result in the same issue.

To resolve SQL Server Error 3013, use one of the following ways, depending on the version:

Method 1 – Check the Security Permission for the User

To determine whether a user is denied authorization to perform SQL Server database backups, perform the following steps:

Step 1: Firstly, navigate to the backup folder to retrieve the database’.bak’ file. After that, select Properties from the context menu when right-clicking the backup file.

Step 2: Click the Security Tab in the Properties window. After that check the Deny permissions for Authenticated Users box now.

Step 3: Remove the disallowed permission by clicking Edit.

Step 4: Finally click on the OK button to complete the process.

Method 2 – Delete the Previous Backup

To resolve the error, remove the previous backup and allow the SQL server to perform new backups to the backup device. To manually delete the last backup, run the following command:

BACKUP DATABASE mydatabase TO DISK= ‘C:Mydatabase.bak’ with format

Method 3– Perform Full Backup Restoration

When partial restoration is not an option, use a full backup restoration procedure. To perform a full backup, uninstall the backup application first, then reinstall it.

Check that the account to which the SQL service is bound is a member of the “Domain User Group” and has ‘Write’ access to the Windows server.

Method 4 – Try Retrieving another Backup Set

If the cause for the error is backup restoration, try retrieving other backup sets within the backup device by supplying the file number.

It’s worth noting that the file number represents the backup set series that has to be restored.

To obtain the backup set from Query Analyzer, use the following command:

RESTORE HEADERONLY FROM DISK=’C: MyDatabase.bak

Then, use the following command to specify the specific backup set for retrieval:

RESTORE DATABASE mydatabase FROM DISK=’C: MyDatabase.bak WITH FILE = FileNumber

The aforementioned command may assist you in restoring some backup sets from the damaged device, however, the backup restoration procedure may not be complete. As a result, verifying the integrity of the restored database is necessary.

The success or failure of a backup or restoration operation can be determined using the SQL Server error log as well as the backup history tables in the MSDB system database.

[Need assistance with similar queries? We are here to help]

Conclusion

To conclude we have now learned more about the error SQL server backup error 3013 and the reasons causing it. We also saw the various troubleshooting steps put forward by our MSSQL support services.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

Fix SQL Server Backup Error – Backup Database is Terminating Abnormally. sqlstate 42000 (Error 3013)


admin ~
Modified: 24-05-2023 ~ SQL Server , Technology ~ 5 Minutes Reading

Let us assume that you are restoring a database backup from any disk or tape. While doing this, you have changed the logical name of the database. And then you may receive the following error message: SQL Server backup error 3013 or Msg 3013, Level 16, State 1, Line 1 Backup database is terminating abnormally

This error is interconnected to restoring the database. Using the statement RESTORE FILELISTONLY, a user can check the backup file. You will notice that the modified logical name of the database is corrupted or damaged and the last character of the name is truncated.

Consider the following user Query: SQL Server Backup Error 3013

Clark Williams: “Hi. The problem is when we tried to backup and restore our database using SQL Server 2008, we got an error. The schedule was to create seven backups of twenty-three databases. The schedule worked fine for some time. But, from the past two days, all the backups failed. The server is showing the following error:

Write on “T:\.bak” failed: 170(The requested resource is in use.)
Msg 3013, Level 16, State 1, Server, Line 1
BACKUP DATABASE is terminating abnormally.
Outcome: Failed

sql server error 3013 backup

What would cause the above problem to occur? How should I correct it and prevent it from happening again?”

Important Note: In case if your SQL Server Backup files are corrupted and you are looking for a Quick Solution to repair corrupted .bak files then I suggest you take the help of SQL Backup Recovery Software. For complete details, the user can try the demo version of this software.

Download Now Purchase Now 100% Secure

Causes For the SQL Server Backup Database Error 3013

Oftentimes, when an administrator is backing up the database, SQL 3013 flashes up on the screen. The possible reasons due to which this SQL server backup error 3013 is displayed are:

  • Write failure occurred while creating the backup: When there is insufficient storage space on the backup drive, the file gets compressed.
  • When unauthorized users attempt to view network drive, SQL Server may result in the error.
  • Media failure occurred: When the storage device where the backup file is saved undergoes any media failure, this may also result in SQL Server Error
  • When the database is in Suspect mode, and the user tries to perform a backup of the transactional log, the error may occur.

Dependency upon Versions of SQL Server and Operating Systems

Errors in the SQL Server are dependent on the operating system and the versions of SQL application. The stated point will become more clear in the following section:

  • SQL Server 7.0: In this version, an error occurs when a clustered index is created corresponding to each filegroup.
  • SQL Server 2000: This error occurs in relation to another database. There are two possible situations under which the error in this version occurs:
    First, the database is lesser than 2 GB in size
    Second, the other database is having size more than the size of the pre-existing database
  • SQL Server 2005: In this version, the error occurs when an administrator tries to back up both data files as well as log files simultaneously.

Workaround to Fix MSG 3013, level 16, state 1, line 1 Backup Database is Terminating Abnormally

To restore SQL Error 3013 manually, there are 2 manual methods. Both of them are described in detail:

#Solution 1

In this method, you need to take the database offline after changing the logical name of the database and then again bring the database online.

Following command needs to be performed:

sql server backup error 3013

#Solution 2

When you change the logical name of the database, insert a white space at the end of new file name. The command to implement the following change is:

sql server backup database error 3013

Note: It is possible that you have to restart the database after changing the logical name of your database

Limitations of the Manual Solution to Troubleshoot SQL Server 2012 Backup Error 3013

Although the manual solution is free of cost, there are some of the drawbacks associated with the manual approach. The limitations of the manual method to fix SQL Server Backup Error 3013 are listed below:

  • The workarounds depends on the version of the SQL Server
  • A user must have a good technical knowledge regarding SQL Server
  • Restoration using manual method may result in loss of information.

Professional Solution to Fix Backup Database is Terminating Abnormally. Sqlstate 42000 (error 3013)

The best solution to resolve the error is to use a third-party tool like Revove SQL Database Repair Tool. It is the trouble-free solution to fix msg 3013, level 16, state 1, line 1 backup database is terminating abnormally. According to the experts, it is the master solution to fix SQL Server 3013 error. By using this the user can easily recover the SQL Server database and also the user can export the data to SQL Server easily. Some of the features which make it distinct from other available products are:

  • A file can be saved with two options: With only schema or With Schema & Data
  • Supports SQL Server 2019, 2017 2016, 2014, 2012, 2008, 2008 R2, 2005, 2000 versions
  • Preview and Recover Deleted SQL Table Records
  • Supports SQL Server version 2019 and below versions.

Note: The user can also read the another similar post to fix SQL Server error 823.

Conclusion

When an admin change the logical name of the database while creating the backup of SQL file, SQL Server Backup error 3013 occurs. There are workarounds to eliminate the error. But, the problem is that the manual method is not that effective to remove the error. In fact, it may also result in loss of data. To overcome these problems, users can opt for an automated solution. This is the professional solution to fix SQL Server Backup Error 3013, level 16, state 1, line 1 backup database is terminating abnormally.

Overview of SQL Server Error 3013

One of the most frustrating situations that a user experiences while working with SQL Server is when errors are encountered. These errors disrupt the normal functioning of SQL Server and in worst case scenario may even lead to data loss. Sometimes, SQL Server Backup Detected Corruption In the Database Log. In this write-up, we are going to discuss about one such SQL Error 3013.

Error Description

SQL Server Error 3013 mainly occurs when the backup process to a disk/tape or a restoration process from a disk/tape is under process.

What is «Restore Database Terminating Abnormally» in SQL Error 3013 ?

The error message and the occurrence factors of SQL Server error 3013 vary according to the SQL Server version the user is currently working with.

SQL Server 7.0

In this SQL version, the error is encountered when the clustered index has been created in all the filegroups of the table.

SQL Server 2000

In this case, if the database of size 2 GB already exists and a separate database of size more than 2 GB is restored in the existing database, the error is generated.

SQL Server 2005

In the instance of restoration of both the data and log files at the same time, the Error 3013 is encountered.

Reason behind Its Occurrence

The dominant reason behind the occurrence of this error is the inability of the database to read the filemark present in the backup device or inaccessibility of the filemark itself. Before proceeding further, let us know what filemark actually is.

A filemark in a backup device is the element that does not store user data. In order to organize and unify the storage patterns, the filemarks, divide the partition in smaller segments. Their primary task is splitting data of all the individual files that are stored in the backup device.

The other reasons, which also play an important role in the occurrence of SQL error 3013, are:

  • Media failure on the device in which the backup has been stored.
  • Write failure whilst the execution of the backup process.
  • Connectivity loss during the network backup process.

Workaround

1. The error can be removed by manual deletion of the device and ensuring that the server performs new backup to the device. The command to do so is:

2. In case the restoration process is the reason behind the error occurrence, it is possible to retrieve the other backup data by specifying the file number in the device.

In order to check the presence of multiple backup sets on the device, run the following code:

For indicating a specific set of backup, run the following command:

Note: The FileNumber term is used to represent the file series that the user wants to restore

Conclusion

In the blog, we discussed about the SQL Server Error 3013. With the help of the workarounds mentioned in the above section, the users can easily remove this error and continue with the restoration and backup process. In case if you failed with manual solution then you can also try SQL BAK recovery tool to successfully repair corrupt SQL .bak file.

Overview of MS SQL Server Error Code 3013/3266

When you are trying to perform a database backup to a disk or tape, or a restore from disk or tape, error 3013/3266 may occur. For different SQL users, they may receive different messages when they encounter the error.

For SQL Server 7.0 Users:

sql server error message-1

For SQL Server 2000 Users:

sql sever error 3013-2

For SQL Server 2000 Users:

For SQL Server 2005 Users:

sql server error 3013-3

What Can Cause Error Code 3013/3266

Several reasons can cause the «BACKUP DATABASE is terminating abnormally» error. Let us have a look:

  • Media failure in which the data backup has been stored.
  • Write failure occurs during the execution of the backup process at the same time.
  • Connectivity loss occurred during the network backup procedure.
  • There’s not enough space. The size of the database is 2 GB while a separate database is larger than 2 GB. It is restored in an existing database.
  • The database is unable to read the file mark, which is available in a backup device or inaccessibility of file mark itself. 

Method 1. Manually Fix MS SQL Error 3013

To fix the error manually, follow the solutions below:

1. Delete or Erase the Device

To fix the error, you must delete or erase the device to perform new backups to the backup device. Before you delete or erase your data, back up your database in advance.

BACKUP DATABASE mydatabase TO DISK=’C:MyDatabase.bak’ with FORMAT

2. Run Query Analyzer

If the error message occurs during a restore operation, it may be possible to retrieve other backup sets from the device by specifying the file number. Run the following command to retrieve the backup from Query Analyzer.

RESTORE HEADERONLY FROM DISK=’C:MyDatabase.bak’

Each backup set has one entry in the output. To indicate a specific backup set, use this code:

RESTORE DATABASE mydatabase FROM DISK=’C:MyDatabase.bak WITH FILE = FileNumber

Important: FileNumber is the backup set number you want to restore.

Method 2. Fix Microsoft SQL 3013 Error with EaseUS MS SQL Recovery

What if error 3013 still exists even after performing all the manual solutions? What can you do? You can restore the data from a corrupt .bak file. You should try EaseUS MS SQL Recovery to fix this error. It is a superior database repair software. It can repair corrupted MDF or NDF SQL server database and solve SQL database problems. Besides, it can do the following things:

  • Repairs corrupted SQL server database components — tables, triggers, indexes, keys, rules & stored procedures.
  • Undelete SQL records from SQL Database.
  • Save the database scan results to resume data recovery at a later stage.
  • Export the repaired file to CSV, MDF, HTML, and MDF formats.

Follow the steps to repair your database and fix the error:

Step 1: Select the corrupted database for recovery

  • Launch EaseUS MS SQL Recovery.
  • Select the corrupted database file by clicking «Browse» (the two dots) or «Search».
  • After selecting the file, click the «Repair» button to start the Analyzing process. 

select the SQL database file

What Can Cause Error Code 3013/3266

Several reasons can cause the «BACKUP DATABASE is terminating abnormally» error. Let us have a look:

  • Media failure in which the data backup has been stored.
  • Write failure occurs during the execution of the backup process at the same time.
  • Connectivity loss occurred during the network backup procedure.
  • There’s not enough space. The size of the database is 2 GB while a separate database is larger than 2 GB. It is restored in an existing database.
  • The database is unable to read the file mark, which is available in a backup device or inaccessibility of file mark itself. 

Method 1. Manually Fix MS SQL Error 3013

To fix the error manually, follow the solutions below:

1. Delete or Erase the Device

To fix the error, you must delete or erase the device to perform new backups to the backup device. Before you delete or erase your data, back up your database in advance.

BACKUP DATABASE mydatabase TO DISK=’C:MyDatabase.bak’ with FORMAT

2. Run Query Analyzer

If the error message occurs during a restore operation, it may be possible to retrieve other backup sets from the device by specifying the file number. Run the following command to retrieve the backup from Query Analyzer.

RESTORE HEADERONLY FROM DISK=’C:MyDatabase.bak’

Each backup set has one entry in the output. To indicate a specific backup set, use this code:

RESTORE DATABASE mydatabase FROM DISK=’C:MyDatabase.bak WITH FILE = FileNumber

Important: FileNumber is the backup set number you want to restore.

Method 2. Fix Microsoft SQL 3013 Error with EaseUS MS SQL Recovery

What if error 3013 still exists even after performing all the manual solutions? What can you do? You can restore the data from a corrupt .bak file. You should try EaseUS MS SQL Recovery to fix this error. It is a superior database repair software. It can repair corrupted MDF or NDF SQL server database and solve SQL database problems. Besides, it can do the following things:

  • Repairs corrupted SQL server database components — tables, triggers, indexes, keys, rules & stored procedures.
  • Undelete SQL records from SQL Database.
  • Save the database scan results to resume data recovery at a later stage.
  • Export the repaired file to CSV, MDF, HTML, and MDF formats.

Follow the steps to repair your database and fix the error:

Step 1: Select the corrupted database for recovery

  • Launch EaseUS MS SQL Recovery.
  • Select the corrupted database file by clicking «Browse» (the two dots) or «Search».
  • After selecting the file, click the «Repair» button to start the Analyzing process. 

Note: To use this software, you need to stop the SQL Server service.

Step 2: Repair the corrupted database

  • The software displays all the recoverable items in a tree-like structure. The items are shown in a left pane.
  • Select the desired component to be recovered. From the window, click the «Export» button. 

Select the database objects

Step 3: Export to the database or as scripts

  • Choose to export the database objects to database or export the items as scripts
  • If you choose «Export to database», enter the information required and choose the target database.

export the SQL database objects

Step 3: Export to the database or as scripts

  • Choose to export the database objects to database or export the items as scripts
  • If you choose «Export to database», enter the information required and choose the target database.
  • A window appears up asking you to provide credentials to connect to the server and the destination to save the recovered items. In order to begin the repairing process, click «OK». 

Note: Before clicking «OK», you need to restart the SQL Server service.

Понравилась статья? Поделить с друзьями:

Интересное по теме:

  • Орион ошибка 2108
  • Оригин ошибка 14 1
  • Орион table is full ошибка
  • Опыт и ошибки наташи ростовой
  • Организация коллективной и индивидуальной работы над ошибками

  • Добавить комментарий

    ;-) :| :x :twisted: :smile: :shock: :sad: :roll: :razz: :oops: :o :mrgreen: :lol: :idea: :grin: :evil: :cry: :cool: :arrow: :???: :?: :!: