Ошибка 17113 при запуске службы sql server

Не удалось запустить службу SQL Server на Локальный компьютер. Подробности содержатся в журнале системных событий. Если эта служба разработана не в Майкрософт, обратитесь к разработчику службы, и сообщите специфический для этой службы код ошибки…:

Код ошибки 13

Решение:

При появлении данной ошибки необходимо зайти в Пуск  Microsoft SQL Server → Средства настройки  Диспетчер конфигурации SQL Server / SQL ServerConfiguration Manager  Конфигурация сети SQL Server  Протоколы для SQLEXPRESS и проверить, включены ли протоколы (все протоколы должны быть включены).

Код ошибки 1814

Вариант ошибки на английском:
Windows could not start the SQL Server on Local Computer. For more information, review the System Event Log. If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code — 1814.

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

Решение:
Возможно в папке C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\DATA нет необходимых файлов. Необходимо добавить с заменой файлы из папки C:\Program Files\Microsoft SQL Server\MSSQL10_50.SQLEXPRESS\MSSQL\TemplateData.

Код ошибки 3417

Решение:

Перед заменой файлов рекомендуется сохранить копию папки Data в отдельной директории.

Cкопировать данные из C:\Program Files\Microsoft SQL Server\MSSQLXXX\MSSQL\Template Data в C:\Program Files\Microsoft SQL Server\MSSQLXXX\MSSQL\DATA

Для 64-разрядных систем — C:\Program Files (x86)\Microsoft SQL Server\MSSQLXXX\MSSQL\Template Data в C:\Program Files (x86)\Microsoft SQL Server\MSSQLXXX\MSSQL\DATA

Если замена файлов не помогла, необходимо дать права на папку Microsoft SQL Server.

Код ошибки 17058

Решение:

Необходимо дать полные права на папки C:\Program Files\Microsoft SQL Server\ и C:\Program Files (x86)\Microsoft SQL Server. Если данное решение не поможет — в свойствах службы на вкладке Вход в систему поставьте флаг С системной учетной записью.

Код ошибки 17113

Решение:

Перед заменой файлов рекомендуется сохранить копию папки Data в отдельной директории.

Cкопировать данные из C:\Program Files\Microsoft SQL Server\MSSQLXXX\MSSQL\Template Data в C:\Program Files\Microsoft SQL Server\MSSQLXXX\MSSQL\DATA

  • Remove From My Forums
  • Question

  • I am running into a strange error while trying to perform a master database restore.

    While trying to start the Server in Single user mode I get a error 17113, the Server stas in multi user mode as expected, but using the command line

    sqlservr.exe –m –s SERVER\SQL1 I get the Empty message box, setting single user mode -m in the  Startup Parameters for SQL Server also fails with the following message in the sql log

    2013-04-12 18:33:47.46 Server      Registry startup parameters:

      -m  -dE:\SQL_Data\SQL1\MSSQL10_50.SQL1\MSSQL\DATA\master.mdf
      -e E:\SQL_Data\SQL1\MSSQL10_50.SQL1\MSSQL\Log\ERRORLOG
      -l E:\SQL_Data\SQL1\MSSQL10_50.SQL1\MSSQL\DATA\mastlog.ldf
    2013-04-12 18:33:47.46 Server      Error: 17113, Severity: 16, State: 1.
    2013-04-12 18:33:47.46 Server      Error 3(failed to retrieve text for this error. Reason: 15100) occurred while opening file ‘master.mdf’ to obtain configuration information at startup. An invalid startup option might have caused the
    error. Verify your startup options, and correct or remove them if necessary.

    The -f option gives similar behaviour, the SQL Server is a fresh install over a previouly uninstalled SQL Server.

