oracle database 12c multitenant for consolidation

72
Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 1 Oracle Database 12c Multitenant for Consolidation Rony Ihsan Senior Technical Advisor

Upload: yudi-herdiana

Post on 17-Jul-2015

203 views

Category:

Education


7 download

TRANSCRIPT

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.1

    Oracle Database 12cMultitenant for Consolidation

    Rony IhsanSenior Technical Advisor

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.2

    Performance

    Management

    Identity &

    Access Mgmt

    Middleware

    Platform

    Data Integration

    Operating

    SystemsMonitoring & Management Virtualisation

    Content & Collaboration

    Business Intelligence

    Cloud

    Continuous InnovationAcquisitions + Development

    Complete Open Integrated Best-of-Breed

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.3

    Security & Compliance

    Big Data & Data Warehousing

    Consolidation

    Database as a Service

    Application Development

    High Availability

    In-Memory

    Performance & Scalability

    Data Optimization

    Released on June 25th 2013

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.4

    Database Consolidation on CloudsTraditional consolidation methods

    C

    o

    n

    s

    o

    l

    i

    d

    a

    t

    i

    o

    n

    D

    e

    n

    s

    i

    t

    y

    Schema Consolidation

    Share Servers, OS & Database

    Virtual Machines

    Share Servers

    Clustered Databases

    Share Servers & OS

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.5

    C

    o

    n

    s

    o

    l

    i

    d

    a

    t

    i

    o

    n

    D

    e

    n

    s

    i

    t

    y

    Oracle MultitenantSimplifies consolidation, enables Database as a Service

    Share Servers, OS & Database

    Pluggable DatabasesClustered Databases

    Share Servers & OS

    Virtual Machines

    Share Servers

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.6

    Oracle Database ArchitectureRequires memory, processes and database files

    System Resources

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.7

    New Multitenant ArchitectureMemory and processes required at container level only

    System Resources

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.8

    Oracle Multitenant for ConsolidationMore efficient utilization of system resources

    System Resources

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.9

    00,5

    11,5

    22,5

    3

    CRM HCM ERP BI

    G

    B

    Pluggable Database

    MEMORY

    00,5

    11,5

    22,5

    3

    CRM HCM ERP BI DW

    G

    B

    Pluggable Database

    MEMORY

    Multitenant Scalability

    Only small increments in memory as additional PDBs are added

    00,5

    11,5

    22,5

    3

    CRM HCM ERP

    G

    B

    Pluggable Database

    MEMORY

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.10

    Multitenant Architecture

    Multitenant architecture can currently support up to 252 PDBs

    A PDB feels and operates identically to a non-CDB

    You cannot tell, from the viewpoint of a connected client, if youre using a PDB or a non-CDB

    Database Link

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.11

    Oracle Multitenant for Test and DevelopmentFast, flexible copy and snapshot of pluggable databases

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.12

    Multitenant for Simplified PatchingApply changes once, all pluggable databases updated

    Upgradein-place

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.13

    Multitenant for UpgradesFlexible choice when patching & upgrading databases

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.14

    Upgrading to MultitenantStep 1: Upgrade databases in-place

    Upgrade in Place

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.15

    Upgrading to MultitenantStep 2: Plug-in upgraded databases

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.16

    Upgrading to Multitenant

    No application changes required.

    Step 3. Change applications to work with MultitenantStep 3. Change applications to work with Multitenant

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.17

    Upgrade to Multitenant from Oracle Database 11gUpgrade 11g database and plug in

    Upgrade 11.2 database to 12.1 in place Place the non-CDB into read-only mode Connect to non-CDB and generate a

    description file (manifest) Shutdown the non-CDB Plug in non-CDB to CDB Post-plug script to remove redundant

    metadata for the Oracle system

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.18

    High Avaibility

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.19

    Storage failure Data recovery Backups

    Instance failure Server failure RAC rolling

    maintenance Performance

    scale-out Consolidation

    Continuous point-in-time recovery

    Granular repair of logical corruptions

    Transaction Table Database

    Database failure System failure Site failure Automatic database

    failover Lost-write protection Database rolling

    upgrade Offload read-only

    workload and backups

    Some migrations

    Online platform and application upgrades

    Bi-directional andmulti-master replication

    Distribute read-only & read-write workload

    An alternative to physical replication for site protection

    Flexible planned maintenance and heterogeneous migrations

    Zero downtime upgrades and migrations

    Five Steps to Maximize Availability

    ASM, RMAN

    Oracle RAC

    Flashback

    ActiveData Guard

    Oracle GoldenGate

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.20

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.21

    High Avaibility

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.22

    Real Application Cluster(RAC)

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.23

    Standard Oracle Architecture

    Instance Database

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.24

    Shared Nothing Architecture

    DatabaseInstance 1

    DatabaseInstance 2

    DatabaseInstance 3

    Table A

    Table B

    Table C

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.25

    Shared Disk Architecture

    Table ATable BTable C

    DatabaseInstance 1

    DatabaseInstance 2

    DatabaseInstance 3

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.26

    RAC Architecure

    DatabaseInstance 1

    DatabaseInstance 2

    DatabaseInstance 3

    Table ATable BTable C

    H

    i

    g

    h

    S

    p

    e

    e

    d

    I

    n

    t

    e

    r

    c

    o

    n

    n

    e

    c

    t

    CacheFusion

    Works with ALL applications High availability and scalability Runs on low cost, commodity

    hardware

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.27

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.28

    Oracle Real Application Clusters (RAC)

    Load Balancing Failover

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.29

    High Avaibility

    ASM

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.30

    Automatic Storage Management( A S M)

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.31

    Data Mirroring with ASM

    ASM mirrors data across low costmodular storage arrays

    Automatically remirrors when disk or array fails

    ASM is free

    Next Release Sneak Preview Automatically repair corrupt

    blocks from mirror copy Temporarily freeze I/O to

    unresponsive storage and replay writes when it returns

    Designed to Tolerate Failure of Low Cost Storage

    Database

    Storage

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.32

    Automatic Storage Management

    Low Cost Eliminates need for volume manager

    and file systems Works well with inexpensive,

    modular storage Gives better storage utilization Easy up to 50% less DBA/Sys

    Admin work Fault tolerant Raw disk performance Capacity on demand Automatic I/O load balancing Introduce New Features 11g R2 :

    ASM Cluster File System (ACFS)

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.33

    ASM Lowers Data Management Costs

    0

    1

    2

    3

    4

    5

    6

    7

    8

    N

    b

    r

    S

    t

    e

    p

    s

    Install Add Storage RemoveStorage

    MigrateStorage

    Tune I/O ManageSpace

    ASMTraditional

    7 76

    8

    6 6

    5

    2 2

    4

    0 0

    Best way to save costs is to remove complexity

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.34

    High Avaibility

    Flashback

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.35

    Flashback Technology

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.36

    Flashback Correct errors at any level Database

    Flashback Database - restore database to time

    Table Flashback Table - restore contents of

    tables to time Flashback Drop - restore dropped

    table Row

    Flashback Query - restore individual rows

    Order

    Database

    Customer

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.37

    Investigate Errors using Time Navigation Flashback Query

    Query all data at point in time

    Tx 1

    Tx 2

    Tx 3

    select * from Emp AS OF 2:00 P.M. where

    select * from Emp VERSIONS BETWEEN2:00 PM and 3:00 PM where

    select * from FLASHBACK_TRANSACTION_QUERYwhere xid = 000200030000002D;

    Flashback Transaction Query See all changes made by a transaction

    Flashback Version Query See all versions of a row between

    times See transactions that changed the row

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.38

    High Avaibility

    RMAN

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.39

    Recover Manager( RMAN )

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.40

    RMAN - Best Tool for Repairing Corruptions RMANs deep integration with the database engine makes it the

    best tool for DB backup & recovery Smart

    Sophisticated backup and recovery strategies Fast

    Optimized backup to disk for fastest recovery No extra redo during backup Block level incremental backup

    Reliable Block contents validated during backup

    Easy Simple management with Enterprise Manager

    Supports over 20 Media Managers Veritas, Legato, Tivoli, HP, Oracle Secure Backup, etc.

    FREE

    Tape Libraries

    Oracle Database

    RMAN is used at thousands of enterprise sites

    Enterprise Manager & 3rd Party Tools

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.41

    Automated Disk Backup

    RMAN fully automates DB backup and recovery to disk

    Set and Forget Nightly incremental backup rolls

    forward recovery area backup Changed blocks are tracked in

    production DB Full scan is never needed

    Dramatically faster Blocks validated to prevent

    corruption of backup copy Use low cost ATA disk array for

    recovery areaTwo Independent Disk Systems

    Flash RecoveryArea

    Nightly ApplyValidatedIncremental

    ArchiveTo Tape

    DatabaseArea

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.42

    High Avaibility

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.43

    Data Guard / Active Data Guard( DRC )

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.44

    What Is Oracle Data Guard?

    Primarydatabase

    Standbydatabase

    Database Database copy

    Redo transport

    O

    r

    a

    c

    l

    e

    N

    e

    t

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.45

    Continuous redo shipment & apply

    Real-time Queries

    Oracle Data GuardLow-cost disaster recovery from site failure

    Standby Database

    ProductionDatabase

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.46

    Traditional Physical Standby DatabasesInvestment in Disaster Recovery only

    Applications, backups, reports run on production only

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.47

    With Oracle Active Data GuardOffload production reporting to standby

    Real-time Queries

    Standby Database

    ProductionDatabase

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.48

    With Oracle Active Data GuardOffload database backups to standby

    Standby Database

    ProductionDatabase

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.49

    With Oracle Active Data GuardTest changes

    ProductionDatabase

    Switch to snapshot standby for testing purposes Preserves zero data loss, although no real-time query or failover

    Standby Database

    Switch back to standby Backs out changes, applies production logs

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.50

    Simulation

    ProductionDatabase

    Physical StandbyDatabase

    1 HR.Regions = 5 records HR.Regions = 5 records

    Insert into HR.Regions Values (80, Solo)

    2

    Continuous redo shipping, validation, and apply

    3 HR.Regions = 6 records HR.Regions = 6 records

    Select * from HR.Regions4

    Reporting

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.51

    Simulation

    ProductionDatabase

    Physical StandbyDatabase

    tProducts = 10 records tProducts = 10 records

    Daily Activity1

    Continuous redo shipping, validation, and Apply

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.52

    Oracles Integrated HA Solution Set

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.53

    Oracle GoldenGate(OGG)

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.54

    Oracle GoldenGate 11gLow-Impact Real-Time Data Integration & Transactional Replication

    New DB/HW/OS/APP

    Fully Active Distributed DB

    Reporting Database

    Data Warehouse

    Global Data Centers

    ODS Data Integrator

    Zero Downtime Upgrade & Migration

    Query Offloading, Disaster Recovery

    Data Synchronization across the Enterprise

    Real-time BI, Operational Reporting, MDM

    Event Driven Architecture, SOA

    Highly Available / Disaster Recovery

    Log-based,changed data

    Database

    Message Bus

    Legacy

    Message Bus

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.55

    Databases O/S and PlatformsOracle GoldenGate Capture:

    Oracle

    DB2 for v 9.7

    DB2 for v 10 on z/OS

    Microsoft SQL Server for 2008 R1, R2

    Sybase ASE, 15.5

    Teradata

    Enscribe

    SQL/MP

    SQL/MX

    MySQL

    Oracle GoldenGate Delivery:

    All listed above, plus:

    TimesTen, IBM System I, Netezza & Greenplum

    ETL product

    Linux

    Sun Solaris

    Windows 2000, 2003, XP, 2008

    HP NonStop

    HP-UX

    IBM AIX

    IBM z Series

    zLinux

    55

    Oracle GoldenGate 11g Supported Platforms

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.56

    UnidirectionalQuery OffloadingZero-Downtime Migration

    Bi-DirectionalHot Standby orActive-Active for HA

    Peer-to-PeerLoad BalancingMulti-Master

    BroadcastData Distribution

    Integration/ConsolidationData Warehouse

    BPM

    BAM

    CEP

    Data Distributionvia Messaging

    Oracle GoldenGate Differentiator: Flexibility

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.57

    How Oracle GoldenGate Works

    SourceOracle & Non-OracleDatabase(s)

    TargetOracle & Non-Oracle

    Database(s)

    Capture: committed transactions are captured (and can be filtered) as they occur by reading the transaction logs.

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.58

    How Oracle GoldenGate Works

    SourceOracle & Non-OracleDatabase(s)

    TargetOracle & Non-Oracle

    Database(s)

    Capture: committed transactions are captured (and can be filtered) as they occur by reading the transaction logs.

    Trail: stages and queues data for routing.

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.59

    How Oracle GoldenGate Works

    SourceOracle & Non-OracleDatabase(s)

    TargetOracle & Non-Oracle

    Database(s)

    Capture: committed transactions are captured (and can be filtered) as they occur by reading the transaction logs.

    Trail: stages and queues data for routing.

    Pump: distributes data for routing to target(s).

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.60

    How Oracle GoldenGate Works

    SourceOracle & Non-OracleDatabase(s)

    TargetOracle & Non-Oracle

    Database(s)

    Capture: committed transactions are captured (and can be filtered) as they occur by reading the transaction logs.

    Trail: stages and queues data for routing.Pump: distributes data for routing to target(s).

    Route: data is compressed, encrypted for routing to target(s).

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.61

    How Oracle GoldenGate Works

    SourceOracle & Non-OracleDatabase(s)

    TargetOracle & Non-Oracle

    Database(s)

    Capture: committed transactions are captured (and can be filtered) as they occur by reading the transaction logs.

    Trail: stages and queues data for routing.

    Pump: distributes data for routing to target(s). Route: data is compressed, encrypted for routing to target(s).

    Delivery: applies data with transaction integrity, transforming the data as required.

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.62

    Capture: committed transactions are captured (and can be filtered) as they occur by reading the transaction logs.

    Trail: stages and queues data for routing.

    Pump: distributes data for routing to target(s). Route: data is compressed, encrypted for routing to target(s).

    Delivery: applies data with transaction integrity, transforming the data as required.

    SourceOracle & Non-OracleDatabase(s)

    TargetOracle & Non-Oracle

    Database(s)Bi-directional

    How Oracle GoldenGate Works

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.63

    Has basic configuration, management, monitoring, and alerting. Based on legacy pull infrastructure. Works on legacy GoldenGate instances.

    Oracle GoldenGate Director

    Oracle Management Pack for OGGComplete Visibility (1 / 2): Director

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.64

    Has advanced monitoring, alerting (SNMP support), lag graphs, and historical repository. Based on new agent infrastructure, which will be the foundation for all future integration projects. Supports OGG 11.1.1.1.1+

    Oracle Management Pack for OGGComplete Visibility (2 / 2): Monitor

    Oracle GoldenGate Monitor

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.65

    Eliminate unplanned downtime withActive Data Guard & GoldenGate

    Active Data Guard for disaster recovery and data protection for:

    Oracle-to-Oracle

    Oracle GoldenGate for disaster recovery and data protection for:

    Non-Oracle platforms

    Active-Active

    Cross-OS and Oracle database version requirements

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.66

    Complementary and Used TogetherActive Data Guard and GoldenGate

    Data Distribution /Synchronization

    Oracle GoldenGate

    Disaster Recovery &Data Protection

    Oracle Active Data Guard

    Oracle Active Data Guard

    Oracle DB Primary Oracle DB Standby

    HeterogeneousDistributedSubsetReplicas

    Oracle GoldenGate

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.67

    Eliminate Downtime During Upgrades to Oracle 11g R2

    Zero database downtime for upgrades from 8i, 9i, 10g to 11g

    Leverage new features of Oracle Database 11g without impacting business operations

    Minimize risks with failback option

    Failback Data FlowOracle Database8i/9i/10g

    Oracle Database

    11g Release 2

    ApplicationSwitchover

    Compare & VerifyWith Oracle GoldenGate

    Veridata

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.68

    Active - Active

    Utilize secondary systems for transactions

    Enable continuous availability during unplanned and planned outages

    Synchronize data across data centersaround the globe Source &

    TargetRegion A

    Source &Target

    Region B

    ApplicationApplication

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.69

    D E M O Oracle Golden Gate

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.70

    Questions...

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.71

  • Copyright 2012, Oracle and/or its affiliates. All rights reserved.72