Репликация sql server ошибка при установке

Устранена проблема, возникающая при настройке репликации SQL Server или настройке связанного сервера в SQL Server 2012 или SQL Server 2014.

SQL Server 2012 Developer SQL Server 2012 Enterprise SQL Server 2012 Standard SQL Server 2014 Developer SQL Server 2014 Enterprise SQL Server 2014 Standard Еще…Меньше

Проблемы

При сбое создания главного ключа службы для Microsoft SQL Server 2012 или SQL Server 2014 во время установки SQL Server не регистрирует этот сбой. Это приводит к некоторым проблемам, например при попытке настроить репликацию SQL Server появляется следующее сообщение об ошибке:

При расшифровке произошла ошибка. Удаленный пользователь «distributor_admin», сопоставленный с локальным пользователем (null), не отображается на удаленном сервере «repl_distributor». Контекст базы данных изменен на «Master». (Microsoft SQL Server, ошибка: 15466)

При попытке создать связанный сервер вместе с удаленными именами входа возникает ошибка:

При расшифровке произошла ошибка

Кроме того, в журнале ошибок SQL Server может появиться следующее сообщение об ошибке:

<дата> <время> главный ключ службы spid5s не удалось расшифровать с помощью одного из его алгоритмов. Дополнительные сведения вы видите в разделе sys.key_encryptions.

При выполнении запроса к представлению каталога sys.symmetric_keysвозвращается одна строка для главного ключа службы. При выполнении запроса к представлению каталога sys.key_encryptionsне возвращается ни одной строки. Ожидаемый результат — две строки.

Решение

После того как вы примените это обновление, метаданные будут оставлены пустыми, если во время настройки произойдет сбой создания главного ключа службы, а после повторного запуска службы SQL Server попытаться создать главный ключ службы еще раз. Кроме того, дополнительные сообщения об ошибках, связанные с ошибкой создания главного ключа службы, записываются в журнал ошибок.Примечание

  • Если вы столкнулись с этой проблемой, это обновление не будет работать, и вы должны воспользоваться одним из описанных ниже способов.

  • Чтобы использовать изменения в этом накопительном обновлении, необходимо установить SQL Server с помощью функции обновления продукта и выполнить объединенную установку с RTM + SP + SP1.

Эта проблема впервые устранена в следующем накопительном обновлении SQL Server:

  • Накопительное обновление 3 для SQL Server 2014 с пакетом обновления 1 (SP1)

  • Накопительное обновление 10 для SQL Server 2014

  • Накопительное обновление 8 для SQL Server 2012 с пакетом обновления 2 (SP2)

Обходное решение

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

  • Воссоздайте главный ключ службы с помощью следующей инструкции Transact-SQL:

    ALTER SERVICE MASTER KEY FORCE REGENERATE

  • Переустановите экземпляр SQL Server.

Если вы столкнулись с проблемой при установке SQL Server, перед установкой SQL Server вы можете выполнить указанные ниже действия.

  • Перезапустите операционную систему.

  • Войдите в сеанс подключения к удаленному рабочему столу с помощью учетной записи службы SQL Server.

  • Подождите несколько минут, а затем завершите сеанс после того, как профиль пользователя будет создан полностью.

  • Запустите настройку SQL Server через несколько минут.

Статус

Корпорация Майкрософт подтверждает наличие этой проблемы в своих продуктах, которые перечислены в разделе «Применяется к».

Нужна дополнительная помощь?

Thanks a lot Shanky_621. You gave me the confidence to make this ‘simple’ change . I will go through the entire process on a step-by step.

I made the change in the ‘Log on as’ property  (NT Authority, see picture) for the SQL Server 2016 Database Engine (previously NT Service).

Steps to accomplish this change:

1) Open SQL Server Configuration Manager
2) Under SQL Server Services Select Your Server
3) Right Click and Select Properties
4) Log on Tab Change to Built-in-account
5) In the drop down list select Network Service
6) Apply and start the service

