The Grid Relational Catalog Project

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

SQL This presentation will cover: A Brief History of DBMS View in database MySQL installation.
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.
DIMES Planner The DIMES Project Tel Aviv University October-2010.
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.
Multiple Tiers in Action
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 1 Creating and Using a Database.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 8 Introduction to Printers in a Windows Server 2008 Network.
Dynamic Web site With PHP and MySQL. MySQL The combination of MySQL database and PHP scripting language is optimum for building dynamic websites. MySQL.
Simple Web SQLite Manager/Form/Report
An easy way to manage Relational Databases in the Globus Community Sandro Fiore ISUFI/ Center for Advanced Computational Technologies Director: prof. Giovanni.
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.
DATABASE and XML Moussa Mané. Learning Objectives ● Learn about Native XML Databases ● Learn about the conversion technology available ● Understand New.
ITIS 1210 Introduction to Web-Based Information Systems Chapter 23 How Web Host Servers Work.
Web Scripting [PHP] CIS166AE Wednesdays 6:00pm – 9:50pm Rob Loy.
Copyright 2007, Information Builders. Slide 1 Enhancing Maintain Applications with HTML Mark Derwin and Mark Rawls Information Builders.
Present :Arezoo Mollahasani. Step 1  Define your server connection Open MySQL WorkBench and click New Server Instance on the right of the window.
Improving Database Performance Derrick Rapley
Keywords Searching and Analysis System Member Student ID Role 刘亮 Liu Liang System Analyst 顾子俊 Gu Zijun Developer 杜菡菡 Du Hanhan
A Brief Documentation.  Provides basic information about connection, server, and client.
The GRelC Project: architecture, history and a use case in the environmental domain G. Aloisio - S. Fiore The Climate-G testbed is an interdisciplinary.
INFSO-RI Enabling Grids for E-sciencE OGSA DAI Data Access and Integration Marek Ciglan Institute of Informatics, Slovac Academy.
EGEE-II INFSO-RI Enabling Grids for E-sciencE EGEE and gLite are registered trademarks GRelC DAS: Extreme performance managing Grid.
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.
Sandro Fiore Alessandro Negro SPACI Consortium & University of Salento, Lecce The Grid Relational Catalog.
Integrating Crystal Reports with SIGNZ (V3.59, July 2008) Integrating Crystal Reports with SIGNZ (V3.59, July 2008)
Software-Projekt 2008 Seminarvortrag“Short tutorial of MySql“ Wei Chen Verena Honsel.
Grid DataBase Management with the GRelC DAS Sandro Fiore, Ph.D Salvatore Vadacca SPACI Consortium and.
The Web Web Design. 3.2 The Web Focus on Reading Main Ideas A URL is an address that identifies a specific Web page. Web browsers have varying capabilities.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 1 Creating and Using a Database.
SPACI Consortium, CMCC & University of Salento, LECCE
Tutorial 1 Creating a Database
INTRODUCTION TO DATABASES (MICROSOFT ACCESS)
Data Virtualization Demoette… ODBC Clients
IS1500: Introduction to Web Development
Un sistema avanzato per la gestione di immagini biomedicali in ambiente GRID G. Aloisio, S. Fiore SPACI Consortium & University of Salento, Italy, Lecce.
IST 220 – Intro to Databases
CS320 Web and Internet Programming SQL and MySQL
Microsoft Access 2013 Bobby Wan.
Access Tutorial 1 Creating a Database
Practicals on VOMS and MyProxy
Technical Board Meeting, CNAF, 14 Feb. 2004
BASIC INFORMATION ABOUT DATABASE MANAGEMENT SOFTWARE
Grid Training done in/by the Italian Federation in 2007 Roberto Barbera Univ. of Catania and INFN NA3 Partner Review Meeting at EGEE’07 Budapest,
AMGA Web Interface Salvatore Scifo INFN sez. Catania
JDBC.
Creating and Using a Database
PHP: Output Formatting
Access Tutorial 1 Creating a Database
HTTP Hypertext Transfer Protocol
MySQL Web Application Connecting to a MySQL database
SQL This presentation will cover: View in database MySQL installation
PHP and Forms.
MySQL User Privileges: Grant
8 6 MySQL Special Topics A Guide to MySQL.
Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta
Nagendra Vemulapalli Access chapters 3&5 Nagendra Vemulapalli 1/18/2019.
Introduction to Access
CS3220 Web and Internet Programming SQL and MySQL
Access Tutorial 1 Creating a Database
SQL Basics BCHB697.
Access Tutorial 1 Creating a Database
Advanced SQL BCHB697.
MySQL Web Application Connecting to a MySQL database
Grauer and Barber Series Microsoft Access Chapter One
CS3220 Web and Internet Programming SQL and MySQL
CS4540 Special Topics in Web Development SQL and MS SQL
Presentation transcript:

The Grid Relational Catalog Project Tutorial Sandro Fiore, Ph.D. (sandro.fiore@unile.it) Salvatore Vadacca (salvatore.vadacca@unile.it) SPACI Consortium & University of Salento, Lecce

What we will see during the tutorial Authorization Select Queries grelc-das-query-memory grelc-das-query-dime grelc-das-query-stream GRelC Portal https://grid.ct.infn.it/twiki/bin/view/GILDA/GRelCDataAccessService https://grid.ct.infn.it/twiki/bin/view/GILDA/GRelCPortal https://grid.ct.infn.it/twiki/bin/view/GILDA/GRelCPortalAdvanced

Authorization framework Before starting be sure you have a valid proxy with the correct GRelC DAS Role To create a valid proxy, run the following command voms-proxy-init --voms gilda:/gilda/grelc/das/grid009.ct.infn.it/sakila/Role=grelc-db-select voms-proxy-init --voms gilda:/gilda/grelc/das/grelc02.unile.it/sakila/Role=grelc-db-select With this proxy you will be able to access the sakila database on grid009.ct.infn.it or grelc02.unile.it (only select statements)

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

Single Query Memory 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 VAL Sets grid database name -Q, --query VAL Sets query value -c, --chunk NUM Sets 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 18500 -D database -Q 'select * from table' query submission with chunking grelc-das-query-memory -s hostname -p 18500 -D database -Q 'select * from table' -c 50

Single Query Memory 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 18500 -D sakila -Q "select * from actor" -t 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 18500 -D sakila -Q "select * from actor" -x 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 18500 -D sakila -Q "select * from actor" -x -c 50

Single Query File 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 VAL Sets grid database name -Q, --query VAL Sets query value -c, --chunk NUM Sets 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 18500 -D database -Q 'select * from table' -z query submission with chunking grelc-das-query-dime -s hostname -p 18500 -D database -Q 'select * from table' -c 50

Single Query File 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 18500 -D sakila -t -Q "select * from actor" 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 18500 -D sakila -x -Q "select * from actor" 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 18500 -D sakila -x -Q "select * from actor" -c 50 Now, let's look at the files in your current folder. Each file is a resultset stored client-side. > ls -lrta

Single Query File Let's see what's inside one of the resultsets stored client-side. > more .grelc02.unile.it_18500_171-singlequery.xml 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 18500 -D sakila -x -Q "select * from actor" -z 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

Single Query Stream 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 18500 -D sakila -t -Q "select * from actor" 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 18500 -D sakila -x -Q "select * from actor"

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 voms-proxy-init --voms gilda:/gilda/grelc/das/grelc02.unile.it/sakila/Role=grelc-db-select --voms gilda:/gilda/grelc/das/grelc02.unile.it/Role=grelc-sys-host --voms gilda:/gilda/grelc/das/grelc02.unile.it/Role=grelc-sys-vspace voms-proxy-init --voms gilda:/gilda/grelc/das/grid009.ct.infn.it/sakila/Role=grelc-db-select --voms gilda:/gilda/grelc/das/grid009.ct.infn.it/Role=grelc-sys-host --voms gilda:/gilda/grelc/das/grid009.ct.infn.it/Role=grelc-sys-vspace With this proxy you will be able to access the sakila database on grid009.ct.infn.it or grelc02.unile.it and to administer Grid Databases and Hosts

Select your proxy

Adding one entry to the GRelC DAS List

Grid Databases Management

Tables Management

View Schema

View Data

Query Submission

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

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

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

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

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!