Sandro Fiore Alessandro Negro SPACI Consortium & University of Salento, Lecce The Grid Relational Catalog.

Slides:



Advertisements
Similar presentations
Usage Statistics in Context: related standards and tools Oliver Pesch Chief Strategist, E-Resources EBSCO Information Services Usage Statistics and Publishers:
Advertisements

DT FMA Planning Guide. Task For your FMA you are required to implement the database that you designed for your TMA –Create the appropriate tables –Import.
Jeopardy Objects Navigation Buttons True/False Parts of a Report Vocabulary Q $100 Q $200 Q $300 Q $400 Q $500 Q $100 Q $200 Q $300 Q $400 Q $500 Final.
SQL This presentation will cover: A Brief History of DBMS View in database MySQL installation.
SQL reviews. Stored Procedures Create Procedure Triggers.
Relational Databases for Querying XML Documents: Limitations & Opportunities VLDB`99 Shanmugasundaram, J., Tufte, K., He, G., Zhang, C., DeWitt, D., Naughton,
Start First step Create a new blank database Create a database using the option that will enable you to build your database using pre-set options. Save.
Create a new blank database First step SUBMITTry again.
Query Manager. QM is a collection of tools you can use to obtain information from the AS/400 database Used to –select, arrange, and analyze information.
Introduction to Web Database Processing
Access Tutorial 1 Creating a Database
Introduction to Web Interface Technology (CSE2030)
Tutorial 5 Creating Advanced Queries and Enhancing Table Design
Sara SartoliAkbar Siami Namin NSF-SFS workshop July 14-18, 2014.
Tutorial 11: Connecting to External Data
Information systems and databases Database information systems Read the textbook: Chapter 2: Information systems and databases FOR MORE INFO...
UNIX By Darcy Tatlock. 1. Successful Log Into Unix To actively manipulate your website you need to be logged in. Without being logged in you cannot enter.
Dynamic Web site With PHP and MySQL. MySQL The combination of MySQL database and PHP scripting language is optimum for building dynamic websites. MySQL.
Access Lesson 4 Creating and Modifying Forms
Tutorial 1 Creating a Database. Objectives Learn basic database concepts and terms Learn basic database concepts and terms Explore the Microsoft Access.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
MySql In Action Step by step method to create your own database.
An easy way to manage Relational Databases in the Globus Community Sandro Fiore ISUFI/ Center for Advanced Computational Technologies Director: prof. Giovanni.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 1 – Access Basics.
Introduction to Databases. Overview  What is a Database?  What is a Database Management System?  How is information organized in a database?  What.
CPS120: Introduction to Computer Science Information Systems: Database Management Nell Dale John Lewis.
XML in SQL Server Overview XML is a key part of any modern data environment It can be used to transmit data in a platform, application neutral form.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 12 1 Microsoft Office Access 2003 Tutorial 12 – Managing and Securing a Database.
DATABASE and XML Moussa Mané. Learning Objectives ● Learn about Native XML Databases ● Learn about the conversion technology available ● Understand New.
10-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Database Chess A server-based web gaming application by Jordan Arnold.
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
INDIANAUNIVERSITYINDIANAUNIVERSITY OneStart page types  Tab – pages across the top, immutable  Section – pages down the left  Subsection – pages under.
Creating a Form on a Web Page
Installing and Using MySQL and phpMyAdmin. Last Time... Installing Apache server Installing PHP Running basic PHP scripts on the server Not necessary.
Web Scripting [PHP] CIS166AE Wednesdays 6:00pm – 9:50pm Rob Loy.
CPS120: Introduction to Computer Science Lecture 19 Introduction to SQL.
Copyright 2007, Information Builders. Slide 1 Enhancing Maintain Applications with HTML Mark Derwin and Mark Rawls Information Builders.
Database Systems Microsoft Access Practical #2 Making Forms and Reports Nos 215.
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
CHAPTER 9 PHP AND MYSQL. A POSSIBLE SITE CONFIGURATION Application Folder index.php includes (folder)header.phpfooter.phpstyle.cssmodel (folder)mysqli_connect.php.
XP New Perspectives on Integrating Microsoft Office XP Tutorial 3 1 Integrating Microsoft Office XP Tutorial 3 – Integrating Word, Excel, Access, and PowerPoint.
Keywords Searching and Analysis System Member Student ID Role 刘亮 Liu Liang System Analyst 顾子俊 Gu Zijun Developer 杜菡菡 Du Hanhan
Microsoft Access 2013 ®® Tutorial 10 Automating Tasks with Macros.
EGEE-II INFSO-RI Enabling Grids for E-sciencE EGEE and gLite are registered trademarks GRelC DAS: Extreme performance managing Grid.
Microsoft Access is a database program to manage sort retrieve group filter for certain records.
While you are waiting for class to start... (1)Login to SQL Server 2012 Management Studio (2) Execute the file called “SQLLab4.sql”. It is located on the.
INTRODUCTION TO ACCESS. OBJECTIVES  Define the terms field, record, table, relational database, primary key, and foreign key  Create a blank database.
Accessing mySQL relational database. MySQL database.  Today, we will attempt and open a connection to the MySQL server.  We need to specify the database.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
DAY 18: MICROSOFT ACCESS – CHAPTER 3 CONTD. Akhila Kondai October 21, 2013.
Basics of Databases and Information Retrieval1 Databases and Information Retrieval Lecture 1 Basics of Databases and Information Retrieval Instructor Mr.
Oracle Business Intelligence Foundation – Testing and Deploying OBI Repository.
Manchester Computing Supercomputing, Visualization & eScience Seamless Access to Multiple Datasets Mike AS Jones ● Demo Run-through.
Integrating Crystal Reports with SIGNZ (V3.59, July 2008) Integrating Crystal Reports with SIGNZ (V3.59, July 2008)
HTML FORM AND PHP IST 210: Organization of Data IST210 1.
ACCESS CHAPTER 2 Introduction to ACCESS Learning Objectives: Understand ACCESS icons. Use ACCESS objects, including tables, queries, forms, and reports.
ACCESS LESSON 1 DATABASE BASICS VOCABULARY. BACKSTAGE VIEW A menu of options and commands that allows you to access various screens to perform common.
MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Sravanthi Lakkimsety Mar 14,2016.
In this session, you will learn to: Create and manage views Implement a full-text search Implement batches Objectives.
1 Copyright © 2008, Oracle. All rights reserved. Repository Basics.
ECMM6018 Enterprise Networking For Electronic Commerce Tutorial 1 Installing A Web Server.
Grid DataBase Management with the GRelC DAS Sandro Fiore, Ph.D Salvatore Vadacca SPACI Consortium and.
Pennsylvania Information Management System (PIMS) PIMS Cognos Reporting Instructions December 2007.
SPACI Consortium, CMCC & University of Salento, LECCE
The Grid Relational Catalog Project
HTTP Hypertext Transfer Protocol
Nagendra Vemulapalli Access chapters 3&5 Nagendra Vemulapalli 1/18/2019.
SQL Basics BCHB697.
Advanced SQL BCHB697.
Presentation transcript:

Sandro Fiore Alessandro Negro SPACI Consortium & University of Salento, Lecce The Grid Relational Catalog Project Tutorial

GRelC Project What we will see during the tutorial Authorization Select Queries ‣ grelc-das-query-memory ‣ grelc-das-query-dime ‣ grelc-das-query-stream GRelC Portal

GRelC Project Authorization framework Before starting be sure you have a valid proxy … To create a valid proxy, run the following command ‣ grid-proxy-init With this proxy you will be able to access the sakila database on grelc02.unile.it (only select statements)

GRelC Project Select Queries To carry out SELECT queries you can use the following commands ‣ grelc-das-query-memory ‣ grelc-das-query-dime ‣ grelc-das-query-stream These kinds of query were designed to address high performance

GRelC Project Single Query Memory 1.Display help > grelc-das-query-memory -h USAGE: query-das-memory [options] -s, --server VAL Sets GRelC DAS IP or hostname (default: localhost) -p, --port NUM Sets GRelC DAS port (default: 18500) -D, --database VALSets grid database name -Q, --query VAL Sets query value -c, --chunk NUMSets chunk dimension (default:0 no chunk) -t, --table Prints result in table format (default) -x, --xml Prints result in xml format -H, --html Prints result in html format -h, --help Shows usage EXAMPLES: query submission without chunking grelc-das-query-memory -s hostname -p D database -Q 'select * from table' query submission with chunking grelc-das-query-memory -s hostname -p D database -Q 'select * from table' -c 50

GRelC Project Single Query Memory 2.Submits a query and displays its result in tabular format. The result is transferred one-shot. > grelc-das-query-memory -s grelc02.unile.it -p D sakila -Q "select * from actor" -t 3.Submits a query and displays its result in XML format. The result is transferred one-shot. > grelc-das-query-memory -s grelc02.unile.it -p D sakila -Q "select * from actor" -x 4.Submits a query and displays its result in XML format. The result is transferred in chunks of 50 tuples. The result shown is exactly the same of example no. 3 > grelc-das-query-memory -s grelc02.unile.it -p D sakila -Q "select * from actor" -x -c 50

GRelC Project Single Query File 5.Display help > grelc-das-query-dime -h USAGE: query-das-dime [options] -s, --server VAL Sets GRelC DAS IP or hostname (default: localhost) -p, --port NUM Sets GRelC DAS port (default: 18500) -D, --database VALSets grid database name -Q, --query VAL Sets query value -c, --chunk NUMSets chunk dimension (default:0 no chunk) -z, --gzip Compresses result file -t, --table Prints result in table format (default) -x, --xml Prints result in xml format -h, --help Shows usage EXAMPLES: query submission with compression grelc-das-query-dime -s hostname -p D database -Q 'select * from table' -z query submission with chunking grelc-das-query-dime -s hostname -p D database -Q 'select * from table' -c 50

GRelC Project Single Query File 6.Submits a query and displays its result in tabular format. The result is transferred one-shot. > grelc-das-query-dime -s grelc02.unile.it -p D sakila -t -Q "select * from actor" 7.Submits a query and displays its result in XML format. The result is transferred one-shot. > grelc-das-query-dime -s grelc02.unile.it -p D sakila -x -Q "select * from actor" 8.Submits a query and displays its result in XML format. The result is transferred in chunks of 50 tuples. > grelc-das-query-dime -s grelc02.unile.it -p D sakila -x -Q "select * from actor" -c 50 9.Now, let's look at the files in your current folder. Each file is a resultset stored client-side. > ls -lrta

GRelC Project Single Query File 10.Let's see what's inside one of the resultsets stored client-side. > more.grelc02.unile.it_18500_171-singlequery.xml 11.Submits a query and displays its result in XML format. The result is compressed (using -z option) and transferred in chunks of 50 tuples. > grelc-das-query-dime -s grelc02.unile.it -p D sakila -x -Q "select * from actor" -z 12.Now, let's look at the files in your current folder again. You can find a compressed and an uncompressed file for each resultset stored client-side. > ls -lrta

GRelC Project Single Query Stream 13.Submits a query and displays its result in tabular format. The result is transferred by using data streaming. > grelc-das-query-stream -s grelc02.unile.it -p D sakila -t -Q "select * from actor" 14.Submits a query and displays its result in XML format. The result is transferred one-shot.  grelc-das-query-stream -s grelc02.unile.it -p D sakila -x -Q "select * from actor”

GRelC Project GRelC Portal Authorization Before starting be sure you have a valid proxy with the correct GRelC DAS Role To create a valid proxy, run one of the following commands grid-proxy-init With this proxy you will be able to access the sakila database on grelc02.unile.it…

GRelC Project Select your proxy

GRelC Project Adding one entry to the GRelC DAS List

GRelC Project Grid Databases Management

GRelC Project Tables Management

GRelC Project View Schema

GRelC Project View Data

GRelC Project Query Submission

GRelC Project Query Submission Let’s start with a simple select query... select * from film This query retrieves all of the films available in the “sakila” database

GRelC Project Query Submission Let’s now retrieve a list of films whose length is longer than 90 minutes... select * from film where length > 90 Pretty cool! The GRelC Portal gives us a list of films

GRelC Project Query Submission Why do not we search a list of actors involved in the films listed before? select first_name, last_name, title, length from (film join film_actor on film.film_id=film_actor.film_id) join actor on actor.actor_id=film_actor.actor_id where length > 90 3 tables are now involved in our select query

GRelC Project Query Submission What if we want to know the film category of the films listed before? select category.name as category_name, first_name, last_name, title, length from (((film join film_actor on film.film_id=film_actor.film_id) join actor on actor.actor_id=film_actor.actor_id) join film_category on film.film_id = film_category.film_id) join category on category.category_id=film_category.category_id where length > 90 5 tables are now involved in our select query

GRelC Project Query Submission Let us now know who sells the films listed before, together with the category and the actors. select category.name as category_name, first_name, last_name, title, length from (((film join film_actor on film.film_id=film_actor.film_id) join actor on actor.actor_id=film_actor.actor_id) join film_category on film.film_id = film_category.film_id) join category on category.category_id=film_category.category_id where length > 90 8 tables are now involved in our select query You can enrich the query as you want, no matter how many tables are involved. If the DBMS understands your query, the GRelC DAS understands it too!