Sie sind auf Seite 1von 22

Oracle9i Database: Advanced Replication

Student Guide Volume 1

D12625GC10 Production 1.0 January 2002 D34351

Authors Karen Kehn Janet Stern Technical Contributors and Reviewers Donna Hamby Alexander Hunold Barb Janeczko Susan Jang Kari Jyrala Pat McElroy Maria Pratt Inderpal Tahim Faye Todd Publisher May Lonn Chan-Villareal

Copyright Oracle Corporation, 2002. All rights reserved. This documentation contains proprietary information of Oracle Corporation. It is provided under a license agreement containing restrictions on use and disclosure and is also protected by copyright law. Reverse engineering of the software is prohibited. If this documentation is delivered to a U.S. Government Agency of the Department of Defense, then it is delivered with Restricted Rights and the following legend is applicable: Restricted Rights Legend Use, duplication or disclosure by the Government is subject to restrictions for commercial computer software and shall be deemed to be Restricted Rights software under Federal law, as set forth in subparagraph (c)(1)(ii) of DFARS 252.227-7013, Rights in Technical Data and Computer Software (October 1988). This material or any portion of it may not be copied in any form or by any means without the express prior written permission of Oracle Corporation. Any other copying is a violation of copyright law and may result in civil and/or criminal penalties. If this documentation is delivered to a U.S. Government Agency not within the Department of Defense, then it is delivered with Restricted Rights, as defined in FAR 52.227-14, Rights in Data-General, including Alternate III (June 1987). The information in this document is subject to change without notice. If you find any problems in the documentation, please report them in writing to Education Products, Oracle Corporation, 500 Oracle Parkway, Box SB-6, Redwood Shores, CA 94065. Oracle Corporation does not warrant that this document is error-free. Oracle and all references to Oracle products are trademarks or registered trademarks of Oracle Corporation. All other products or company names are used for identification purposes only, and may be trademarks of their respective owners.

Preface

Preface - 2

Profile Before You Begin This Course Before you begin this course, you should have the following qualifications: Thorough knowledge of database administration commands and techniques. Working experience with distributed database concepts and database links. Oracle9i Database Administration Fundamentals I Oracle9i Database Administration Fundamentals II

Prerequisites

How This Course Is Organized Oracle9i Database: Advanced Replication is an instructor-led course featuring lecture and hands-on exercises. Online demonstrations and written practice sessions reinforce the concepts and skills introduced.

Preface - 3

Related Publications Oracle Publications Title Oracle9i Replication Release 1 (9.0.1) Oracle9i Replication Management API Reference Release 1 (9.0.1) Oracle9i Data Warehousing Guide Release 1 (9.0.1) Additional Publications System release bulletins Installation and users guides read.me files International Oracle Users Group (IOUG) articles Oracle Magazine Part Number A87499-02 A87502-01 A90237-01

Preface - 4

Typographic Conventions Typographic Conventions in Text

Convention Bold italic

Element Example Glossary term (if there is The algorithm inserts the new key. a glossary) Buttons, check boxes, triggers, windows Click the Executable button. Select the Cant Delete Card check box. Assign a When-Validate-Item trigger to the ORD block. Open the Master Schedule window. Code output: debug.set (I, 300); Directory: bin (DOS), $FMHOME (UNIX) Filename: Locate the init.ora file. Password: User tiger as your password. Pathname: Open c:\my_docs\projects URL: Go to http://www.oracle.com User input: Enter 300 Username: Log on as scott Customer address (but Oracle Payables)

Caps and lowercase

Courier new, case sensitive (default is lowercase)

Code output, directory names, filenames, passwords, pathnames, URLs, user input, usernames Graphics labels (unless the term is a proper noun) Emphasized words and phrases, titles of books and courses, variables

Initial cap

Italic

Do not save changes to the database. For further information, see Oracle7 Server SQL Language Reference Manual. Enter user_id@us.oracle.com, where user_id is the name of the user.

Quotation marks

Interface elements with long names that have only initial caps; lesson and chapter titles in cross-references SQL column names, commands, functions, schemas, table names