Answers

  • The registry startup parameters are sensitive to extra spaces, and so the reported parameters in the log are not necessarily the ones you are actually using. And the UI for setting them before SQL 2012 is horrible and allowed you to insert hard-to-find
    extraneous spaces.

    To start the SQL Service in single user mode, but not in the console window use the /m switch on NET START:

        net start mssqlserver /m

    You can also restrict the client app name to ensure that you can be the one user:

       net start mssqlserver /mSQLCMD

    Will start the service in single user mode, and only accept connections from the SQLCMD program.

    David


    David http://blogs.msdn.com/b/dbrowne/

    • Proposed as answer by

      Friday, April 12, 2013 3:55 PM

    • Edited by
      davidbaxterbrowneMicrosoft employee
      Friday, April 12, 2013 3:56 PM
    • Marked as answer by
      Olaf HelperMVP
      Saturday, April 20, 2013 4:38 PM

  • *  -dE:*\SQL_Data\SQL1\MSSQL10_50.SQL1\MSSQL\DATA\master.mdf

    *  -d E:*\SQL_Data\SQL1\MSSQL10_50.SQL1\MSSQL\DATA\master.mdf

    The only difference I see is in the log: A (missing) space Parameter -d and the file Name; but even with this it should work. Very strange.

    No, that is the very issue. When you see something like that in the SQL Server error log, you know that the option is not interpreted as intended. This is how it looks in the errorlog on my instance:

    2013-04-12 23:52:50.97 Server      Registry startup parameters:

        -m
        -d C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\master.mdf
        -e C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Log\ERRORLOG
        -l C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\mastlog.ldf

    Note that every option is on its own line. David did something wrong when he entered the -m option. Maybe he forgot to add a semicolon to the option, so that -d and everthing that follows it became an argument to -m and then it went downhill from there.

    The dialog for adding startup parameters in SQL 2005 and SQL 2008 is very error-prone as you easily can miss a semicolon, and a space too many or whatever. And reading the full string is difficult. Thankfully, the SQL 2012 Configuration Manager, there is
    a dialog similar to what we had in SQL 2000.


    Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

    • Marked as answer by
      Olaf HelperMVP
      Saturday, April 20, 2013 4:38 PM

  • Remove From My Forums
  • Question

  • I am running into a strange error while trying to perform a master database restore.

    While trying to start the Server in Single user mode I get a error 17113, the Server stas in multi user mode as expected, but using the command line

    sqlservr.exe –m –s SERVER\SQL1 I get the Empty message box, setting single user mode -m in the  Startup Parameters for SQL Server also fails with the following message in the sql log

    2013-04-12 18:33:47.46 Server      Registry startup parameters:

      -m  -dE:\SQL_Data\SQL1\MSSQL10_50.SQL1\MSSQL\DATA\master.mdf
      -e E:\SQL_Data\SQL1\MSSQL10_50.SQL1\MSSQL\Log\ERRORLOG
      -l E:\SQL_Data\SQL1\MSSQL10_50.SQL1\MSSQL\DATA\mastlog.ldf
    2013-04-12 18:33:47.46 Server      Error: 17113, Severity: 16, State: 1.
    2013-04-12 18:33:47.46 Server      Error 3(failed to retrieve text for this error. Reason: 15100) occurred while opening file ‘master.mdf’ to obtain configuration information at startup. An invalid startup option might have caused the
    error. Verify your startup options, and correct or remove them if necessary.

    The -f option gives similar behaviour, the SQL Server is a fresh install over a previouly uninstalled SQL Server.

Answers

  • The registry startup parameters are sensitive to extra spaces, and so the reported parameters in the log are not necessarily the ones you are actually using. And the UI for setting them before SQL 2012 is horrible and allowed you to insert hard-to-find
    extraneous spaces.

    To start the SQL Service in single user mode, but not in the console window use the /m switch on NET START:

        net start mssqlserver /m

    You can also restrict the client app name to ensure that you can be the one user:

       net start mssqlserver /mSQLCMD

    Will start the service in single user mode, and only accept connections from the SQLCMD program.

    David


    David http://blogs.msdn.com/b/dbrowne/

    • Proposed as answer by

      Friday, April 12, 2013 3:55 PM

    • Edited by
      davidbaxterbrowneMicrosoft employee
      Friday, April 12, 2013 3:56 PM
    • Marked as answer by
      Olaf HelperMVP
      Saturday, April 20, 2013 4:38 PM

  • *  -dE:*\SQL_Data\SQL1\MSSQL10_50.SQL1\MSSQL\DATA\master.mdf

    *  -d E:*\SQL_Data\SQL1\MSSQL10_50.SQL1\MSSQL\DATA\master.mdf

    The only difference I see is in the log: A (missing) space Parameter -d and the file Name; but even with this it should work. Very strange.

    No, that is the very issue. When you see something like that in the SQL Server error log, you know that the option is not interpreted as intended. This is how it looks in the errorlog on my instance:

    2013-04-12 23:52:50.97 Server      Registry startup parameters:

        -m
        -d C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\master.mdf
        -e C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Log\ERRORLOG
        -l C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\mastlog.ldf

    Note that every option is on its own line. David did something wrong when he entered the -m option. Maybe he forgot to add a semicolon to the option, so that -d and everthing that follows it became an argument to -m and then it went downhill from there.

    The dialog for adding startup parameters in SQL 2005 and SQL 2008 is very error-prone as you easily can miss a semicolon, and a space too many or whatever. And reading the full string is difficult. Thankfully, the SQL 2012 Configuration Manager, there is
    a dialog similar to what we had in SQL 2000.


    Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

    • Marked as answer by
      Olaf HelperMVP
      Saturday, April 20, 2013 4:38 PM

Relocating SQL 2008 Std server running on Win2003 Server.  Server renamed, drives remapped onto new SAN.

Service account is a Machine admin, and said account has full control of every drive letter in the machine.

Startup parameters were modified to read:
-eD:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Log\ERRORLOG; -dE:\SQL\master.mdf; -lL:\SQL\mastlog.ldf

All paths are valid and I checked the permissions.

Doing a plain old NET START MSSQLSERVER yields an error 17113 with this detail:

«Error 3(The system cannot find the path specified.) occurred while opening file ‘master.mdf’ to obtain configuration information at startup. An invalid startup option might have caused the error. Verify your startup options, and correct or remove them if necessary.»

master.mdf is in the listed folder.  I even matched the case of every letter in the path.  Still 17113.

