Run your own Oracle Database Benchmarks with Hammerora



Similar documents
Redis OLTP (Transactional) Load Testing

TimesTen In-Memory OLTP (Transactional) Load Testing

Microsoft SQL Server OLTP (Transactional) Load Testing

An Oracle White Paper February Oracle Data Integrator 12c Architecture Overview

Oracle OLTP (Transactional) Load Testing

MySQL OLTP (Transactional) Load Testing

Microsoft SQL Server Decision Support (DSS) Load Testing

Introduction to Decision Support, Data Warehousing, Business Intelligence, and Analytical Load Testing for all Databases

Building Java Servlets with Oracle JDeveloper

Development Best Practices

HammerDB DB2 Quick Start

An Oracle White Paper May Oracle Database Cloud Service

Oracle SQL Developer Migration. An Oracle White Paper September 2008

New 11g Features in Oracle Developer Tools for Visual Studio. An Oracle White Paper January 2008

Microsoft SQL Server OLTP Best Practice

Introduction to Decision Support, Data Warehousing, Business Intelligence, and Analytical Load Testing for all Databases

This guide specifies the required and supported system elements for the application.

Oracle SQL Developer Migration

How To Load Data Into An Org Database Cloud Service - Multitenant Edition

Oracle Enterprise Manager 13c Cloud Control

The Top 10 Things DBAs Should Know About Toad for IBM DB2

Novell ZENworks Asset Management 7.5

HammerDB v2.18 Installation and Troubleshooting Guide

IBM Software Information Management Creating an Integrated, Optimized, and Secure Enterprise Data Platform:

CASE STUDY: Oracle TimesTen In-Memory Database and Shared Disk HA Implementation at Instance level. -ORACLE TIMESTEN 11gR1

Oracle Database 11g Comparison Chart

Consolidate by Migrating Your Databases to Oracle Database 11g. Fred Louis Enterprise Architect

Seamless Web Data Entry for SAS Applications D.J. Penix, Pinnacle Solutions, Indianapolis, IN

Oracle Fusion Middleware

Oracle Database 11g: New Features for Administrators DBA Release 2

ORACLE BUSINESS INTELLIGENCE, ORACLE DATABASE, AND EXADATA INTEGRATION

Migrating from Unix to Oracle on Linux. Sponsored by Red Hat. An Oracle and Red Hat White Paper September 2003

An Oracle White Paper January Oracle Database 12c: Full Transportable Export/Import

Using MySQL for Big Data Advantage Integrate for Insight Sastry Vedantam

Oracle Data Integrator 11g New Features & OBIEE Integration. Presented by: Arun K. Chaturvedi Business Intelligence Consultant/Architect

Microsoft SQL Server for Oracle DBAs Course 40045; 4 Days, Instructor-led

1 Changes in this release

Customer evaluation guide Toad for Oracle v12 Database administration

Active/Active DB2 Clusters for HA and Scalability

An Oracle White Paper September Oracle WebLogic Server 12c on Microsoft Windows Azure

SQL Server Instance-Level Benchmarks with HammerDB

Toad for Oracle 8.6 SQL Tuning

Holistic Performance Analysis of J2EE Applications

Oracle Data Integrator integration with OBIEE

RTI Quick Start Guide for JBoss Operations Network Users

Load Testing Hyperion Applications Using Oracle Load Testing 9.1

Oracle 11g New Features - OCP Upgrade Exam

ORACLE OLAP. Oracle OLAP is embedded in the Oracle Database kernel and runs in the same database process

<Insert Picture Here> Application Testing Suite Overview

Alfresco Enterprise on AWS: Reference Architecture

Performance And Scalability In Oracle9i And SQL Server 2000

ORACLE FINANCIAL SERVICES ANALYTICAL APPLICATIONS INFRASTRUCTURE

Deploying MySQL with the Oracle ZFS Storage Appliance

DELL s Oracle Database Advisor

Oracle Database Performance Management Best Practices Workshop. AIOUG Product Management Team Database Manageability

Delivering Quality in Software Performance and Scalability Testing

How To Use Ibm Tivoli Monitoring Software

Version Overview. Business value

FIFTH EDITION. Oracle Essentials. Rick Greenwald, Robert Stackowiak, and. Jonathan Stern O'REILLY" Tokyo. Koln Sebastopol. Cambridge Farnham.