Select Include a reusable module component and click Finish. This subject is covered in Unit II, Lesson 3, Working with Objects. Use the SELECT command to view information stored in the LAST_NAME column of the EMP table.

Uppercase

Preface - 5

Convention Arrow Brackets Commas Plus signs

Element Menu paths Key names Key sequences Key combinations

Example Select File> Save. Press [Enter]. Press and release keys one at a time: [Alternate], [F], [D] Press and hold these keys simultaneously: [Ctrl]+[Alt]+[Del]

Typographic Conventions in Code


Convention Caps and lowercase Lowercase Element Oracle Forms triggers Column names, table names Passwords PL/SQL objects Example When-Validate-Item SELECT last_name FROM s_emp; DROP USER scott IDENTIFIED BY tiger; OG_ACTIVATE_LAYER (OG_GET_LAYER (prod_pie_layer))

Lowercase italic Uppercase

Syntax variables SQL commands and functions

CREATE ROLE role SELECT userid FROM emp;

Typographic Conventions in Navigation Paths This course uses simplified navigation paths, such as the following example, to direct you through Oracle Applications. (N) Invoice>Entry>Invoice Batches Summary (M) Query>Find (B) Approve This simplified path translates to the following: 1. (N) From the Navigator window, select Invoice>Entry>Invoice Batches Summary. 2. (M) From the menu, select Query>Find. 3. (B) Click the Approve button. N = Navigator, M = Menu, B = Button

Preface - 6

Contents

Preface 1 Oracle9i Database: Advanced Replication Course Objectives 1-2 Curriculum Overview 1-3 Advanced Replication Topics 1-4 Practice 1 Overview: Database Assignment and Configuration 1-7 Practice 1 Overview: Gathering Configuration Information 1-8 Advanced Replication Objectives 2-2 Overview 2-3 What Is Replication? 2-4 Unidirectional Replication 2-5 Bi-directional Replication 2-6 Multimaster Replication 2-7 Synchronous Propagation 2-8 Asynchronous Propagation 2-9 Propagation of Deferred RPCs 2-11 Transactional Data Propagation 2-14 Error Handling of Deferred RPCs 2-15 Recovery of Deferred RPCs 2-16 Performance Optimization 2-17 Serial and Parallel Propagation 2-18 Replication Components 2-19 Replicating Database Objects 2-20 Unsupported Replication Objects 2-21 Supported Datatypes for Replication 2-22 Replicating Sequences 2-23 Replication Groups 2-24 Replication Sites 2-25 Master Site 2-26 Materialized View Site 2-27 Types of Replication Environments 2-28 Multimaster Replication 2-29 Materialized Views 2-31

iii

Materialized View Replication 2-32 Replication with Materialized Views 2-33 Types of Materialized Views 2-34 Materialized View Replication 2-35 Updatable Materialized Views 2-36 Single-Master Replication 2-37 Hybrid Configuration 2-38 Oracle Deployment Templates 2-39 Data Distribution: Basic Techniques 2-40 Basic Techniques: Primary Site Ownership 2-41 Basic Techniques: Data Subsets 2-42 Basic Techniques: Horizontal and Vertical Subsets 2-43
Data Distribution: Advanced Techniques 2-44 Advanced Techniques: Dynamic Ownership 2-45 Advanced Techniques: Shared Ownership 2-46 Advanced Techniques: Replication Model 2-47 Row-Level Replication 2-48 Data Conflicts in Replication Systems 2-49 Procedural Replication 2-50 Administration Tools for Replication 2-51 Replication Management GUI Tool 2-52 Replicating DDL Statements 2-54 Summary 2-55 Practice 2 Overview 2-56 3 Job Queue Objectives 3-2 Job Queue and Job Queue Processes 3-3 Administering the Job Queue 3-4 Executing Jobs 3-5 Altering a Job in the Job Queue 3-6 Manually Execute a Job in the Job Queue 3-7 Job Execution Problems 3-8 Broken Jobs 3-9 Removing a Job from the Job Queue 3-10 Replication Jobs in the Job Queue at the Master Site 3-11 Viewing Job Queue Information 3-12

