C Copyright © 2006, Oracle. All rights reserved. Integrating with Oracle Streams.

Slides:



Advertisements
Similar presentations
CC SQL Utilities.
Advertisements

Copyright  Oracle Corporation, All rights reserved. 2 Java and Databases: An Overview.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 8 Application Data Auditing.
Database Security and Auditing: Protecting Data Integrity and Accessibility Chapter 8 Application Data Auditing.
Oracle Clustering and Replication Technologies CCR Workshop - Otranto Barbara Martelli Gianluca Peco.
Oracle Advanced Queuing Features Overview
1 How PL/SQL Applications Can Participate in a Service-Oriented Architecture Aino Andriessen AMIS.
CERN IT Department CH-1211 Genève 23 Switzerland t Streams new features in 11g Zbigniew Baranowski.
Messaging Technologies Group: Yuzhou Xia Yi Tan Jianxiao Zhai.
Presentation #36693 Presentation #36693 Oracle High Availability Solutions in a Nutshell Daniel T. Liu Senior Technical Consultant First American Real.
Adapted from Afyouni, Database Security and Auditing Database Application Auditing – Ch. 8.
Jason Morrill NCOAUG Training Day February, 2008
Advance Computer Programming Java Database Connectivity (JDBC) – In order to connect a Java application to a database, you need to use a JDBC driver. –
1 CSC 440 Database Management Systems JDBC This presentation uses slides and lecture notes available from
1 © 2006 Julian Dyke Streams Julian Dyke Independent Consultant juliandyke.com Web Version.
4 Copyright © 2009, Oracle. All rights reserved. Designing Mappings with the Oracle Data Integration Enterprise Edition License.
LSC Segment Database Duncan Brown Caltech LIGO-G Z.
Oracle Streams--Simplifying Information Sharing in Oracle10 g Patricia McElroy Product Manager Oracle Corporation Session id:
Data Replication with Advanced Replication & Oracle Streams John Abrahams Technology Sales Consultant Oracle Nederland.
5 Copyright © 2009, Oracle. All rights reserved. Right-Time Data Warehousing with OWB.
I Copyright © 2004, Oracle. All rights reserved. Introduction Copyright © 2004, Oracle. All rights reserved.
XA System-Link A Powerful Development Tool
20 Copyright © Oracle Corporation, All rights reserved. Oracle9 i Extensions to DML and DDL Statements.
9 Copyright © Oracle Corporation, All rights reserved. Creating and Managing Tables.
Copyright  Oracle Corporation, All rights reserved. 6 Accessing a Database Using the JDBC API.
3 Copyright © 2009, Oracle. All rights reserved. Accessing Non-Oracle Sources.
School of Computing and Management Sciences © Sheffield Hallam University Issues of Data Access 101(-ish) ways to access data from a database! ODBC One.
8 Copyright © 2005, Oracle. All rights reserved. Managing Data.
2 Using Administration Tools Objectives Using the Server Manager Line Mode Identifying administration applications supplied with the Oracle Enterprise.
Page 1. Data Integration Using Oracle Streams A Case Study Session #:
Copyright © 2002 ProsoftTraining. All rights reserved. Building Database Client Applications Using JDBC 2.0.
11 Copyright © 2004, Oracle. All rights reserved. Dealing with Database Corruption.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
8 Copyright © 2004, Oracle. All rights reserved. Managing Schema Objects.
7 Strategies for Extracting, Transforming, and Loading.
Collaborative Planning Training. Agenda  Collaboration Overview  Setting up Collaborative Planning  User Setups  Collaborative Planning and Forecasting.
Basics of JDBC Session 14.
23 Copyright © 2009, Oracle. All rights reserved. Oracle Business Intelligence Answers: Advanced Features.
ViaSQL Technical Overview. Viaserv, Inc. 2 ViaSQL Support for S/390 n Originally a VSE product n OS/390 version released in 1999 n Identical features.
34 Copyright © 2007, Oracle. All rights reserved. Module 34: Siebel Business Services Siebel 8.0 Essentials.
28 Copyright © 2009, Oracle. All rights reserved. Customizing the Oracle Business Intelligence User Interface.
HyperKVS Group Meeting Oracle Streams Dr. Volker Kuhr.
30 Copyright © 2009, Oracle. All rights reserved. Using Oracle Business Intelligence Delivers.
15 Copyright © 2004, Oracle. All rights reserved. Debugging Triggers.
Oracle 10g Database Administrator: Implementation and Administration Chapter 10 Basic Data Management.
Status of tests in the LCG 3D database testbed Eva Dafonte Pérez LCG Database Deployment and Persistency Workshop.
Copyright © 2007, Oracle. All rights reserved. Managing Items and Item Catalogs.
14 Copyright © 2004, Oracle. All rights reserved. Using Materialized Views.
D Copyright © 2004, Oracle. All rights reserved. Using Oracle XML Developer’s Kit.
Interstage BPM v11.2 1Copyright © 2010 FUJITSU LIMITED INTERSTAGE BPM ARCHITECTURE BPMS.
8 Copyright © 2005, Oracle. All rights reserved. Managing Schema Objects.
20 Copyright © 2006, Oracle. All rights reserved. Best Practices and Operational Considerations.
4 Copyright © 2004, Oracle. All rights reserved. Advanced Interface Methods.
E Copyright © 2006, Oracle. All rights reserved. Using SQL Developer.
2 Copyright © Oracle Corporation, All rights reserved. Basic Oracle Net Architecture.
1 Copyright © 2008, Oracle. All rights reserved. Repository Basics.
Copyright  Oracle Corporation, All rights reserved Building the Warehouse.
9 Copyright © 2004, Oracle. All rights reserved. Getting Started with Oracle Migration Workbench.
7 Copyright © 2004, Oracle. All rights reserved. Managing Schema Objects.
1 Copyright © 2005, Oracle. All rights reserved. Oracle Database Administration: Overview.
Slide 1 © 2016, Lera Technologies. All Rights Reserved. Oracle Data Integrator By Lera Technologies.
C Copyright © 2009, Oracle. All rights reserved. Using SQL Developer.
2 Copyright © 2008, Oracle. All rights reserved. Building the Physical Layer of a Repository.
11 Copyright © 2009, Oracle. All rights reserved. Enhancing ETL Performance.
MQ Series Cross Platform Dominant Messaging sw – 70% of market
ODBC, OCCI and JDBC overview
Overview of MDM Site Hub
DATABASE MANAGEMENT SYSTEM
MQ Series Cross Platform Dominant Messaging sw – 70% of market
Presentation transcript:

