Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Removed Mirroring but Witness did not delete it's record Expand / Collapse
Author
Message
Posted Wednesday, June 19, 2013 7:25 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Yesterday @ 12:10 PM
Points: 1,797, Visits: 2,171
I used SSMS to remove mirroring but the row in the view on witness server didn't get deleted. Now I there are thousands of messages a day in the SQL log:
Database mirroring connection error 4 'An error occurred while receiving data: '64(The specified network name is no longer available.)'.' for 'TCP://<server name:5022'.

How do I fix this since it's a view?


MG

"There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies."
Tony Hoare

"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.

Post #1465158
Posted Wednesday, June 19, 2013 8:33 AM
Right there with Babe

Right there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with Babe

Group: General Forum Members
Last Login: 2 days ago @ 7:58 PM
Points: 727, Visits: 1,411
At the principal, run:

-- This should tell the witness that it is no longer needed. Might have just had issues with the SSMS GUI.
ALTER DATABASE [DatabaseName] SET SAFETY OFF


-- Here is the other option. I am going to guess that this statment would fail if mirroring has already been disconnected. However, if the above doesn't work, it is worth an attempt.
ALTER DATABASE [DatabaseName] SET PARTNER OFF

Fraggle
Post #1465212
Posted Wednesday, June 19, 2013 8:57 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Yesterday @ 12:10 PM
Points: 1,797, Visits: 2,171
Thanks - I thought of that but my concern is that I moved the database being mirrored to new hardware but used the existing witness server so I have 2 entries on the witness for the same database name. I'm afraid it won't remove the correct entry or do some other strange damage.

I'm thinking I'll need to wait for our next Maintenance Window and remove the witness from the current mirror, try the Alter Database syntax and then add the witness again unless someone has something else that can be done.


MG

"There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies."
Tony Hoare

"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.

Post #1465231
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse