Automatic Database Management System Tuning Through Large-Scale Machine Learning

Total Page:16

File Type:pdf, Size:1020Kb

Automatic Database Management System Tuning Through Large-Scale Machine Learning Automatic Database Management System Tuning Through Large-scale Machine Learning Dana Van Aken Andrew Pavlo Geoffrey J. Gordon Bohan Zhang Carnegie Mellon University Carnegie Mellon University Carnegie Mellon University Peking University [email protected] [email protected] [email protected] [email protected] ABSTRACT many configuration knobs [22, 47, 36]. Part of what makes DBMSs Database management system (DBMS) configuration tuning is an so enigmatic is that their performance and scalability are highly de- essential aspect of any data-intensive application effort. But this pendent on their configurations. Further exacerbating this problem is historically a difficult task because DBMSs have hundreds of is that the default configurations of these knobs are notoriously bad. configuration “knobs” that control everything in the system, such As an example, the default MySQL configuration in 2016 assumes as the amount of memory to use for caches and how often data that it is deployed on a machine that only has 160 MB of RAM [1]. is written to storage. The problem with these knobs is that they Given this, many organizations resort to hiring expensive experts are not standardized (i.e., two DBMSs use a different name for the to configure the system’s knobs for the expected workload. But as same knob), not independent (i.e., changing one knob can impact databases and applications grow in both size and complexity, opti- others), and not universal (i.e., what works for one application may mizing a DBMS to meet the needs of an application has surpassed be sub-optimal for another). Worse, information about the effects the abilities of humans [11]. This is because the correct configura- of the knobs typically comes only from (expensive) experience. tion of a DBMS is highly dependent on a number of factors that are To overcome these challenges, we present an automated approach beyond what humans can reason about. that leverages past experience and collects new information to tune Previous attempts at automatic DBMS configuration tools have DBMS configurations: we use a combination of supervised and un- certain deficiencies that make them inadequate for general purpose supervised machine learning methods to (1) select the most impact- database applications. Many of these tuning tools were created ful knobs, (2) map unseen database workloads to previous work- by vendors, and thus they only support that particular company’s loads from which we can transfer experience, and (3) recommend DBMS [22, 33, 37]. The small number of tuning tools that do sup- knob settings. We implemented our techniques in a new tool called port multiple DBMSs still require manual steps, such as having the OtterTune and tested it on three DBMSs. Our evaluation shows that DBA (1) deploy a second copy of the database [24], (2) map depen- OtterTune recommends configurations that are as good as or better dencies between knobs [49], or (3) guide the training process [58]. than ones generated by existing tools or a human expert. All of these tools also examine each DBMS deployment indepen- dently and thus are unable to apply knowledge gained from previ- ous tuning efforts. This is inefficient because each tuning effort can 1. INTRODUCTION take a long time and use a lot of resources. The ability to collect, process, and analyze large amounts of data In this paper, we present a technique to reuse training data gath- is paramount for being able to extrapolate new knowledge in busi- ered from previous sessions to tune new DBMS deployments. The ness and scientific domains [35, 25]. DBMSs are the critical com- crux of our approach is to train machine learning (ML) models ponent of data-intensive (“Big Data”) applications [46]. The per- from measurements collected from these previous tunings, and use formance of these systems is often measured in metrics such as the models to (1) select the most important knobs, (2) map previ- throughput (e.g., how fast it can collect new data) and latency (e.g., ously unseen database workloads to known workloads, so that we how fast it can respond to a request). can transfer previous experience, and (3) recommend knob settings Achieving good performance in DBMSs is non-trivial as they are that improve a target objective (e.g., latency, throughput). Reusing complex systems with many tunable options that control nearly all past experience reduces the amount of time and resources it takes aspects of their runtime operation [24]. Such configuration knobs to tune a DBMS for a new application. To evaluate our work, we allow the database administrator (DBA) to control various aspects implemented our techniques using Google TensorFlow [50] and of the DBMS’s runtime behavior. For example, they can set how Python’s scikit-learn [39] in a tuning tool, called OtterTune, much memory the system allocates for data caching versus the and performed experiments for two OLTP DBMSs (MySQL, Post- transaction log buffer. Modern DBMSs are notorious for having gres) and one OLAP DBMS (Vector). Our results show that Ot- terTune produces a DBMS configuration for these workloads that Permission to make digital or hard copies of all or part of this work for personal or achieves 58–94% lower latency compared to their default settings classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation or configurations generated by other tuning advisors. We also show on the first page. Copyrights for components of this work owned by others than the that OtterTune generates configurations in under 60 min that are author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or within 94% of ones created by expert DBAs. republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]. The remainder of this paper is organized as follows. Sect. 2 be- SIGMOD’17, May 14 - 19, 2017, Chicago, IL, USA gins with a discussion of the challenges in database tuning. We then © 2017 Copyright held by the owner/author(s). Publication rights licensed to ACM. provide an overview of our approach in Sect. 3, followed by a de- ISBN 978-1-4503-4197-4/17/05. $15.00 scription of our techniques for collecting DBMS metrics in Sect. 4, DOI: http://dx.doi.org/10.1145/3035918.3064029 6.0 2.0 3.0 600 Workload #1 MySQL 1.5 Workload #2 Postgres 1.0 2.0 4.0 Workload #3 400 0.5 99th %-tile (sec) 0.0 1.0 2.0 200 Log file200 size (MB) 99th %-tile (sec) 400 99th %-tile (sec) 600 500 Number of knobs 1000 0.0 0.0 800 1500 500 1000 1500 2000 2500 3000 Config #1 Config #2 Config #3 0 2500 2000 2000 2004 2008 2012 2016 Buffer pool size (MB) Buffer pool size (MB) Release date (a) Dependencies (b) Continuous Settings (c) Non-Reusable Configurations (d) Tuning Complexity Figure 1: Motivating Examples – Figs. 1a to 1c show performance measurements for the YCSB workload running on MySQL (v5.6) using different configuration settings. Fig. 1d shows the number of tunable knobs provided in MySQL and Postgres releases over time. identifying the knobs that have the most impact in Sect. 5, and rec- ences in performance from one setting to the next could be irreg- ommending settings in Sect. 6. In Sect. 7, we present our experi- ular. For example, the size of the DBMS’s buffer pool can be an mental evaluation. Lastly, we conclude with related work in Sect. 8. arbitrary value from zero to the amount of DRAM on the system. In some ranges, a 0.1 GB increase in this knob could be incon- 2. MOTIVATION sequential, while in other ranges, a 0.1 GB increase could cause performance to drop precipitously as the DBMS runs out of phys- There are general rules or “best practice” guidelines available ical memory. To illustrate this point, we ran another experiment for tuning DBMSs, but these do not always provide good results where we increase MySQL’s buffer pool size from 10 MB to 3 GB. for a range of applications and hardware configurations. Although The results in Fig. 1b show that the latency improves continuously one can rely on certain precepts to achieve good performance on a up until 1.5 GB, after which the performance degrades because the particular DBMS, they are not universal for all applications. Thus, DBMS runs out of physical memory. many organizations resort to hiring expensive experts to tune their system. For example, a 2013 survey found that 40% of engagement Non-Reusable Configurations: The effort that a DBA spends requests for a large Postgres service company were for DBMS tun- on tuning one DBMS does not make tuning the next one any eas- ing and knob configuration issues [36]. ier. This is because the best configuration for one application may One common approach to tuning a DBMS is for the DBA to copy not be the best for another. In this experiment, we execute three the database to another machine and manually measure the perfor- YCSB workloads using three MySQL knob configurations. Each mance of a sample workload from the real application. Based on configuration is designed to provide the best latency for one of the the outcome of this test, they will then tweak the DBMS’s configu- workloads (i.e., config #1 is the best for workload #1, same for #2 ration according to some combination of tuning guidelines and in- and #3). Fig. 1c shows that the best configuration for each workload tuition based on past experiences.
Recommended publications
  • Oracle Database Vault DBA Administrative Best Practices
    Oracle Database Vault DBA Administrative Best Practices ORACLE WHITE PAPER | MAY 2015 Table of Contents Introduction 2 Database Administration Tasks Summary 3 General Database Administration Tasks 4 Managing Database Initialization Parameters 4 Scheduling Database Jobs 5 Administering Database Users 7 Managing Users and Roles 7 Managing Users using Oracle Enterprise Manager 8 Creating and Modifying Database Objects 8 Database Backup and Recovery 8 Oracle Data Pump 9 Security Best Practices for using Oracle RMAN 11 Flashback Table 11 Managing Database Storage Structures 12 Database Replication 12 Oracle Data Guard 12 Oracle Streams 12 Database Tuning 12 Database Patching and Upgrade 14 Oracle Enterprise Manager 16 Managing Oracle Database Vault 17 Conclusion 20 1 | ORACLE DATABASE VAULT DBA ADMINISTRATIVE BEST PRACTICES Introduction Oracle Database Vault provides powerful security controls for protecting applications and sensitive data. Oracle Database Vault prevents privileged users from accessing application data, restricts ad hoc database changes and enforces controls over how, when and where application data can be accessed. Oracle Database Vault secures existing database environments transparently, eliminating costly and time consuming application changes. With the increased sophistication and number of attacks on data, it is more important than ever to put more security controls inside the database. However, most customers have a small number of DBAs to manage their databases and cannot afford having dedicated people to manage their database security. Database consolidation and improved operational efficiencies make it possible to have even less people to manage the database. Oracle Database Vault controls are flexible and provide security benefits to customers even when they have a single DBA.
    [Show full text]
  • 2 Day + Performance Tuning Guide
    Oracle® Database 2 Day + Performance Tuning Guide 21c F32092-02 August 2021 Oracle Database 2 Day + Performance Tuning Guide, 21c F32092-02 Copyright © 2007, 2021, Oracle and/or its affiliates. Contributors: Glenn Maxey, Rajesh Bhatiya, Lance Ashdown, Immanuel Chan, Debaditya Chatterjee, Maria Colgan, Dinesh Das, Kakali Das, Karl Dias, Mike Feng, Yong Feng, Andrew Holdsworth, Kevin Jernigan, Caroline Johnston, Aneesh Kahndelwal, Sushil Kumar, Sue K. Lee, Herve Lejeune, Ana McCollum, David McDermid, Colin McGregor, Mughees Minhas, Valarie Moore, Deborah Owens, Mark Ramacher, Uri Shaft, Susan Shepard, Janet Stern, Stephen Wexler, Graham Wood, Khaled Yagoub, Hailing Yu, Michael Zampiceni This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited. The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing. If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, then the following notice is applicable: U.S. GOVERNMENT END USERS: Oracle programs (including any operating system, integrated software, any programs embedded, installed or activated on delivered hardware, and modifications of such programs) and Oracle computer documentation or other Oracle data delivered to or accessed by U.S.
    [Show full text]
  • An End-To-End Automatic Cloud Database Tuning System Using Deep Reinforcement Learning
    An End-to-End Automatic Cloud Database Tuning System Using Deep Reinforcement Learning Ji Zhangx, Yu Liux, Ke Zhoux , Guoliang Liz, Zhili Xiaoy, Bin Chengy, Jiashu Xingy, Yangtao Wangx, Tianheng Chengx, Li Liux, Minwei Ranx, and Zekang Lix xWuhan National Laboratory for Optoelectronics, Huazhong University of Science and Technology, China zTsinghua University, China, yTencent Inc., China {jizhang, liu_yu, k.zhou, ytwbruce, vic, lillian_hust, mwran, zekangli}@hust.edu.cn [email protected]; {tomxiao, bencheng, flacroxing}@tencent.com ABSTRACT our model and improves efficiency of online tuning. We con- Configuration tuning is vital to optimize the performance ducted extensive experiments under 6 different workloads of database management system (DBMS). It becomes more on real cloud databases to demonstrate the superiority of tedious and urgent for cloud databases (CDB) due to the di- CDBTune. Experimental results showed that CDBTune had a verse database instances and query workloads, which make good adaptability and significantly outperformed the state- the database administrator (DBA) incompetent. Although of-the-art tuning tools and DBA experts. there are some studies on automatic DBMS configuration tuning, they have several limitations. Firstly, they adopt a 1 INTRODUCTION pipelined learning model but cannot optimize the overall The performance of database management systems (DBMSs) performance in an end-to-end manner. Secondly, they rely relies on hundreds of tunable configuration knobs. Supe- on large-scale high-quality training samples which are hard rior knob settings can improve the performance for DBMSs to obtain. Thirdly, there are a large number of knobs that (e.g., higher throughput and lower latency). However, only a are in continuous space and have unseen dependencies, and few experienced database administrators (DBAs) master the they cannot recommend reasonable configurations in such skills of setting appropriate knob configurations.
    [Show full text]
  • Oracle Performance Tuning Checklist
    Oracle Performance Tuning Checklist Griseous Wayne rear afire. Relaxing Rutger gloze fermentation. Good-natured Renault limb, his retaker wallowers capes sedately. This uses akismet to remove things like someone in sql, and best used in those rows and oracle performance tuning is used inside of system Before being stressed, you know this essentially uses cookies could do not mentioned reduce the nonclustered index fragmentation and oracle performance tuning advisor before purchasing additional encryption of both. Tips and features such features available in other tools to oracle performance tuning checklist. Tuning an Oracle database Use Automatic Workload Repository AWR reports to collect diagnostics data Review essential top-timed events for potential bottlenecks Monitor the excellent for different top SQL statement You separate use an AWR report on this base Make against that the SQL execution plans are optimal. In mind when building it out of oracle performance tuning checklist, dbas will also has been defined in presentation layer of db trace or removed from. Maybe show lazy loaded dataspace will be configured on a fetch them? Create a sql query statements automatically add something about obiee design efforts on file as a performance oracle tuning checklist. Each replicated and performance checklist be ready time as smart scan is. Optimal size values within this? Even more visible, and analytics experts. Do some pain points for last validation report back an performance oracle tuning checklist data, oracle golden gate installation can configure rman backups have. This oracle performance tuning checklist is never used as html does. Performance Tuning Checklist JIRA Performance Tuning Best Practices and.
    [Show full text]
  • Oracle Database 2 Day + Performance Tuning Guide, 10G Release 2 (10.2) B28051-02
    Oracle® Database 2 Day + Performance Tuning Guide 10g Release 2 (10.2) B28051-02 January 2008 Easy, Automatic, and Step-By-Step Performance Tuning Using Oracle Diagnostics Pack, Oracle Database Tuning Pack, and Oracle Enterprise Manager Oracle Database 2 Day + Performance Tuning Guide, 10g Release 2 (10.2) B28051-02 Copyright © 2006, 2008, Oracle. All rights reserved. Primary Author: Immanuel Chan Contributors: Karl Dias, Cecilia Grant, Connie Green, Andrew Holdsworth, Sushil Kumar, Herve Lejeune, Colin McGregor, Mughees Minhas, Valarie Moore, Deborah Owens, Mark Townsend, Graham Wood The Programs (which include both the software and documentation) contain proprietary information; they are provided under a license agreement containing restrictions on use and disclosure and are also protected by copyright, patent, and other intellectual and industrial property laws. Reverse engineering, disassembly, or decompilation of the Programs, except to the extent required to obtain interoperability with other independently created software or as specified by law, is prohibited. The information contained in this document is subject to change without notice. If you find any problems in the documentation, please report them to us in writing. This document is not warranted to be error-free. Except as may be expressly permitted in your license agreement for these Programs, no part of these Programs may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose. If the Programs are delivered to the United States Government or anyone licensing or using the Programs on behalf of the United States Government, the following notice is applicable: U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S.
    [Show full text]
  • Database Performance Study
    Database Performance Study By Francois Charvet Ashish Pande Please do not copy, reproduce or distribute without the explicit consent of the authors. Table of Contents Part A: Findings and Conclusions…………p3 Scope and Methodology……………………………….p4 Database Performance - Background………………….p4 Factors…………………………………………………p5 Performance Monitoring………………………………p6 Solving Performance Issues…………………...............p7 Organizational aspects……………………...................p11 Training………………………………………………..p14 Type of database environments and normalizations…..p14 Part B: Interview Summaries………………p20 Appendices…………………………………...p44 Database Performance Study 2 Part A Findings and Conclusions Database Performance Study 3 Scope and Methodology The authors were contacted by a faculty member to conduct a research project for the IS Board at UMSL. While the original proposal would be to assist in SQL optimization and tuning at Company A1, the scope of such project would be very time-consuming and require specific expertise within the research team. The scope of the current project was therefore revised, and the new project would consist in determining the current standards and practices in the field of SQL and database optimization in a number of companies represented on the board. Conclusions would be based on a series of interviews with Database Administrators (DBA’s) from the different companies, and on current literature about the topic. The first meeting took place 6th February 2003, and interviews were held mainly throughout the spring Semester 2003. Results would be presented in a final paper, and a presentation would also be held at the end of the project. Individual summaries of the interviews conducted with the DBA’s are included in Part B. A representative set of questions used during the interviews is also included.
    [Show full text]
  • (UCP) in a Tomcat Application Container Requires the Following Steps
    Design and Deploy TomCat AppliCations for Planned, Unplanned Database Downtimes and Runtime Load BalanCing with UCP In OraCle Database RAC and Active Data Guard environments ORACLE WHITE PAPER NOVEMBER 2017 DESIGN AND DEPLOY TOMCAT SERVLETS FOR PLANNED AND UNPLANNED DATABASE DOWNTIME AND LOAD BALANCING WITH UCP Table of Contents IntroduCtion 3 Issues to be addressed 3 OraCle Database 12C High-Availability and Load BalanCing ConCepts 4 Configure TomCat for UCP 4 Create a New Database Resource 4 Create a JNDI lookup in the servlet 5 Create a web.xml for the servlet 6 Hiding Planned MaintenanCe from TomCat Servlets 6 Web Applications Steps 6 DBA or RDBMS Steps 7 Hiding Unplanned Database downtime from TomCat Servlets 9 Developer or Web Application Steps 9 DBA or RDBMS Steps 10 Application Continuity Checklist 10 Runtime Load BalanCing (RLB) with TomCat Servlets 12 Web AppliCation steps 12 Appendix 13 Enable JDBC & UCP logging for debugging 13 ConClusion 14 2 DESIGN AND DEPLOY TOMCAT SERVLETS FOR PLANNED AND UNPLANNED DATABASE DOWNTIME AND LOAD BALANCING WITH UCP IntroduCtion Achieving maximum appliCation uptime without interruptions is a CritiCal business requirement. There are a number of requirements such as outage detection, transparent planned maintenanCe, and work load balanCing that influenCe appliCation availability and performance. The purpose of this paper is to help Java Web applications deployed with ApaChe TomCat, achieve maximum availability and sCalability when using Oracle. Are you looking for best praCtiCes to hide your tomCat applications from database outages? Are you looking at, smooth & stress-free maintenanCes of your tomCat appliCations? Are you looking at leveraging Oracle Database’s runtime load balancing in your tomCat web appliCations? This paper Covers the configuration of your database and tomCat servlets for resilienCy to planned maintenanCe, unplanned database outages, and dynamic balancing of the workload across 1 database instances, using RAC, ADG, GDS , and UCP.
    [Show full text]
  • Planned/Unplanned Downtime and Runtime Load Balancing with UCP
    Design and Deploy WebSphere Applications for Planned, Unplanned Database Downtimes and Runtime Load Balancing with UCP In Oracle Database RAC and Active Data Guard environments ORACLE WHITE PAPER AUGUST 2015 DESIGN AND DEPLOY WEBSPHERE SERVLETS FOR PLANNED AND UNPLANNED DATABASE DOWNTIME AND LOAD BALANCING WITH UCP Table of Contents Introduction 3 Issues to be addressed 3 Oracle Database 12c High-Availability and Load Balancing Concepts 4 Configure WebSphere for UCP 4 Create a New JDBC Provider 4 Create a New DataSource 8 Create a JNDI context in the servlet 19 Create a web.xml for the Servlet 20 WebSphere Tips 20 Hiding Planned Maintenance from WebSphere Applications 20 Developer or Web Applications Steps 21 DBA or RDBMS Steps 22 Hiding Unplanned Database Downtime from WebSphere applications 23 Developer or Web Application Steps 23 DBA or RDBMS Steps 24 Runtime Load Balancing (RLB) with WebSphere Servlets 24 Developer or Web Application steps 25 Appendix 26 Enable JDBC & UCP logging for debugging 26 Conclusion 27 DESIGN AND DEPLOY WEBSPHERE SERVLETS FOR PLANNED AND UNPLANNED DATABASE DOWNTIME AND LOAD BALANCING WITH UCP 2 Introduction Achieving maximum application uptime without interruptions is a critical business requirement. There are a number of requirements such as outage detection, transparent planned maintenance, and work load balancing that influence application availability and performance. The purpose of this paper is to help Java Web applications deployed with IBM WebSphere, achieve maximum availability and scalability when using Oracle. Are you looking for best practices to hide your web applications from database outages? Are you looking at, smooth & stress-free maintenances of your web applications? Are you looking at leveraging Oracle Database’s runtime load balancing in your WebSphere applications? This paper covers the configuration of your database and WebSphere Servlets for resiliency to planned, unplanned database outages and dynamic balancing of the workload across database instances, using RAC, ADG, GDS1, and UCP.
    [Show full text]
  • Lead Database Support Technologist LOCATION
    Office of Human Resources POSITION DESCRIPTION POSITION: Lead Database Support Technologist LOCATION: Information Technology REPORTS TO: Manager-Systems Development GRADE: PSA 14 WORK SCHEDULE: Non-Standard, 35 hours per week SUPERVISES: May exercise supervision over part-time and student employees. JOB SUMMARY: The Database Administrator (DBA) role is to design, install, monitor, maintain, and performance tune production, test/development, and QA database environments while ensuring high levels of data availability. This individual is also responsible for developing, implementing, and overseeing database policies and procedures to ensure the integrity and availability of all databases and their accompanying software. The DBA will design and implement redundant systems, policies and procedures for disaster recovery and data archiving to ensure effective protection and integrity of data assets, and will remain current with the latest technologies and industry/business trends. ESSENTIAL DUTIES AND RESPONSIBILITIES: Install, monitor, maintain and performance tune all Production, Test & Development databases including but not limited to Oracle and SQL server. Upgrade database management systems, including but not limited to Oracle and SQL server. Developing, implementing, and overseeing database policies and procedures to ensure the integrity and availability of Oracle databases and their accompanying software. Install and upgrade database applications by applying patches and upgrades on a regular schedule. Knight Campus 400 East Avenue, Warwick, RI 02886-1807 P: 401.825.2311 F: 401.825.2345 Provides technical support to application development teams. This is usually in the form of a help desk. The DBA is usually the point of contact for Oracle Support. Install, configure and upgrade server and database application components including but not limited to the portal platform, LDAP server, messaging server, calendar server, web server, payment gateway, internet based forms and self-service applications.
    [Show full text]
  • Developing Database Applications
    Developing Database Applications JBuilder® 2005 Borland Software Corporation 100 Enterprise Way Scotts Valley, California 95066-3249 www.borland.com Refer to the file deploy.html located in the redist directory of your JBuilder product for a complete list of files that you can distribute in accordance with the JBuilder License Statement and Limited Warranty. Borland Software Corporation may have patents and/or pending patent applications covering subject matter in this document. Please refer to the product CD or the About dialog box for the list of applicable patents. The furnishing of this document does not give you any license to these patents. COPYRIGHT © 1997–2004 Borland Software Corporation. All rights reserved. All Borland brand and product names are trademarks or registered trademarks of Borland Software Corporation in the United States and other countries. All other marks are the property of their respective owners. For third-party conditions and disclaimers, see the Release Notes on your JBuilder product CD. Printed in the U.S.A. JB2005database 10E13R0804 0405060708-987654321 PDF Contents Chapter 1 Chapter 4 Introduction 1 Connecting to a database 27 Chapter summaries . 2 Connecting to databases . 28 Database tutorials. 3 Adding a Database component to your Database samples . 3 application . 28 Related documentation . 4 Setting Database connection properties . 29 Documentation conventions . 6 Setting up JDataStore . 31 Developer support and resources. 7 Setting up InterBase and InterClient. 31 Contacting Borland Developer Support . 7 Using InterBase and InterClient with JBuilder . 32 Online resources. 7 Tips on using sample InterBase tables . 32 World Wide Web . 8 Adding a JDBC driver to JBuilder .
    [Show full text]
  • COSC 304 Database Introduction
    COSC 304 - Dr. Ramon Lawrence COSC 304 What is a database? Introduction to Database Systems A database is a collection of logically related data for a particular domain. Database Introduction A database management system (DBMS) is software designed for the creation and management of databases. Dr. Ramon Lawrence e.g. Oracle, DB2, Access, MySQL, SQL Server, MongoDB University of British Columbia Okanagan [email protected] Bottom line: A database is the data stored and a database system is the software that manages the data. Page 2 COSC 304 - Dr. Ramon Lawrence COSC 304 - Dr. Ramon Lawrence Databases in the Real-World Example Problem Databases are everywhere in the real-world even though you Implement a system for managing products for a retailer. do not often interact with them directly. Data: Information on products (SKU, name, desc, inventory) $25 billion dollar annual industry Add new products, manage inventory of products Examples: Retailers manage their products and sales using a database. How would you do this without a database? Wal-Mart has one of the largest databases in the world! Online web sites such as Amazon, eBay, and Expedia track orders, shipments, and customers using databases. The university maintains all your registration information and What types of challenges would you face? marks in a database. Can you think of other examples? What data do you have? Page 3 Page 4 COSC 304 - Dr. Ramon Lawrence COSC 304 - Dr. Ramon Lawrence Why do we need databases? File Processing Diagram Without a DBMS, your application must rely on files to store its data persistently.
    [Show full text]
  • Oracle Database Performance Tuning Guide, 11G Release 2 (11.2) E16638-03
    Oracle® Database Performance Tuning Guide 11g Release 2 (11.2) E16638-03 August 2010 Oracle Database Performance Tuning Guide, 11g Release 2 (11.2) E16638-03 Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved. Primary Authors: Immanuel Chan, Lance Ashdown Contributors: Aditya Agrawal, Hermann Baer, Vladimir Barriere, Mehul Bastawala, Eric Belden, Pete Belknap, Supiti Buranawatanachoke, Sunil Chakkappen, Maria Colgan, Benoit Dageville, Dinesh Das, Karl Dias, Kurt Engeleiter, Marcus Fallen, Mike Feng, Leonidas Galanis, Ray Glasstone, Prabhaker Gongloor, Kiran Goyal, Cecilia Grant, Connie Dialeris Green, Shivani Gupta, Karl Haas, Bill Hodak, Andrew Holdsworth, Hakan Jacobsson, Shantanu Joshi, Ameet Kini, Sergey Koltakov, Vivekanada Kolla, Paul Lane, Sue K. Lee, Herve Lejeune, Ilya Listvinsky, Bryn Llewellyn, George Lumpkin, Mughees Minhas, Gary Ngai, Mark Ramacher, Yair Sarig, Uri Shaft, Vishwanath Sreeraman, Vinay Srihari, Randy Urbano, Amir Valiani, Venkateshwaran Venkataramani, Yujun Wang, Graham Wood, Khaled Yagoub, Mohamed Zait, Mohamed Ziauddin This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited. The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing. If this software or related documentation is delivered to the U.S.
    [Show full text]