iv

Diagnosing Problems with the Job Queue 3-14 Summary 3-17 Practice 3 Overview 3-18 4 Deferred Transactions Objectives 4-2 Deferred Transactions 4-3 Deferred Transaction Components 4-4 Specifying a Destination 4-5 Initiating a Deferred Transaction 4-6 Deferring a Remote Procedure Call 4-8 Deferring a Remote Procedure Call: Example 4-10 Querying Information About a Deferred Transaction 4-11 Querying a Deferred Transaction 4-13 Querying Information About a Remote Procedure Call 4-14 Querying Information About the Destination of a Deferred Transaction 4-16 Querying the Destination of a Deferred Transaction 4-17 Pushing Deferred Transactions 4-18 Propagating Deferred Transactions 4-19 Propagating Deferred Transactions 4-20 SCHEDULE_PUSH 4-21 Configuring the Push Mechanism 4-23 Push Mechanism with Replicated Tables 4-24 Frequency of Propagation 4-25 Scheduling Almost-Continuous Pushes 4-26 Serial Propagation of Deferred Transactions 4-27 Parallel Propagation of Deferred Transactions 4-28 Parallel Propagation 4-29 Parallel Propagation Dependency Tracking 4-30 Parallel Propagation and Row-Level SCNs 4-31 Features of Row-Level Dependency Tracking 4-32 Purging the Deferred Transactions 4-33 Scheduling Purges of Deferred Transactions 4-34 SCHEDULE_PURGE 4-35

Manually Purge Deferred Transactions 4-37 Purge Mechanism 4-40 Queued Transactions 4-41 Diagnosing Problems with Deferred Transactions 4-42 Deleting Deferred Transactions 4-44 Delete Scheduled Links 4-46 Summary 4-47 5 Master Replication: Concepts and Architecture Objectives 5-2 Comparison of Master Sites and Materialized View Sites 5-3 Master Definition Site 5-4 Master Replication Concepts 5-5 Master Replication Architecture 5-6 Multimaster Replication Users 5-7 Types of Database Links 5-9 Security Context with Links 5-10 Database Links 5-11 Multimaster DML Replication 5-13 Replication Administration 5-15 Administrative Requests 5-16 DBA_REPCATLOG 5-17 DO_DEFERRED_REPCAT_ADMIN Periodic Job Execution 5-19 Common Problems with Administration Requests 5-20 Quiescing the Replicated Environment 5-21 Replicating Changes to Objects 5-29 Survivability 5-30 Summary 5-35 Practice 5 Overview 5-36 Configuring a Master Site Objectives 6-2 Multimaster Environment Flowchart 6-3 Single Master Environment Flowchart 6-4 Before You Start 6-5 Before You Start: Other init.ora Parameters 6-7 Before You Start: Reset Database GLOBAL_NAME 6-9 Master Site Setup Flowchart 6-10

vi

Step 1: Create Replication Users and Grant Replication Privileges 6-11 Step 2: Register the Propagator 6-12 Step 3: Schedule the Purge Job 6-14 All Remaining Master Sites: Repeat Steps 14 6-17 On Each Master Site: Perform Steps 57 6-18 Step 5: Create Database Links 6-19 Multiple Links to Same Destination 6-22 Step 6: Create Scheduled Links 6-23 Step 7 (Verification): View Site Properties 6-24 Step 7 (Verification): Verify Database Links 6-25 Step 7 (Verification): Test Global Names and Database Links 6-26 Step 7 (Verification): Test Scheduled Links 6-27 Step 7 (Verification): View Purge Job Properties 6-28 Alternative Setup Method: Replication Management Tool Setup Wizard 6-29 Capturing Setup Scripts 6-30 Diagnosing Problems With Database Links 6-31 Summary 6-32 Practice 6 Overview 6-33 7 Creating Master Groups Objectives 7-2 Master Groups 7-3 Master Group Rules 7-4 Using Multiple Master Groups 7-5 Master Group Creation Flowchart 7-6 Step 1: Create Schema at All Sites 7-7 Step 2: Add Primary Key, Where Missing 7-8 Step 3: Create Master Group 7-9 Quiescing Master Groups 7-10 Step 4: Add Objects to Master Group 7-11 Adding an Object to a Replication Group 7-12 USE_EXISTING_OBJECT and COPY_ROWS Parameters 7-15 Adding a New Object to a Replication Group 7-16 Step 5: Add Additional Master Sites 7-17 Steps to Add A Master Site with Online Instantiation 7-18 Steps to Add A Master Site 7-19 Step 6: Add Conflict Resolution 7-20 Step 7: Generating Replication Support for Replication Objects 7-21 Generating Replication Support 7-22 Verifying Master Group Creation 7-25