At the hindsight, I realized that this change is a must for the Reporting Services 2016 Engine too; I changed this for SQL Server 2016 Launch Pad also, just to test (though I did not know anything about the LaunchPad !)  

The change for the Database Engine 2016 initially started the service, which was previously not starting(the reporting services 2016 engine was starting earlier too (though not working in the Report Server/Manager side, or even while connecting via SSMS
to the Reporting Services Engine), even before this change, with NT Service itself.) See picture (screenshot taken after the final modifications are completed).

I was delighted that the Database Engine 2016 started, and tried to connect via SSMS 2016; I found some other error!

***********************************

(I do not have the screenshot for this below error, since this is in now resolved, apologize for it, but had copied to a notepad.)

TITLE: Connect to Server
——————————

Cannot connect to MachineNameSQL2016DEV.

——————————
ADDITIONAL INFORMATION:

Login failed for user ‘MachineNameAdministrator’. (Microsoft SQL Server, Error: 18456)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=18456&LinkId=20476

——————————
BUTTONS:

OK
—————————— 

The error 18456 is too generic, and after some online reading I could not sort out. 

In the SSMS (2016) error message box  the «Technical Details»  section , I found the following:

Server Name: MachineNameSQL2016DEV
Error Number: 18456
Severity: 14
State: 1
Line Number: 65536

********************************************

Solution:

Go to  — 

Control PanelAll Control Panel ItemsAdministrative Tools Event Viewer :

I found this:

Login failed for user ‘MachineNameAdministrator’. 
Reason: Could not find a login matching the name provided. [CLIENT: <local machine>]

(This message in the Event Viewer)

********************************************

While installing the database engine, I opted for mixed mode authentication; but neither the Windows login nor the sa login were connecting via SSMS ! They threw me the same above error, all while the Database Engine 2016 was STILL running !

After some online reading, I tried this:  i.e. opt for SQL Server Login with sa and no password, it works! I do not know how on earth this is successful! But to get this I struggled for over 3 hours!

Once this sa/no-password SQL Server login was successful, I did this:

CREATE LOGIN [<domainName><login_name>] FROM WINDOWS;
GO

The above domain/login is my Windows account (MachineNameSQL2016DEV); I can then get into the SSMS, and give maximum permission to this account.

Now, I am able to use my Windows login to open the SSMS 2016. See below.

Even after this, my problems did not end.  I realized that the SSRS — Reporting Services 
Engine was not connecting with the Windows authentication in SSMS (obviously SSRS does not
have SQL Server authentication) with NT Service, even though this service itself is STILL working (just as the case of Database Engine, a little earlier).

I needed to change this SSRS 2016 Service too to NT Authroity, and make appropriate modifications in the Reporting Services Configuration Manager (this also took more than 2 hours, but do not want
to elaborate).

I had to create the Report Server database using the Reporting Services Configuration Manager,
and restart the SSRS service a couple of times to make the URL of Report Server and Report Manager
to work. 

After some trial and error, I am able to open the Reporting Services Engine from my SSMS,
using Windows Authentication.

I am also able to work with the Report Manager. 

In a nutshell, I did this:

DB Engine, Reporting Services Engine: change to NT Authority (earlier NT Service), and make these services running. You do
not need to uninstall/reinstall SQL Server 2016 for this.  Remember, I am using a built-in administrator account — MachineNameAdministrator. I am not sure whether this will work when you are using some other
type of account.

Once you get these 2 services running, you connect them via SSMS, and handle issues.

Honestly, installing Microsoft SQL Server 2016 in Windows 10 OS is somewhat complicated, with separate installations for SSMS and SSDT, which were not required in previous versions such as 2012, 2008R2, etc.

Thanks

Thanks a lot Shanky_621. You gave me the confidence to make this ‘simple’ change . I will go through the entire process on a step-by step.

