NORAD DBControl Online Whitepaper

Similar documents
Boost ERP/CRM Performance by Reorganizing Your Oracle Database: A Proven Reorganization Strategy Donald Bakels

Quest Central for DB2

Veritas Storage Foundation for Oracle RAC from Symantec

ORACLE 11gR2 DBA. by Mr. Akal Singh ( Oracle Certified Master ) COURSE CONTENT. INTRODUCTION to ORACLE

One Release. One Architecture. One OS. High-Performance Networking for the Enterprise with JUNOS Software

Data Sheet: Storage Management Veritas Storage Foundation for Oracle RAC from Symantec Manageability and availability for Oracle RAC databases

Configuration changes such as conversion from a single instance to RAC, ASM, etc.

Hitachi Modern Data Protection and Copy Data Management Solutions

Real Application Testing Certified for SAP

Titan SiliconServer for Oracle 9i

Table Compression in Oracle9i Release2. An Oracle White Paper May 2002

Using Virtualization to Reduce Cost and Improve Manageability of J2EE Application Servers

CRITICAL INFRASTRUCTURE ASSESSMENTS

ORACLE 8 OBJECT ORIENTED TECHNOLOGY ORACLE SOFTWARE STRUCTURES SERVER SIDE BACKGROUND PROCESSES DATABASE SERVER AND DATABASE INSTANCE

Call: Oracle 11g DBA Course Content:35-40hours Course Outline

<Insert Picture Here> DBA Best Practices: A Primer on Managing Oracle Databases

Veritas InfoScale Enterprise for Oracle Real Application Clusters (RAC)

Seminar: Presenter: Oracle Database Objects Internals. Oren Nakdimon.

VERITAS Storage Foundation 4.0 TM for Databases

B.H.GARDI COLLEGE OF ENGINEERING & TECHNOLOGY (MCA Dept.) Parallel Database Database Management System - 2

Mobile : ( India )

INTRODUCING VERITAS BACKUP EXEC SUITE

Key to A Successful Exadata POC

VERITAS Volume Replicator. Successful Replication and Disaster Recovery

Smart Data Center From Hitachi Vantara: Transform to an Agile, Learning Data Center

Desktop DNA r11.1. PC DNA Management Challenges

Explore the Oracle 10g database architecture. Install software with the Oracle Universal Installer (OUI)

VERITAS Volume Replicator Successful Replication and Disaster Recovery

Vblock Infrastructure Packages: Accelerating Deployment of the Private Cloud

CA Rapid Reorg for DB2 for z/os

Data Warehousing & Big Data at OpenWorld for your smartphone

Focus On: Oracle Database 11g Release 2

An Oracle White Paper September Methods for Upgrading to Oracle Database 11g Release 2

VERITAS Foundation Suite for HP-UX

Financial Services Giant Optimizes, Virtualizes, and Saves Big Money

Tuning Considerations for Different Applications Lesson 4

Optimizing Database I/O

Optimal Physical Database Design for Oracle8i

ORACLE DBA TRAINING IN BANGALORE

An Oracle White Paper September Upgrade Methods for Upgrading to Oracle Database 11g Release 2

Hybrid Backup & Disaster Recovery. Back Up SAP HANA and SUSE Linux Enterprise Server with SEP sesam

Roadmap to Availability

A Practical Guide to Cost-Effective Disaster Recovery Planning

An Oracle White Paper July Methods for Downgrading from Oracle Database 11g Release 2

EMC Virtual Architecture for Microsoft SharePoint Server Reference Architecture

Information Technology Engineers Examination. Database Specialist Examination. (Level 4) Syllabus. Details of Knowledge and Skills Required for

STORAGE CONSOLIDATION AND THE SUN ZFS STORAGE APPLIANCE

An Oracle White Paper October Minimizing Planned Downtime of SAP Systems with the Virtualization Technologies in Oracle Solaris 10

EMC VNX2 Deduplication and Compression

