Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 5cb0c1b

Browse files
author
MightyPen
committed
Fix Suggestions, 'code-block-indented'. (Follows PR 15735, 15712...)
1 parent a91dba7 commit 5cb0c1b

5 files changed

Lines changed: 297 additions & 248 deletions

File tree

docs/relational-databases/replication/troubleshoot-tran-repl-errors.md

Lines changed: 33 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Find errors with transactional replication"
33
description: Describes how to locate and identify errors with Transactional Replication, as well as the troubleshooting methodology for addressing issues with replication.
44
ms.custom: seo-lt-2019
5-
ms.date: "04/27/2018"
5+
ms.date: 07/01/2020
66
ms.prod: sql
77
ms.reviewer: ""
88
ms.technology: replication
@@ -71,8 +71,10 @@ The Snapshot Agent generates the snapshot and writes it to the specified snapsho
7171

7272
![Snapshot Agent error for denied access](media/troubleshooting-tran-repl-errors/snapshot-access-denied.png)
7373

74-
The replication agent had encountered an exception.
75-
Exception Message: Access to path '\\node1\repldata.....' is denied.
74+
```console
75+
The replication agent had encountered an exception.
76+
Exception Message: Access to path '\\node1\repldata.....' is denied.
77+
```
7678

7779
If your Windows permissions are not configured correctly for your snapshot folder, you'll see an "access is denied" error for the Snapshot Agent. You'll need to verify permissions to the folder where your snapshot is stored, and make sure that the account used to run the Snapshot Agent has permissions to access the share.
7880

@@ -103,10 +105,12 @@ The Log Reader Agent connects to your publisher database and scans the transacti
103105
104106
![Error details for the Log Reader Agent](media/troubleshooting-tran-repl-errors/log-reader-error.png)
105107

106-
Status: 0, code: 20011, text: 'The process could not execute 'sp_replcmds' on 'NODE1\SQL2016'.'.
107-
The process could not execute 'sp_replcmds' on 'NODE1\SQL2016'.
108-
Status: 0, code: 15517, text: 'Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impersonated, or you do not have permission.'.
109-
Status: 0, code: 22037, text: 'The process could not execute 'sp_replcmds' on 'NODE1\SQL2016'.'.
108+
```console
109+
Status: 0, code: 20011, text: 'The process could not execute 'sp_replcmds' on 'NODE1\SQL2016'.'.
110+
The process could not execute 'sp_replcmds' on 'NODE1\SQL2016'.
111+
Status: 0, code: 15517, text: 'Cannot execute as the database principal because the principal "dbo" does not exist, this type of principal cannot be impersonated, or you do not have permission.'.
112+
Status: 0, code: 22037, text: 'The process could not execute 'sp_replcmds' on 'NODE1\SQL2016'.'.
113+
```
110114

111115
6. The error typically occurs when the owner of the publisher database is not set correctly. This can happen when a database is restored. To verify this:
112116

@@ -122,7 +126,7 @@ The Log Reader Agent connects to your publisher database and scans the transacti
122126

123127
```sql
124128
-- set the owner of the database to 'sa' or a specific user account, without the brackets.
125-
EXEC sp_changedbowner '<useraccount>'
129+
EXECUTE sp_changedbowner '<useraccount>'
126130
-- example for sa: exec sp_changedbowner 'sa'
127131
-- example for user account: exec sp_changedbowner 'sqlrepro\administrator'
128132
```
@@ -153,9 +157,11 @@ The Distribution Agent finds data in the distribution database and then applies
153157
2. The **Distributor to Subscriber History** dialog box opens and clarifies what error the agent is encountering:
154158

155159
![Error details for the Distribution Agent](media/troubleshooting-tran-repl-errors/dist-history-error.png)
156-
157-
Error messages:
158-
Agent 'NODE1\SQL2016-AdventureWorks2012-AdvWorksProductTrans-NODE2\SQL2016-7' is retrying after an error. 89 retries attempted. See agent job history in the Jobs folder for more details.
160+
161+
```console
162+
Error messages:
163+
Agent 'NODE1\SQL2016-AdventureWorks2012-AdvWorksProductTrans-NODE2\SQL2016-7' is retrying after an error. 89 retries attempted. See agent job history in the Jobs folder for more details.
164+
```
159165

160166
3. The error indicates that the Distribution Agent is retrying. To find more information, check the job history for the Distribution Agent:
161167

@@ -170,9 +176,11 @@ The Distribution Agent finds data in the distribution database and then applies
170176
5. Select one of the error entries and view the error text at the bottom of the window:
171177