C Copyright © 2006, Oracle. All rights reserved. Integrating with Oracle Streams

Copyright © 2006, Oracle. All rights reserved. C - 2 Objectives After completing this lesson, you should be able to do the following: Describe how Streams works in a heterogeneous environment Describe how Oracle Streams can be used to integrate data from other systems

Copyright © 2006, Oracle. All rights reserved. C - 3 Oracle-to-Oracle Data Sharing When configuring Streams between two Oracle databases, you configure different components at each site. In a heterogeneous environment, configuration is slightly different. Oracle Capture Apply Oracle Propagation Capture Apply

Copyright © 2006, Oracle. All rights reserved. C - 4 Oracle to Non-Oracle Data Sharing Non-Oracle database Oracle Apply Gateway Capture Heterogeneous Services

Copyright © 2006, Oracle. All rights reserved. C - 5 Oracle to Non-Oracle Data Sharing The capture process functions the same way. The apply process is configured at the Oracle database. No staging queue is created on the non-Oracle database. Only basic DML operations are supported. Captured DDL changes cannot be applied on the non- Oracle database. Error handlers and conflict handlers are not supported. –Conflict detection is supported.

Copyright © 2006, Oracle. All rights reserved. C - 6

Copyright © 2006, Oracle. All rights reserved. C - 7 Oracle to Non-Oracle Data Type Support When applying changes to a non-Oracle database, an apply process applies changes made to columns of only the following data types: CHAR, VARCHAR2 NCHAR, NVARCHAR2 NUMBER, DATE, RAW TIMESTAMP TIMESTAMP WITH TIME ZONE TIMESTAMP WITH LOCAL TIME ZONE INTERVAL YEAR TO MONTH INTERVAL DAY TO SECOND

Copyright © 2006, Oracle. All rights reserved. C - 8 Configuring an Apply Process for an Oracle to Non-Oracle Environment 1.Configure Oracle Net Services, the gateway, and any needed database links (using an explicit CONNECT TO clause). 2.Create an apply process: –Use the CREATE_APPLY procedure of DBMS_APPLY_ADM. –Specify a database link for the apply_database_link parameter. 3.Specify apply process rules. 4.Configure the apply process. 5.Instantiate the tables at the non-Oracle database. 6.Start the Streams processes at the source site.

Copyright © 2006, Oracle. All rights reserved. C - 9

Copyright © 2006, Oracle. All rights reserved. C - 10 Instantiating Tables in an Oracle to Non-Oracle Environment To instantiate tables at the non-Oracle site, perform the following steps: 1.Create tables at the non-Oracle system (if they do not already exist). 2.Prepare the tables for instantiation at the Oracle database. 3.Populate the non-Oracle table with data from the Oracle database that is consistent to a single SCN. 4.Set the instantiation SCN for the table at the Oracle database.