E-Guide DATABASE DESIGN HAS EVERYTHING TO DO WITH PERFORMANCE

SecureFiles Migration O R A C L E W H I T E P A P E R F E B R U A R Y

ORACLE WHITEPAPER ORACLE ENTERPRISE MANAGER 13C CLOUD CONTROL

Guide to Mitigating Risk in Industrial Automation with Database

What is Real Application Testing?

<Insert Picture Here> Enterprise Data Management using Grid Technology

Automatic Data Optimization with Oracle Database 12c O R A C L E W H I T E P A P E R S E P T E M B E R

Four Essential Steps for Removing Risk and Downtime from Your POWER9 Migration

Donald K. Burleson Dave Ensor Christopher Foot Lisa Hernandez Mike Hordila Jonathan Lewis Dave Moore Arup Nanda John Weeg

Daily, Weekly or Monthly Partitions? A discussion of several factors for this important decision

Symantec Storage Foundation for Oracle Real Application Clusters (RAC)

An Oracle White Paper February Optimizing Storage for Oracle PeopleSoft Applications

Enhanced Protection and Manageability of Virtual Servers Scalable Options for VMware Server and ESX Server

Recovery ROI: Doing More with Less. How to Save Time and Money when Recovering

Maximum Availability Architecture: Overview. An Oracle White Paper July 2002

Using EonStor DS Series iscsi-host storage systems with VMware vsphere 5.x

Whitepaper: Back Up SAP HANA and SUSE Linux Enterprise Server with SEP sesam. Copyright 2014 SEP

An Oracle White Paper June Exadata Hybrid Columnar Compression (EHCC)

IMPROVING THE PERFORMANCE, INTEGRITY, AND MANAGEABILITY OF PHYSICAL STORAGE IN DB2 DATABASES

VERITAS Storage Foundation for Windows FlashSnap Option

The VERITAS VERTEX Initiative. The Future of Data Protection

ORACLE DATABASE LIFECYCLE MANAGEMENT PACK

Hybrid Columnar Compression (HCC) on Oracle Database 18c O R A C L E W H IT E P A P E R FE B R U A R Y

VERITAS Volume Manager for Windows 2000

First Financial Bank. Highly available, centralized, tiered storage brings simplicity, reliability, and significant cost advantages to operations

Comparison: Microsoft Logical Disk Manager (LDM) and VERITAS Volume Manager

Storage Designed to Support an Oracle Database. White Paper

Software Announcement March 6, 2001

WHITE PAPER: ENTERPRISE SOLUTIONS

SHAREPOINT HEADACHES EBOOK GSX SOLUTIONS. Project: Microsoft SharePoint Headaches Targeted Product: GSX Monitor & Analyzer

Data Migration from Dell PS Series or PowerVault MD3 to Dell EMC SC Series Storage using Thin Import

High Availability through Warm-Standby Support in Sybase Replication Server A Whitepaper from Sybase, Inc.

ARC BRIEF. Application Downtime, Your Productivity Killer. Overview. Trends in Plant Application Adoption. By John Blanchard and Greg Gorbach

Oracle Database 10g Resource Manager. An Oracle White Paper October 2005

MANAGING MULTI-VENDOR SANS WITH VERITAS SANPOINT CONTROL

Virtuozzo Containers

einfach. gut. beraten. How to reorganize and why? DOAG Conference + Exhibition , Nuremberg Klaus Reimers

Oracle Streams. An Oracle White Paper October 2002

ETERNUS SF AdvancedCopy Manager Overview

PRESERVE DATABASE PERFORMANCE WHEN RUNNING MIXED WORKLOADS

Performance and Scalability

Moving From Reactive to Proactive Storage Management with an On-demand Cloud Solution

Projects. Corporate Trainer s Profile. CMM (Capability Maturity Model) level Project Standard:- TECHNOLOGIES

Oracle Database 10g: New Features for Administrators Release 2