I made the change in the ‘Log on as’ property  (NT Authority, see picture) for the SQL Server 2016 Database Engine (previously NT Service).

Steps to accomplish this change:

1) Open SQL Server Configuration Manager
2) Under SQL Server Services Select Your Server
3) Right Click and Select Properties
4) Log on Tab Change to Built-in-account
5) In the drop down list select Network Service
6) Apply and start the service

At the hindsight, I realized that this change is a must for the Reporting Services 2016 Engine too; I changed this for SQL Server 2016 Launch Pad also, just to test (though I did not know anything about the LaunchPad !)  

The change for the Database Engine 2016 initially started the service, which was previously not starting(the reporting services 2016 engine was starting earlier too (though not working in the Report Server/Manager side, or even while connecting via SSMS
to the Reporting Services Engine), even before this change, with NT Service itself.) See picture (screenshot taken after the final modifications are completed).

I was delighted that the Database Engine 2016 started, and tried to connect via SSMS 2016; I found some other error!

***********************************

(I do not have the screenshot for this below error, since this is in now resolved, apologize for it, but had copied to a notepad.)

TITLE: Connect to Server
——————————

Cannot connect to MachineNameSQL2016DEV.

——————————
ADDITIONAL INFORMATION:

Login failed for user ‘MachineNameAdministrator’. (Microsoft SQL Server, Error: 18456)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=18456&LinkId=20476

——————————
BUTTONS:

OK
—————————— 

The error 18456 is too generic, and after some online reading I could not sort out. 

In the SSMS (2016) error message box  the «Technical Details»  section , I found the following:

Server Name: MachineNameSQL2016DEV
Error Number: 18456
Severity: 14
State: 1
Line Number: 65536

********************************************

Solution:

Go to  — 

Control PanelAll Control Panel ItemsAdministrative Tools Event Viewer :

I found this:

Login failed for user ‘MachineNameAdministrator’. 
Reason: Could not find a login matching the name provided. [CLIENT: <local machine>]

(This message in the Event Viewer)

********************************************

While installing the database engine, I opted for mixed mode authentication; but neither the Windows login nor the sa login were connecting via SSMS ! They threw me the same above error, all while the Database Engine 2016 was STILL running !

After some online reading, I tried this:  i.e. opt for SQL Server Login with sa and no password, it works! I do not know how on earth this is successful! But to get this I struggled for over 3 hours!

Once this sa/no-password SQL Server login was successful, I did this:

CREATE LOGIN [<domainName><login_name>] FROM WINDOWS;
GO

The above domain/login is my Windows account (MachineNameSQL2016DEV); I can then get into the SSMS, and give maximum permission to this account.

Now, I am able to use my Windows login to open the SSMS 2016. See below.

Even after this, my problems did not end.  I realized that the SSRS — Reporting Services 
Engine was not connecting with the Windows authentication in SSMS (obviously SSRS does not
have SQL Server authentication) with NT Service, even though this service itself is STILL working (just as the case of Database Engine, a little earlier).

I needed to change this SSRS 2016 Service too to NT Authroity, and make appropriate modifications in the Reporting Services Configuration Manager (this also took more than 2 hours, but do not want
to elaborate).

I had to create the Report Server database using the Reporting Services Configuration Manager,
and restart the SSRS service a couple of times to make the URL of Report Server and Report Manager
to work. 

After some trial and error, I am able to open the Reporting Services Engine from my SSMS,
using Windows Authentication.

I am also able to work with the Report Manager. 

In a nutshell, I did this:

DB Engine, Reporting Services Engine: change to NT Authority (earlier NT Service), and make these services running. You do
not need to uninstall/reinstall SQL Server 2016 for this.  Remember, I am using a built-in administrator account — MachineNameAdministrator. I am not sure whether this will work when you are using some other
type of account.

Once you get these 2 services running, you connect them via SSMS, and handle issues.