NOW HERE IS the RUB!

If I do this:
net start mssqlserver  /dE:\SQL\master.mdf /lL:\SQL\mastlog.ldf

everything starts normally.

No idea of my error.  The parameters in Config manager look perfect.

Please assist.  Production servers depend upon this.

Thanks
John

Top 3 reasons the SQL server services won’t start.

Reason # 1:Service account password changed but not updated on the server where SQL Server instance is installed.

This is one of the most common cause where service account password has been changed by domain admin or SQL Admin but this information is not updated in SQL Server Services.

Hereis the error which we would see if we try to start using Services.

—————————Services—————————Windows could not start the SQL Server (MSSQLSERVER) service on Local Computer.Error 1069: The service did not start due to a logon failure.—————————

System Event logs should show below

Log Name:      System

Source:        Service Control Manager

Date:          <Date Time>

Event ID:      7000

Task Category: None

Level:         Error

Keywords:      Classic

User:          N/A

Computer:     MyServer

Description:The SQL Server (MSSQLSERVER) service failed to start due to the following error:

The service did not start due to a logon failure.

Solution: We need to update the password in services.The right way to do itisto use SQL Server Configuration Manager and type in new password(under Log On tab).

Reason # 2:Startup parameters have incorrect file path locations.

This is another common cause of SQL Server Service startup failure.Let’s assume that master database is located on a drive and files of the database (master.mdf and/or mastlog.ldf) are not available. Since master database is a system database, SQL Service would fail to start. If we try to start SQL via services, we will get below error.

—————————

Services

—————————

Windows could not start the SQL Server (MSSQLSERVER) on Local Computer. For more information, review the System Event Log. If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code 17113.

—————————If we attempt the same via configuration manager, we get standard error which doesn’t explain much.

—————————

SQL Server Configuration Manager

—————————

The request failed or the service did not respond in a timely fashion. Consult the event log or other applicable error logs for details.

—————————

Whenever we get such errors, we should start looking at SQL Server ERRORLOGs are defined under start-up parametersor application event log.We can look at SQL Server Configuration Manager and look for Startup parameter having name -e as shown below (for SQL 2014):

We can open ERRORLOG using notepad or any other text editor. Here is the snippet which shows the problem.

<Date Time> Server      Error: 17113, Severity: 16, State: 1.

<Date Time> Server     Error 2(The system cannot find the file specified.)occurred while opening file ‘C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA\master.mdf’ to obtain configuration information at startup. An invalid startup option might have caused the error. Verify your startup options, and correct or remove them if necessary.

As highlighted above, we can see that SQL is not able to find the file master.mdf.

Below is another example of error for model database.

<Date Time>spid9s Error: 17207, Severity: 16, State: 1.<Date Time>spid9s FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.)occurred while creating or opening file ‘C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\modellog.ldf’. Diagnose and correct the operating system error, and retry the operation.<Date Time>spid9s File activation failure. The physical file name «C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\modellog.ldf» may be incorrect.<Date Time>spid9s Error: 945, Severity: 14, State: 2.<Date Time>spid9s Database ‘model’ cannot be opened due to inaccessible files or insufficient memory or disk space. See the SQL Server error log for details.<Date Time>spid9s Could not create temp db. You may not have enough disk space available. Free additional disk space by deleting other files on the temp db drive and then restart SQL Server. Check for additional errors in the event log that may indicate why the temp db files could not be initialized.

Solution:First we need to find out the correct location of the files. Once files are identified, either put them into the location where SQL Server wants or ALTER the database to point to correct location.If there is an issue with model or temp db database, then we need to start SQL Server using trace flag3608.

Reason #3:System database files not available -accidental deletion or corruption due to disk failures.

If files are missing or corrupted for system databases (master and/or model) SQL Server service would not start. ERROR LOG (mentioned earlier)would contain the exact database name and file name which has the problem.Here are few snippets of error pointing to corruption of system databases.

<Date Time>spid5s Starting up database ‘master’.

<Date Time> spid5sError: 9003, Severity: 20, State: 1.

<Date Time> spid5sThe log scan number (216:72:1) passed to log scan in database ‘master’ is not valid. This error may indicate data corruption or that the log file (.ldf) does not match the data file (.mdf). If this error occurred during replication, re-create the publication. Otherwise, restore from backup if the problem results in a failure during startup.

<Date Time>spid5s Cannot recover the master database. SQL Server is unable to run. Restore master from a full backup, repair it, or rebuild it. For more information about how to rebuild the master database, see SQL Server Books Online.

Depending on which database file is corrupted, we need to take appropriate action. If master database files are corrupted (error above)then we need to rebuild the master database and restore it from the backup. If issue exists with other system databases, then SQL can be started via trace flag and they can be restored.

Did this answer your question?


Thanks for the feedback

There was a problem submitting your feedback. Please try again later.

Понравилась статья? Поделить с друзьями:
  • Ошибка 1700 опель астра h робот
  • Ошибка 1699 хонда
  • Ошибка 1700 опель зафира б робот
  • Ошибка 16906 шкода
  • Ошибка 1699 додж