Usuário com melhor resposta
MSSQLSERVER não inicializa serviço

Pergunta
-
Respostas
-
Em caso de ser alteração da conta de usuário de iniciação do serviço, vc deve verifica permissões dos seguintes itens:
1 - Em local policy(WINDOWS), o usuário está inserido nas seguintes políticas:
* Create tokens
* Login as a service
* Lock page in memory
2 - Também verifique a permissão do usuário nas seguintes chaves(ACESSO FULL):
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSSQLSERVERHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SQLSERVERAGENT
Essas duas chanves são exemplos em caso de a sua instancia ser nomeada, sempre o valor da chave seguirá com "NOME_SERVIÇO$NOME_INSTANCIA".
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSSQL$SQL2000HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SQLSERVERAGEN$SQL2000
Conceda as permissões necessárias.
3 - Conceda permissão FULL ao usuário de serviço no diretório onde se encontra instalado o SQL Server.
- Marcado como Resposta Junior Galvão - MVPMVP, Moderator sábado, 4 de novembro de 2017 11:45
Todas as Respostas
-
-
-
Oi Romulo, é muito importante que vc compartilhe amensagem de erro e nos informe algumas coisas do tipo:
Foi alterada a conta de serviço do SQL?
Foi realizada alguma atualização no servidor antes do incidente?
vc está tendo problema de disco(falha) ou questão de espaço em disco mesmo?
-
Em caso de ser alteração da conta de usuário de iniciação do serviço, vc deve verifica permissões dos seguintes itens:
1 - Em local policy(WINDOWS), o usuário está inserido nas seguintes políticas:
* Create tokens
* Login as a service
* Lock page in memory
2 - Também verifique a permissão do usuário nas seguintes chaves(ACESSO FULL):
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSSQLSERVERHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SQLSERVERAGENT
Essas duas chanves são exemplos em caso de a sua instancia ser nomeada, sempre o valor da chave seguirá com "NOME_SERVIÇO$NOME_INSTANCIA".
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSSQL$SQL2000HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SQLSERVERAGEN$SQL2000
Conceda as permissões necessárias.
3 - Conceda permissão FULL ao usuário de serviço no diretório onde se encontra instalado o SQL Server.
- Marcado como Resposta Junior Galvão - MVPMVP, Moderator sábado, 4 de novembro de 2017 11:45
-
-
-
Romulo, use o google pra descobrir como usar o comando net start, vc pode ver também no books on-line do SQL.
Olha um exemplo aí.
http://www.google.com.br/search?hl=pt-BR&q=Net+Start+mssqlserver&btnG=Pesquisar&meta=cr%3DcountryBR
Poste o conteudo do arquivo de log.
O local padrão é o seguinte:
C:\Arquivos de programas\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG
Verifique e poste eventuais error existentes no event viwer.(caso não saiba como verificar, procure no google)
-
Bom dia,
Emanuel, o SQLServer inicializou legal, muito obrigado pela dica, agora o serviço que não consigo fazer inicializar é o SQLExpress. Tentei execulta-lo pelo comando net start também mas não deu certo, o que vc me aconselha a fazer neste caso?
Um detalhe que observei, não sei se temalgo a ver, mas a instancia do SQLExpress que estou tentando inicializar está para MSSQL.1 e na verdade antes disso tudo eu reinstalei o SQL Server e foi criado um 2º como MSSQL.2. Temos como mudar ocaminho da instancia neste caso? será que isto iria ajudar?
No visualizador de eventos a informação referente ao sistema é:
O serviço SQL Server (SQLEXPRESS) terminou com o erro específico de serviço 10048 (0x2740).
E para o aplicativo ele diz:
O SQL Server não conseguiu gerar o segmento FRunCM. Verifique o log de erros do SQL Server e os logs de eventos do Windows para obter informações sobre possíveis problemas relacionados.
Obrigado pela atenção de todos.
Abs.
Romulo
-
-
-
Junior,
Já fiz este procedimento que vc me orientou, o problema agora é o serviço do SQLExpress que não quer inicializar.
O Log de erro traz bastante informação o que me deixou até confuso!!!
diz:
2009-01-13 13:52:53.79 Server Microsoft SQL Server 2005 - 9.00.3042.00 (Intel X86)
Feb 9 2007 22:47:07
Copyright (c) 1988-2005 Microsoft Corporation
Express Edition on Windows NT 5.1 (Build 2600: Service Pack 2)2009-01-13 13:52:54.07 Server (c) 2005 Microsoft Corporation.
2009-01-13 13:52:54.07 Server All rights reserved.
2009-01-13 13:52:54.10 Server Server process ID is 1216.
2009-01-13 13:52:54.10 Server Authentication mode is MIXED.
2009-01-13 13:52:54.23 Server Logging SQL Server messages in file 'c:\Arquivos de programas\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG'.
2009-01-13 13:52:54.24 Server This instance of SQL Server last reported using a process ID of 728 at 13/1/2009 10:39:55 (local) 13/1/2009 13:39:55 (UTC). This is an informational message only; no user action is required.
2009-01-13 13:52:54.26 Server Registry startup parameters:
2009-01-13 13:52:54.40 Server -d c:\Arquivos de programas\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\master.mdf
2009-01-13 13:52:54.40 Server -e c:\Arquivos de programas\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG
2009-01-13 13:52:54.40 Server -l c:\Arquivos de programas\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\mastlog.ldf
2009-01-13 13:52:54.78 Servidor SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
2009-01-13 13:52:54.78 Servidor Detected 1 CPUs. This is an informational message; no user action is required.
2009-01-13 13:52:58.18 Servidor Using dynamic lock allocation. Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node. This is an informational message only. No user action is required.
2009-01-13 13:53:04.81 Servidor Database mirroring has been enabled on this instance of SQL Server.
2009-01-13 13:53:06.53 spid5s Starting up database 'master'.
2009-01-13 13:53:11.48 spid5s SQL Trace ID 1 was started by login "sa".
2009-01-13 13:53:12.14 spid5s Starting up database 'mssqlsystemresource'.
2009-01-13 13:53:12.37 spid5s The resource database build version is 9.00.3042. This is an informational message only. No user action is required.
2009-01-13 13:53:17.15 spid8s Starting up database 'model'.
2009-01-13 13:53:17.17 spid5s Server name is 'SUPORTE2\SQLEXPRESS'. This is an informational message only. No user action is required.
2009-01-13 13:53:17.21 spid5s Starting up database 'msdb'.
2009-01-13 13:53:17.35 Servidor Virtual Interface Architecture protocol is not supported for this particular edition of SQL Server.
2009-01-13 13:53:20.39 Servidor A self-generated certificate was successfully loaded for encryption.
2009-01-13 13:53:20.70 spid8s Clearing tempdb database.
2009-01-13 13:53:21.31 Servidor Server is listening on [ 'any' <ipv4> 1137].
2009-01-13 13:53:21.31 Servidor Server is listening on [ 'any' <ipv4> 1433].
2009-01-13 13:53:21.35 Servidor Server local connection provider is ready to accept connection on [ \\.\pipe\SQLLocal\SQLEXPRESS ].
2009-01-13 13:53:21.35 Servidor Server named pipe provider is ready to accept connection on [ \\.\pipe\MSSQL$SQLEXPRESS\sql\query ].
2009-01-13 13:53:21.37 Servidor Dedicated administrator connection support was not started because it is not available on this edition of SQL Server. This is an informational message only. No user action is required.
2009-01-13 13:53:21.59 Servidor The SQL Network Interface library could not register the Service Principal Name (SPN) for the SQL Server service. Error: 0x54b, state: 3. Failure to register an SPN may cause integrated authentication to fall back to NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies.
2009-01-13 13:53:21.59 Servidor SQL Server is now ready for client connections. This is an informational message; no user action is required.
2009-01-13 13:53:26.35 spid8s Starting up database 'tempdb'.
2009-01-13 13:53:27.65 spid5s Recovery is complete. This is an informational message only. No user action is required.
2009-01-13 13:53:27.76 spid11s The Service Broker protocol transport is disabled or not configured.
2009-01-13 13:53:27.81 spid11s The Database Mirroring protocol transport is disabled or not configured.
2009-01-13 13:53:29.81 spid11s Service Broker manager has started.
Mais uma vez abradeço a ajuda de todos..!
Abs.
Romulo
-
-
-
-
Romulo, apartir do log que vc postou ficou fácil, visto que a sua instância nomeada se chama: "'SUPORTE2\SQLEXPRESS'"
2009-01-13 13:53:17.17 spid5s Server name is 'SUPORTE2\SQLEXPRESS'. This is an informational message only. No user action is required.
O nome do serviço seria MSSQL$SQLEXPRESS.
Se possível, classifique a resposta que lhe ajudou.
Valeu.
-
Boa tarde!
Desculpem por reviver o post, porém, estou com o mesmo problema e não estou conseguindo solucionar.
Até usei sua referencia para tentar iniciar o serviço mas não consegui.
Segue meu error log.
"
2017-07-09 15:01:57.21 Server Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64)
Apr 2 2010 15:48:46
Copyright (c) Microsoft Corporation
Enterprise Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: ) (Hypervisor)
2017-07-09 15:01:57.21 Server (c) Microsoft Corporation.
2017-07-09 15:01:57.21 Server All rights reserved.
2017-07-09 15:01:57.21 Server Server process ID is 2504.
2017-07-09 15:01:57.21 Server System Manufacturer: 'Microsoft Corporation', System Model: 'Virtual Machine'.
2017-07-09 15:01:57.21 Server Authentication mode is MIXED.
2017-07-09 15:01:57.21 Server Logging SQL Server messages in file 'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Log\ERRORLOG'.
2017-07-09 15:01:57.21 Server This instance of SQL Server last reported using a process ID of 2832 at 09/07/2017 15:01:06 (local) 09/07/2017 18:01:06 (UTC). This is an informational message only; no user action is required.
2017-07-09 15:01:57.21 Server Registry startup parameters:
-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
2017-07-09 15:01:57.21 Servidor SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
2017-07-09 15:01:57.21 Servidor Detected 8 CPUs. This is an informational message; no user action is required.
2017-07-09 15:01:57.21 Server Cannot use Large Page Extensions: lock memory privilege was not granted.
2017-07-09 15:01:57.40 Servidor Using dynamic lock allocation. Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node. This is an informational message only. No user action is required.
2017-07-09 15:01:57.42 Servidor Node configuration: node 0: CPU mask: 0x00000000000000f0:0 Active CPU mask: 0x00000000000000f0:0. This message provides a description of the NUMA configuration for this computer. This is an informational message only. No user action is required.
2017-07-09 15:01:57.42 Servidor Node configuration: node 1: CPU mask: 0x000000000000000f:0 Active CPU mask: 0x000000000000000f:0. This message provides a description of the NUMA configuration for this computer. This is an informational message only. No user action is required.
2017-07-09 15:01:57.45 spid8s Starting up database 'master'.
2017-07-09 15:01:57.49 spid8s CHECKDB for database 'master' finished without errors on 2017-07-08 03:40:09.007 (local time). This is an informational message only; no user action is required.
2017-07-09 15:01:57.49 spid8s Resource governor reconfiguration succeeded.
2017-07-09 15:01:57.49 spid8s SQL Server Audit is starting the audits. This is an informational message. No user action is required.
2017-07-09 15:01:57.49 spid8s SQL Server Audit has started the audits. This is an informational message. No user action is required.
2017-07-09 15:01:57.49 spid8s FILESTREAM: effective level = 0, configured level = 0, file system access share name = 'MSSQLSERVER'.
2017-07-09 15:01:57.51 spid8s SQL Trace ID 1 was started by login "sa".
2017-07-09 15:01:57.51 spid8s Starting up database 'mssqlsystemresource'.
2017-07-09 15:01:57.52 spid8s The resource database build version is 10.50.1600. This is an informational message only. No user action is required.
2017-07-09 15:01:57.57 spid8s Server name is 'FORTALEZA'. This is an informational message only. No user action is required.
2017-07-09 15:01:57.57 spid13s Starting up database 'model'.
2017-07-09 15:01:57.61 Servidor A self-generated certificate was successfully loaded for encryption.
2017-07-09 15:01:57.61 Servidor Server is listening on [ 'any' <ipv6> 1433].
2017-07-09 15:01:57.61 Servidor Server is listening on [ 'any' <ipv4> 1433].
2017-07-09 15:01:57.61 Servidor Server local connection provider is ready to accept connection on [ \\.\pipe\SQLLocal\MSSQLSERVER ].
2017-07-09 15:01:57.61 Servidor Erro: 26029, Gravidade: 16, Estado: 1.
2017-07-09 15:01:57.61 Servidor Server named pipe provider failed to listen on [ sql\query ]. Error: 0x57
2017-07-09 15:01:57.61 Servidor Erro: 17182, Gravidade: 16, Estado: 1.
2017-07-09 15:01:57.61 Servidor TDSSNIClient initialization failed with error 0x57, status code 0x50. Reason: Não é possível inicializar o ouvinte de Pipes Nomeados. Parâmetro incorreto.
2017-07-09 15:01:57.61 Servidor Erro: 17182, Gravidade: 16, Estado: 1.
2017-07-09 15:01:57.61 Servidor TDSSNIClient initialization failed with error 0x57, status code 0x1. Reason: Falha na inicialização com um erro de infraestrutura. Verifique se houve erros anteriores. Parâmetro incorreto.
2017-07-09 15:01:57.61 Servidor Erro: 17826, Gravidade: 18, Estado: 3.
2017-07-09 15:01:57.61 Servidor Could not start the network library because of an internal error in the network library. To determine the cause, review the errors immediately preceding this one in the error log.
2017-07-09 15:01:57.61 Servidor Erro: 17120, Gravidade: 16, Estado: 1.
2017-07-09 15:01:57.61 Servidor SQL Server could not spawn FRunCM thread. Check the SQL Server error log and the Windows event logs for information about possible related problems.
2017-07-09 15:01:57.76 spid15s A new instance of the full-text filter daemon host process has been successfully started.
"