SE APLICA A: SQL Server Azure SQL Database Azure SQL Data Warehouse Almacenamiento de datos paralelos APPLIES TO: SQL Server Azure SQL Database Azure SQL Data Warehouse Parallel Data Warehouse
-->
La creación de reflejo de la base de datos se puede usar conjuntamente con la replicación para mejorar la disponibilidad para la base de datos de publicación.Database mirroring can be used in conjunction with replication to improve availability for the publication database.La creación de reflejo de la base de datos incluye la creación de dos copias de una sola base de datos que suelen residir en diferentes equipos.Database mirroring involves two copies of a single database that typically reside on different computers.En cada momento, solo una copia de la base de datos está disponible para los clientes.At any given time, only one copy of the database is currently available to clients.Esta copia se conoce como la base de datos principal.This copy is known as the principal database.Las actualizaciones realizadas por los clientes en la base de datos de la entidad de seguridad se aplican a la otra copia de la base de datos, conocida como la base de datos reflejada.Updates made by clients to the principal database are applied on the other copy of the database, known as the mirror database.La creación de reflejo incluye la aplicación a la base de datos reflejada del registro de transacciones con todas las inserciones, actualizaciones o eliminaciones efectuadas en la base de datos de la entidad de seguridad.Mirroring involves applying the transaction log from every insertion, update, or deletion made on the principal database onto the mirror database.
Mi problema es que al ejecutar show tables; me devuelve el mensaje empty set. Como hago para recuperar las tablas de la base de datos mysql? Marlon-EsysPos dice: 19 de enero de 2017 a las 11:23.
La conmutación por error de replicación en un reflejo se admite totalmente para las bases de datos de publicación, con compatibilidad limitada con las bases de datos de suscripciones.Replication failover to a mirror is fully supported for publication databases, with limited support for subscription databases.La creación de reflejo de la base de datos no se admite para la base de datos de distribución.Database mirroring is not supported for the distribution database.Para obtener información sobre la recuperación de una base de datos de distribución o una base de datos de suscripciones sin necesidad de volver configurar la replicación, vea Back Up and Restore Replicated Databases (Realizar copias de seguridad y restaurar bases de datos replicadas).For information about recovering a distribution database or subscription database without any need to reconfigure replication, see Back Up and Restore Replicated Databases.
Nota
Después de una conmutación por error, la entidad reflejada se convierte en la entidad de seguridad.After a failover, the mirror becomes the principal.En este tema, los términos 'entidad de seguridad' y 'reflejada' siempre hacen referencia a las entidades de seguridad y reflejada originales.In this topic, 'principal' and 'mirror' always refer to the original principal and mirror.
Requisitos y consideraciones para el uso de la replicación con la creación de reflejo de la base de datosRequirements and Considerations for Using Replication with Database Mirroring
Se deben tener en cuenta los siguientes requisitos y consideraciones al utilizar la replicación con la creación de reflejo de la base de datos:Be aware of the following requirements and considerations when using replication with database mirroring:
-
Las entidades de seguridad y reflejada deben compartir un distribuidor.The principal and mirror must share a Distributor.Se recomienda que éste sea un distribuidor remoto, ya que proporciona mayor tolerancia a errores si se produce una conmutación por error imprevista en el publicador.We recommend that this be a remote Distributor, which provides greater fault tolerance if the Publisher has an unplanned failover.
-
La replicación admite la creación de reflejo de la base de datos de publicación en la replicación de mezcla y en la replicación transaccional con suscriptores de solo lectura o suscriptores de actualización en cola.Replication supports mirroring the publication database for merge replication and for transactional replication with read-only Subscribers or queued updating Subscribers.No se admiten suscriptores de actualización inmediata, publicadores de Oracle, publicadores en una topologÃa punto a punto ni republicación.Immediate updating Subscribers, Oracle Publishers, Publishers in a peer-to-peer topology, and republishing are not supported.
-
Los metadatos y los objetos que existen fuera de la base de datos, incluidos inicios de sesión, trabajos, servidores vinculados, etc., no se copian en la entidad reflejada.Metadata and objects that exist outside the database are not copied to the mirror, including logins, jobs, linked servers, and so on.Si se requieren los metadatos y los objetos en la entidad reflejada, se deben copiar manualmente.If you require the metadata and objects at the mirror, you must copy them manually.Para obtener más información, vea Administración de inicios de sesión y trabajos tras la conmutación de roles (SQL Server).For more information, see Management of Logins and Jobs After Role Switching (SQL Server).
Configurar la replicación con la creación de reflejo de la base de datosConfiguring Replication with Database Mirroring
La configuración de la replicación y la creación de reflejo de la base de datos implica cinco pasos.Configuring replication and database mirroring involves five steps.Cada paso se describe en detalle en la siguiente sección.Each step is described in more detail in the following section.
-
Configurar el publicadorConfigure the Publisher.
-
Configurar la creación de reflejo de la base de datos.Configure database mirroring.
-
Configurar la entidad reflejada de manera que utilice el mismo distribuidor que la entidad de seguridadConfigure the mirror to use the same Distributor as the principal.
-
Configurar los agentes de replicación para la conmutación por errorConfigure replication agents for failover.
-
Agregue las entidades de seguridad y reflejada al Monitor de replicación.Add the principal and mirror to Replication Monitor.
El orden de los pasos 1 y 2 se puede invertir.Steps 1 and 2 can also be performed in the opposite order.
Para configurar la creación de reflejo de la base de datos para una base de datos de publicaciónTo configure database mirroring for a publication database
-
Configure el publicador:Configure the Publisher:
-
Se recomienda el uso de un distribuidor remoto.We recommend using a remote Distributor.Para obtener más información sobre cómo configurar la distribución, vea Configure Distribution (Configurar la distribución).For more information about configuring distribution, see Configure Distribution.
-
Se puede habilitar una base de datos para publicaciones transaccionales y de instantáneas y/o para publicaciones de combinación.You can enable a database for snapshot and transactional publications and/or merge publications.Para las bases de datos reflejadas que incluirán más de un tipo de publicación, se debe habilitar la base de datos para ambos tipos en el mismo nodo mediante sp_replicationdboption.For mirrored databases that will contain more than one type of publication, you must enable the database for both types at the same node using sp_replicationdboption.Por ejemplo, puede ejecutar el siguiente procedimiento almacenado en la entidad de seguridad:For example, you could execute the following stored procedure calls at the principal:Para obtener más información sobre la creación de publicaciones, vea Publish Data and Database Objects (Publicar datos y objetos de base de datos).For more information about creating publications, see Publish Data and Database Objects.
-
-
Configurar la creación de reflejo de la base de datos.Configure database mirroring.Para obtener más información, vea Establecer una sesión de creación de reflejo de la base de datos mediante la autenticación de Windows (SQL Server Management Studio) y Configurar la creación de reflejo de la base de datos (SQL Server).For more information, see Establish a Database Mirroring Session Using Windows Authentication (SQL Server Management Studio) and Setting Up Database Mirroring (SQL Server).
-
Configurar la distribución para la entidad reflejada.Configure distribution for the mirror.Indique el nombre de la entidad reflejada como el publicador y especifique el mismo distribuidor y la misma carpeta de instantáneas que se utilizan en la entidad de seguridad.Specify the mirror name as the Publisher, and specify the same Distributor and snapshot folder that the principal uses.Por ejemplo, si está configurando la replicación con procedimientos almacenados, ejecute sp_adddistpublisher en el distribuidor y, después, ejecute sp_adddistributor en la entidad reflejada.For example, if you are configuring replication with stored procedures, execute sp_adddistpublisher at the Distributor; and then execute sp_adddistributor at the mirror.Para sp_adddistpublisher:For sp_adddistpublisher:
-
Establezca el valor del parámetro **@publisher** en el nombre de red de la entidad reflejada.Set the value of the **@publisher** parameter to the network name of the mirror.
-
Establezca el valor del parámetro **@working_directory** en la carpeta de instantáneas que se usa en la entidad de seguridad.Set the value of the **@working_directory** parameter to the snapshot folder used by the principal.
-
-
Especifique el nombre de la entidad reflejada para el parámetro de agente - PublisherFailoverPartner.Specify the mirror name for the -PublisherFailoverPartner agent parameter.Este parámetro es necesario para que los siguientes agentes identifiquen la entidad reflejada después de una conmutación por error:Agent This parameter is required for the following agents to identify the mirror after failover:
-
Agente de instantáneas (para todas las publicaciones)Snapshot Agent (for all publications)
-
Agente de registro del LOG (para todas las publicaciones transaccionales)Log Reader Agent (for all transactional publications)
-
Agente de lectura de cola (para las publicaciones transaccionales que admiten suscripciones de actualización en cola)Queue Reader Agent (for transactional publications that support queued updating subscriptions)
-
Agente de mezcla (para suscripciones de mezcla)Merge Agent (for merge subscriptions)
-
SQL ServerSQL ServerEscucha de replicación (replisapi.dll: para suscripciones de mezcla sincronizadas mediante sincronización web)replication listener (replisapi.dll: for merge subscriptions synchronized using Web synchronization)
-
Control ActiveX de mezcla de SQL (para suscripciones de mezcla sincronizadas con el control)SQL Merge ActiveX Control (for merge subscriptions synchronized with the control)
El Agente de distribución y el Control ActiveX de distribución de SQL no tienen este parámetro porque no se conectan al publicador.The Distribution Agent and Distribution ActiveX Control do not have this parameter because they do not connect to the Publisher.Los cambios en los parámetros del agente tendrán efecto la próxima vez que se inicie el agente.Agent parameter changes take effect the next time the agent is started.Si el agente se ejecuta sin interrupción, debe detenerlo y reiniciarlo.If the agent runs continuously, you must stop and restart the agent.Los parámetros se pueden especificar en perfiles de agente y desde el sÃmbolo del sistema.Parameters can be specified in agent profiles and from the command prompt.Para obtener más información, vea:For more information, see:Se recomienda agregar el parámetro -PublisherFailoverPartner a un perfil de agente y, después, especificar el nombre de la entidad reflejada en el perfil.We recommend adding the -PublisherFailoverPartner to an agent profile, and then specifying the mirror name in the profile.Por ejemplo, si configura la replicación con procedimientos almacenados:For example, if you are configuring replication with stored procedures: -
-
Agregue las entidades de seguridad y reflejada al Monitor de replicación.Add the principal and mirror to Replication Monitor.Para obtener más información, vea Agregar y quitar publicadores del Monitor de replicación.For more information, see Add and Remove Publishers from Replication Monitor.
Mantener una base de datos de publicación reflejadaMaintaining a Mirrored Publication Database
El mantenimiento de una base de datos de publicación reflejada se realiza básicamente de la misma forma que para una base de datos no reflejada, con las siguientes salvedades:Maintaining a mirrored publication database is essentially the same as maintaining a non-mirrored database, with the following considerations:
-
La administración y la supervisión deben tener lugar en el servidor activo.Administration and monitoring must occur at the active server.En SQL Server Management StudioSQL Server Management Studio, las publicaciones aparecen debajo de la carpeta Publicaciones locales solo para el servidor activo.In SQL Server Management StudioSQL Server Management Studio, publications appear under the Local Publications folder only for the active server.Por ejemplo, si produce la conmutación por error a la entidad reflejada, las publicaciones se muestran en la entidad reflejada y dejan de aparecer en la entidad de seguridad.For example, if you failover to the mirror, the publications are displayed at the mirror and are no longer displayed at the principal.Si se produce la conmutación por error de la base de datos a la entidad reflejada, puede que sea necesario actualizar manualmente Management StudioManagement Studio y el Monitor de replicación para que se refleje el cambio.If the database fails over to the mirror, you might need to manually refresh Management StudioManagement Studio and Replication Monitor for the change to be reflected.
-
El Monitor de replicación muestra los nodos del publicador en el árbol de objetos de la entidad de seguridad y reflejada.Replication Monitor displays Publisher nodes in the object tree for both the principal and the mirror.Si la entidad de seguridad es el servidor activo, la información de publicación solo se mostrará debajo del nodo de la entidad de seguridad en el Monitor de replicación.If the principal is the active server, publication information is displayed only under the principal node in Replication Monitor.Si la entidad reflejada es el servidor activo:If the mirror is the active server:
-
Si se produce un error en un agente, solo se indicará en el nodo de la entidad de seguridad, no en el nodo de la entidad reflejada.If an agent has an error, the error is indicated only on the principal node, not on the mirror node.
-
Si la entidad de seguridad no está disponible, los nodos de la entidad de seguridad y reflejada muestran listas de publicaciones idénticas.If the principal is unavailable, the principal and mirror nodes display identical lists of publications.La supervisión debe realizarse en las publicaciones debajo del nodo de la entidad reflejada.Monitoring should be performed on the publications under the mirror node.
-
-
Si se utilizan procedimientos almacenados o Replication Management Objects (RMO) para administrar la replicación en la entidad reflejada, en los casos en que se especifica el nombre del publicador, se debe especificar el nombre de la instancia en la que la base de datos se habilitó para la replicación.When using stored procedures or Replication Management Objects (RMO) to administer replication at the mirror, for cases in which you specify the Publisher name, you must specify the name of the instance on which the database was enabled for replication.Para determinar el nombre correcto, use la función publishingservername.To determine the appropriate name, use the function publishingservername.Cuando se crea el reflejo de una base de datos de publicación, los metadatos de la replicación que se encuentran almacenados en la base de datos reflejada son idénticos a los que se encuentran almacenados en la base de datos de la entidad de seguridad.When a publication database is mirrored, the replication metadata stored in the mirrored database is identical to the metadata stored in the principal database.En consecuencia, para las bases de datos de publicación habilitadas para replicación en la entidad de seguridad, el nombre de la instancia del publicador que está almacenado en las tablas del sistema en la entidad reflejada es el nombre de la entidad de seguridad, en lugar del nombre de la entidad reflejada.Consequently, for publication databases enabled for replication at the principal, the Publisher instance name stored in system tables at the mirror is the name of the principal, not the mirror.Esto afecta a la configuración y al mantenimiento de la replicación si se produce la conmutación por error de la base de datos de publicación a la entidad reflejada.This affects replication configuration and maintenance if the publication database fails over to the mirror.Por ejemplo, si se configura la replicación con procedimientos almacenados en la entidad reflejada después de una conmutación por error y se quiere agregar una suscripción de extracción a una base de datos de publicación que estaba habilitada en la entidad de seguridad, se debe especificar el nombre de la entidad de seguridad, en lugar del nombre de la entidad reflejada, para el parámetro **@publisher** de sp_addpullsubscription o sp_addmergepullsubscription.For example, if you are configuring replication with stored procedures on the mirror after a failover, and you want to add a pull subscription to a publication database that was enabled at the principal, you must specify the principal name rather than the mirror name for the **@publisher** parameter of sp_addpullsubscription or sp_addmergepullsubscription.Si se habilita una base de datos de publicación en la entidad reflejada después de una conmutación por error a dicha entidad, el nombre de la instancia del publicador que está almacenado en las tablas del sistema es el nombre de la entidad reflejada. En este caso, se debe utilizar el nombre de la entidad reflejada para el parámetro **@publisher** .If you enable a publication database at the mirror after failover to the mirror, the Publisher instance name stored in system tables is the name of the mirror; in this case, you would use the name of the mirror for the **@publisher** parameter.NotaEn algunos casos, por ejemplo sp_addpublication, el parámetro **@publisher** solo se admite para publicadores que no sean deSQL ServerSQL Server . En estos casos, no es relevante para la creación de reflejo de la base de datos de SQL ServerSQL Server .In some cases, such as sp_addpublication, the **@publisher** parameter is supported only for non-SQL ServerSQL Server Publishers; in these cases, it is not relevant for SQL ServerSQL Server database mirroring.
-
Para sincronizar una suscripción en Management StudioManagement Studio tras una conmutación por error: sincronice las suscripciones de extracción del suscriptor y sincronice las suscripciones de inserción del publicador activo.To synchronize a subscription in Management StudioManagement Studio after a failover: synchronize pull subscriptions from the Subscriber; and synchronize push subscriptions from the active Publisher.
Comportamiento de la replicación si se quita la creación de reflejoReplication Behavior if Mirroring is Removed
Tenga en cuenta las siguientes consideraciones si se quita la creación de reflejo de la base de datos de una base de datos publicada:Keep the following issues in mind if database mirroring is removed from a published database:
-
Si la base de datos de publicación de la entidad de seguridad ya no está reflejada, la replicación continúa funcionando sin variaciones con la entidad de seguridad original.If the publication database at the principal is no longer mirrored, replication continues to work unchanged against the original principal.
-
Si se produce la conmutación por error de la base de datos de publicación de la entidad de seguridad a la entidad reflejada y, por consiguiente, se deshabilita o quita la relación de creación de reflejo, los agentes de replicación no funcionarán con la entidad reflejada.If the publication database fails over from the principal to the mirror and the mirroring relationship is subsequently disabled or removed, replication agents will not function against the mirror.Si la entidad de seguridad se pierde de forma permanente, deshabilite y, a continuación, vuelva a configurar la replicación con la entidad reflejada especificada como publicador.If the principal is permanently lost, disable and then reconfigure replication with the mirror specified as the Publisher.
-
Si se quita por completo la creación de reflejo de la base de datos, la base de datos reflejada se encontrará en un estado de recuperación y deberá restaurarse para ser funcional.If database mirroring is removed completely, the mirror database is in a recovery state and must be restored in order to become functional.El comportamiento de la base de datos recuperada con respecto a la replicación depende de si se ha especificado la opción KEEP_REPLICATION.The behavior of the recovered database with respect to replication depends on whether the KEEP_REPLICATION option is specified.Esta opción obliga a la operación de restauración a conservar la configuración de la replicación cuando restaure una base de datos publicada en un servidor distinto del servidor en el que se creó la copia de seguridad.This option forces the restore operation to preserve replication settings when restoring a published database to a server other than that on which the backup was created.Utilice la opción KEEP_REPLICATION solo cuando la otra base de datos de publicación no esté disponible.Use the KEEP_REPLICATION option only when the other publication database is unavailable.Esta opción no es compatible si la otra base de datos de publicación sigue intacta y continúa con la replicación.The option is not supported if the other publication database is still intact and replicating.Para obtener más información sobre KEEP_REPLICATION, vea RESTORE (Transact-SQL).For more information about KEEP_REPLICATION, see RESTORE (Transact-SQL).
Comportamiento del Agente de registro del LOGLog Reader Agent Behavior
En la siguiente tabla se describe el comportamiento del Agente de registro del LOG en los distintos modos de funcionamiento de la creación de reflejo de la base de datos.The following table describes Log Reader Agent behavior for the various operating modes of database mirroring.
Modo de funcionamientoOperating mode | Comportamiento del Agente de registro del LOG si la entidad reflejada no está disponibleLog Reader Agent behavior if the mirror is unavailable |
---|---|
Modo de seguridad alta con conmutación automática por errorHigh-safety mode with automatic failover | Si la entidad reflejada no está disponible, el Agente de registro del LOG propaga los comandos a la base de datos de distribución.If the mirror is unavailable, the Log Reader Agent propagates commands to the distribution database.La entidad de seguridad no puede realizar la conmutación por error a la entidad reflejada hasta que la entidad reflejada vuelva a estar en lÃnea e incluya todas las transacciones de la entidad de seguridad.The principal cannot failover to the mirror until the mirror is back online and has all transactions from the principal. |
Modo de alto rendimientoHigh-performance mode | Si la entidad reflejada no está disponible, la base de datos de la entidad de seguridad se ejecuta de forma expuesta (es decir, sin reflejo).If the mirror is unavailable, the principal database is running exposed (that is, unmirrored).Sin embargo, el Agente de registro del LOG solo replica las transacciones reforzadas en la entidad reflejada.However, the Log Reader Agent only replicates those transactions that are hardened on the mirror.Si se fuerza el servicio y el servidor reflejado asume el rol de la entidad de seguridad, el Agente de registro del LOG trabajará con la entidad reflejada y comenzará a recoger las transacciones nuevas.If service is forced and the mirror server assumes the role of the principal, the Log Reader Agent will work against the mirror and start picking up the new transactions. Tenga en cuenta que aumentará la latencia de replicación si la entidad reflejada se retrasa con respecto a la entidad de seguridad.Be aware that replication latency will increase if the mirror falls behind the principal. |
Modo de alta seguridad sin conmutación automática por errorHigh-safety mode without automatic failover | Se garantiza que todas las transacciones confirmadas se refuerzan en disco en la entidad reflejada.All committed transactions are guaranteed to be hardened to disk on the mirror.El Agente de registro del LOG solo replica las transacciones reforzadas en la entidad reflejada.The Log Reader Agent replicates only those transactions that are hardened on the mirror.Si la entidad reflejada no está disponible, la entidad de seguridad no permite que continúe la actividad en la base de datos; por lo tanto, el Agente de registro del LOG no contará con transacciones para replicar.If the mirror is unavailable, the principal disallows further activity in the database; therefore the Log Reader Agent has no transactions to replicate. |
Consulte tambiénSee Also
Replicación de SQL ServerSQL Server Replication
Trasvase de registros y replicación (SQL Server)Log Shipping and Replication (SQL Server)
-->
Trasvase de registros y replicación (SQL Server)Log Shipping and Replication (SQL Server)
SE APLICA A: SQL Server Azure SQL Database (solo Instancia administrada) Azure SQL Data Warehouse Almacenamiento de datos paralelos APPLIES TO: SQL Server Azure SQL Database (Managed Instance only) Azure SQL Data Warehouse Parallel Data Warehouse
Importante
En Instancia administrada de Azure SQL Database, la mayorÃa de las caracterÃsticas de agente SQL Server son compatibles actualmente, aunque no todas.On Azure SQL Database Managed Instance, most, but not all SQL Server Agent features are currently supported.Vea Diferencias de T-SQL en Instancia administrada de Azure SQL Database para obtener más información.See Azure SQL Database Managed Instance T-SQL differences from SQL Server for details.
La cuenta de inicio del servicio define la cuenta de MicrosoftMicrosoft Windows en la que se ejecuta el Agente SQL ServerSQL Server y sus permisos de red.The service startup account defines the MicrosoftMicrosoft Windows account in which SQL ServerSQL Server Agent runs and its network permissions.SQL ServerSQL Serverse ejecuta como una cuenta de usuario especificada.Agent runs as a specified user account.Se puede seleccionar una cuenta para el servicio del Agente SQL ServerSQL Server mediante el Administrador de configuración de SQL ServerSQL Server , donde se pueden elegir las opciones siguientes:You select an account for the SQL ServerSQL Server Agent service by using SQL ServerSQL Server Configuration Manager, where you can choose from the following options:
-
Cuenta integrada.Built-in account.Puede elegirla de una lista con las siguientes cuentas de servicio de Windows integradas:You can choose from a list of the following built-in Windows service accounts:
-
Cuenta desistema local .Local System account.El nombre de esta cuenta es NT AUTHORITYSystem.The name of this account is NT AUTHORITYSystem.Es una cuenta eficaz con acceso sin restricciones a todos los recursos del sistema local.It is a powerful account that has unrestricted access to all local system resources.Es miembro del grupo Administradores de Windows del equipo local y, por tanto, miembro del rol fijo de servidor SQL ServerSQL Serveren .It is a member of the Windows Administrators group on the local computer, and is therefore a member of the SQL ServerSQL Serversysadmin fixed server roleImportanteLa opción Cuenta del sistema local se mantiene solo por motivos de compatibilidad con versiones anteriores.The Local System account option is provided for backward compatibility only.La cuenta del sistema local tiene permisos que el Agente SQL ServerSQL Server no necesita.The Local System account has permissions that SQL ServerSQL Server Agent does not require.Evite ejecutar el Agente SQL ServerSQL Server en la cuenta del sistema local.Avoid running SQL ServerSQL Server Agent as the Local System account.Para mejorar la seguridad, utilice una cuenta de dominio de Windows con los permisos que se enumeran en la sección siguiente, 'Permisos de cuentas de dominio de Windows'.For improved security, use a Windows domain account with the permissions listed in the following section, 'Windows Domain Account Permissions.'
-
-
Esta cuenta.This account.Permite especificar la cuenta de dominio de Windows en la que se ejecuta el servicio del Agente SQL ServerSQL Server .Lets you specify the Windows domain account in which the SQL ServerSQL Server Agent service runs.Se recomienda que la cuenta de usuario de Windows que elija no sea miembro del grupo Administradores de Windows.We recommend choosing a Windows user account that is not a member of the Windows Administrators group.Sin embargo, existen limitaciones en el uso de la administración multiservidor cuando la cuenta de servicio del Agente SQL ServerSQL Server no es miembro del grupo local Administradores .However, there are limitations for using multiserver administration when the SQL ServerSQL Server Agent service account is not a member of the local Administrators group.Para obtener más información, vea 'Tipos de cuenta de servicio compatibles' más adelante en este tema.For more information, see 'Supported Service Account Types' that follows in this topic.
Permisos de cuentas de dominio de WindowsWindows Domain Account Permissions
Para mayor seguridad, seleccione Esta cuenta, que especifica una cuenta de dominio de Windows.For improved security, select This account, which specifies a Windows domain account.La cuenta de dominio de Windows que especifique debe tener los permisos siguientes:The Windows domain account that you specify must have the following permissions:
- En todas las versiones de Windows, permiso para iniciar sesión como servicio (SeServiceLogonRight).In all Windows versions, permission to log on as a service (SeServiceLogonRight)
Nota
La cuenta de servicio del Agente SQL ServerSQL Server debe formar parte del grupo Acceso compatible con versiones anteriores de Windows 2000 en el controlador de dominio; de lo contrario, los trabajos que pertenecen a usuarios del dominio que no son miembros del grupo Administradores de Windows producirán un error.The SQL ServerSQL Server Agent service account must be part of the Pre-Windows 2000 Compatible Access group on the domain controller, or jobs that are owned by domain users who are not members of the Windows Administrators group will fail.
-
En servidores de Windows, la cuenta con la que se ejecuta el servicio del Agente SQL ServerSQL Server requiere los permisos siguientes para poder admitir servidores proxy del Agente SQL ServerSQL Server .In Windows servers, the account that the SQL ServerSQL Server Agent Service runs as requires the following permissions to be able to support SQL ServerSQL Server Agent proxies.
-
Permiso para omitir la comprobación transversal (SeChangeNotifyPrivilege)Permission to bypass traverse checking (SeChangeNotifyPrivilege)
-
Permiso para reemplazar un token (sÃmbolo) del proceso (SeAssignPrimaryTokenPrivilege)Permission to replace a process-level token (SeAssignPrimaryTokenPrivilege)
-
Permiso para ajustar cuotas de memoria para un proceso (SeIncreaseQuotaPrivilege)Permission to adjust memory quotas for a process (SeIncreaseQuotaPrivilege)
-
Permiso para tener acceso a este equipo desde la red (SeNetworkLogonRight)Permission to access this computer from the network (SeNetworkLogonRight)
-
![Sql Sql](/uploads/1/2/5/3/125305886/690777743.jpg)
Nota
Si la cuenta no tiene los permisos necesarios para admitir servidores proxy, solo los miembros del rol fijo de servidor sysadmin pueden crear trabajos.If the account does not have the permissions required to support proxies, only members of the sysadmin fixed server role can create jobs.
Nota
Para recibir una notificación de alerta WMI, la cuenta de servicio para el Agente SQL ServerSQL Server debe tener concedido permiso al espacio de nombres que contiene los eventos WMI y ALTER ANY EVENT NOTIFICATION.To receive WMI alert notification, the service account for SQL ServerSQL Server Agent must have been granted permission to the namespace that contains the WMI events, and ALTER ANY EVENT NOTIFICATION.
Pertenencia a roles de SQL ServerSQL Server Role Membership
La cuenta que ejecuta el servicio del Agente SQL ServerSQL Server debe ser miembro de los roles de SQL ServerSQL Server siguientes:The account that the SQL ServerSQL Server Agent service runs as must be a member of the following SQL ServerSQL Server roles:
-
La cuenta debe ser miembro del rol fijo de servidor sysadmin .The account must be a member of the sysadmin fixed server role.
-
Para usar el procesamiento de trabajos multiservidor, la cuenta debe ser miembro del rol TargetServersRole de la base de datos msdb en el servidor maestro.To use multiserver job processing, the account must be a member of the msdb database role TargetServersRole on the master server.
Tipos de cuenta de servicio compatiblesSupported Service Account Types
En la tabla siguiente se muestran los tipos de cuenta de Windows que se pueden usar para el servicio del Agente SQL ServerSQL Server .The following table lists the Windows account types that can be used for the SQL ServerSQL Server Agent service.
Tipo de cuenta de servicioService account type | Servidor no en clústerNon-clustered Server | Servidor en clústerClustered server | Controlador de dominio (no agrupado)Domain controller (non-clustered) |
---|---|---|---|
MicrosoftMicrosoftCuenta de dominio de Windows (miembro del grupo de administradores de Windows)Windows domain account (member of Windows Administrators group) | AdmitidaSupported | AdmitidaSupported | AdmitidaSupported |
Cuenta de dominio de Windows (no administrativa)Windows domain account (non-administrative) | AdmitidaSupported Vea la limitación 1 a continuación.See Limitation 1 below. |
AdmitidaSupported Vea la limitación 1 a continuación.See Limitation 1 below. |
AdmitidaSupported Vea la limitación 1 a continuación.See Limitation 1 below. |
Cuenta de servicio de red (NT AUTHORITYNetworkService)Network Service account (NT AUTHORITYNetworkService) | AdmitidaSupported Vea las limitaciones 1, 3 y 4 a continuación.See Limitation 1, 3, and 4 below. |
No compatibleNot supported | No compatibleNot supported |
Cuenta de usuario local (no administrativa)Local user account (non-administrative) | AdmitidaSupported Vea la limitación 1 a continuación.See Limitation 1 below. |
No compatibleNot supported | No aplicableNot applicable |
Cuenta del sistema local (NT AUTHORITYSystem)Local System account (NT AUTHORITYSystem) | AdmitidaSupported Vea la limitación 2 a continuación.See Limitation 2 below. |
No compatibleNot supported | AdmitidaSupported Vea la limitación 2 a continuación.See Limitation 2 below. |
Cuenta del servicio local (NT AUTHORITYLocalService)Local Service account (NT AUTHORITYLocalService) | No compatibleNot supported | No compatibleNot supported | No compatibleNot supported |
Limitación 1: utilizar cuentas no administrativas para la administración multiservidorLimitation 1: Using Non-administrative Accounts for Multiserver Administration
Dar de alta servidores de destino en el servidor maestro puede producir un error acompañado del siguiente mensaje: 'Error en la operación de alta.'Enlisting target servers to a master server may fail with the following error message: 'The enlist operation failed.'
Para resolver este error, reinicie los servicios SQL ServerSQL Server y el Agente SQL ServerSQL Server .To resolve this error, restart both the SQL ServerSQL Server and the SQL ServerSQL Server Agent services.Para más información, consulte Iniciar, detener, pausar, reanudar y reiniciar el motor de base de datos, Agente SQL Server o el Servicio SQL Server Browser.For more information, see Start, Stop, Pause, Resume, Restart the Database Engine, SQL Server Agent, or SQL Server Browser Service.
Limitación 2: utilizar la cuenta de sistema local para la administración multiservidorLimitation 2: Using the Local System Account for Multiserver Administration
Solo se admite la administración multiservidor cuando el servicio del Agente SQL ServerSQL Server se ejecuta bajo la cuenta de sistema local y tanto el servidor maestro como el servidor de destino residen en el mismo equipo.Multiserver administration is supported when the SQL ServerSQL Server Agent service is run under the Local System account only when both the master server and the target server reside on the same computer.Si usa esta configuración, cuando lleve a cabo el alta de los servidores de destino en el servidor maestro se devuelve el siguiente mensaje:If you use this configuration, the following message is returned when you enlist target servers to the master server:
'Comprobar que la cuenta de inicio del agente de <nombre_equipo_servidor_destino> posea derechos para iniciar la sesión como servidor de destino'.'Ensure the agent start-up account for <target_server_computer_name> has rights to log on as targetServer.'
Puede omitir este mensaje informativo.You can ignore this informational message.La operación de alta debe finalizar correctamente.The enlistment operation should complete successfully.Para obtener más información, vea Crear un entorno multiservidor.For more information, see Create a Multiserver Environment.
Limitación 3: utilizar la cuenta de servicio de red cuando es un usuario de SQL ServerLimitation 3: Using the Network Service Account When It Is a SQL Server User
SQL ServerSQL ServerSe puede producir un error al iniciar el Agente si ejecuta el servicio del Agente SQL ServerSQL Server bajo una cuenta de servicio de red y se concedió explÃcitamente a esta cuenta acceso para iniciar sesión en una instancia de SQL ServerSQL Server como un usuario de SQL ServerSQL Server .Agent may fail to start if you run the SQL ServerSQL Server Agent service under the Network Service account, and the Network Service account has been explicitly granted access to log into a SQL ServerSQL Server instance as a SQL ServerSQL Server user.
Para resolver este problema, reinicie el equipo donde se ejecuta SQL ServerSQL Server .To resolve this, reboot the computer where SQL ServerSQL Server is running.Solo es necesario hacerlo una vez.This only needs to be done once.
Limitación 4: utilizar la cuenta de servicio de red cuando SQL Server Reporting Services se ejecuta en el mismo equipoLimitation 4: Using the Network Service Account When SQL Server Reporting Services Is Running on the Same Computer
SQL ServerSQL ServerSe puede producir un error al iniciar el Agente si se ejecuta el servicio del Agente SQL ServerSQL Server bajo la cuenta de servicio de red y Reporting ServicesReporting Services también está ejecutándose en el mismo equipo.Agent may fail to start if you run the SQL ServerSQL Server Agent service under the Network Service account and Reporting ServicesReporting Services is also running on the same computer.
Para resolver este problema, reinicie el equipo donde se ejecuta SQL ServerSQL Server y, a continuación, reinicie los servicios SQL ServerSQL Server y el Agente SQL ServerSQL Server .To resolve this, reboot the computer where SQL ServerSQL Server is running, and then restart both the SQL ServerSQL Server and the SQL ServerSQL Server Agent services.Solo es necesario hacerlo una vez.This only needs to be done once.
Tareas comunesCommon Tasks
Para especificar la cuenta de inicio del servicio del Agente SQL ServerTo specify the startup account for the SQL Server Agent service
Para especificar el perfil de correo del Agente SQL ServerTo specify the mail profile for SQL Server Agent
Nota
Utilice el Administrador de configuración de SQL ServerSQL Server para especificar que el Agente SQL ServerSQL Server debe iniciarse cuando se inicie el sistema operativo.Use SQL ServerSQL Server Configuration Manager to specify that SQL ServerSQL Server Agent must start up when the operating system starts.
Consulte tambiénSee Also
Configurar cuentas de servicio de WindowsSetting Up Windows Service Accounts
Administración de servicios con SQL Computer ManagerManaging Services Using SQL Computer Manager
Implementar la seguridad del Agente SQL ServerImplement SQL Server Agent Security
Administración de servicios con SQL Computer ManagerManaging Services Using SQL Computer Manager
Implementar la seguridad del Agente SQL ServerImplement SQL Server Agent Security