SQL Server DBA Tutorial 164-How to Resolve Availability Group Listner Errors in SQL Server

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
welcome to Tech Brothers in this video we'll be learning how to resolve availability group listener errors and there are a couple errors that I have put down here uh if you encounter any of these error this video is going to help you the first error right here is the wsfc when you try to create availability group listener you will get this error that wsfc cluster could not bring network name resource with DNS name and whatever your uh AG listener name is online the DNS name may have have taken or have conflict and it's a big message um and if you get this message this video is going to help you resolve that the number two uh after you get this message particular first message and you go look into Event Viewer you will see this error basically that will help you to uh resolve the issue to basically find out what is the um root cause of this uh error one issue which is cluster network name resource up here listener name would be your listener name whatever you're trying to give the name and trying to create the AG group listener name and fail to create its Associated computer object in domain and that would be your domain during uh resource online so these uh error messages um basically relate to a same issue which is the issue is you cannot uh create availability group listener um so let's go ahead and resolve this error first we're going to go ahead and see that if we get this error when we create availability group listener and then we'll go from there here is a uh one of my server right here um this is my uh Tech brother SQL SQL prod and I have created availability group here uh and I'm going to go ahead and create a listener Group which is right here um listener DNS name I have put down here TBS AG listener Port 1433 and I have given the static IP now when I click okay it gives me error which I have shown you in the first screen and it's a big error and we're going to go ahead and take care of that error as you can see right here we got this error and if you get this error you can go ahead and click okay in order to make sure that uh what exactly is the issue you can go ahead and open Event Viewer and in Event Viewer I have already pulled this information you will see this error uh right here if I go up here cluster network name and that would be your uh AG name uh up here your availability group plus your listener fail to create its Associated computer object in domain that means that it's not having the permission to create the object because whenever you create AG listener it creates object in your DNS so that means that it doesn't have a permission to create um any entry in your DNS and we're going to go ahead and take a look on that that so uh usually being a DBA if you don't have permission to go on look in DNS this you can send this video uh or this video link to your uh system administrator and they can watch and resolve this for you so let's go ahead and close this and I'm going to go ahead and go in my DNS so here is my DNS Tech Brothers DNS and U you need to go ahead and open your uh active directory right here and keep in mind that all my container all my um servers right here in my active directory are listed right here under computers so if you have subdirectories Under Computer like a test prod um and Dev servers and you have categorized uh with the subcategories of computers it's not going to matter that if you go ahead and give permission on DAV prod in subcategories main thing I wanted to make sure that uh you uh come up here in computers this is the main object that is going to give us Hassle and it is giving us hassle in this error that it cannot create the object in even though uh if you look into the detail it will it'll tell you that it needs to be the same container where your other cluster in my case is TBS cluster that is created in let's say in subdirectory uh production then you will think that U that can container is main issue that container uh uh TBS cluster um needs to have permission um to create the object in that container not in computers but main thing is it's computers it's not the sub subcontainers uh basic container is computers so let me go ahead and uh start from the scratch so when you once you come to computers you can look at computer and right click on the computer and go to properties you will get this right here computer properties nothing but just a property of your folder you can go ahead and cancel this you can go in the view and click on Advanced features as soon as you will click on Advanced features you will see more feature on the right and uh on the left and right pan right here you will see the more features now you can go ahead and right click on the computers and go to properties this way you will get a security where we need to get to the security of this container called computers we need to get to that security so I am in the security right here most of the time you will see that uh uh your whatever your um cluster name is in my case it's TBS cluster so the object the problem that we have in the object if you uh look back in the error uh that it's a TVs cluster and then dollar whatever your cluster name is and the dollar that is the object that doesn't have permission to create um ad um that particular so let's go ahead and remove this just for the sake of um um reproducing the whole thing so I'll go and right click on computers go to properties go to the security you will see that um uh your cluster name dollar is not in this list right here so basically what you need to do if you don't see that up here in that list in TB s cluster Dollar in my case or whatever your cluster name dollar that object you don't see in group or usernames then you need to look for that in order to do that you need to go ahead and click on ADD and you need to click on object types and see up here the computers are not selected you need to click on computers as well this container needs to be uh in order to look for that particular object so let's go ahead and click okay and now I'm going to go ahead and this is my cluster name all you need to do is put your cluster name and click Dollar in the end this is the object that is basically going to is is going to be a problem and it is a problem for us and keep in mind that you can also get this particular information from your Event Viewer if you dig down into this error more so this video is basically you don't need to go too far I'm just trying to tell you right here that it is going to be your cluster name and dollar sign so let's go ahead and check the name as you can see right away it came your TBS cluster so that is good we found the object we're going to go ahead and click okay so right now this uh TBS cluster has read permission that is okay uh it needs to have read permission but we in order to fix this we need to go in advance click on cluster right here and need to go in in advance right here so it'll pull up the advanced um properties of TBS cluster dollar and that's where we need to see that if it has permission right here uh right here it has read permission but what it needs if you click on addit TBS what it needs is read permission all this permission and you can go in see computer um create and delete computer objects that's what um we need to find right here is create computer object keep in mind it's right here create computer objects and then delete computer objects these are the two permission that we're going to select basically it's complaining right now that it cannot create the computer objects but uh it's a safe to do create computer object and delete computer object to that particular uh uh uh user so we're going to go ahead and click okay and as you can see that it has read permission as well that it has create and delete computer object permission so we're going to go ahead and click apply and okay and okay so this is all we need to do and now we can go back to um our um AG listener and try to create our AG listener again so let's go ahead go to that server here's our AG listener we're trying to create so we're going to go ahead and click okay and let's see that if gets successful as you can see we were able to create uh the availability group listener uh and we resolved that error so basically this is it this is how you resolve these two errors if you ever encountered these two errors please follow these directions and I'm sure I'm positive that it will resolve your issue and I hope this video helps
Info
Channel: TechBrothersIT
Views: 27,042
Rating: undefined out of 5
Keywords: How to Resolve Availability Group Listner Errors - SQL Server DBA Tutorial, SQL, Server, Developer, DBA, TSQL Interview Questions and Answer, transact sql, SQL Server 2014, SQL Server Advance Tutorial, SQL Server Tutorial for beginners, Tech Brothers, SQL Server 2014 DBA, SQL Server DBA tutorial for Beginners, SQL Data Administration Tutorial Step by Step, Database Administrator (Job Title), Microsoft SQL Server (Software)
Id: Z0v5nxL75SU
Channel Id: undefined
Length: 10min 15sec (615 seconds)
Published: Tue Apr 21 2015
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.