Answered by:
Error when i try to start mirroring

Question
-
I am trying to set up DB Mirroring with the Principal, Mirror and Test all on the same server (different instances).
All are SQL Server 2005 Standard Edition SP2. I have used ports 1980, 1981 & 1982
but after configuring the endpoints, when I try to start mirroring - I get the following message:
TITLE: Database Properties
------------------------------
An error occurred while starting mirroring.
------------------------------
ADDITIONAL INFORMATION:Alter failed for Database 'SSRS'. (Microsoft.SqlServer.Smo)
------------------------------
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
------------------------------The server network address "TCP://AERP02.bona.borna.net:1980" can not be reached or does not exist. Check the network address name and that the ports for the local and remote endpoints are operational. (Microsoft SQL Server, Error: 1418)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=09.00.3042&EvtSrc=MSSQLServer&EvtID=1418&LinkId=20476
------------------------------
BUTTONS:
OK
------------------------------
Answers
-
Hi
To resolve the issue, please take the following steps.
1 By default, Microsoft Windows XP Service Pack 2 and Windows Vista block all ports.
2 check the following- Make sure that that name and port of the mirror server instance are correct.
- Make sure that the destination mirror server instance is not behind a firewall.
- Make sure that the principal server instance is not behind a firewall.
- Verify that the endpoints are started on the partners by using the state or state_desc column the of the sys.database_mirroring_endpoints catalog view. If either endpoint is not started, execute an ALTER ENDPOINT statement to start it.
- Make sure that the principal server instance is listening on the port assigned to its database mirroring endpoint and that and the mirror server instance is listening on its port. For more information, see "Verifying Port Availability," later in this topic. If a partner is not listening on its assigned port, modify the database mirroring endpoint to listen on a different port.
3 Verifying Port Availability
When you are configuring the network for a database mirroring session, make sure the database mirroring endpoint of each server instance is used by only the database mirroring process. If another process is listening on the port assigned to a database mirroring endpoint, the database mirroring processes of the other server instances cannot connect to the endpoint.
To display all the ports on which a Windows-based server is listening, use the netstat command-prompt utility. The syntax for netstat depends on the version of the Windows operating system. For more information, see the operating system documentation.
Windows Server 2003 Service Pack 1 (SP1)
To list listening ports and the processes that have those ports opened, enter the following command at the Windows command prompt: netstat -abn
Besides, there is an article to share with you:http://msdn.microsoft.com/en-us/library/aa337361(SQL.90).aspx
Regards- Proposed as answer by Mark Han [MSFT] Thursday, September 3, 2009 6:26 AM
- Marked as answer by Mark Han [MSFT] Tuesday, September 8, 2009 8:08 AM
All replies
-
Are both your sql services runnning under the same account ? Aslo what do you mean by TEST in your explanation??
In BOL there is a section that deals explicitly with setup errors for database mirroring.Search for "troubleshooting database mirroring."
Thanks, Leks -
Hi
To resolve the issue, please take the following steps.
1 By default, Microsoft Windows XP Service Pack 2 and Windows Vista block all ports.
2 check the following- Make sure that that name and port of the mirror server instance are correct.
- Make sure that the destination mirror server instance is not behind a firewall.
- Make sure that the principal server instance is not behind a firewall.
- Verify that the endpoints are started on the partners by using the state or state_desc column the of the sys.database_mirroring_endpoints catalog view. If either endpoint is not started, execute an ALTER ENDPOINT statement to start it.
- Make sure that the principal server instance is listening on the port assigned to its database mirroring endpoint and that and the mirror server instance is listening on its port. For more information, see "Verifying Port Availability," later in this topic. If a partner is not listening on its assigned port, modify the database mirroring endpoint to listen on a different port.
3 Verifying Port Availability
When you are configuring the network for a database mirroring session, make sure the database mirroring endpoint of each server instance is used by only the database mirroring process. If another process is listening on the port assigned to a database mirroring endpoint, the database mirroring processes of the other server instances cannot connect to the endpoint.
To display all the ports on which a Windows-based server is listening, use the netstat command-prompt utility. The syntax for netstat depends on the version of the Windows operating system. For more information, see the operating system documentation.
Windows Server 2003 Service Pack 1 (SP1)
To list listening ports and the processes that have those ports opened, enter the following command at the Windows command prompt: netstat -abn
Besides, there is an article to share with you:http://msdn.microsoft.com/en-us/library/aa337361(SQL.90).aspx
Regards -
Hi
To resolve the issue, please take the following steps.
1 By default, Microsoft Windows XP Service Pack 2 and Windows Vista block all ports.
2 check the following- Make sure that that name and port of the mirror server instance are correct.
- Make sure that the destination mirror server instance is not behind a firewall.
- Make sure that the principal server instance is not behind a firewall.
- Verify that the endpoints are started on the partners by using the state or state_desc column the of the sys.database_mirroring_endpoints catalog view. If either endpoint is not started, execute an ALTER ENDPOINT statement to start it.
- Make sure that the principal server instance is listening on the port assigned to its database mirroring endpoint and that and the mirror server instance is listening on its port. For more information, see "Verifying Port Availability," later in this topic. If a partner is not listening on its assigned port, modify the database mirroring endpoint to listen on a different port.
3 Verifying Port Availability
When you are configuring the network for a database mirroring session, make sure the database mirroring endpoint of each server instance is used by only the database mirroring process. If another process is listening on the port assigned to a database mirroring endpoint, the database mirroring processes of the other server instances cannot connect to the endpoint.
To display all the ports on which a Windows-based server is listening, use the netstat command-prompt utility. The syntax for netstat depends on the version of the Windows operating system. For more information, see the operating system documentation.
Windows Server 2003 Service Pack 1 (SP1)
To list listening ports and the processes that have those ports opened, enter the following command at the Windows command prompt: netstat -abn
Besides, there is an article to share with you:http://msdn.microsoft.com/en-us/library/aa337361(SQL.90).aspx
Regards- Proposed as answer by Mark Han [MSFT] Thursday, September 3, 2009 6:26 AM
- Marked as answer by Mark Han [MSFT] Tuesday, September 8, 2009 8:08 AM
-
Now I got it, Thanks for your instruction!