Honestly, installing Microsoft SQL Server 2016 in Windows 10 OS is somewhat complicated, with separate installations for SSMS and SSDT, which were not required in previous versions such as 2012, 2008R2, etc.

Thanks

Дано: Microsoft Windows Server 2012 R2 Standard x64 RU + Microsoft SQL Server 2016 RTM EE RU.
В процессе установки возникает следующая ошибка:

Ошибка

Далее видно, что не установились следующие компоненты:

Ошибка установки

Ок, смотрю как написано в лог-файл Summary но ничего, что может натолкнуть на понимание проблемы не вижу:

Setup completed with required actions for features.
Troubleshooting information for those features:
  Next step for SQLEngine:       Устраните ошибку, пользуясь следующими сведениями, удалите компонент, а затем запустите установку еще раз.
  Next step for DQ:              Устраните ошибку, пользуясь следующими сведениями, удалите компонент, а затем запустите установку еще раз.
  Next step for FullText:        Устраните ошибку, пользуясь следующими сведениями, удалите компонент, а затем запустите установку еще раз.
  Next step for AdvancedAnalytics: Устраните ошибку, пользуясь следующими сведениями, удалите компонент, а затем запустите установку еще раз.
  Next step for Replication:     Устраните ошибку, пользуясь следующими сведениями, удалите компонент, а затем запустите установку еще раз.

.......

Detailed results:
  Feature:                       Соединение с клиентскими средствами
  Status:                        Завершено

  Feature:                       Пакет SDK клиентских средств
  Status:                        Завершено

  Feature:                       Службы ядра СУБД
  Status:                        Ошибка. Дополнительные сведения см. в журнале.
  Reason for failure:            Произошла ошибка во время процесса установки компонента.
  Next Step:                     Устраните ошибку, пользуясь следующими сведениями, удалите компонент, а затем запустите установку еще раз.
  Component name:                Экземпляры служб ядра СУБД SQL Server
  Component error code:          0x851A001A
  Error description:             Ошибка при ожидании дескриптора восстановления ядра СУБД. Возможные причины см. в журнале ошибок SQL Server.

  Feature:                       Служба Data Quality Services
  Status:                        Ошибка. Дополнительные сведения см. в журнале.
  Reason for failure:            Возникла ошибка для одной из зависимостей компонента, вызвавшая сбой процесса его установки.
  Next Step:                     Устраните ошибку, пользуясь следующими сведениями, удалите компонент, а затем запустите установку еще раз.
  Component name:                Экземпляры служб ядра СУБД SQL Server
  Component error code:          0x851A001A
  Error description:             Ошибка при ожидании дескриптора восстановления ядра СУБД. Возможные причины см. в журнале ошибок SQL Server.

  Feature:                       Полнотекстовый и семантический поиск
  Status:                        Ошибка. Дополнительные сведения см. в журнале.
  Reason for failure:            Возникла ошибка для одной из зависимостей компонента, вызвавшая сбой процесса его установки.
  Next Step:                     Устраните ошибку, пользуясь следующими сведениями, удалите компонент, а затем запустите установку еще раз.
  Component name:                Экземпляры служб ядра СУБД SQL Server
  Component error code:          0x851A001A
  Error description:             Ошибка при ожидании дескриптора восстановления ядра СУБД. Возможные причины см. в журнале ошибок SQL Server.

  Feature:                       R Services (в базе данных)
  Status:                        Ошибка. Дополнительные сведения см. в журнале.
  Reason for failure:            Произошла ошибка во время процесса установки компонента.
  Next Step:                     Устраните ошибку, пользуясь следующими сведениями, удалите компонент, а затем запустите установку еще раз.
  Component name:                R Services (в базе данных)
  Component error code:          0x80131509
  Error description:             Cannot find group with identity S-1-5-21-3440621758-1074549526-1447665842-1131.

  Component name:                Экземпляры служб ядра СУБД SQL Server
  Component error code:          0x851A001A
  Error description:             Ошибка при ожидании дескриптора восстановления ядра СУБД. Возможные причины см. в журнале ошибок SQL Server.


  Feature:                       Репликация SQL Server
  Status:                        Ошибка. Дополнительные сведения см. в журнале.
  Reason for failure:            Возникла ошибка для одной из зависимостей компонента, вызвавшая сбой процесса его установки.
  Next Step:                     Устраните ошибку, пользуясь следующими сведениями, удалите компонент, а затем запустите установку еще раз.
  Component name:                Экземпляры служб ядра СУБД SQL Server
  Component error code:          0x851A001A
  Error description:             Ошибка при ожидании дескриптора восстановления ядра СУБД. Возможные причины см. в журнале ошибок SQL Server.


  Feature:                       Браузер SQL
  Status:                        Завершено

  Feature:                       Компоненты документации
  Status:                        Завершено

  Feature:                       Модуль записи SQL
  Status:                        Завершено

  Feature:                       Средства связи клиента SQL
  Status:                        Завершено

  Feature:                       Пакет SDK средств связи клиента SQL
  Status:                        Завершено

  Feature:                       Файлы поддержки программы установки
  Status:                        Завершено