Designing Data Protection Strategies for Oracle Databases

DB2 Analytics Accelerator Loader for z/os

Designing Data Protection Strategies for Oracle Databases

Metadata Architectures

Thin Desktop - The business case for using a PC or Thin Client as the user access device in a virtualization deployment

VERITAS Backup Exec for Windows NT/2000 Intelligent Disaster Recovery

Transcription:

NORAD DBControl Online Whitepaper Ensuring Modern Database Service Standards with Online Reorganizations and Structural Changes Bradmark Technologies, Inc. 1

Contents Introduction... 3 Reasons to Reorganize... 4 Table Deviation from Initial Storage Parameter Design...4 Adherence to Industry Best Practices...5 Removal of Row Chaining and Row Migration...5 Partitioning of Large Tables...6 Transformation to Index Organized Table (IOT)... 6 Change in System Architecture...6 Traditional Reorganization Method... 6 Traditional Reorganization Phase...7 Online Reorganization Benefits... 8 Online Reorganization Method... 9 Setup Phase...9 Replication Phase...9 Passive Refresh Phase...10 Active Refresh Phase...10 Switchover Phase...10 Case Study... 11 Bradmark Technologies, Inc. 2

Ensuring Modern Database Service Standards with Online Reorganizations and Structural Changes Introduction With e-commerce driving the design and demands of modern business applications, high performance and high availability database computing is now the service standard. This modern performance standard is associated with a high cost of downtime. Administration techniques developed for this type environment demand negligible impact on the system while performing standard maintenance tasks. The ability to perform online data reorganization in these environments would greatly assist in maintaining the overall database availability, and potentially reduce or eliminate planned downtime. This, in turn would increase the application return on investment (ROI) and lower the total cost of ownership (TCO). Online reorganizations would also lend an administrator unprecedented flexibility to modify table physical attributes and transform both data and table structure with users having complete access to the database. The standard method for reorganizing tables is to develop sophisticated O/S and database scripts to either automate reorganizations or squeeze them in during a scheduled maintenance downtime. While this is the common method, there are associated downtime, administrative, and development costs. Additionally, if this method of reorganization fails, it is a waiting game until the next opportunity arises. Conventional wisdom dictates correct initial table sizing to prevent the need to reorganize, but even the most meticulously sized tables can require storage parameter modifications to make optimal use of space under evolving conditions. Bradmark Technologies, Inc. 3

Reasons to Reorganize Tables and their dependant objects are subject to reorganization in order to make the most efficient use of space, prevent performance issues, or conform to new hardware architecture. Consider the following conditions. Table Deviation from Initial Storage Parameter Design When a table is initially created, the DBA must estimate the following storage parameters. Block Space Utilization Parameters PCTFREE PCTUSED INITRANS MAXTRANS Specifies the amount of space available for updates on existing rows in a block. Sets threshold for space used to prevent updates from occurring on the block. If the data block usage falls below this specified parameter, the block will be subject to updates. Specifies the initial number of transactions that can concurrently update the rows in a data block. Specifies the maximum number of transactions that can concurrently update the rows in a data block. Extent Allocation Parameters INITIAL NEXT MINEXTENTS MINEXTENTS PCTINCREASE Sets the size for the initial table extent. Specifies the size of allocated extents until PCTINCREASE parameter is applied. Minimum number of extents a table should allocate. Maximum number of extents a table can allocate. The third and each consecutive extent are subject to a compounding space increment determined as a product of the NEXT storage parameter and the pctincrease value. Bradmark Technologies, Inc. 4

