How to Use the Database Server Babbage.Cs.Abo.Fi a Mysql Database Server for Those Attending This Year's Course Is Installed on the Server Babbage.Cs.Abo.Fi

Total Page:16

File Type:pdf, Size:1020Kb

How to Use the Database Server Babbage.Cs.Abo.Fi a Mysql Database Server for Those Attending This Year's Course Is Installed on the Server Babbage.Cs.Abo.Fi How to use the database server babbage.cs.abo.fi A MySQL database server for those attending this year's course is installed on the server babbage.cs.abo.fi. All the users are allowed to see all the databases there. A user has all priviledges to those databases that are called username_database. If your username is xxxx, you can create, change and drop (delete) databases calles xxxx_bank, xxxx_jobs, xxxx_courses etc. This is how you work with the system: You log on to babbage.cs.abo.fi using your normal userID and Unix-password (if you have not defined a separate password for unix, it is the same as your Windows password). You can use a communication program such as Putty och ssh Secure Shell, or just sit at one of the computers in the Linux-class (the penguin class) and use a terminal window. You get one by clicking the right mouse button and choosing Konsole. Or you can click the F-icon (lower left corner), the choose Applications, then Utilities, then Terminal. When you have this terminal window, you must use Linux-commands. You type the commands and push “enter”. Mouse-clicks do not work here. This is how you connect to babbage: ssh [email protected] Inside Åbo Akademi, using our network, it is enought to write ssh babbage From home or elsewhere, you must access babbage from tuxedo.abo.fi. First log onto tuxedo (normal userID, normal password), then write ssh [email protected] The computer now asks your password, and you give it the same Windows password. You know that you are logged onto babbage when the system prompt looks like this: [soini@float ~]$ ssh babbage Here I connect to babbage from my own machine called float. soini@babbage's password: This is not shown. The cursor does not move. This is how it should be! Just write it! Last login: Tue Feb 22 17:28:32 2011 from float.cs.abo.fi /usr/local/bin/settings: No such file or directory. Never mind this! [soini@babbage ~]$ Here you can see that you are on babbage. The system prompt is the dollar sign $. When you are on babbage, but not yet running the mysql system, you can e g copy files to your directory. To copy the file jobdb3.sql that you need for exercise 4, write the following: $ wget http://users.abo.fi/soini/jobdb3.sql Note: You must copy these files outside the mysql-system. You cannot do it there! To get other files from the Swedish course page, you could write e g $ wget http://users.abo.fi/mats/databaser2012/databases/university.sql $ wget http://users.abo.fi/mats/databaser2012/databases/university_data_small.sql Now you can start the mysql-system: mysql -u xxxx -p Replace xxxx above with your own userID, and now give the password that Mats mailed to you or I gave you. You must write it and push 'enter'; cut and paste won't do! This is how I start mysql (my userID is soini): [soini@babbage ~]$ mysql -u soini -p Enter password: Here I write my password - it does not show! Welcome to the MySQL monitor. Commands end with ; or \g. This is important! When you have written the whole query, finish with ';' and push enter. Your MySQL connection id is 106 Server version: 5.1.54 MySQL Community Server (GPL) by Remi Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.This software comes with ABSOLUTELY NO WARRANTY. This is free software,and you are welcome to modify and redistribute it under the GPL v2 license Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> This is the mysql prompt. After this you can write your query. If the query is long, you can push 'enter' at any time to get a new line. The query is finished when you write ';' and push 'enter'. Here are some examples: mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | ... | sakila | This database you may play with. | soini_banken | These are my databases. | soini_courses | | world | This database you may play with. +--------------------+ 68 rows in set (0.00 sec) You can create a new database by writing the command create database xxxx_university; This you only need to do once for each database. You choose to use the database by writing use xxxx_university; This you must do whenever you wish to use this database. You populate (fill in) the database with schemas (university.sql) and data (university_data_small.sql) by writing source university.sql; source university_data_small.sql; This you only need to do once; then the information stays there if you do not delete it or drop the database. The first file has the structure for your database, the second has the contents. This is how you write a query: select * from course; This is how you write a longer query; the '->' prompt is written by the system to let you know that you can keep on writing. This prompt is shown until you write a ';' and push 'enter': When you want to use your database next time, simply write mysql> use soini_university; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> select * push enter -> from course natural join teaches push enter -> where ID = 10101 and push enter -> semester = 'Fall'; push enter You can drop (delete) your database if you wish - then it is no longer available: drop database xxxx_university; Other useful commands are • show databases; shows you all the databases by all the users • show tables; shows you which tables there are in the database you use • describe table_name; to see all the attributes and their descriptions in the table called table_name To end your session, write exit; or quit; Don't forget to log out of babbage! And the computer you are currently working on! GOOD LUCK!.
Recommended publications
  • Oracle® Tuxedo Installing the Oracle Tuxedo Application Runtimes 12C Release 2 (12.1.3)
    Oracle® Tuxedo Installing the Oracle Tuxedo Application Runtimes 12c Release 2 (12.1.3) April 2014 Installing the Oracle Tuxedo Application Runtimes, 12c Release 2 (12.1.3) Copyright © 1996, 2014, 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 END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are "commercial computer software" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms and license restrictions applicable to the programs.
    [Show full text]
  • Oracle Databases on Vmware Best Practices Guide Provides Best Practice Guidelines for Deploying Oracle Databases on Vmware Vsphere®
    VMware Hybrid Cloud Best Practices Guide for Oracle Workloads Version 1.0 May 2016 © 2016 VMware, Inc. All rights reserved. Page 1 of 81 © 2016 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. This product is covered by one or more patents listed at http://www.vmware.com/download/patents.html. VMware is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions. All other marks and names mentioned herein may be trademarks of their respective companies. VMware, Inc. 3401 Hillview Ave Palo Alto, CA 94304 www.vmware.com © 2016 VMware, Inc. All rights reserved. Page 2 of 81 VMware Hybrid Cloud Best Practices Guide for Oracle Workloads Contents 1. Introduction ...................................................................................... 9 2. vSphere ......................................................................................... 10 3. VMware Support for Oracle Databases on vSphere ....................... 11 3.1 VMware Oracle Support Policy .................................................................................... 11 3.2 VMware Oracle Support Process................................................................................. 12 4. Server Guidelines .......................................................................... 13 4.1 General Guidelines ...................................................................................................... 13 4.2 Hardware Assisted Virtualization ................................................................................
    [Show full text]
  • Jetnet/TUXEDO Installation This Software Manual Is Documentation for Panthert
    JetNet/TUXEDO Installation This software manual is documentation for Panthert. It is as accurate as possible at this time; however, both this manual and Panther itself are subject to revision. Prolifics and JAM are registered trademarks and JAM/TPi and Panther are trademarks of JYACC, Inc. BEA TUXEDO is a registered trademark and BEA WebLogic Enterprise is a trademark of BEA Systems, Inc. DynaText is a registered trademark of Inso Corporation. FLEXlm is a registered trademark of GLOBEtrotter Software, Inc. HP is a trademark of Hewlett-Packard Company. INFORMIX and C-ISAM are registered trademarks of Informix Software, Inc. IBM, DB2, and RISC System/6000 are registered trademarks and CICS is a trademark of International Business Machines Corporation. Microsoft, MS-DOS, Windows, Windows NT, SQL Server, ActiveX, and Visual C++ are registered trade- marks and Microsoft Windows 95, Authenticode, Microsoft Transaction Server, Microsoft Access, Micro- soft Internet Explorer, Microsoft Internet Information Server, Microsoft Management Console, and Micro- soft Open Database Connectivity are trademarks of Microsoft Corporation. Motif is a trademark of the Open Software Foundation, Inc. Oracle and SQL*Net are registered trademarks and Oracle7, Oracle8, PL/SQL, Pro*C, Rdb7, and Rdb8 are trademarks of Oracle Corporation. Netscape and Netscape Navigator, and Netscape Fast Track Server are registered trademarks of Netscape Communications Corporation. Sun, SunOS, Solaris, JavaScript, JDK, and Java are trademarks and Sun Workstation is a registered trade- mark of Sun Microsystems, Inc. SYBASE is a registered trademark and Client-Library and DB-Library are trademarks of Sybase, Inc. UNIX is a registered trademark in the United States and other countries, licensed exclusively through X/Open Company Limited.
    [Show full text]
  • Oracle® Tuxedo Programming an Oracle Tuxedo Application Using Java 12C Release 1 (12.1.1)
    Oracle® Tuxedo Programming an Oracle Tuxedo Application Using Java 12c Release 1 (12.1.1) June 2012 Oracle Tuxedo Programming an Oracle Tuxedo Application Using Java, 12c Release 1 (12.1.1) Copyright © 1996, 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 END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are "commercial computer software" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms and license restrictions applicable to the programs.
    [Show full text]
  • Oracle Technology Global Price List September 7, 2021
    Prices in USA (Dollar) Oracle Technology Global Price List September 7, 2021 This document is the property of Oracle Corporation. Any reproduction of this document in part or in whole is strictly prohibited. For educational purposes only. Subject to change without notice. 1 of 16 Section I Prices in USA (Dollar) Oracle Database Software Update Processor Software Update Named User Plus License & Support License License & Support Database Products Oracle Database Standard Edition 2 350 77.00 17,500 3,850.00 Enterprise Edition 950 209.00 47,500 10,450.00 Personal Edition 460 101.20 - - Mobile Server - - 23,000 5,060.00 NoSQL Database Enterprise Edition 200 44 10,000 2,200.00 Enterprise Edition Options: Multitenant 350 77.00 17,500 3,850.00 Real Application Clusters 460 101.20 23,000 5,060.00 Real Application Clusters One Node 200 44.00 10,000 2,200.00 Active Data Guard 230 50.60 11,500 2,530.00 Partitioning 230 50.60 11,500 2,530.00 Real Application Testing 230 50.60 11,500 2,530.00 Advanced Compression 230 50.60 11,500 2,530.00 Advanced Security 300 66.00 15,000 3,300.00 Label Security 230 50.60 11,500 2,530.00 Database Vault 230 50.60 11,500 2,530.00 OLAP 460 101.20 23,000 5,060.00 TimesTen Application-Tier Database Cache 460 101.20 23,000 5,060.00 Database In-Memory 460 101.20 23,000 5,060.00 Database Enterprise Management Diagnostics Pack 150 33.00 7,500 1,650.00 Tuning Pack 100 22.00 5,000 1,100.00 Database Lifecycle Management Pack 240 52.80 12,000 2,640.00 Data Masking and Subsetting Pack 230 50.60 11,500 2,530.00 Cloud Management
    [Show full text]
  • Open Source Software Development: an Overview
    COMPUTING PRACTICES Open Source Software Development: An Overview Although some challenge the value of open source software development,its popularity cannot be disputed. This overview of open source licensing and development models describes some of the movement’s main principles. Ming-Wei Wu roprietary software vendors operate on a seeks to develop Unix-compatible software and return closed-source model: They develop their software to a state of freedom. Ying-Dar Lin own software and release that software to Stallman is both an open source evangelist and a National the public with the intention of gaining mar- major open source contributor as the principal author Chiao Tung University, ket penetration and earning a profit. The of the GNU C Compiler (GCC), GNU symbolic Taiwan Popen source movement, while still profitable in many debugger (GDB), GNU Emacs, and more. All these ways to profit-oriented companies, relies on a differ- packages provide essential tools for GNU/Linux. The ent set of practices. In the open source movement, Red Hat 7.1 distribution, which collects some 1,016 everyone capable of writing code is welcome to join packages altogether, contains 70 GNU packages. in, a strategy that—according to open source advo- The purpose of the Free Software Foundation is not cates—directly leads to more robust software and to ensure distributing software to the end user without more diverse business models. cost, but to ensure that the end user can use the soft- While some challenge the general assumptions ware freely. From the Free Software Foundation’s per- about the benefits of open source software develop- spective, the term “free software” has nothing to do ment,1 the evidence of popular buy-in cannot be dis- with price: A program is free software if you have the puted.
    [Show full text]
  • Developing and Deploying High Performance PHP Applications
    Developing and Deploying High Performance PHP Applications http://joind.in/3396 php|tek 2011 http://blogs.oracle.com/opal Christopher Jones [email protected] Oracle Development http://twitter.com/ghrd 1 This Talk - What to Expect • “State of the Nation” overview of PHP & Oracle Technology • (Some) Best Practices with Oracle Database – With live demos 2 The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle. 3 About Me • Work in Oracle's Linux & Virtualization Group • Focus on scripting languages – mostly PHP – Have PHP code check-in privileges • Also work on Oracle features that help scripting languages 4 <Insert Picture Here> In The News 5 In the News: NetBeans IDE • Free – GPL / CDDL • NetBeans is very popular for PHP – Strong, passionate community of users • Zend Framework, Symfony, XDebug, PHPUnit, PhpDoc • New! NetBeans 7.0 just released – Generate PhpDoc – Rename refactoring, Safe delete refactoring – Support for PHP 5.3 namespace aliases • See http://netbeans.org/features/php 6 In the News: Oracle Database • Beta Oracle 11.2 “XE” is available – Free – Windows 32 & 64, Linux 64 – Subset of Enterprise Edition features – Same code base as EE – XE
    [Show full text]
  • Oracle® Tuxedo Product Overview 12C Release 1 (12.1.1)
    Oracle® Tuxedo Product Overview 12c Release 1 (12.1.1) June 2012 Oracle Tuxedo Product Overview, 12c Release 1 (12.1.1) Copyright © 1996, 20112, 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 END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are "commercial computer software" pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms and license restrictions applicable to the programs. No other rights are granted to the U.S.
    [Show full text]
  • Installing the Oracle Tuxedo System 10G Release 3 (10.3)
    Oracle® Tuxedo Installing the Oracle Tuxedo System 10g Release 3 (10.3) January 2009 Tuxedo Installing the Oracle Tuxedo System, 10g Release 3 (10.3) Copyright © 1996, 2009, 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 software or related documentation 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. As such, the use, duplication, disclosure, modification, and adaptation shall be subject to the restrictions and license terms set forth in the applicable Government contract, and, to the extent applicable by the terms of the Government contract, the additional rights set forth in FAR 52.227-19, Commercial Computer Software License (December 2007).
    [Show full text]
  • Roadmap and Strategy for Weblogic / Glassfish Server in the Cloud
    Roadmap and Strategy for WebLogic / GlassFish Server in the Cloud HUJAK Keynote Duško Vukmanovi ć FMW Principal Sales Consultant Oracle Obligatory Safe Harbor Statement The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions . The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle. Program Agenda • WebLogic Server Roadmap • WebLogic Server Today / Tomorrow • GlassFish Server Roadmap • GlassFish Server Today / Tomorrow Oracle Cloud Application Foundation Complete & Integrated Modern Cloud Infrastructure Private Cloud Traffic Director/Web Tier WebLogic Coherence Tuxedo Server Deployment Public Cloud Cloud Application Foundation Roadmap WebLogic Server, Coherence and Fusion Middleware Dec 2011 Feb 2012 CY2013 CY 2013+ WebLogic Server 12c WebLogic Server 11g WebLogic Server 12c Java EE 7, Java SE 8, (12.1.1) + PS5 (10.3.6) + (12.1.2) + Cloud Coherence 3.7.1.1 Coherence 3.7.1.1 Coherence 12c (12.1.2) (12.1.3/12.1.4) • Pre-Fusion Middleware 12c • Fusion Middleware 11g PS5 • FMW Infrastructure w/ADF • SOA, ODI, WebCenter • Java EE 6 (11.1.1.6+) • Java SE 7 • Java EE 7 Reference • Java SE 6 and 7 • Java SE 6 and 7 • JDev , Eclipse, NetBeans Implementation and • Maven integration updates • JDev, OEPE, NetBeans • Upgradeability
    [Show full text]
  • Tuxedo Web Application Server Demo VM
    Tuxedo Web Application Server Demo VM VM Setup Instructions Please note that this appliance is for testing purposes only, as such it is unsupported and should not to be used in production environment. This virtual machine contains: • Oracle Linux 5.6 • Oracle Tuxedo 11gR1PS1 11.1.1.2.0 • Oracle SALT 11gR1 11.1.1.2.2 • Oracle TSAM 11gR1 11.1.1.2.0 • Oracle Database XE 10.2 • PHP 5.3.6, xDebug extension • Apache HTTP Server 2.2.17 • NetBeans PHP IDE 7.0 Beta • JDK 1.6 + See end of Step 4 in the Setup section for passwords information. Requirements Operating System: Any RAM: 2GB+ RAM Disk: About 9.25GB free (+2GB for VM disk archive, which can be deleted after import) Required Software: Oracle VM VirtualBox 4.0.2 or later Setup Step 1. Download and install Oracle VM VirtualBox on your host system. Step 2. Right-click and choose Save As... to download the VM disk file on OTN. Step 3. Unzip the tuxweb.7z VM disk file using 7zip. Step 4. Create your VM: Click Next, then enter a name for this Virtual Machine: 512 MB is a good starting base memory size, but of course more is better if your system permits. Select Use existing hard disk, then click on the folder icon to locate the file you unzipped previously After clicking on Next Then click on Finish In order to configure the VM on the network independently of the host, you may configure the network adapter in bridged mode. To do so, right-click on the VM, then select Settings..
    [Show full text]
  • Chapter 1 - Describing Open Source & Free Software Communities
    PROTECTING THE VIRTUAL COMMONS Self-organizing open source and free software communities and innovative intellectual property regimes Ruben van Wendel de Joode Hans de Bruijn Michel van Eeten Delft September 2002 Draft version (official version to be published by Asser Press in 2003) For questions, suggestions or comments please contact: Ruben van Wendel de Joode at [email protected] © 2002 Ruben van Wendel de Joode, Hans de Bruijn and Michel van Eeten Table of contents ACKNOWLEDGEMENTS..............................................................................................5 INTRODUCTION.............................................................................................................6 Questions guiding the research...................................................................................6 Structure of the report .................................................................................................7 CHAPTER 1 - DESCRIBING OPEN SOURCE & FREE SOFTWARE COMMUNITIES...............................................................................................................9 1.1 - INTRODUCTION........................................................................................................9 1.2 - POPULARITY OF OPEN SOURCE AND FREE SOFTWARE.............................................9 1.3 - HISTORICAL DEVELOPMENT OF OPENNESS & FREEDOM.......................................11 The origin of the Internet ..........................................................................................11 Richard
    [Show full text]