Вопрос в том, почему не устанавливается и как сделать, чтобы установилось?

  • Remove From My Forums
  • Вопрос

  • Hello,

    I was trying to configure an SQL Server 2019 transactional replication, but the snapshot agent returns the following error:

    Error messages:
    Message: An unspecified error had occurred in the native SQL Server connection component.
    Stack:    at Microsoft.SqlServer.Replication.Snapshot.SqlServer.NativeBcpOutProvider.ThrowNativeBcpOutException(CConnection* pNativeConnectionWrapper)
       at Microsoft.SqlServer.Replication.Snapshot.SqlServer.NativeBcpOutProvider.ThrowConnectionFailureException(CConnection* pNativeConnectionWrapper)
       at Microsoft.SqlServer.Replication.Snapshot.SqlServer.NativeBcpOutProvider.InitializeNativeBcpOutProvider(LogMessageCallback logMessageCallback, String strName, String strApplication, String strHost, String strServer, String strNetwork, Int32 encryptionLevel,
    String strDatabase, SecurityMode securityMode, String strLogin, SecureString strPassword, Int32 bcpBatchSize, Int32 loginTimeout, Int32 queryTimeout, Int32 packetSize, DeadlockPriority deadlockPriority, String strRowDelimiter, String strFieldDelimiter, Byte
    syncMethod, Boolean forceOdbcBcp, Boolean forceOleDbBcp, Boolean enableMultipleActiveResultSets, Boolean useReadPastHint, Boolean usePageLockHint, Boolean securePassword)
       at Microsoft.SqlServer.Replication.Snapshot.TransSnapshotProvider.InstantiateBcpOutProviderWorker(String strBcpConnectionName)
       at Microsoft.SqlServer.Replication.Snapshot.SqlServerSnapshotProvider.InstantiateBcpOutProvider(String strBcpConnectionName)
       at Microsoft.SqlServer.Replication.Snapshot.SqlServer.BcpOutThreadProvider.Initialize()
       at Microsoft.SqlServer.Replication.WorkerThread.NonExceptionBasedAgentThreadProc()
       at Microsoft.SqlServer.Replication.AgentCore.BaseAgentThread.AgentThreadProcWrapper() (Source: MSSQL_REPL, Error number: MSSQL_REPL55012)
    Get help: http://help/MSSQL_REPL55012

    Any idea why?

    Best regards,

    José Cruz

    • Перемещено

      24 января 2020 г. 13:34
      Replication question

Понравилась статья? Поделить с друзьями:
  • Реферат на тему ошибки при выборе профессии
  • Репи точики текст ошибки
  • Рено меган ошибка p0010
  • Реферат на тему лексические ошибки
  • Репарация ошибочно спаренных нуклеотидов