29
תתתתתתת תתתתתתתת: תתתתתת תתתת תתתתתת תתתתISUG 94 תתתת תתתתת[email protected] .il

Sql Server Replication Isug 1 2009

Embed Size (px)

Citation preview

Page 1: Sql Server Replication   Isug 1 2009

פתרונות רפליקציה: חושבים מחוץ לקופסה

ISUG 94מפגש מאיר דודאי[email protected]

Page 2: Sql Server Replication   Isug 1 2009

מה בתוכנית

Page 3: Sql Server Replication   Isug 1 2009

פלאפל עופר

Page 4: Sql Server Replication   Isug 1 2009

אתגרים

הסניפים רוצים להספיק להוציא חשבונית •במהירות בין הכנסת כדורי הפלאפל למנה לבין

מזיגת העמבה לפיתה )ללא תלות בעומס על (.WANה-

אם משה )האחראי על הפיתות( מושך בטעות •את כבל התקשורת למרכז, הסניף צריך להמשיך

לעבוד.עופר הוא קונטרול פריק וחובב מספרים. יש •

לאפשר לעופר להפיק דוחות אגרגטיביים כבדים ובניית קוביות גם במהלך יום העבודה.

Page 5: Sql Server Replication   Isug 1 2009

הפתרון?

Page 6: Sql Server Replication   Isug 1 2009

הפתרון?

רפליקציה!

Page 7: Sql Server Replication   Isug 1 2009
Page 8: Sql Server Replication   Isug 1 2009

?מהי רפליקציה

Page 9: Sql Server Replication   Isug 1 2009

?איך זה עובד

Create a full copy

Identify changes on source )Publisher(

Store changes into distribution database

Distribute changes to destination )subscriber(

Page 10: Sql Server Replication   Isug 1 2009

SQL Serverמאפייני הרפליקציה ב-

שכפול נתונים מהיר בעדכניות של דקות או •שניות

OLTPהשפעה אפסית על מערכת ה-•נטרול השפעות רשת על הפעילות השוטפת של •

האפליקציה Scaleעבודה במקביל על מספר שרתים לצורך •

out•High Availability, ללא עלויות SQL Serverפתרון מובנה ב-•

נוספות!

Page 11: Sql Server Replication   Isug 1 2009

פלאפל עופר

Page 12: Sql Server Replication   Isug 1 2009

שימושים לרפליקציה

• High Availability• Offloading reporting and Data Warehousing• Database scale out for websites• Empowering mobile users• Enabling Point of Sale applications• Consolidating and distributing regional data• Integrating heterogeneous data

Page 13: Sql Server Replication   Isug 1 2009

High Availability

Page 14: Sql Server Replication   Isug 1 2009

Reporting & Data Warehousing

• Reporting databases are continuously synchronized in near real-time with one or more source OLTP databases

• Reporting and Staging user queries are offloaded from the OLTP databases

• Reporting data can be a subset of source tables and columns and also indexed differently

• Read-only replicas

Page 15: Sql Server Replication   Isug 1 2009

Database Scale Out

• Queries scaled out )often geographically( similar to reporting cases

• Databases replicate reciprocally and are writable

• Redundancy provides fault tolerance and lowers maintenance downtime

• Online upgrades possible

Page 16: Sql Server Replication   Isug 1 2009

Mobile CRM / SFACustomer Relationship Management

Sales Force Automation

• Key Traits– Subset of data

from server– Conflicts– Data realignment– Business Logic

Page 17: Sql Server Replication   Isug 1 2009

Point of Sale

• Key Traits– High latency low

bandwidth network

– Need low cost software and administration

– Sync at scheduled times

– Upload orders then remove

Page 18: Sql Server Replication   Isug 1 2009

Regional Replication

• Central headquarters data replicated to 1200 stores

• Each store also replicates between two databases to provide a backup in case one fails

• Database administrators are centralized

Page 19: Sql Server Replication   Isug 1 2009

Regional Replication

• Each ship contains a SQL Server database

• When the ship docks, it replicates to the headquarters’ database

• Replication was customized to perform additional processing when synchronizing

SQL Server

SQL Server

Customized Replication

Logic

SQL Server

Transactional Replication

Headquarters

Page 20: Sql Server Replication   Isug 1 2009

Oracle Replication

• SQL Server 2005 Transactional Replication

• SQL Server synchronized with Oracle production line system in near real-time

• Used to monitor manufacturing

• Reporting: Quality control, status, and “what if” queries spread across multiple databases

Manufacturing System

Oracle10G

SQL Server 2005Transactional Replication

Page 21: Sql Server Replication   Isug 1 2009

Overview of the Replication Types

• Snapshot Replication– Periodic bulk transfer of new snapshots of

data• Transactional Replication

– Replication of incremental changes • Merge Replication

– Autonomous changes to replicated data are later merged

Page 22: Sql Server Replication   Isug 1 2009

סוגי פתרונות נוספים

• Built in SQL Server– SQL Server Integration Services– Log shipping– Database Mirroring– Backup/Restore

• Other solutions– Hardware/Storage Replication– 3rd Party products

Page 23: Sql Server Replication   Isug 1 2009

השוואת פתרונות

Replication SQL Server Integration Services(DTS)

Log shipping

Database Mirroring

Backup/ Restore

Down time when failing over

Low High Low Low High

Automatic fail over Optional No No Yes (ENT. edition )

No

Read/Write on transferred database

R/W R/W None None R/W

Latency of synchronization

low High Mediun Low High

Specific objects Yes Yes No No No

Page 24: Sql Server Replication   Isug 1 2009

סיפור לקוח – כתר פלסטיק

Replication Server

Page 25: Sql Server Replication   Isug 1 2009

סיפור לקוח – כתר פלסטיק

Replication Server)Microsoft SQL Server(

Oracle Publication

Page 26: Sql Server Replication   Isug 1 2009

?שאלות

Page 27: Sql Server Replication   Isug 1 2009

SQL PASS Chapter

העולמיתSQL Serverחיבור לסצנת ה-•אירועים–PASSכנסי –תכנים וקישורים הנשלחים מהארגון לחברים––Networking

היכרות עם גורואים ובלוגרים ברחבי העולם•תמיכה בקבוצת המשתמשים•

Page 28: Sql Server Replication   Isug 1 2009

SQL PASS Chapter

תוכניות לעתיד: רבעונית של "סלבס"Onlineהרצאה • בישראלMini-PASSכנסי •

Page 29: Sql Server Replication   Isug 1 2009

תודה