172178
![Error text that indicates a wrong password for the distribution agent](media/troubleshooting-tran-repl-errors/dist-pw-wrong.png)
173-
174-
Message:
175-
Unable to start execution of step 2 (reason: Error authenticating proxy NODE1\repl_distribution, system error: The user name or password is incorrect.)
179+
180+
```console
181+
Message:
182+
Unable to start execution of step 2 (reason: Error authenticating proxy NODE1\repl_distribution, system error: The user name or password is incorrect.)
183+
```
176184

177185
6. This error indicates that the password that the Distribution Agent used is incorrect. To resolve it:
178186

@@ -189,11 +197,13 @@ The Distribution Agent finds data in the distribution database and then applies
189197
Open the **Distribution to Subscriber** history by right-clicking the subscription in **Replication Monitor** > **View Details**. Here, the error is now different:
190198

191199
![Error that indicates the Distribution Agent can't connect](media/troubleshooting-tran-repl-errors/dist-agent-cant-connect.png)
192-
193-
Connecting to Subscriber 'NODE2\SQL2016'
194-
Agent message code 20084. The process could not connect to Subscriber 'NODE2\SQL2016'.
195-
Number: 18456
196-
Message: Login failed for user 'NODE2\repl_distribution'.
200+
201+
```console
202+
Connecting to Subscriber 'NODE2\SQL2016'
203+
Agent message code 20084. The process could not connect to Subscriber 'NODE2\SQL2016'.
204+
Number: 18456
205+
Message: Login failed for user 'NODE2\repl_distribution'.
206+
```
197207

198208
8. This error indicates that the Distribution Agent could not connect to the subscriber, because the login failed for user **NODE2\repl_distribution**. To investigate further, connect to the subscriber and open the *current* SQL Server error log under the **Management** node in Object Explorer:
199209

@@ -229,8 +239,10 @@ You can use verbose logging to see more detailed information about errors occurr
229239

230240
1. In the **Command** box, start a new line, enter the following text, and select **OK**:
231241

232-
-Output C:\Temp\OUTPUTFILE.txt -Outputverboselevel 3
233-
242+
```console
243+
-Output C:\Temp\OUTPUTFILE.txt -Outputverboselevel 3
244+
```
245+
234246
You can modify the location and verbosity level according to your preference.
235247

236248
![Verbose output in the properties for the job step](media/troubleshooting-tran-repl-errors/verbose.png)

docs/relational-databases/search/configure-and-manage-thesaurus-files-for-full-text-search.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Configure & manage thesaurus files for Full-Text Search"
3-
ms.date: "12/04/2017"
3+
ms.date: 07/01/2020
44
ms.prod: sql
55
ms.prod_service: "search, sql-database"
66
ms.technology: search
@@ -46,30 +46,30 @@ A Full-Text Search thesaurus is an XML text file.
4646
## <a name="location"></a> Location of thesaurus files
4747
The default location of the thesaurus files is:
4848

49-
<SQL_Server_data_files_path>\MSSQL13.MSSQLSERVER\MSSQL\FTDATA\
49+
`<SQL_Server_data_files_path>\MSSQL13.MSSQLSERVER\MSSQL\FTDATA\`
5050

51-
This default location contains the following files:
51+
This default location contains the following files:
5252

5353
- **Language-specific** thesaurus files
5454

5555
Setup installs empty thesaurus files in the above location. A separate file is provided for each supported language. A system administrator can customize these files.
5656

57-
The default file names of the thesaurus files use following format:
57+
The default file names of the thesaurus files use following format:
5858

59-
'ts' + <three-letter language-abbreviation> + '.xml'
59+
`'ts' + <three-letter language-abbreviation> + '.xml'`
6060

61-
The name of the thesaurus file for a given language is specified in the registry in the following value:
61+
The name of the thesaurus file for a given language is specified in the registry in the following value:
6262

63-
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\<instance-name>\MSSearch\<language-abbrev>
63+
`HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\<instance-name>\MSSearch\<language-abbrev>`
6464

6565
- The **global** thesaurus file
6666

67-
An empty global thesaurus file, tsGlobal.xml.
67+
An empty global thesaurus file, tsGlobal.xml.
6868

6969
### Change the location of a thesaurus file
7070
You can change the location and names of a thesaurus file by changing its registry key. For each language, the location of the thesaurus file is specified in the following value in the registry:
7171

72-
HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\<instance name>\MSSearch\Language\<language-abbreviation>\TsaurusFile
72+
`HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\<instance name>\MSSearch\Language\<language-abbreviation>\TsaurusFile`
7373

7474
The global thesaurus file corresponds to the Neutral language with LCID 0. This value can be changed by administrators only.
7575

0 commit comments

Comments
 (0)