Red Hat Enterprise Linux solutions from HP and Oracle

Accessing Oracle 11g from SAS on Linux Using DataDirect Connect for ODBC

An Oracle White Paper July Oracle Primavera Contract Management, Business Intelligence Publisher Edition-Sizing Guide

<Insert Picture Here> Oracle In-Memory Database Cache Overview

An Oracle White Paper June Cutting Cost through Consolidation

MySQL and Virtualization Guide

Monitoring and Diagnosing Production Applications Using Oracle Application Diagnostics for Java. An Oracle White Paper December 2007

Oracle Tools and Bindings with languages

Oracle Warehouse Builder 10g

Oracle Net Services for Oracle10g. An Oracle White Paper May 2005

Oracle s Cloud Computing Strategy

APPLICATION MANAGEMENT SUITE FOR ORACLE E-BUSINESS SUITE APPLICATIONS

RDS Migration Tool Customer FAQ Updated 7/23/2015

INTRODUCTION ADVANTAGES OF RUNNING ORACLE 11G ON WINDOWS. Edward Whalen, Performance Tuning Corporation

Performance Comparison of Fujitsu PRIMERGY and PRIMEPOWER Servers

White paper: Unlocking the potential of load testing to maximise ROI and reduce risk.

SQuORE 2011-C Installation and Administration Guide

RHEL to SLES Migration Overview

An Oracle White Paper May Creating Custom PDF Reports with Oracle Application Express and the APEX Listener

An Oracle White Paper June High Performance Connectors for Load and Access of Data from Hadoop to Oracle Database

Using DeployR to Solve the R Integration Problem

An Oracle White Paper November Leveraging Massively Parallel Processing in an Oracle Environment for Big Data Analytics

Oracle EXAM - 1Z Oracle Weblogic Server 11g: System Administration I. Buy Full Product.

An Oracle Benchmarking Study February Oracle Insurance Insbridge Enterprise Rating: Performance Assessment

Objectif. Participant. Prérequis. Pédagogie. Oracle Database 11g - New Features for Administrators Release 2. 5 Jours [35 Heures]

SQL Server 2008 Performance and Scale

Well packaged sets of preinstalled, integrated, and optimized software on select hardware in the form of engineered systems and appliances

Windows Server 2008 R2 Essentials

Features of The Grinder 3

An Oracle White Paper March Load Testing Best Practices for Oracle E- Business Suite using Oracle Application Testing Suite

Dependency Free Distributed Database Caching for Web Applications and Web Services

Guide to the MySQL Workbench Migration Wizard: From Microsoft SQL Server to MySQL

Serving 4 million page requests an hour with Magento Enterprise

Oracle TimesTen In-Memory Database on Oracle Exalogic Elastic Cloud

IBM Tivoli Monitoring for Virtual Environments: Dashboard, Reporting, and Capacity Planning Version 7.2 Fix Pack 2. User s Guide SC

Postgres Plus xdb Replication Server with Multi-Master User s Guide

An Oracle White Paper August Oracle VM 3: Application-Driven Virtualization

Planning the Installation and Installing SQL Server

Transcription:

Run your own Oracle Database Benchmarks with Hammerora Steve Shaw Intel Corporation UK Keywords: Database, Benchmark Performance, TPC-C, TPC-H, Hammerora Introduction The pace of change in database infrastructure is rapid, both in terms of hardware and software. Innovations such as clustering or virtualization need to be assessed and measured to determine the benefits to your particular environment. However one of the overriding challenges remains of how to quantify those benefits and to compare and contrast different installations. The overriding business challenge is how to take advantage of new innovations whilst also mitigating against the risk of change. Load testing and database benchmarks provide a compass to the map of your infrastrucutre both to point you in the right direction as you begin your journey, as a constant point of reference to ensure that you are maintaining the correct course and to ensure that you are not heading in the wrong direction compared to your competitors. Despite the clear benefits of load testing and benchmarking many businesses fail to allocate both time and resources to test adequately. Justifying those resources can be a challenge especially given the cost of propritary testing solutions. Testing is rarely on the critical path to keeping the business running however not doing so can prove a false economy and put the business at a significant disadvantage compared to competitors implementing low cost solutions. Hammerora is the leading free and open source load testing tool for Oracle databases and provides an independent and cost effective solution to evaluating the performance of your database infrastructure providing you with the compass to plot your course through infrastructure change. With over 25,000 users worldwide Hammerora provides an established and proven load testing and benchmarking solution to the Oracle Database, MySQL Database with the Oracle InnoDB storage engine and HTTP environments. This paper presents a guide by the author of Hammerora to getting the most out of the software to help you learn how to compare and contrast database environments.

