SQL Server의 장애 조치로 서버를 추가하려고하는데 포트 1443
을 사용하지 않고 포트 2776
을 사용하고 있습니다. 나는 그것을 지정하려고 노력하고 있지만, 내가 시도한 모든 것은 작동하지 않았다. 내가 어떻게 할 수 있니?SQL Server에서 failoverPartner 서버의 JDBC 연결 URL을 지정하는 방법
private String url = "jdbc:sqlserver://server1:2776;DatabaseName=db;failoverPartner=server2";
다음 설정을 시도했지만 그 중 아무 것도 작동하지 않았습니다. ...failoverPartner=server2,2776
...failoverPartner=server2:2776
- 는
...failoverPartner=server2\\db
하지만 매번 나는 예외를 얻을. 문서 Connecting to SQL Server with the JDBC Driver - Setting the Connection Properties 문서에서
com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host server2, port 1433 has failed. Error: "connect timed out. Verify the connection properties, check that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.".
com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host server2:2776, port 1433 has failed. Error: "null. Verify the connection properties, check that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.".
com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host server2, 2776, port 1433 has failed. Error: "null. Verify the connection properties, check that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.".
태그를 추가했습니다. 'failover' 및'database-mirroring' 태그를 추가했습니다. 올바른 작업은 ... 올바른 것입니까? –
[이 답변] (http://stackoverflow.com/a/12378514/243373)이 도움이됩니까? 동일한 질문은 아니지만 'failoverPartner'이름에서 누락 된 인스턴스 이름과 관련이있을 수 있습니다. –
또한 [데이터베이스 미러링 (JDBC) 사용] 링크 (https://msdn.microsoft.com/en-us/library/aa342332 (v = sql.110) .aspx)를 읽었습니까? 어쩌면 거기에 몇 가지 포인터가 있을까요? –