CERN IT Department CH-1211 Genève 23 Switzerland www.cern.ch/i t Streams new features in 11g Zbigniew Baranowski.

Slides:



Advertisements
Similar presentations
Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
Advertisements

The New Data Pump Caleb Small Next generation Import / Export New features Better performance Improved security Versatile interfaces.
GoldenGate Monitoring and Troubleshooting
12 Copyright © 2005, Oracle. All rights reserved. Proactive Maintenance.
CERN - IT Department CH-1211 Genève 23 Switzerland t Transportable Tablespaces for Scalable Re-Instantiation Eva Dafonte Pérez.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 11: Monitoring Server Performance.
Database level monitoring Golden Gate Maciej Grzybek Replication Technology Evolution for ATLAS Data Workshop.
Oracle 10g Database Administrator: Implementation and Administration Chapter 14 Proactive Maintenance.
CERN - IT Department CH-1211 Genève 23 Switzerland t Oracle and Streams Diagnostics and Monitoring Eva Dafonte Pérez Florbela Tique Aires.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 11 Managing and Monitoring a Windows Server 2008 Network.
CERN - IT Department CH-1211 Genève 23 Switzerland t STREAMS Resynchronization Scenarios and Tests LCG 3D CERN September 2006.
AGENDA Tools used in SQL Server 2000 Graphical BOL Enterprise Manager Service Manager CLI Query Analyzer OSQL BCP.
1 Chapter Overview Transferring and Transforming Data Introducing Microsoft Data Transformation Services (DTS) Transferring and Transforming Data with.
Oracle 11g Real Application Testing: Avoiding Performance Regressions with SQL Performance Analyzer Khaled Yagoub, Pete Belknap, Benoit Dageville, Karl.
Adapted from Afyouni, Database Security and Auditing DB Auditing Examples (Ch. 9) Dr. Mario Guimaraes.
ETL By Dr. Gabriel.
CERN IT Department CH-1211 Genève 23 Switzerland t Integrating Lemon Monitoring and Alarming System with the new CERN Agile Infrastructure.
Module 18 Monitoring SQL Server 2008 R2. Module Overview Monitoring Activity Capturing and Managing Performance Data Analyzing Collected Performance Data.
Introduction to the Enterprise Library. Sounds familiar? Writing a component to encapsulate data access Building a component that allows you to log errors.
12 Copyright © 2007, Oracle. All rights reserved. Database Maintenance.
CERN - IT Department CH-1211 Genève 23 Switzerland t Monitoring the ATLAS Distributed Data Management System Ricardo Rocha (CERN) on behalf.
Recovery Manager Overview Target Database Recovery Catalog Database Enterprise Manager Recovery Manager (RMAN) Media Options Server Session.
Chapter 7 Making Backups with RMAN. Objectives Explain backup sets and image copies RMAN Backup modes’ Types of files backed up Backup destinations Specifying.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
Informix IDS Administration with the New Server Studio 4.0 By Lester Knutsen My experience with the beta of Server Studio and the new Informix database.
IT 456 Seminar 5 Dr Jeffrey A Robinson. Overview of Course Week 1 – Introduction Week 2 – Installation of SQL and management Tools Week 3 - Creating and.
Oracle9i Performance Tuning Chapter 12 Tuning Tools.
Module 6: Implementing SQL Server Replication in an Enterprise Environment.
CERN - IT Department CH-1211 Genève 23 Switzerland t DB Development Tools Benthic SQL Developer Application Express WLCG Service Reliability.
1 Chapter Overview Preparing to Upgrade Performing a Version Upgrade from Microsoft SQL Server 7.0 Performing an Online Database Upgrade from SQL Server.
1 Chapter Overview Performing Configuration Tasks Setting Up Additional Features Performing Maintenance Tasks.
CERN IT Department CH-1211 Genève 23 Switzerland t Internet Services Overlook of Messaging.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
Page 1. Data Integration Using Oracle Streams A Case Study Session #:
Continuous DB integration testing with RAT „RATCOIN”
37 Copyright © 2007, Oracle. All rights reserved. Module 37: Executing Workflow Processes Siebel 8.0 Essentials.
ESRI User Conference 2004 ArcSDE. Some Nuggets Setup Performance Distribution Geodatabase History.
Power at Your Fingertips –Overlooked Gems in Oracle EM John Sheaffer Principal Sales Consultant – Oracle Corporation.
SQL Server 2005 Implementation and Maintenance Chapter 12: Achieving High Availability Through Replication.
CERN IT Department CH-1211 Genève 23 Switzerland t Application security (behind Oracle roles and profiles) Miguel Anjo 8 th July 2008 Database.
CERN - IT Department CH-1211 Genève 23 Switzerland t Oracle Real Application Clusters (RAC) Techniques for implementing & running robust.
EGEE-II INFSO-RI Enabling Grids for E-sciencE EGEE and gLite are registered trademarks Implementation and performance analysis of.
CERN IT Department CH-1211 Genève 23 Switzerland t MSG Status update Daniel Rodrigues.
CERN IT Department CH-1211 Genève 23 Switzerland t DBA Experience in a multiple RAC environment DM Technical Meeting, Feb 2008 Miguel Anjo.
Differences Training BAAN IVc-BaanERP 5.0c: Application Administration, Customization and Exchange BaanERP 5.0c Tools / Exchange.
CERN IT Department CH-1211 Genève 23 Switzerland t Streams Service Review and Outlook Distributed Database Workshop PIC, 20th April 2009.
1 Copyright © 2005, Oracle. All rights reserved. Following a Tuning Methodology.
CERN IT Department CH-1211 Genève 23 Switzerland t Streams Service Review Distributed Database Workshop CERN, 27 th November 2009 Eva Dafonte.
Distributed Logging Facility Castor External Operation Workshop, CERN, November 14th 2006 Dennis Waldron CERN / IT.
3 Copyright © 2007, Oracle. All rights reserved. Using the RMAN Recovery Catalog.
CERN IT Department CH-1211 Genève 23 Switzerland t COOL Performance Tests ATLAS Conditions Database example Romain Basset, IT-DM October.
Status of tests in the LCG 3D database testbed Eva Dafonte Pérez LCG Database Deployment and Persistency Workshop.
CERN IT Department CH-1211 Geneva 23 Switzerland t Distributed Database Operations Workshop CERN, 17th November 2010 Dawid Wójcik Streams.
1 11g NEW FEATURES ByVIJAY. 2 AGENDA  RESULT CACHE  INVISIBLE INDEXES  READ ONLY TABLES  DDL WAIT OPTION  ADDING COLUMN TO A TABLE WITH DEFAULT VALUE.
C Copyright © 2006, Oracle. All rights reserved. Integrating with Oracle Streams.
10 Copyright © 2007, Oracle. All rights reserved. Using RMAN Enhancements.
20 Copyright © 2006, Oracle. All rights reserved. Best Practices and Operational Considerations.
CERN IT Department CH-1211 Genève 23 Switzerland t Load testing & benchmarks on Oracle RAC Romain Basset – IT PSS DP.
Marcin Bogusz CERN, PH-CMG WLCG Collaboration Workshop CMS online/offline replication Online/offline replication via Oracle Streams WLCG Collaboration.
WLCG Collaboration Workshop CMS online/offline replication
SQL Database Management
GoldenGate Performance Tuning
Streams Service Review
How To Pass Oracle 1z0-060 Exam In First Attempt?
STREAMS failover and resynchronization
Populating a Data Warehouse
Populating a Data Warehouse
Oracle Streams Performance
Populating a Data Warehouse
Presentation transcript:

CERN IT Department CH-1211 Genève 23 Switzerland t Streams new features in 11g Zbigniew Baranowski

CERN IT Department CH-1211 Genève 23 Switzerland t Internet Services Zbigniew Baranowski 2 Outline Combined capture and apply Automatic split and merge procedures Compare and converge Streams performance advisor Other features

CERN IT Department CH-1211 Genève 23 Switzerland t Internet Services Zbigniew Baranowski 3 Combined capture and apply Optimization of data flow management Uses direct connections between capture and apply process It is applied automatically if required conditions are satisfied

CERN IT Department CH-1211 Genève 23 Switzerland t Internet Services Zbigniew Baranowski 4 Combined capture and apply CC&A requirements – The capture process's queue must have a single publisher, and it must be the capture process – A propagation must be configured between the capture process's queue and the apply process's queue. There can be no intermediate queues – Each apply process that applies changes from the same source database must use a different queue

CERN IT Department CH-1211 Genève 23 Switzerland t Internet Services Zbigniew Baranowski 5 Combined capture and apply Improved flow control (new capture process behavior) –No subscribers => capturing paused –Apply or propagation disabled => target removed from subscribers list => no LCRs accumulation in source queue –Target re-enabled => target added to the subscribers list => automatic re-capturing of missing changes –Controlling the oldest applied SCN of subscribers –Constant max queues capacity messages for source queue 1000 messages for destination queue –No spilling from queues Max throughput increased about x10