Architecture and Concepts Hammerora is released under the Gnu Public License (GPL) and was designed from the outset to leverage the advantages of Open Source technology ensuring a free, open and independent technology stack. The goal was to design and build a flexible tool aimed towards DBA s and system administrators, who potentially have limited software development experience as opposed to professional programmers. All recognised top level load testing tools require both multithreading capabilities to build efficient and scalable test systems and a easy to use scripting language with which to build tests tailored to specific environments. Designing and building a multithreaded scripting language from the ground up is time consuming yet many existing languages lacked the capabilities required either bringing either multithreading capabilities or scripting capabilities but not both combined. Coupled with the demands for an efficient scalable Oracle interface a number of languages such as Java, Python, Perl fell short of the requirements. Only one language, TCL met the requirements of the design brief with multithreading, scripting, a high performance OCI based Oracle interface called Oratcl and proven performance in complex environments such as AOL Server. Considering TCL is also open source is one of the leading projects on sourceforge and has a compatible graphical interface it provides the ideal foundation on which to build an open source load testing tool. With the foundation established Hammerora enables the building of test environments with an east to use graphical interface where lightweight threads operating independently establish sessions on the Oracle database and drive both inbuilt and user defined scenarios to test Oracle Database environments. The pluggable nature of the tool also means that tests are portable to different levels of the Oracle stack such as HTTP middleware servers with tests scripts recorded from the firefox web browser and replayed in Hammerora and the Timesten database with OCI and the MySQL Database based on the Oracle InnoDB storage engine. Installation and Configuration Hammerora can be downloaded for free from http://hammerora.sourceforge.net/ without restriction on installation and use. Pre-compiled easy to install packages are provided for the most widely deployed operating systems of both Windows and Linux however building the required packages for other operating systems is straightforward meaning Hammerora is compatible with any Oracle environment where an Oracle database or client installation is available. Hammerora can be used with any Oracle release and has been tested against all releases from Oracle 8 up to and including Oracle 11g Release 2. Installation is straightforward and for beginners the pre-installation of Oracle Express edition is recommended, for advanced users the Oracle instant client will suffice in order for Hammerora to connect across the network and test a large scale Oracle database implementation. On Linux and Windows a pre-packaged installer is provided giving a wizard driven interface to install Hammerora, after selecting the installation directory the tool extracts into the chosen location creating a standalone software environment, no software is installed into Oracle software locations.

Illustration Install Wizard Illustration. 1: Hammerora install wizard When installation is complete the option is provided to Launch Hammerora, if not choosing to start the software immediately it can be also be run from the installation directory. Illustration Launch Hammerora Illustration. 2: Launch Hammerora

Understanding Hammerora On starting, Hammerora presents a self-contained graphical user interface with which to begin building load test scenarios. Configuration for a particular environment can be defined within the configuration file config.xml. A key concept is the provision of the script editor. Within the script editor the workload is defined for the users to run against the target Oracle database although it is important to note that workloads may be defined in order that subsets can be allocated to individual users identified by name as opposed to a single workload allocated to all users. Additionally users may interact with each other during the course of a test run. When a test has been defined a number of virtual users are created, the limit on the maximum number of virtual users is only set by the hosts CPU and memory resources. Each virtual user takes the form of an operating system thread meaning Hammerora can scale efficiently to a large number of users. When creating the virtual users it is also possible to choose to view the output generated by the individual users within a grid based output to view test performance in real time. Illustration Hammerora Interface Illustration. 3:Hammerora Interface