Since the previous parameters are estimated at the creation of a table, they are subject to correction. Once production data is introduced to the table, the true behavior of the data concerning update size and frequency can be established. From this analysis, storage parameters can be optimized to meet actual performance demands requiring a reorganization. Adherence to Industry Best Practices As of Oracle 8i, best practices include the use of locally managed tablespaces. This allows for automatic sizing of all new extents with standard sizing, removing any concern with free extent fragmentation. The local method keeps track of extents with the use of bitmaps, removing the need to access the data dictionary. Storage, performance, and administration efficiency are gained from locally managed tables. A second method to prevent inefficient use of space apart from using locally managed tables is accomplished by setting the extent storage parameter PCTINCREASE =0 and the INTIAL and NEXT parameters equal to one another. This allows for allocation of uniform extents and predictable sizing requirements. Tables with like-size extents can share a tablespace designed for a standard extent allocation requirement. This segregation allows for equal extent allocation per tablespace depending whether the table is considered small, medium, or large Removal of Row Chaining and Row Migration Row chaining occurs when a row is inserted or updated, and the row size becomes greater than the original data block size. When this occurs, Oracle splits the data for the row in a chain of data blocks reserved for that segment. Row chaining is a complication resulting from data block sizing incompatibilities. Row migration occurs when a row is updated and will not fit in the originating data block. Oracle migrates the row to a new block. Bradmark Technologies, Inc. 5

Oracle must link the original row to the new block containing the migrated row. Both row chaining and row migration decrease performance and potentially waste database space. Partitioning of Large Tables Partitioning of large tables greatly improves table manageability by enabling DBAs to split tables and indexes into smaller, independent units. This divides the maintenance process, such as table analysis and online backups, into efficient, manageable tasks. Transformation to Index Organized Table (IOT) An Index Organized Table (IOT) is a table that has its contents organized as a B-tree index. There are no separate storage requirements for the index and table, as they are now consolidated into one database object. Index organized tables save space, consolidate query efforts into one object, and increase performance on primary key-based queries. The performance gain and storage space saved are worth the reorganization. Change in System Architecture If performance issues arise in the system due to I/O, the architecture of the system may be changed to allow for more disks, resulting in distribution of data load. When this situation arises, the tables and associated objects must be moved from the hot spot to a new physical disk location. Online reorganization provides an efficient, time saving method to transferring data to the new disk devices. Traditional Reorganization Method All of the prior examples are justifiable reasons to reorganize a table. The tradeoff comes about when the potential negative impact of the reorganization is weighed against the performance benefit gained from it. Traditional methods of reorganization come with some risk and time considerations in which minor performance issues may be neglected. The general guidelines of traditional table reorganizations follow. Bradmark Technologies, Inc. 6

Traditional Reorganization Phase Take tablespace offline. Create a new temporary table (TT1) with optimal storage parameters. T1 TT1 Copy data from original table (T1) to the temporary table (TT1). Drop the original table. T1 Rename (TT1) to (T1). Recreate indexes and apply constraints. Recreate dependencies. T1 Bring tablespace online. Offline reorganizations must be carefully orchestrated, particularly if the maintenance window is very small, as it is in many OLTP environments. Any mistake is associated with a large financial burden if it is not quickly remedied, adding additional stresses to an already regimented time frame. Today s databases with large table sizes and high availability requirements create a critical need for online table reorganization capabilities to maximize uptime and performance. Bradmark Technologies, Inc. 7

Online Reorganization Benefits Enterprise class business applications must be available to all users in all time zones. Being able to perform most reorganization tasks online provides the unprecedented advantage of time, as there is no interruption of data flow. Most service level agreements for ASP and financial environments demand 99.9% uptime, with an obviously negligible maintenance window. The cost of downtime is such that online reorganizations are as valuable service as online backups. With online reorganization, there is no time constraint to consider for table reorganization. NORAD DBControl Online provides the capability to reorganize a table and its respective objects while transactions are running against it. Application of this technology includes online capability to: Insert, rename, reorder, or drop table columns Add, modify, and drop constraints (not primary key) Specify constraint index storage parameters Schedule structural changes Add, modify, and drop indexes Add, modify, and drop partitions and their respective attributes Add, modify, and drop sub-partitions Partition and de-partition tables Modify a table for index organization, or vice versa NORAD DBControl Online provides a method that drastically reduces the downtime usually associated with table reorganizations. Tables can be augmented online to help achieve availability requirements. Standard methods of offline reorganization do not provide the efficient, fault-tolerant environment required to meet high availability standards. Bradmark Technologies, Inc. 8