vii

Managing Master Groups and Master Sites Objectives 8-2 Altering Replicated Database Objects 8-3 ALTER_MASTER_REPOBJECT 8-4 Altering Replicated Database Objects 8-5 Safe Table Changes 8-7 DROP_MASTER_REPOBJECT 8-8 Dropping a Replicated Object 8-9 Altering Data Propagation Method 8-10 Relocating the Master Definition Site 8-13 Dropping a Master Site 8-15 Dropping a Replicated Group from a Master Site 8-17 Dropping a Master Replication Group 8-18 Administrative Request Propagation 8-19 DO_DEFERRED_REPCAT_ADMIN Success and Failure 8-20 Apply Outstanding Requests Manually 8-21 PURGE_MASTER_LOG 8-22 Executing Asynchronous DDL at Various Replication Sites 8-23 EXECUTE_DDL Example 8-24 Diagnosing Problems with Master Sites 8-25 Troubleshooting Problems with Administrative Requests 8-27 Summary 8-28 Practice 8 Overview 8-29 Avoiding and Detecting Conflicts Objectives 9-2 What is a Replication Conflict? 9-3 Conflict Example 1: Reservation System 9-4 Conflict Example 2: Customer Data 9-5 Error Queue 9-6 Types of Replication Conflicts 9-7 Identifying Rows for Conflict 9-8 Detecting Conflicts 9-9 Conflict Detection Error Types 9-10 Data Consistency and Convergence 9-11 Conflict Avoidance and Resolution: Foundation 9-12 Conflict Resolution Responsibilities 9-13 Avoiding Conflicts: Overview 9-14 Column Groups 9-15 Shadow Column Groups 9-16 Column Groups 9-17 Column Groups: Design Considerations 9-18

viii

Using Column Groups 9-20 Making Column Groups 9-21 Making Column Groups: Example 9-22 Dropping Columns from Column Groups: Example 9-23 Viewing Column Groups 9-24 Replication Conflict Mechanisms 9-25 Avoiding Conflicts 9-26 Avoiding Conflicts: Primary Site Ownership 9-27 Dynamic Site Ownership: Workflow Method 9-28 Dynamic Site Ownership: Token Passing 9-29 Token Passing: Locating the Owner 9-30 Token Passing: Becoming the Owner 9-31 Token Passing: Updating the Row 9-33 Token Passing: Propagating the Changes 9-34 Avoiding Uniqueness Conflicts 9-35 Avoiding Delete Conflicts 9-36 Conflict Avoidance Limitations: Ordering Conflicts 9-37 Conflict Avoidance Limitations: Shared Ownership 9-38 Conflict Detection at Replicated Sites 9-39 Summary 9-40 Practice 9 Overview 10 Resolving Conflicts Objectives 10-2 Methods for Resolving Update Conflicts 10-3 Resolving Update Conflicts in Single Master Systems 10-4 Resolving Update Conflicts with Two Master Sites 10-5 Resolving Update Conflicts in Multimaster Systems 10-6 Multimaster Example: Data Divergence 10-7 LATEST TIMESTAMP Method 10-8 LATEST TIMESTAMP Method: Time Zones 10-10 EARLIEST TIMESTAMP Method 10-11 OVERWRITE Method 10-12 ADDITIVE Method 10-13 AVERAGE Method 10-14 DISCARD Method 10-15 MAXIMUM and MINIMUM Methods 10-16 PRIORITY GROUP and SITE PRIORITY Methods 10-17 Managing Priority Groups 10-18 Defining Priority Groups Example 10-19

