Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4689

Job failures on Alwayson AG

$
0
0
Hi All,

There is a job which has failed with below error message:

Description: "Login failed for user 'domain\accnt'.".  An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Cannot open database 'xxxx'. requested by the login. The login failed.".  

Then I checked the below messages in the errorlog at the time of the issue. Later after further investigation, found that this instance is Secondary AlwaysON replica, which job connects to.
Question is why I am seeing this Recovery messages for 'xxxx' database and because of which we are getting login failures. How does AlwaysON work? After sometime when we try to connect, we are able to connect to the instance. The database is part of AG as well.
What is ALwaysON doing in the background on Secondary replica? Can anyone explain?

2016-01-24 14:05:11.840                Logon    Login failed for user 'domain\accnt'. Reason: Failed to open the explicitly specified database 'xxxx'. [CLIENT: 10.xxx.xx.xx]
2016-01-24 14:10:15.200                Logon    Error: 18456, Severity: 14, State: 38.
2016-01-24 14:10:15.200                Logon    Login failed for user 'domain\accnt''. Reason: Failed to open the explicitly specified database 'xxxx'. [CLIENT: 10.xxx.xx.xx]
:
2016-01-24 14:10:50.390                spid27s Recovery of database 'xxxx' (5) is 0% complete (approximately 103090 seconds remain). Phase 1 of 3. This is an informational message only. No user action is required.
2016-01-24 14:11:10.390                spid27s Recovery of database 'xxxx' (5) is 0% complete (approximately 102843 seconds remain). Phase 1 of 3. This is an informational message only. No user action is required.
2016-01-24 14:11:30.400                spid27s Recovery of database 'xxxx' (5) is 0% complete (approximately 102978 seconds remain). Phase 1 of 3. This is an informational message only. No user action is required.
2016-01-24 14:11:50.400                spid27s Recovery of database 'xxxx' (5) is 0% complete (approximately 102967 seconds remain). Phase 1 of 3. This is an informational message only. No user action is required.
2016-01-24 14:12:10.400                spid27s Recovery of database 'xxxx' (5) is 0% complete (approximately 103295 seconds remain). Phase 1 of 3. This is an informational message only. No user action is required.
2016-01-24 14:12:30.410                spid27s Recovery of database 'xxxx' (5) is 0% complete (approximately 103605 seconds remain). Phase 1 of 3. This is an informational message only. No user action is required.
:

SQL version : Microsoft SQL Server 2012 (SP1) - 11.0.3460.0 (X64)  

Thanks,

Sam

Viewing all articles
Browse latest Browse all 4689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>