Sie sind auf Seite 1von 4

Oracle TimesTen v5.

1:
Replication
Student Guide

D19304GC20
2.0
May 2005
D19462

Copyright 2005, Oracle. All rights reserved.


This document contains proprietary information and is protected by copyright and other intellectual property laws. You may
copy and print this document solely for your own use in an Oracle training course. The document may not be modified or
altered in any way. Except where your use constitutes "fair use" under copyright law, you may not use, share, download,
upload, copy, print, display, perform, reproduce, publish, license, post, transmit, or distribute this document in whole or in part
without the express authorization of Oracle.
The information contained in this document is subject to change without notice. If you find any problems in the document,
please report them in writing to: Oracle University, 500 Oracle Parkway, Redwood Shores, California 94065 USA. This
document is not warranted to be error-free.
If this documentation is delivered to the United States Government or anyone using the documentation on behalf of the United
States Government, the following notice is applicable:
U.S. GOVERNMENT RIGHTS
The U.S. Governments rights to use, modify, reproduce, release, perform, display, or disclose these training materials are
restricted by the terms of the applicable Oracle license agreement and/or the applicable U.S. Government contract.
Oracle, JD Edwards, PeopleSoft, and Retek are registered trademarks of Oracle Corporation and/or its affiliates. Other names
may be trademarks of their respective owners.

Copyright 1999-2005 TimesTen, Inc.

Introduction and Course Overview


Course Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-2
Intended Audience and Course Prerequisites . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3
Course Outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4

Overview of TimesTen Replication


Module Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2
TimesTen Replication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3
TimesTen Replication Concepts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-4
Basic Asynchronous Replication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-6
Optional Return Receipt Replication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-7
Replication Usage Scenarios: Hot Standby . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-8
Replication Usage Scenarios: Split Workload . . . . . . . . . . . . . . . . . . . . . . . . . . 2-9
Replication Usage Scenarios: General Workload. . . . . . . . . . . . . . . . . . . . . . . 2-10
Replication Components. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-11
Replication States . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-12
Replication Requirements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-14
Replication Quiz . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-15
Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-17

Configuring TimesTen Replication


Module Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2
Before You Begin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3
Replication Schemes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-4
Configuring Replication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5
SQL Syntax to Define Replication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6
SQL Examples: Unidirectional Replication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9
Bi-directional Replication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-10
Managing the Replication Daemon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-11
Example: Configuring Replication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-13
Changing the Replication Scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-15
Replication Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-17
Replication Configuration Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-19

TimesTen/DataServer 5.1 Replication

Student Workbook

Copyright 1999-2005 TimesTen, Inc.

Configuring Other
Replication Features
Module Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2
Timestamp-based Update Conflict Resolution . . . . . . . . . . . . . . . . . . . . . . . . . . 4-3
Propagator Data Store . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-6
SQL Example: Defining Single-hop Replication . . . . . . . . . . . . . . . . . . . . . . . . . 4-7
What if a subscriber data store doesnt exist? . . . . . . . . . . . . . . . . . . . . . . . . . 4-10
Example: Subscriber store doesnt exist. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-13
Return Receipt Service . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-14
Return Receipt Built-in Procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-16
Data Store Upgrades . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-18
The Replication State. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-19
Changing the State of a Subscriber . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-21
Replicating a Temporary Data Store . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-25
Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-26

TimesTen Replication Diagnostics


Module Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-2
Unconfiguring Replication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-3
Unconfiguring Replication Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-4
Data Store or System Failure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-5
Setting the Log Threshold . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-7
Subscriber Data Store Failure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-8
If the Subscriber Must be Re-created. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-9
Master Data Store Failure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-11
Bi-directional Replication: master fails . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-12
Uni-directional Replication: master fails . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-13
The Replication Bookmark . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-15
Troubleshooting Replication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-17
Troubleshooting (continued) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-18
Troubleshooting Replication(continued). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-20
Troubleshooting Replication Example. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-22
Replication System Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-24
Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-26

TimesTen/DataServer 5.1 Replication

Das könnte Ihnen auch gefallen