Foros del Web » Programación para mayores de 30 ;) » Bases de Datos General » SQL Server »

Problema al configurar mirroring

Estas en el tema de Problema al configurar mirroring en el foro de SQL Server en Foros del Web. Buenas tardes, estoy configurardo mirroring para una base de datos pequeña, al momento de la configuracion todo va perfecto el problema es cuando intenta iniciar ...
  #1 (permalink)  
Antiguo 11/09/2012, 15:22
 
Fecha de Ingreso: junio-2010
Mensajes: 34
Antigüedad: 13 años, 10 meses
Puntos: 0
Problema al configurar mirroring

Buenas tardes, estoy configurardo mirroring para una base de datos pequeña, al momento de la configuracion todo va perfecto el problema es cuando intenta iniciar el mirroring como tal, este es el error que da:


TITLE: Database Properties
------------------------------

An error occurred while starting mirroring.

------------------------------
ADDITIONAL INFORMATION:

Alter failed for Database 'Test_mirror'. (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.0. 1600.22+((SQL_PreRelease).080709-1414+)&EvtSrc=Microsoft.SqlServer.Management.Smo.E xceptionTemplates.FailedOperationExceptionText&Evt ID=Alter+Database&LinkId=20476

------------------------------

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

------------------------------

The server network address "TCP://192.168.0.4:5022" 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=10.00 .1600&EvtSrc=MSSQLServer&EvtID=1418&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------


el servidor 192.168.0.4 es el servidor principal y desde el es que estoy creando el mirroring de la base de datos.
  #2 (permalink)  
Antiguo 11/09/2012, 15:33
Avatar de Libras
Colaborador
 
Fecha de Ingreso: agosto-2006
Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 17 años, 8 meses
Puntos: 774
Respuesta: Problema al configurar mirroring

como estas haciendo el mirroring? aqui el problema parece ser que no encuentra el host como lo estas poniendo, ya probaste con tcp://localhost:port_number???
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me
  #3 (permalink)  
Antiguo 11/09/2012, 15:42
 
Fecha de Ingreso: junio-2010
Mensajes: 34
Antigüedad: 13 años, 10 meses
Puntos: 0
Respuesta: Problema al configurar mirroring

Sigue dandome el mismo problema, algo que se me olvido poner, el servidor que hace de mirror esta fuera de la red lan, osea que la conexion se hace por WAN, no se si eso tenga algun problema. me parece que este error lo hace porque el router esta rechazando algun intento de conexion desde el servidor de mirror al principal por estar fuera de la LAN
  #4 (permalink)  
Antiguo 11/09/2012, 15:48
Avatar de Libras
Colaborador
 
Fecha de Ingreso: agosto-2006
Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 17 años, 8 meses
Puntos: 774
Respuesta: Problema al configurar mirroring

To start database mirroring, you next specify the partners and witness. You need database owner permissions to start and administer a given database mirroring session. On server A, the intended principal server, you tell SQL Server to give a particular database the principal role and what its partner (mirror) server is:

-- Specify the partner from the principal server
ALTER DATABASE [AdventureWorks] SET PARTNER =
N'TCP://B.corp.mycompany.com:5022';

The partner name must be the fully qualified computer name of the partner. Finding fully qualified names can be a challenge, but the Configure Database Mirroring Security Wizard will find them automatically when establishing endpoints.

The fully qualified computer name of each server can also be found running the following from the command prompt:

IPCONFIG /ALL

Concatenate the "Host Name" and "Primary DNS Suffix". If you see something like:

Host Name . . . . . . . . . . . . : A
Primary Dns Suffix . . . . . . . : corp.mycompany.com

Then the computer name is just A.corp.mycompany.com. Prefix 'TCP://' and append ':<port number>' and you then have the partner name.

On the mirror server, you would just repeat the same command, but with the principal server named:

-- Specify the partner from the mirror server
ALTER DATABASE [AdventureWorks] SET PARTNER =
N'TCP://A.corp.mycompany.com:5022';
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me
  #5 (permalink)  
Antiguo 11/09/2012, 15:54
 
Fecha de Ingreso: junio-2010
Mensajes: 34
Antigüedad: 13 años, 10 meses
Puntos: 0
Respuesta: Problema al configurar mirroring

eso seria para cuando ambos servidores estan en un Directorio activo pero en este caso no lo estan, un servidor esta en caracas Venezuela y el otro en Buenos Aires Argentina.
  #6 (permalink)  
Antiguo 11/09/2012, 16:02
Avatar de Libras
Colaborador
 
Fecha de Ingreso: agosto-2006
Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 17 años, 8 meses
Puntos: 774
Respuesta: Problema al configurar mirroring

primero puedes conectarte al server con la conexion que manejas? tienes un usuario con permisos dentro de ese server??
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me
  #7 (permalink)  
Antiguo 11/09/2012, 16:20
 
Fecha de Ingreso: junio-2010
Mensajes: 34
Antigüedad: 13 años, 10 meses
Puntos: 0
Respuesta: Problema al configurar mirroring

al servidor de argentina si, que seria el de mirroring pero haciendo pruebas no puedo conectar desde argentina para caracas, configure ya el port forwardin en el router pero sigue sin conectar
  #8 (permalink)  
Antiguo 11/09/2012, 16:21
Avatar de iislas
Colaborador
 
Fecha de Ingreso: julio-2007
Ubicación: Mexico, D.F.
Mensajes: 6.482
Antigüedad: 16 años, 9 meses
Puntos: 180
Respuesta: Problema al configurar mirroring

Uno de los REQUISITOS (yo diria INDISPENSABLE) para configurar un MIRRORING, es que los servidores "se vean" (que haya conexion).
__________________
MCTS Isaias Islas
  #9 (permalink)  
Antiguo 13/09/2012, 13:13
 
Fecha de Ingreso: junio-2010
Mensajes: 34
Antigüedad: 13 años, 10 meses
Puntos: 0
Respuesta: Problema al configurar mirroring

Ya logre hacer que ambos servidores se conecten y se vean el uno con el otro pero me sigue dando el mismo error. el puerto q usa el servidor principal es el 5022 y ya lo abri tambien.
  #10 (permalink)  
Antiguo 13/09/2012, 15:34
 
Fecha de Ingreso: junio-2010
Mensajes: 34
Antigüedad: 13 años, 10 meses
Puntos: 0
Respuesta: Problema al configurar mirroring

Tengo todo el dia peleando con el mirroring cambie puertos probe de todo, ya lo servidores se ven el uno con el otro, el problema lo da cuando intenta iniciar el mirroring como tal, este es el rpeorte:


TITLE: Database Properties
------------------------------

An error occurred while starting mirroring.

------------------------------
ADDITIONAL INFORMATION:

Alter failed for Database 'Test_mirror'. (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.0. 1600.22+((SQL_PreRelease).080709-1414+)&EvtSrc=Microsoft.SqlServer.Management.Smo.E xceptionTemplates.FailedOperationExceptionText&Evt ID=Alter+Database&LinkId=20476

------------------------------

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

------------------------------

The server network address "TCP://127.0.0.1:80" 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=10.00 .1600&EvtSrc=MSSQLServer&EvtID=1418&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------
  #11 (permalink)  
Antiguo 13/09/2012, 16:02
Avatar de Libras
Colaborador
 
Fecha de Ingreso: agosto-2006
Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 17 años, 8 meses
Puntos: 774
Respuesta: Problema al configurar mirroring

http://msdn.microsoft.com/es-es/libr....aspx#StartDbm

http://blog.sqlauthority.com/2007/04...e-the-command/



Working solution.

1. Start MSSQLSERVER Services with Domain user credentials (instead of Local System Account) on principal database Server and Mirror Database Server.

Note: To switch from “Local System Account” to Domain User credentials do the following (a).

a) On Windows (XP or Server): Start -> Control Panel -> Administrative tools -> Services. Then right click on SQL Server (MSSQLSERVER). Then click on properties. And then click on tab “Log On”. And then choose radio button “this account”. Then provide the Domain user name and password.

If you want repeat (a) for all SQLSERVER related Services.

2. And then try the mirroring process in MS SQL Server Management Studio.
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me

Última edición por Libras; 13/09/2012 a las 16:08
  #12 (permalink)  
Antiguo 13/09/2012, 16:13
 
Fecha de Ingreso: junio-2010
Mensajes: 34
Antigüedad: 13 años, 10 meses
Puntos: 0
Respuesta: Problema al configurar mirroring

he probado las 2 soluciones que pe pasastes y ninguna funciono, la tercera solucion que me dices no aplica conmigo ya que los servidores no estas en dominio y por ende no hay usuarios de dominio entre ella
  #13 (permalink)  
Antiguo 13/09/2012, 16:23
Avatar de Libras
Colaborador
 
Fecha de Ingreso: agosto-2006
Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 17 años, 8 meses
Puntos: 774
Respuesta: Problema al configurar mirroring

revisa todo el blog de la segunda "solucion" vienen varios comentarios que quizas te ayuden o te den un norte a seguir
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me
  #14 (permalink)  
Antiguo 13/09/2012, 17:03
Avatar de iislas
Colaborador
 
Fecha de Ingreso: julio-2007
Ubicación: Mexico, D.F.
Mensajes: 6.482
Antigüedad: 16 años, 9 meses
Puntos: 180
Respuesta: Problema al configurar mirroring

Hay todo un proceso para configurar mirroring sin dominio, solo que ambos servidores se deben ver, si deseas te mando el documento, solo mandame tu cuenta de correo..
__________________
MCTS Isaias Islas

Etiquetas: server, sql
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 20:11.