ix

PRIORITY GROUP Method: Dynamic Ownership 10-21 SITE PRIORITY Method: Static Site Ownership 10-22 Managing Site Priorities 10-23 Defining Site Priorities 10-24 Adding Site Priority Sites 10-25 Target Environments for Conflict Resolution Methods 10-26 Conflicts Resolution Methods for Uniqueness Conflicts 10-27 Creating Unique Conflict Resolution Method 10-28 Generating Uniqueness by Appending 10-29 Avoiding Uniqueness Conflicts by Discarding 10-30 Delete Conflicts 10-31 Auditing Conflict Resolution 10-32 Managing Conflict Resolution Statistics 10-33 Auditing Conflict Resolution 10-34 Minimizing Propagated Data10-36 Minimizing Communication 10-37 Further Optimization 10-38 The SEND_OLD_VALUES Procedure 10-39 The COMPARE_OLD_VALUES Procedure 10-41 SEND_OLD_VALUES and COMPARE_OLD_VALUES: Example 10-43 Implementing Conflict Resolution 10-44 Demonstration 10-45 Demonstration: Problem Declaration 10-46 Demonstration: Conflict Resolution Columns 10-47 Demonstration: Conflict Resolution Trigger 10-48 Demonstration: Implementing Conflict Resolution 10-49 Demonstration: Create Column Groups 10-50 Demonstration: Define Site Priority 10-51 Demonstration: Register Conflict Resolution Methods 10-52 Summary 10-54 Practice 10 Overview 10-55 11 Adding Master Sites Objectives 11-2 Adding Master Sites to a Master Group 11-3 Adding a Master Site with Simple Online Instantiation 11-4 Adding a Master Site with a Large Amount of Data 11-5 What Is Offline Instantiation? 11-6 DBMS_OFFLINE_OG Package 11-7 Using Offline Instantiation 11-8

Extended Availability of Replication Environment 11-18 Adding a Master Site without Quiescing 11-19 Examining the Results of the SPECIFY_NEW_MASTERS Procedure 11-24 Adding a Master Site without Quiescing 11-25 The ADD_NEW_MASTERS Procedure 11-26 ADD_NEW_MASTERS: Example 11-29 Examining the Results of ADD_NEW_MASTERS 11-30 Adding a Master Site without Quiescing 11-31 RESUME_PROPAGATION_TO_MDEF Procedure 11-32 Adding a Master Site without Quiescing 11-33 Adding New Master Sites 11-35 When to Add Master Sites without Quiescing 11-37 Adding a Master Site without Quiescing 11-38 Instantiating New Master Sites 11-39 Data Dictionary Views 11-40 Diagnosing Problems with New Master Sites 11-41 Summary 11-42 Practice 11 Overview 11-43 12 Materialized Views Objectives 12-2 Overview 12-3 Materialized Views 12-4 Refreshing Materialized Views 12-5 Complete Refresh 12-6 Fast Refresh 12-7 Force Refresh 12-8 Triggering a Refresh Operation 12-9 Manual Refresh 12-10 Materialized View Logs 12-11 Primary Key Materialized Views 12-14 ROWID Materialized Views 12-15 Object Materialized Views 12-16 Creating Data Subsets with Materialized Views 12-17 Materialized View Subset Types 12-18 Row Subsets for Materialized Views 12-19 Column Subsets for Updatable Materialized Views 12-20 Many-To-One Subquery Subsets 12-21 One-To-Many Subquery Subsets 12-22 Many-To-Many Subquery Subsets 12-23

xi