CERN IT Department CH-1211 Genève 23 Switzerland t Internet Services Zbigniew Baranowski 6 Combined capture and apply Point in time recovery automatic handling –No additional steps are required to restart replication –Capture needs an access to the old archive logs before recovery –Recovery steps Stop capture, apply and propagation Perform point in time recovery Start apply, propagation and capture Start SCN is determinated automatically

CERN IT Department CH-1211 Genève 23 Switzerland t Internet Services Zbigniew Baranowski 7 Combined capture and apply

CERN IT Department CH-1211 Genève 23 Switzerland t Internet Services Zbigniew Baranowski 8 Automatic split & merge Are split & merge procedures needed with combined capture and apply? Split of broken stream procedure is required: –to keep replicas in archive log window –to reduce number of LCRs to be re-captured by capture process Start SCN = min {SCN app1, SCN app2, …} All recaptured LCRs will be propagated to all destinations, but applied only by one.

CERN IT Department CH-1211 Genève 23 Switzerland t Internet Services Zbigniew Baranowski 9 Automatic split & merge Replacement of our custom scripts Three ways of performing split and merge operation –SQL script generation for manual execution –Splitting and merging procedures DBMS_STREAMS_ADM.SPLIT_STREAMS DBMS_STREAMS_ADM.MERGE_STREAMS –Automatic replication management (new in 11.2) New capture parameters –split_threshold –merge_theshold Monitor job running periodically

CERN IT Department CH-1211 Genève 23 Switzerland t Internet Services Zbigniew Baranowski 10 Automatic split & merge DBA_STREAMS_SPLIT_MERGE DBA_STREAMS_SPLIT_MERGE_HIST

CERN IT Department CH-1211 Genève 23 Switzerland t Internet Services Zbigniew Baranowski 11 Compare and converge DBMS_COMPARSION –Shared object synchronization package Compare rows in an object at 2 database Converge objects in case of differences –Supported database object types Tables Single-tables views Materialized views Synonyms for tables, single-tables views and materialized views –Version supporting: Local >= 11.1 Remote >=10.1.0

CERN IT Department CH-1211 Genève 23 Switzerland t Internet Services Zbigniew Baranowski 12 Compare and converge –Comparison against different object types e.g. table vs. materialized view Column level synchronization –Scan options Identifying row differences (in separate table) Random portion of data –Percentage of data to be scanned –Cyclical way Custom portion of data (rowid range) –No support for: LONG, LONG RAW, ROWID, CLOB, NCLOB, BLOB, BFILE User defined types

CERN IT Department CH-1211 Genève 23 Switzerland t Internet Services Zbigniew Baranowski 13 Compare and converge DBA_COMPARISONGeneral information about comparsions in the local databases DBA_COMPARISON_COLUMNSInformation about columns compared by each comparsion in local database DBA_COMPARISON_SCANInformation about each scan run result DBA_COMPARISON_SCAN_VALUESInformation about range of rows compared during scan DBA_COMPARISON_ROW_DIFDetailed information about row differences found in the each scan run. Populated when compare run with perform_row_dif parameter.

CERN IT Department CH-1211 Genève 23 Switzerland t Internet Services Zbigniew Baranowski 14 Compare and converge Compare & converge steps –Create an comparison on object DBMS_COMPARISON.CREATE_COMPARISON –Perform comparison DBMS_COMPARISON.COMPARE –If necessary do the conversion DBMS_COMPARISON.CONVERGE –Local wins –Remote wins

CERN IT Department CH-1211 Genève 23 Switzerland t Internet Services Zbigniew Baranowski 15 Compare and converge

CERN IT Department CH-1211 Genève 23 Switzerland t Internet Services Zbigniew Baranowski 16 Compare and converge

