What Is PL/SQL?

Total Page:16

File Type:pdf, Size:1020Kb

What Is PL/SQL? Oracle SQL Tutorial: Get Started Quickly https://www.udemy.com/blog/oraclesql‐tutorial/ This Oracle/SQL tutorial offers a quick way to learn how to use SQL to interact with an Oracle database. Newcomers to programming often consider learning a new programming language to be a difficult process. The best way to learn a new language is to start with the basics and then move to more advanced topics. If you’re interested in demystifying the concepts relating to programming, an introductory course designed to teach non‐programmers the basics is a good place to start. Let’s get started! What is the Relationship Between Oracle and SQL? To understand Oracle SQL, you first need to understand SQL. SQL is an acronym that stands for Structured Query Language, which is a type of programming language. Like all programming languages, SQL has two distinct characteristics: (1) it is comprised of a set of instructions and (2) it is used to solve problems. The instructions you write in SQL are called statements. Programming languages such as C++ and Java are considered general purposes languages because they can solve a variety of different problems. SQL is designed to focus on one— managing data that is stored in a relational database management system or RDMS. There are numerous flavors of SQL that differ in how they implement the programming language. The list includes DB2, MS SQL Server, MySQL, PostgreSQL, Informix, and of course Oracle. Oracle was the first of these implementations to be offered for commercial purposes (it was initially sold to government agencies). Today, Oracle SQL is considered the standard implementation for interacting with RDBMS. Oracle 11g is the most recent version of Oracle that was released in 2007. Once you learn the basics in this tutorial, you can then extend your skills to include database administration. A comprehensive course in Oracle 11g, which includes the basics for administering an Oracle 11g database, is an excellent choice. Key Concepts Before jumping into using the Oracle implementation of SQL, there are some important concepts you should understand because you will undoubtedly come across them when using the language. These concepts are common to other query languages, but some have specific uses in Oracle. Database – A collection of data that is organized in a specific order. Table – An object that stores data or information in columns and rows organized in a database. Datatype – The kind of data stored in a table or column. Oracle includes the following basic datatypes: char, varchar, number, date, and long. Schema – The structure of an entire database (tables and fields), and how they relate to one another. Command/Query – An operation that you perform on a database. The most basic operations you can perform on an Oracle database include the following: SELECT – Retrieve data CREATE – Create a table INSERT – Add data UPDATE – Replace a row value with the value identified in the SQL expression DELETE – Remove rows from a table DROP – Remove a table Query Statement – A series of elements that are executed against a database to perform a specific command. If you’re interested in learning more about these concepts, you could do so in under a week by taking a quick course in SQL. Querying an Oracle Database with SQL Learning a new programming language is a lot like learning a new spoken language. You first have to learn the rules of the language. In programming terms, the rules are called syntax. It’s important that you follow the rules to prevent errors during processing. The most common SQL command is to query a database for specific data. You use the SELECT statement to do this: SELECT * FROM Customers; This is what you need to know about this statement: SELECT is the operation that instructs SQL that we want to extract data from the database. The asterisk is a shortcut for referring to all columns in the table. If you want to query a single column, you would use the name of the column instead of an asterisk. FROM Customers indicates where SQL should get the data. The semicolon at the end of the statement signals SQL the conclusion of the statement. SQL reserved words such as SELECT and FROM are not case sensitive, but common practice is to use all capital letters for readability. SQL commands have specific purposes, but they have a similar structure. Here are more examples: Example Query 1: CREATE CREATE TABLE Movies ( MovieID int, Title varchar(255) Genre varchar(255) Rating varchar(255) ); This is what you need to know about this query: CREATE TABLE Movies is the operation that indicates the name of the new table we want created. The information between the open and close parentheses identifies the columns in the new table and their datatypes. Example Query 2: INSERT INSERT INTO Movies (MovieID, Title, Genre, Rating) VALUES (‘0001’, ‘Matrix Reloaded’, ‘Science Fiction’, ‘PG’); This is what you need to know about this query: INSERT INTO Movies (MovieID, Title, Genre, Rating) is the operation that informs SQL of the data we want to add. The data in the first set of parentheses indicate the columns we want to populate. VALUES (‘0001’, ‘Matrix Reloaded’, ‘Science Fiction’, ‘PG’) indicates the list of values we want for each column. Example Query 3: UPDATE UPDATE Orders SET CustomerName= ‘Jane Done’ WHERE CustomerName= ‘John Doe’; This is what you need to know about this query: UPDATE Orders is the operation that instructs SQL which table we want to update. SET CustomerName= ‘Jane Doe’ indicates the updated data WHERE CustomerName= ‘John Doe’ indicates the data we want to update. Example Query 4: DELETE DELETE FROM Contractors WHERE ContractorName= ‘Smith Contracting, Inc.’; This is what you need to know about this query: DELETE FROM Contractors is the operation that indicates where we want to make a deletion. WHERE ContractorName= ‘Smith Contracting, Inc.’ indicates the data we want to delete. Example Query 5: DROP DROP TABLE Movies; This is what you need to know about this query: DROP TABLE Movies is the operation that indicates which table we want to delete. These are just the basics of using SQL with an Oracle RDBMS. The query language includes other elements that extend basic SQL functions. You are now ready to put your knowledge to work and take a course that teaches the basics of developing a local database. PHP For Loop: A Lesson in Repetition https://www.udemy.com/blog/php‐for‐loop/ PHP: Hypertext Preprocessor (PHP) is a server‐side scripting language that is interpreted by a web server, and then optionally displayed in HTML. It basically runs as a program inside of a website. PHP programs do not compile the same as general purpose programming languages, but use similar logic, such as loops that change program logic. Adding Loops to Your PHP Programs Computer programs rarely contain statements that run on a continuous path from beginning to end. The more common scenario is that the program makes stops along the path to evaluate conditions and execute statements according to those conditions. PHP supports four types of loop statements: for – Repeat for a specific number of times while – Repeat until the condition is true do…while – Same as While, but executes at least once foreach – Repeat elements in an array For this tutorial the concentration is the for loop. If the PHP language is new to you, you may want to consider learning PHP from scratch first to grasp the basics of the language. The for loop syntax looks like this: for (declaration; condition; action) { Statement to execute; } As you can see, there are two basic steps for creating a for loop in PHP: 1. Start the loop with the for keyword followed by three parameters (declaration, condition, and action) enclosed in parentheses: Declaration – Expression that declares the variable that you want to loop and its starting value. Add a semicolon at the end of the expression. Condition – Expression that sets the condition that you want to use to test against the variable. The loop will continue until this condition is no longer true. Add a semicolon at the end of the expression. Action – Expression that specifies how the value of the variable is updated. You can use the increment operator (++) to increase the value or the decrement operator (‐ ‐) to decrease the value. This expression is written with the operator immediately following the variable, no spaces. 2. Next, you add the statement that you want to execute, enclosed in curly brackets. Example 1: Simple Loop This example uses the classic “Hello world!” program to demonstrate how a PHP for loop works. <?php for ($num=1; $num<=5; $num++) { echo “ Hello world!””<br/>; } ?> In English language terms, this block of code states to start a variable called num at 1, continue the loop as long as the value of num is less than or equal to 5, and at the end of each loop increase the value of num by one. For each loop print “Hello world!” on the screen. Here’s the output: Hello world! Hello world! Hello world! Hello world! Hello world! For each loop there is an output of “Hello world!” to the screen. Example 2: Nested for Loops The snippet of code in example 1 contains a single for loop. You can also create nested loops of two or more for loops that add more complexity to your code. This example contains two for loops to create a mathematical table you might recognize from your childhood. You can learn more interesting techniques in a PHP for beginners course. <?php echo “<table>”; for ($x=1; $num<=10; $x++) { echo “<tr>; for ($y=1; $y<=10; $y++) { echo “<td>”; echo $x*$y; echo “</td>”; } echo “</tr>”; } echo “</table>”; ?> Here’s the output: 1 2 3 4 5 6 7 8 9 10 2 4 6 8 10 12 14 16 18 20 3 6 9 12 15 18 21 24 27 30 4 8 12 16 20 24 28 32 36 40 5 10 15 20 25 30 35 40 45 50 6 12 18 24 30 36 42 48 54 60 7 14 21 28 35 42 49 56 63 70 8 16 24 32 40 48 56 64 72 80 9 18 27 36 45 54 63 72 81 90 10 20 30 40 50 60 70 80 90 100 You might recognize the output as a multiplication table.
Recommended publications
  • DM2 Week 15 PHP Mysql.Pptx
    PHP and MySQL ATLS 3020 Digital Media 2 Aileen Pierce Web Database Applications PHP Working with Databases ¤ PHP scripts can easily access many different databases ¤ MySQL ¤ Oracle ¤ Informix ¤ mSQL ¤ ODBC ¤ PHP provides functions that begin with mysqli_ to access MySQL databases. PHP Communicating with MySQL ¤ PHP works with MySQL using the following process: 1. Connect to MySQL 2. Prepare a SQL statement 3. Execute the statement and save the result 4. Extract the data from the result 5. Prepare the resulting page Connecting PHP to MySQL ¤ Connect to MySQL $dbc= mysqli_connect(“hostname”, “username”, “password”, “db_name”); ¤ Hostname is the URL of the MySQL server. ¤ Use localhost if PHP and MySQL servers are on the same machine (as on redwood). ¤ Username and password are for MySQL. ¤ Database name is identikey+db (apiercedb) ¤ Must assign the connection to a variable to use throughout your script. Connecting PHP to MySQL ¤ mysqli_connect_error() returns an error if the connection is not made. $dbc= mysqli_connect(“hostname”, “username”, “password”, “db_name”) OR die ('Could not connect to MySQL: ' . mysqli_connect_error() ); ¤ die() will cause the script to exit ¤ Prints out an error message SQL Statements ¤ The mysqli_query() function allows you to pass any SQL command to the database and the result is returned. $result= mysqli_query(“db connection”, “SQL”); ¤ Use phpmyadmin to help you create the SQL statement $result = mysqli_query($dbc, “SELECT * from drink” ); SQL Statements ¤ Or assign the SQL statement to a variable $sql = “INSERT INTO drink (name, caf, whip, calories) VALUES ('cappuccino', 'yes', 'no', '90')”; ¤ Then pass the SQL statement to the database connection $result = mysqli_query($dbc, $sql); ¤ You must assign the result to a variable.
    [Show full text]
  • The Lightning Memory-Mapped Database
    The Lightning Memory-Mapped Database Howard Chu CTO, Symas Corp. [email protected] Chief Architect, OpenLDAP [email protected] 2015-09-21 OpenLDAP Project ● Open source code project ● Founded 1998 ● Three core team members ● A dozen or so contributors ● Feature releases every 12-18 months ● Maintenance releases as needed 2 A Word About Symas ● Founded 1999 ● Founders from Enterprise Software world – platinum Technology (Locus Computing) – IBM ● Howard joined OpenLDAP in 1999 – One of the Core Team members – Appointed Chief Architect January 2007 ● No debt, no VC investments: self-funded 3 Intro ● Howard Chu – Founder and CTO Symas Corp. – Developing Free/Open Source software since 1980s ● GNU compiler toolchain, e.g. "gmake -j", etc. ● Many other projects... – Worked for NASA/JPL, wrote software for Space Shuttle, etc. 4 Topics (1) Background (2) Features (3) Design Approach (4) Internals (5) Special Features (6) Results 5 (1) Background ● API inspired by Berkeley DB (BDB) – OpenLDAP has used BDB extensively since 1999 – Deep experience with pros and cons of BDB design and implementation – Omits BDB features that were found to be of no benefit ● e.g. extensible hashing – Avoids BDB characteristics that were problematic ● e.g. cache tuning, complex locking, transaction logs, recovery 6 (2) Features LMDB At A Glance ● Key/Value store using B+trees ● Fully transactional, ACID compliant ● MVCC, readers never block ● Uses memory-mapped files, needs no tuning ● Crash-proof, no recovery needed after restart ● Highly optimized, extremely compact – under 40KB object code, fits in CPU L1 I$ ● Runs on most modern OSs – Linux, Android, *BSD, MacOSX, iOS, Solaris, Windows, etc..
    [Show full text]
  • Oracle® Transparent Gateway for Microsoft SQL Server Administrator’S Guide 10G Release 2 (10.2) for Microsoft Windows (32-Bit) B14270-01
    Oracle® Transparent Gateway for Microsoft SQL Server Administrator’s Guide 10g Release 2 (10.2) for Microsoft Windows (32-bit) B14270-01 June 2005 Oracle Transparent Gateway for Microsoft SQL Server Administrator’s Guide, 10g Release 2 (10.2) for Microsoft Windows (32-bit) B14270-01 Copyright © 2002, 2005, Oracle. All rights reserved. Primary Author: Amitai Sela Contributing Author: Laurel Hale, Cynthia Kibbe, Kishan Peyetti, Juan Ahues-Vasquez, Govind Lakkoju Contributor: Orit Curiel, Jacco Draaijer, Vira Goorah 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]
  • A Relational Multi-Schema Data Model and Query Language for Full Support of Schema Versioning?
    A Relational Multi-Schema Data Model and Query Language for Full Support of Schema Versioning? Fabio Grandi CSITE-CNR and DEIS, Alma Mater Studiorum – Universita` di Bologna Viale Risorgimento 2, 40136 Bologna, Italy, email: [email protected] Abstract. Schema versioning is a powerful tool not only to ensure reuse of data and continued support of legacy applications after schema changes, but also to add a new degree of freedom to database designers, application developers and final users. In fact, different schema versions actually allow one to represent, in full relief, different points of view over the modelled application reality. The key to such an improvement is the adop- tion of a multi-pool implementation solution, rather that the single-pool solution usually endorsed by other authors. In this paper, we show some of the application potentialities of the multi-pool approach in schema versioning through a concrete example, introduce a simple but comprehensive logical storage model for the mapping of a multi-schema database onto a standard relational database and use such a model to define and exem- plify a multi-schema query language, called MSQL, which allows one to exploit the full potentialities of schema versioning under the multi-pool approach. 1 Introduction However careful and accurate the initial design may have been, a database schema is likely to undergo changes and revisions after implementation. In order to avoid the loss of data after schema changes, schema evolution has been introduced to provide (partial) automatic recov- ery of the extant data by adapting them to the new schema.
    [Show full text]
  • Oracle & Innodb
    MySQL for the SQL Server DBA Mike Frank, Product Manager - Oracle/MySQL Agenda • MySQL Overview • Use Cases • Comparing Feature Sets • Tools Overview • Next Steps © 2010 Oracle Corporation 2 About MySQL • 15 years of development • 1412 Years million of active Development installations • 750+70,000+ Partners downloads each day • 70K+#3 most Downloads deployed database Per Day • Up to 90% lower TCO than proprietary database offerings Customers across every major operating system, hardware Customersvendor, across geography, every industry,major operating and application system, hardwaretype vendor, geography, industry, and application type High Performance. Reliable. Easy to Use. © 2010 Oracle Corporation 3 Industry Leading Customers Web / Web 2.0 OEM / ISV's SaaS, Hosting, Cloud Computing Telecommunications Enterprise 2.0 © 2010 Oracle Corporation 4 Why MySQL? © 2010 Oracle Corporation 5 Why MySQL? • Lower TCO • Performance – “Up to 90% Faster Query Response Times” • Scalability – “Up to 16-way x86 Servers” – “Up to 64-way CMT Servers” • Reliability – Up to five 9s with MySQL Cluster • Ease of Use – Up and running in 15 minutes – MySQL Enterprise Monitor – MySQL Workbench • Open Source http://www.mysql.com/why-mysql/benchmarks/ © 2010 Oracle Corporation 6 Popular on Windows • 45,000 downloads per day for Windows packages • Server • Tools • Connectors • MySQL Survey 2009 • 66% percent used Windows for development • 48% deployed on Windows for production © 2010 Oracle Corporation 7 Lower Total Cost of Ownership • Compared to SQL Server Enterprise Edition • Per Server vs Per CPU • No Upfront Licensing • Example: – 6 Servers – 2 CPUs per Server – 88% Savings! • MySQL Enterprise – 24x7 Production Support – Enterprise Monitor – Enterprise Binaries • MySQL Enterprise Unlimited – Unlimited Servers at a Low Fixed Cost © 2010 Oracle Corporation 8 Use Cases/Application Scenarios © 2010 Oracle Corporation 9 Why MySQL? - Web Infrastructure 1.
    [Show full text]
  • Mysql Essentials
    <Insert Picture Here> MySQL Essentials Bill Papp Principal Sales Consultant Oracle MySQL What is MySQL? 2 My Experience with MySQL Is……? • I‟ve never seen / used MySQL – I‟m only here because my boss told me to come…… • Downloaded and played around with it in college „cause I didn‟t have money for a „real‟ database…… • Have developed some websites / applications…they seem to work well most of the time…… • I periodically help Facebook tune their servers and am presenting in a MySQL Track at Oracle Open World next month! 3 MySQL Overview • MySQL AB, founded in 1995 • Acquired by Sun in 2008; Sun/MySQL acquired by Oracle in 2009 • 12+ million product installations • ~65,000 downloads each day • Part of the rapidly growing open source LAMP stack • MySQL GPL & Commercial Editions Available 4 LAMP Operating System L Application Server A Database M Scripting P 5 MySQL is Everywhere Multiple Platforms Multiple Languages C C++ C# 6 MySQL: #3 Most Deployed Database Oracle 70% 8% 9% 14% SQL Server 68% 11% 6% 15% MySQL 50% 13% 10% 28% DB2 39% 12% 11% 38% Informix 18% 13% 14% 55% Sybase ASE 15% 14% 14% 57% Sybase IQ 14% 14% 13% 59% Teradata 11% 15% 13% 61% 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100% Currently Deployed Plan to Deploy Next Year Plan to Deploy but Not in the Next Year No Plans to Deploy 63% Are Deploying MySQL or Are Planning To Deploy 7 Oracle’s Investment in MySQL • Make MySQL a Better MySQL • #1 Open Source Database for Web Applications • MySQL Focus Areas • Web, Embedded & Telecom • LAMP • Windows • Develop, Promote and Support MySQL
    [Show full text]
  • Oracle Glassfish Server Application Development Guide Release 3.1.2 E24930-01
    Oracle GlassFish Server Application Development Guide Release 3.1.2 E24930-01 February 2012 This Application Development Guide describes how to create and run Java Platform, Enterprise Edition (Java EE platform) applications that follow the open Java standards model for Java EE components and APIs in the Oracle GlassFish Server environment. Topics include developer tools, security, and debugging. This book is intended for use by software developers who create, assemble, and deploy Java EE applications using Oracle servers and software. Oracle GlassFish Server Application Development Guide, Release 3.1.2 E24930-01 Copyright © 2012, Oracle and/or its affiliates. All rights reserved. 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, the following notice is applicable: U.S. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S. Government customers are "commercial computer software" or "commercial technical data" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations.
    [Show full text]
  • Innodb 1.1 for Mysql 5.5 User's Guide Innodb 1.1 for Mysql 5.5 User's Guide
    InnoDB 1.1 for MySQL 5.5 User's Guide InnoDB 1.1 for MySQL 5.5 User's Guide Abstract This is the User's Guide for the InnoDB storage engine 1.1 for MySQL 5.5. Beginning with MySQL version 5.1, it is possible to swap out one version of the InnoDB storage engine and use another (the “plugin”). This manual documents the latest InnoDB plugin, version 1.1, which works with MySQL 5.5 and features cutting-edge improvements in performance and scalability. This User's Guide documents the procedures and features that are specific to the InnoDB storage engine 1.1 for MySQL 5.5. It supplements the general InnoDB information in the MySQL Reference Manual. Because InnoDB 1.1 is integrated with MySQL 5.5, it is generally available (GA) and production-ready. WARNING: Because the InnoDB storage engine 1.0 and above introduces a new file format, restrictions apply to the use of a database created with the InnoDB storage engine 1.0 and above, with earlier versions of InnoDB, when using mysqldump or MySQL replication and if you use the older InnoDB Hot Backup product rather than the newer MySQL Enterprise Backup product. See Section 1.4, “Compatibility Considerations for Downgrade and Backup”. For legal information, see the Legal Notices. Document generated on: 2014-01-30 (revision: 37565) Table of Contents Preface and Legal Notices .................................................................................................................. v 1 Introduction to InnoDB 1.1 ............................................................................................................... 1 1.1 Features of the InnoDB Storage Engine ................................................................................ 1 1.2 Obtaining and Installing the InnoDB Storage Engine ............................................................... 3 1.3 Viewing the InnoDB Storage Engine Version Number ............................................................
    [Show full text]
  • ASA- R-20222 / / ;' P Q DEPARTMENT of COMPUTER SCIENCE COLLEGE of SCIENCES OLD DOMINION UNIVERSITY NORFOLK, VIRGINIA 23529
    INASA-_R-20222 / / ;' p Q DEPARTMENT OF COMPUTER SCIENCE COLLEGE OF SCIENCES OLD DOMINION UNIVERSITY NORFOLK, VIRGINIA 23529 INFORMATION TECHNOLOGY: A TOOL TO CUT HEALTH L) CARE COSTS © By Dr. Ravi Mukkamala, Principal Investigator Final Report For the period ended August 31, 1996 Prepared for National Aeronautics and Space Administration Langley Research Center Hampton, VA 23681-0001 Under Research Grant Number NAG-l-1690 Wayne H. Bryant, Technical Monitor O Submitted by the Old Dominion University Research Foundation P.O. Box 6369 Norfolk, VA 23508-0369 September 1996 DEPARTMENT OF COMPUTER SCIENCE COLLEGE OF SCIENCES OLD DOMINION UNIVERSITY NORFOLK, VIRGINIA 23529 INFORMATION TECHNOLOGY: A TOOL TO CUT HEALTH CARE COSTS By Dr. Ravi Mukkamala, Principal Investigator Final Report For the period ended August 31, 1996 Prepared for National Aeronautics and Space Administration Langley Research Center Hampton, VA 23681-0001 Under Research Grant Number NAG-l-1690 Wayne H. Bryant, Technical Monitor Submitted by the Old Dominion University Research Foundation P.O. Box 6369 Norfolk, VA 23508-0369 September 1996 Information Technology: A Tool to Cut Health Care Costs Final Report (NAG-l-1690) R. Mukkamala K.J. Maly C.M. Overstreet E.C. Foudriat Department of Computer Science Old Dominion University Norfolk, Virginia 23529. Abstract We report on the work done as part of the NASA LaRC grant NAG-l-1690. As part of this effort, we have designed and built a prototype for an integrated medical record system. MRS (Medical Record System) is written in Tcl/Tk. While the initial version of the prototype had patient information hard coded into the system, the later versions used an INGRES database for storing patient information.
    [Show full text]
  • A Study of the Innodb Storage Engine in the Mysql 5.6
    SERVICE COMPUTATION 2017 : The Ninth International Conferences on Advanced Service Computing A Study of the InnoDB Storage Engine in the MySQL 5.6 Hong-Jin, Park School of Computer, Information and Communications Sangji University 83 Sangjidae-gil, Wonju, Gangwondo, Korea [email protected] Abstract—MySQL is the most widely used open source models used as a performance benchmark for databases relational database management system. The logical structure through Online Transaction Processing (OLTP) work. of MySQL is largely divided into three layers and the storage Ubuntu 14.04 LTS (Long Term Support) was used as an engine belongs to the last layer. The purpose of this paper is to operating system and HammerDB was installed to evaluate evaluate the performance of InnoDB engine, the engine that performance with TPC-C. supports transaction of several storage engines used in MySQL 5.6. TPC-C (Transaction Processing performance Council – C), II. MYSQL LOGICAL STRUCTURE : INNODB an international standard model of benchmarking, is used for performance evaluation and performance evaluation was MySQL is an open source relational database carried out by installing HammerDB for this purpose. It was management system currently distributed by Oracle. The found that, if the number of user requests increases and the logical structure of MySQL is largely divided into three number of transaction processing requests increases, then the layers. There is a Handing layer in the highest layer and number of transactions processed in InnoDB also increases. processes DB connection, authentication and security. Parsing of query, analysis, review, optimization and caching Keywords- InnoDB, Storage Engine, TPC-C, MySQL 5.6 are performed in the middle layer of the logical structure in MySQL.
    [Show full text]
  • 01 Front.Pdf
    Copyright is owned by the Author of the thesis. Permission is given for a copy to be downloaded by an individual for the purpose of research and private study only. The thesis may not be reproduced elsewhere without the permission of the Author. Developing a Courseware Database for The AudioGraph A Thesis presented in partial fulfilment of the requirements for the degree of Master m Computer Science At Massey University, Palmerston North, New Zealand. Jun Pan 2000 Dedication To memory of my auntie, Jin Yuan Pan To my eldest sister, Feng Lan Pan To my lovely daughter, Shu Ke Acknowledgments I would like to take this opportunity to thank the people who have helped to make my thesis a reality. First, I would like to thank my supervisor, Chris Jesshope, for providing valuable guidance and suggestions along the way. I would also like to thank Elizabeth Kemp, who was very careful of checking my thesis and giving suggestions. Second, I would like to give my thanks to Zhenzi Zhang, my colleague and my best friend, for her ability to endure my demands for improvement. Without her continued help, my thesis wouldn't be handed in on time. Thanks to my friend, Margaret Rollinson for checking my English grammar and for making this a smooth and understanding process. Thanks to my colleagues, Simon Zhang, Robin Luo and Y ongqiu Liu. They gave me valuable feedback for my coding test. Finally I give my thanks to my lovely daughter, Shu for her support and understanding during thesis writing. Giving up mum time has not been easy for her.
    [Show full text]
  • Deploying Web 2.0 Applications on Oracle Servers and the Opensolaris Operating System
    An Oracle White Paper April 2010 Deploying Web 2.0 Applications on Oracle® Servers and the OpenSolaris Operating System Oracle White Paper—Deploying Web 2.0 Applications on Oracle Servers and the OpenSolaris Operating System Introduction ......................................................................................... 1 Typical Web 2.0 Architecture .............................................................. 2 Solution Overview ............................................................................... 3 Solution Configuration......................................................................... 4 Hardware Configuration .................................................................. 4 Software Configuration ................................................................... 6 Olio Configuration ........................................................................... 6 Configuration and Tuning.................................................................... 7 Apache HTTP Server...................................................................... 8 PHP................................................................................................. 8 Memcached .................................................................................... 9 Database Server ............................................................................. 9 Test Results ...................................................................................... 10 Throughput and Response Time .................................................
    [Show full text]