Data Subsets with a Multilevel Subquery 12-24 Data Subsets with Multitier Materialized Views 12-25 Complex Materialized Views 12-26 Complex Materialized Views: Rules 12-27 Comparison between Simple and Complex Materialized Views 12-28 Updatable Materialized Views 12-29 Features of Updatable Materialized Views 12-31 Updatable Materialized View Limitations 12-32 Deferred Constraints for Updatable Materialized Views 12-33 Updatable Materialized View Components 12-34 Updatable Materialized View Architecture 12-35 Updatable Materialized View Updating 12-38 Propagating Changes to the Master Table 12-39 Refreshing an Updatable Materialized View 12-40 Data Flow in a Hybrid Replication System 12-41 Multitier Materialized Views 12-42 Master Materialized View Architecture 12-44 Master Materialized Views 12-45 Updatable Multitier Materialized View Restrictions 12-46 Multitier Materialized Views and Conflict Resolution 12-47 For More Information 12-48 Summary 12-49 Practice 12 Overview 12-50 13 Creating and Managing Materialized Views Objectives13-2 Materialized View Implementation Steps 13-3 Materialized View Implementation: Design 13-4 Preparing the Master Site 13-5 Granting Privileges to Accounts at Master Sites 13-6 Materialized View Implementation: Creating a Materialized View Log 13-9 Creating Materialized View Logs 13-10 Materialized View Site Configuration 13-11 Preparing the Materialized View Site: Creating Accounts 13-12 Assigning Privileges 13-13 DBMS_REPCAT_ADMIN. GRANT_ADMIN_ANY_SCHEMA 13-14 DBMS_DEFER_SYS. REGISTER_PROPAGATOR 13-15

xii

Creating Database Links at the Materialized View Site 13-16 Scheduling Push and Purge Jobs at the Materialized View Site 13-17 Materialized View Implementation: Creating the Materialized View 13-18 Examples of Creating Materialized Views 13-19 Materialized View Implementation: Examples of Refresh Intervals 13-20 Materialized View Implementation: Specifying Rollback Segments 13-21 Materialized View Implementation: Granting Access Privileges 13-22 Materialized View Registration 13-23 The DBA_REGISTERED_MVIEWS View 13-26 Monitoring Refresh Operations 13-27 Database Configuration for Master Materialized Views 13-28 Creating Multitier Materialized Views 13-30 Multitier Materialized View Administration 13-32 Multitier Materialized View Registration 13-33 Creating Materialized View Sites with OEM 13-34 Creating the Materialized View Administrators 13-35 Creating Schemas at the Materialized View Site 13-36 Specifying Options for the Push Job 13-37 Materialized View Log Storage Considerations 13-38 Materialized View Log Types 13-39 Materialized View Log Filter Columns 13-40 Troubleshooting Fast Refreshable Materialized View Creation Errors 13-41 The EXPLAIN_MVIEW Procedure 13-42 MV_CAPABILITIES_TABLE 13-45 EXPLAIN_MVIEW Procedure Results 13-46 Materialized View Data Dictionary Views 13-47 Diagnosing Problems with Materialized View Logs 13-48 Purging Materialized View Logs 13-49 Reorganizing Materialized View Logs 13-52 Reorganizing Master Tables with Materialized View Logs 13-53 Reorganizing Master Tables: Example 13-54 Other Data Dictionary Views with Information about Materialized Views 13-55 Summary 13-56 Practice 13 Overview 13-57 14 Using Materialized View Groups and Refresh Groups Objectives 14-2 Master Group Definition 14-3 Materialized View Group Definition 14-4 Replication Groups for Materialized View (MView) Sites 14-5 MView Group Creation 14-6

xiii

