En esta sesion vamos a ver la forma de configurar transactional replication, la seguridad necesaria y los diferenctes componentes que se involucran en el funcionamiento de la misma. Al igual como las mejores praqcticas para escalabilidad y distribucion de carga, conviertiendo nuestro entorno replicado en un amigo en distribucion de carga en lugar de una carga para la administracion.
Configurando transactional replication para reporteo de forma segura - Kenneth Urena
1. Configurando transactional replication para
reporteo de forma segura
26 de Noviembre (12 pm GMT -5)
Kenneth Ureña
Resúmen:
En esta sesion vamos a ver la forma de configurar
transactional replication, la seguridad necesaria y los
diferenctes componentes que se involucran en el
funcionamiento de la misma. Al igual como las mejores
praqcticas para escalabilidad y distribucion de carga,
conviertiendo nuestro entorno replicado en un amigo
en distribucion de carga en lugar de una carga para la
administracion.
Próximo Evento
Está por comenzar:
3 y 4 de Diciembre
2. 2
Speakers
• Adrian Miranda
• Alan Koo
• Andrei Garzon
• César Oviedo
• Carlos Lone
• Carlos Rojas
• Eduardo Castro
• Eladio Rincon
• Enrique Catala
• Enrique Puig
• German Cayo
• Guillermo Caicedo
• Jesus Gil Velasco
• John Alexander Bulla Torres
• John Bocachica
• Jose Chinchilla
• Jose L. Rivera
• Julián Castiblanco
• Kenneth Urena
• Mary Arcia
• Miguel Egea
• Percy Reyes
• Ricardo Estrada
• Warner Chaves
http://www.sqlpass.org/24hours/2014/spanish/Inicio.aspx
3. Configurando transactional replication para
reporteo de forma segura
26 de Noviembre de 2014
Kenneth Ureña
MCITP | MCSE | MCSA | MCTS | MCT
Sr. Database Administrator, Bodybuilding.com
PASS Global Spanish Virtual Chapter Co-Lead
7. La realidad de replicación
Se Inicializa desde
- Respaldo
- Snapshot
Obtiene comandos
- Log Reader Agent
Consume comandos
- Subscriber Agent
Genera Snapshots
- Snapshot Agent
SQL Agent
SQL Engine
SQL Agent
SQL Engine
SQL Agent
SQL Engine
8. Seguridad de instancia
Cree una cuenta para cada uno de los servicios por servidor
NO HAGA esas cuentas Administradores del servidor, cuando
instala SQL Server le asigna los permisos necesarios
Cree una cuenta para el snapshot agent, Log Reader Agent y
por cada agente del suscriptor
10. Configurando replicación(Distribuidor)
SQL Agent
SQL Engine
- Va a ejecutar el JOB para el log reader
- Va a ejecutar el job para generar el snapshot
- El usuario del Log reader tiene que ser sysadmin en el servidor de distribución
- El Usuario del Snapshot tiene que ser db_owner de la base de datos de distribución
- El Usuario del Snapshot tiene que tener derechos de escritura sobre el folder de snapshots
Demo 001
11. ¿Qué esta hecho?
Se Inicializa desde
- Respaldo
- Snapshot
Obtiene comandos
- Log Reader Agent
Consume comandos
- Subscriber Agent
Genera Snapshots
- Snapshot Agent
SQL Agent
SQL Engine
SQL Agent
SQL Engine
SQL Agent
SQL Engine
12. Configurando replicación(Publicador)
SQL Agent
SQL Engine
- El usuario del Log reader tiene que ser db_owner en la base de datos para publicar
- El Usuario del Snapshot tiene que ser db_owner de la base de datos para publicar
- Se habilita la base de datos para replicación
- Se crea una publicación
Demo 002
13. ¿Qué esta hecho?
Se Inicializa desde
- Respaldo
- Snapshot
Obtiene comandos
- Log Reader Agent
Consume comandos
- Subscriber Agent
Genera Snapshots
- Snapshot Agent
SQL Agent
SQL Engine
SQL Agent
SQL Engine
SQL Agent
SQL Engine
14. Configurando replicación(Suscriptor)
SQL Agent
SQL Engine
- El Usuario del Suscriber Agent tiene que ser db_owner de la base de datos para suscrita
- Se inicializa la base de datos de suscripcion
- Se comienza la sincronizacion de datos
Demo 003
Demo 004
Demo 005
15. ¿Qué esta hecho?
Se Inicializa desde
- Respaldo
- Snapshot
Obtiene comandos
- Log Reader Agent
Consume comandos
- Subscriber Agent
Genera Snapshots
- Snapshot Agent
SQL Agent
SQL Engine
SQL Agent
SQL Engine
SQL Agent
SQL Engine
17. Una Tabla adicional
- La tabla se debe de crear en ambas bases de datos
- Se debe de eliminar la parte de Identity en el lado del suscriptor
- Se debe de agregar el artículo a la publicación
- Se debe de iniciar el agente de snapshot
Demo 006
Demo 007
18. Conclusiones
• Permisos altos para replicacion
• Capacidad de aislar los accesos mas abiertos
• Capacidad de escalabilidad
• Un mejor control de permisos
18
19. Manténgase conectado a nosotros!
Visítenos en http://globalspanish.sqlpass.org
19
/SpanishPASSVC
lnkd.in/dtYBzev
/user/SpanishPASSVC
/SpanishPASSVC
20. 20
Volunteering with PASS
Volunteer Today!
Now it’s easier than ever to volunteer with PASS.
Let us know your volunteer preferences by updating the
“MyVolunteering” section of your MyPASS profile.
PASS would not exist without our passionate, dedicated,
and hardworking volunteers from around the globe.
21. 21
PASS Volunteer Awards
Outstanding Volunteer Award
Do you know a volunteer that has gone
above and beyond recently?
Nominate them for the monthly OVA.
VolunteerRecognition@sqlpass.org
PASSion Award
The highest of PASS accolades presented
yearly to a volunteer.
Nominations open now!
http://www.sqlpass.org/Community/Volunteers
/PASSionAward.aspx
22. Stay Involved!
• Sign up for a free membership today at sqlpass.org
• Linked In: http://www.sqlpass.org/linkedin
• Facebook: http://www.sqlpass.org/facebook
• Twitter: @SQLPASS
• PASS: http://www.sqlpass.org
23. 23
Speakers
• Adrian Miranda
• Ahias Portillo
• Alan Koo
• Andrei Garzon
• César Oviedo
• Carlos Lone
• Eduardo Castro
• Eladio Rincon
• Enrique Catala
• Enrique Puig
• German Cayo
• Guillermo Caicedo
• Jesus Gil Velasco
• John Alexander Bulla Torres
• John Bocachica
• Jose Chinchilla
• Jose L. Rivera
• Julián Castiblanco
• Kenneth Urena
• Mary Arcia
• Miguel Egea
• Percy Reyes
• Ricardo Estrada
• Warner Chaves
http://www.sqlpass.org/24hours/2014/spanish/Inicio.aspx
Usually Hardware issues cause performance degradation in the software
Changes on the software usually create hardware bottleneck and get reflected in performance degradation
And that is the base of the problem, here is where you see DBA’s fighting Developers or DBA’s fighting San Administrators
Usually Hardware issues cause performance degradation in the software
Changes on the software usually create hardware bottleneck and get reflected in performance degradation
And that is the base of the problem, here is where you see DBA’s fighting Developers or DBA’s fighting San Administrators
Usually Hardware issues cause performance degradation in the software
Changes on the software usually create hardware bottleneck and get reflected in performance degradation
And that is the base of the problem, here is where you see DBA’s fighting Developers or DBA’s fighting San Administrators
Usually Hardware issues cause performance degradation in the software
Changes on the software usually create hardware bottleneck and get reflected in performance degradation
And that is the base of the problem, here is where you see DBA’s fighting Developers or DBA’s fighting San Administrators
Usually Hardware issues cause performance degradation in the software
Changes on the software usually create hardware bottleneck and get reflected in performance degradation
And that is the base of the problem, here is where you see DBA’s fighting Developers or DBA’s fighting San Administrators
Usually Hardware issues cause performance degradation in the software
Changes on the software usually create hardware bottleneck and get reflected in performance degradation
And that is the base of the problem, here is where you see DBA’s fighting Developers or DBA’s fighting San Administrators
Usually Hardware issues cause performance degradation in the software
Changes on the software usually create hardware bottleneck and get reflected in performance degradation
And that is the base of the problem, here is where you see DBA’s fighting Developers or DBA’s fighting San Administrators
Usually Hardware issues cause performance degradation in the software
Changes on the software usually create hardware bottleneck and get reflected in performance degradation
And that is the base of the problem, here is where you see DBA’s fighting Developers or DBA’s fighting San Administrators
Usually Hardware issues cause performance degradation in the software
Changes on the software usually create hardware bottleneck and get reflected in performance degradation
And that is the base of the problem, here is where you see DBA’s fighting Developers or DBA’s fighting San Administrators
Usually Hardware issues cause performance degradation in the software
Changes on the software usually create hardware bottleneck and get reflected in performance degradation
And that is the base of the problem, here is where you see DBA’s fighting Developers or DBA’s fighting San Administrators