CERN IT Department CH-1211 Genève 23 Switzerland t Internet Services Zbigniew Baranowski 17 Compare and converge Test result for artificial data with data set of 20 x varchar2 columns 17B each – Comparisons of consistent data– 18 MB/s inconsistent data – 1,7 MB/s purged table – 6 MB/s – Convergence of inconsistent data – 4 MB/s purged table – 3,5 MB/s

CERN IT Department CH-1211 Genève 23 Switzerland t Internet Services Zbigniew Baranowski 18 Streams performance advisor DBMS_STREAMS_ADVISOR_ADM – Analyzes local and remote (via dblink) database configuration – Provides Oracle streams topology representation –By assignment of to each stream path Streams performance statistics –Component level –Session level – Gathers streams related metrics with snapshots and compares them DBMS_STREAMS_ADVISOR_ADM.ANALYZE_CURRENT_PERFORMANCE; – Stores statistics in set of dictionary views

CERN IT Department CH-1211 Genève 23 Switzerland t Internet Services Zbigniew Baranowski 19 Streams performance advisor dictionary views DBA_STREAMS_TP_COMPONENT contains information about each Oracle Streams component at each database DBA_STREAMS_TP_COMPONENT_LINK contains information about how messages flow between Oracle Streams components DBA_STREAMS_TP_COMPONENT_STAT contains temporary performance statistics and session statistics about each Oracle Streams component. DBA_STREAMS_TP_DATABASE contains basic information about each database that contains Oracle Streams components (name, version, last advisor run etc.) DBA_STREAMS_TP_PATH_BOTTLENECK contains temporary information about Oracle Streams components that might be slowing down the flow of messages in a stream path

CERN IT Department CH-1211 Genève 23 Switzerland t Internet Services Zbigniew Baranowski 20 Streams performance advisor UTL_SPADV Package –Replacement of strmmon command line tool –Monitoring of whole stream path –Live streams data collector –Implemented with pl/sql procedures Stores measurements in db tables –Monitoring management UTL_SPADV.START_MONITORING UTL_SPADV.STOP_MONITORING UTL_SPADV.SHOW_STATS

CERN IT Department CH-1211 Genève 23 Switzerland t Internet Services Zbigniew Baranowski 21 Streams performance advisor UTL_SPADV Package –Pre run grant execute on SYS.DBMS_LOCK to … –Example output PATH 1 RUN_ID 3 RUN_TIME 2008-MAR-20 10:52:22 CCA Y | CAPTURE_HNS=>HUB.EXAMPLE.COM LMR 95% 0% 3.3% "" LMP (1) 86.7% 0% 11.7% "" LMB 86.7% 0% 11.7% "" CAP+PS E % 71.7% 11.7% "" | SPOKE1.EXAMPLE.COM=> 98.5% 0% 0.6% "" | "STRMADMIN"."DESTINATION_SPOKE1" | APPLY_SPOKE APR 93.3% 0% 6.7% "" APC 98.1% 0% 1.8% "" APS (1) % "CPU + Wait for CPU" | "NO BOTTLENECK IDENTIFIED"

CERN IT Department CH-1211 Genève 23 Switzerland t Internet Services Zbigniew Baranowski 22 Other features LCRs tracking – By adding a tag to each captured LCR – V$STREAMS_MESSAGE_TRACKING Synchronous Capture – Uses internal mechanism for capturing changes (DML only) instead of logminer

CERN IT Department CH-1211 Genève 23 Switzerland t Internet Services Zbigniew Baranowski 23 Other features Oracle Streams Jobs Use Oracle Scheduler instead of DBMS_JOB Automated Alerts for Oracle Streams Clients and Thresholds in EM Support for –Transparent Data Encryption –XMLType Columns –Virtual Columns –Compressed table (in 11.2)

CERN IT Department CH-1211 Genève 23 Switzerland t Internet Services Zbigniew Baranowski 24 Bugs discovered Propagation view population –After recreation of processes all propagation metrics in v$propagation_sender –Assigned to the Oracle development Unable to split a stream as strmadmin user – ORA-02289: sequence does not exist –Fixed by: grant select on STREAMS$_SM_ID to strmadmin

CERN IT Department CH-1211 Genève 23 Switzerland t Internet Services Zbigniew Baranowski 25 Conclusions Real time replication – About 10 times faster than 10g – Reduced resource consumption Easier streams recovery – Split & merge – Point in time recovery – Compare & converge synchronization More diagnostic and monitoring tools – Enterprise Manager – Streams Performance Advisor – LCRs tracking