Creating a Master Replication Group 14-7 Adding a Master Table to the Master Group 14-8 Creating a Materialized View Replication Group 14-9 Creating Updatable Materialized Views 14-10 Creating Objects in a Materialized View Group 14-11 Materialized View Refresh Groups 14-13 Refresh Groups 14-14 Refresh Groups for Materialized View Sites 14-15 Creating a Refresh Group 14-16 Adding Materialized Views to a Refresh Group 14-19 Refreshing Materialized Views in a Group 14-20 Refreshing a Materialized View Group: Examples 14-21 Using Oracle Enterprise Manager (OEM) 14-22 Step 1: Select Target Master Site 14-23 Step 2: Select Target Master Groups 14-24 Step 3: Select Master Objects 14-25 Step 4: Set Materialized View Defaults 14-26 Step 5: Optional Customization 14-27 Step 6: Review Setup to Finish 14-28 Monitoring Materialized Views with OEM 14-29 Creating Refresh Groups with OEM 14-30 Materialized View Refresh Groups 14-31 Troubleshooting Problems with Materialized View Refreshing 14-32 Rollback Segments and Refreshing 14-33 Summary 14-34 Practice 14 Overview 14-35 15 Resynchronizing Datain a Replication System Objectives 15-2 Replicated Database Recovery 15-3 Media Failure in a Replication Site 15-4 Incomplete Recovery of Replicated Objects 15-5 Unsynchronized Replicated Tables 15-6 Determining Differences Between Replicated Tables 15-7 DIFFERENCES Procedure 15-8 RECTIFY Procedure 15-10 Example of Resolving Table Differences 15-11 Resolving Table Differences 15-12 Usage Guidelines 15-19

xiv

Modifying Replicated Tables 15-20 Error Transactions 15-24 Unresolved Errors 15-25 DBMS_DEFER_QUERY.GET_XX_ARG Example 15-29 Querying DEFERROR with OEM15-30 Manually Resolving Errors 15-31 Methods of Instantiation 15-33 Steps Used for Offline Instantiation of a Deployment Template 15-34 Steps Used for Offline Instantiation of a Materialized View Site 15-35 Changing the Master Site for a Materialized View Group 15-36 Summary 15-38 Practice 15-1 Overview 15-39 Practice 15-2 Overview 15-40 16 Creating Deployment Templates Objectives 16-2 Deployment Template Concepts 16-3 Components of Deployment Templates 16-4 Using Deployment Templates 16-5 Online Instantiation 16-6 Offline Instantiation 16-7 Supported Materialized View Types 16-8 Deployment Template Design: Creating Column Subsets 16-9 Deployment Template Design: Adding Objects 16-11 Deployment Template Design: Example 16-12 Deployment Template Design: Checklist 16-14 Flowchart for Using Deployment Templates 16-15 Creating Deployment Templates with OEM 16-16 Step 1: Create Deployment Template 16-17 Step 2: Add Materialized Views 16-18 Step 3: Choose Subsetting Options 16-19 Step 4: Apply Row Subsetting 16-20 Step 5: Define Parameters 16-21 Step 5: Define Parameters 16-23 Step 6: Apply Column Subsetting 16-24 Step 7: Add Objects to Deployment Template 16-25 Step 8: Summary 16-26 Authorizing Users for a Private Template 16-27 Viewing Deployment Templates 16-28 Packaging the Deployment Template 16-29 Step 1: Select Template and Template Type 16-31

xv

Step 2: Specify Materialized View Proxy 16-32 Step 3: Select Users 16-33 Step 4: Specify Parameter Values 16-34 Step 5: Set the Refresh Schedule 16-35 Step 6: Select Schemas 16-36 Step 7: Template Script Generation 16-37 Instantiating the Deployment Template at the Materialized View Site 16-38 Offline Instantiation 16-40 Refreshing after Offline Instantiation 16-41 Altering Deployment Templates Before Instantiation 16-42 Copying Deployment Templates 16-43 Comparing Deployment Templates 16-44 Local Materialized View Control 16-45 Summary 16-46 Practice 16 Overview (Optional) 16-47 17 Procedural Replication Objectives 17-2 Procedural Replication 17-3 Guidelines for Using Procedural Replication 17-4 Procedural Replication Sequence of Events 17-6 Creating Procedural Replication 17-7 Example of Procedural Replication 17-13 Restrictions for Procedural Replication 17-15 Summary 17-16 Practice 17 Overview 17-17 A Practices B Solutions

xvi

Das könnte Ihnen auch gefallen