Test workloads can be written bespoke, additionally Hammerora has the ability to convert Oracle Database trace files into a format that can be replayed against the target database enabling a capture and replay testing facility to build test scenarios against any database application. Of particular interest is the in-built load tests based on the specifications of the well-known TPC-C and TPC-H benchmarks for OLTP and Data Warehouse environments respectively with a TPC-C based test being provided for Oracle and MySQL and a TPC-H test for Oracle. For Database focused tests Hammerora provides a graphical transaction and query counter. Additionally Hammerora can operate in a number of modes within a Master and Slave configuration enabling Hammerora installed on a number of load testing clients to be controlled by a single interface enabling the scaling to test large scale installations with a clustered load test facility across the network. Hammerora includes an interactive console both for monitoring messages and errors from test scripts during testing runs but also to interact with the host operating system. In addition to the database tier, tests can also be defined against HTTP driven middle tiers with the automatic capture and generation of test scripts through the firefox web browser to be replayed against a target web server to complete full Oracle environment tests. Configuring and Running Load Tests Hammerora includes all of the features required to build and execute load tests based upon TPC specifications without the user requiring special scripting knowledge. Dependent on the configuration defined in config.xml or the options selected under the benchmark menu the menu options auto-configure to define your chosen benchmark. The options enable you to define a target schema within which to build your test configuration. The illustration shows a target configuration for building a schema based upon the TPC-C specification defining the target Oracle service name, the system user password, the existing target tablespace and the username and password for the test schema owner that is to be created. The number of warehouses determines the size of the dataset to be created and the number of threads enables a multithreaded schema build to fully utilize mulitcore CPU environments. The options also define parameters for the tests to be run and whether to run a standalone test or a timed tested to generate AWR reports and report the average transaction rates recorded over a test period.

Illustration TPC-C Options Illustration. 4: TPC-C Options With the options defined pressing the build schema button on the main menu is all that is required to both create a test schema, populate it with data and install the test PL/SQL procedures. The multithreaded build efficiently creates and installs schemas containing millions of rows in a short space of time without requiring external data or dump files for data loading. Upon completion of the schema build a compatible test driver script is defined according to the menu options given under the benchmark menu. After selecting the test script, define the required number of users and select the Run button to initiate the test. If choosing the AWR snapshot driver script the entire test is automated and will provide for a Ramp Up time for the users to begin running transactions followed by a timed test before and after which AWR snapshots are automatically taken on the target database. When the test has completed Hammerora reports the average number of transactions completed across the timed tests and provides the AWR snapshot numbers from which you may produce a report based upon the test workload. Whilst tests are running a graphical transaction counter reports the transaction rate currently measured on the system. The reported transaction rate is based upon the same

statistics and coincides directly with the average transaction rate reported at the end of the test and measured within the AWR snapshot. AWR reports provide a comprehensive and detailed method with which to both analyze and compare system performance and to identify performance bottlenecks from a range of system parameters. Illustration Transaction Counter Illustration. 5: Transaction Counter A similar methodology is used for testing database warehouse environments using tests based upon the TPC-H specification. Such tests use Oracle Parallel Query to define complex ad-hoc queries enabling the testing of the potential for systems to host complex business intelligence environments. Using the in-built tests it is possible to generate comprehensive performance profiles that measure the capabilities of your system and also to determine the impact of hardware and software changes upon the environment. After building familiarity with the built-in tests Hammerora also provides the facility to take a standard Oracle trace file generated by the database and automatically convert it into a format that can be replayed against the database allowing tests to be built to simulate specific applications. Testing Web Servers Many database environments also interact with web servers. Hammerora enables the generation of tests against the web-based middle-tier in addition to Database layer. Utilising the functionality provided by the Tcl Webtest Recorder released open source by Knowledgemarkets it is possible to use the firefox web browser to record interactive web browsing sessions and automatically generate a test script. This script can be replayed with multiple sessions in Hammerora to incorporate the middle tier into test scenarios.

Illustration Web Testing Illustration. 6: Web Testing Script Conclusion and Future Plans Based upon past success Hammerora development continues into new and exciting technology areas driven by user demand and Oracle acquisitions. Future plans include extending in-built tests to the TPC-E specification, building upon MySQL capabilities and enhancing web and HTTP testing to ensure that Hammerora remains the leading Open Source Oracle load testing alternative worldwide. Disclaimers Hammerora is Open Source released under the GNU public license under the framework laid out by the Intel Linux User s Group. Hammerora is NOT an Intel software product or developed using Intel resources or materials. Hammerora is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Contact address: Steve Shaw Intel Corporation 650 Wharfedale Road, Winnersh Triangle RG41 5TP, Wokingham, Berkshire UK Phone: +44(0)118-9447870 Email steve.shaw@intel.com Internet: www.intel.com