Copyright © 2006, Oracle. All rights reserved. C - 11

Copyright © 2006, Oracle. All rights reserved. C - 12 Non-Oracle to Oracle Data Sharing The user application is responsible for assembling changes at the non-Oracle database as LCRs and enqueuing into the Oracle database. Apply process remains the same: –Rule-based transformations during apply –Conflict detection and resolution Non-Oracle database Oracle Apply User application Enqueue Get changes

Copyright © 2006, Oracle. All rights reserved. C - 13 Non-Oracle to Oracle Streams Configuration 1.Create a Streams queue in the Oracle database. 2.Create an apply process with the apply_captured parameter set to FALSE in the Oracle database. 3.Add rules for LCRs to the apply process rule sets. 4.Start the apply process in the Oracle database. 5.At the non-Oracle site, create a procedure that constructs a row LCR and then enqueues it into the newly created Streams queue. 6.Use this procedure to begin creating and enqueuing LCRs.

Copyright © 2006, Oracle. All rights reserved. C - 14

Copyright © 2006, Oracle. All rights reserved. C - 15 Instantiation in a Non-Oracle to Oracle Environment It is not possible to automatically instantiate tables in an Oracle database whose source tables are in a non-Oracle database. Use the following general steps to manually instantiate the tables: –Use a non-Oracle utility to export the table as a flat file at the source site. –Create an empty table matching the exported table at the destination site. –Use SQL*Loader to load the contents of the flat file into the new table at the destination site.

Copyright © 2006, Oracle. All rights reserved. C - 16 Non-Oracle to Non-Oracle Data Sharing An Oracle database must act as an intermediate database between two non-Oracle databases: The custom user application assembles changes at one non-Oracle database and enqueues them in the Oracle database. The apply process in an Oracle database applies changes to a different non-Oracle database using Heterogeneous Services and a gateway.

Copyright © 2006, Oracle. All rights reserved. C - 17 Oracle Messaging Gateway The following non-Oracle systems are supported: IBM WebSphere MQ JMS (using Oracle JMS) IBM Websphere MQ Series TIBCO TIB/Rendezvous IBM Websphere MQ Series Oracle JDBC Propagation engine MQ driver Messaging Gateway agent

Copyright © 2006, Oracle. All rights reserved. C - 18 XML LCRs Streams has an XML schema for its LCR. Oracle supports multiple techniques for enqueuing these XML LCR messages into the Streams queues: –OCI –PL/SQL –JMS Some third-party vendors of heterogeneous database change capture also publish their own XML schemas for changes.

Copyright © 2006, Oracle. All rights reserved. C - 19 Oracle Call Interface for XML LCRs Is the preferred method of enqueuing the non-Oracle changes into the Oracle database Supports a complete set of transactional capabilities Can use OCIAQEnq or OCIAQEnqArray to enqueue XML LCRs Automatically converts the XML LCRs into the internal LCR representation used by Streams

Copyright © 2006, Oracle. All rights reserved. C - 20 PL/SQL Interface for LCRs Enqueues a single LCR or an array of LCRs Can be invoked from OCI programs Works with user-constructed LCRs, not XML LCRs Uses procedures in the DBMS_AQ package

Copyright © 2006, Oracle. All rights reserved. C - 21 Java Message Service (JMS) Java Message Service (JMS) is a messaging standard defined by Sun Microsystems, Oracle, IBM, and other vendors ( javax.jms package). The Oracle Java Message Service (OJMS) provides a Java API for Oracle, based on the JMS standard ( oracle.jms package): –Supports the standard JMS interfaces –Contains extensions to support administrative operations and other features that are not a part of the standard JMS support for Oracle Streams is available in both Oracle9 i Database Release 2 and Oracle Database 10g.

Copyright © 2006, Oracle. All rights reserved. C - 22 For More Information Messaging Gateway and PL/SQL Enqueue API: –Oracle Streams Advanced Queuing User’s Guide and Reference Heterogeneous support: –Oracle Heterogeneous Connectivity Administrator’s Guide –Oracle Transparent Gateway Administrator’s Guide Integration applications: –Oracle Streams Advanced Queuing User’s Guide and Reference –Streams Advanced Queuing Java API Reference –Java Developer's Guide –Oracle Call Interface Programmer’s Guide

Copyright © 2006, Oracle. All rights reserved. C - 23 Summary In this lesson, you should have learned how to: Describe how Streams works in a heterogeneous environment Describe how Oracle Streams can be used to integrate data from other systems

Copyright © 2006, Oracle. All rights reserved. C - 24