Online Reorganization Method The general DBControl Online method to online reorganization and structural change follows. Setup Phase From the appropriate Online Reorganization or Online Structural Change dialog box, the changed table information serves as the template in which a new table is created with the modified parameters. Index Replication Phase Incoming DML statements running against the table are recorded into a log table, and data stored in the original table is loaded into the newly reorganized table. Bradmark Technologies, Inc. 9

Synchronization Phase NORAD DBControl Online will optionally apply transactions to keep the original and reorganized tables in synch until the Active Refresh or Switchover phase begins. The Active Refresh aggressively applies transactions to the reorganized table just prior to the Switchover. Switchover Phase Several criteria can be set, such as a threshold on table activity, to control when Switchover begins. At Switchover, the newly reorganized table assumes the identity of the original table and the original table is deleted. Bradmark Technologies, Inc. 10

Case Study To demonstrate the benefits of online reorganizations, a table was created with a large number of inserted rows, and a row count performed with timing enabled, and table size established. Next, a significant amount of rows were deleted, and once again a row count performed with timing enabled, and table size established. Finally, the table would be reorganized online and a final row count performed with timing enabled and table size metrics taken to demonstrate improved performance. When the data was initially entered into TEST2 it contained 2351526 rows taking up 405168 KB of space. Using the COUNT function, a full table scan is forced and the rows summed in the table. SELECT COUNT(EMPNO) FROM NORAD.TEST2; COUNT(EMPNO) 2351526 Elapsed: 00:00:50.62 Next, rows were deleted in blocks to leave gaps in the table DELETE FROM NORAD.TEST2 WHERE EMPNO BETWEEN 499999 AND 1000001 OR EMPNO BETWEEN 1499999 AND 2000001; 1000000 ROWS DELETED Elapsed: 00:04:86.02 A second full table scan is performed SELECT COUNT(EMPNO) FROM NORAD.TEST2; COUNT(EMPNO) 1351526 Elapsed: 00:00:48.45 Bradmark Technologies, Inc. 11

The time difference is minimal because the space in the table, as far as Oracle is concerned, is still filled to the high watermark, as the table size is still 405232 KB. Reorganization of the table is needed to free up the empty blocks, shortening the table, speeding up performance. This is a prime example of when online table reorganization would be beneficial. Using NORAD DBControl Online the table TEST2 was reorganized with exact same storage parameters, with transactions running against it. The table size was reduced to 218400 KB, freeing up unused blocks, and the performance increase follows. SELECT COUNT(EMPNO) FROM NORAD.TEST2; COUNT(EMPNO) 1354467 Elapsed: 00:00:20.03 Demonstrated Benefits: 60% increase in query speed from original table 46% reduction in table size Savings of money and time as a result of reorganizing online To order, or for more information on other Bradmark products: Phone 800.621.2808 Outside the U.S.: 713.621.2808 Fax: 713.621.1639 Or visit our website: http://www.bradmark.com Corporate Headquarters: Bradmark Technologies, Inc. 4265 San Felipe, Suite 800 Houston, TX 77027 In Europe, Middle East and Africa: Bradmark Technologies, UK Ltd. Tel: +44 (0) 208 2631232 Support: +44 (0) 1275 540978 Fax: +44 (0) 208 263 2701 Bradmark Deutschland GmbH Tel: 089/96209012 Fax: 089/96280860 2002 Bradmark Technologies, Inc. All Rights Reserved. NORAD is a trademarked product name of Bradmark Technologies, Inc. Other product names herein have been used for identification purposes only, and may be trademarks and/or registered trademarks of their respective companies. Bradmark Technologies, Inc. 12