SPACI Consortium, CMCC & University of Salento, LECCE

Slides:



Advertisements
Similar presentations
Building Database Relationships
Advertisements

Client-server practices DSC340 Mike Pangburn. Agenda Overview of client-server development Editing on client (e.g., Notepad) or directly on server (e.g.,
© 2012 Entrinsik, Inc. Informer Administration Exploring the system menu and functions PRESENTER: Jason Vorenkamp| Informer Software Engineer| March 2012.
WebGoat & WebScarab “What is computer security for $1000 Alex?”
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.
USING THE GLOBUS TOOLKIT This summary by: Asad Samar / CALTECH/CMS Ben Segal / CERN-IT FULL INFO AT:
Introduction to Web Database Processing
INTRODUCTION The Group WEB BROWSER FOR RELATION Goals.
Multiple Tiers in Action
Performed by:Gidi Getter Svetlana Klinovsky Supervised by:Viktor Kulikov 08/03/2009.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
Page 1 of 53 The Work In Progress functionality of Transfers enables you to retrieve a transfer request, view/change the request status depending on your.
NETWORK CENTRIC COMPUTING (With included EMBEDDED SYSTEMS)
An easy way to manage Relational Databases in the Globus Community Sandro Fiore ISUFI/ Center for Advanced Computational Technologies Director: prof. Giovanni.
Tutorial 1 Getting Started with Adobe Dreamweaver CS3
Tutorial 1: Getting Started with Adobe Dreamweaver CS4.
ITIS 1210 Introduction to Web-Based Information Systems Chapter 23 How Web Host Servers Work.
Bonrix SMPP Client. Index Introduction Software and Hardware Requirements Architecture Set Up Installation HTTP API Features Screen-shots.
HTML. Principle of Programming  Interface with PC 2 English Japanese Chinese Machine Code Compiler / Interpreter C++ Perl Assembler Machine Code.
Creating a Form on a Web Page
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.
HTML, Third Edition--Illustrated Brief 1 HTML, Third Edition Illustrated Brief Unit A Creating an HTML Document.
EGEE User Forum Data Management session Development of gLite Web Service Based Security Components for the ATLAS Metadata Interface Thomas Doherty GridPP.
NMD202 Web Scripting Week5. What we will cover today PHP & MySQL Displaying Dynamic Pages Exercises Modifying Data PHP Exercises Assignment 1.
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
Sandro Fiore Alessandro Negro SPACI Consortium & University of Salento, Lecce The Grid Relational Catalog.
RSS Interfaces and Standards Chander Iyer. Really Simple Syndication (RSS) Web data format providing users with frequently updated content. Make a collection.
Display Page (HTML/CSS)
Session 11: Cookies, Sessions ans Security iNET Academy Open Source Web Development.
Enabling Grids for E-sciencE gLite security pratical tutorial Dario Russo INFN Catania Catania,
RI EGI-TF 2010, Tutorial Managing an EGEE/EGI Virtual Organisation (VO) with EDGES bridged Desktop Resources Tutorial Robert Lovas, MTA SZTAKI.
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.
1 CGI (Common Gateway Interface) CmpE 587 Emir Bayraktar Onur Bük.
COM621: Advanced Interactive Web Development Lecture 10 PHP and MySQL.
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.
Microsoft FrontPage 2003 Illustrated Complete Creating a Web Site.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
Architecture Review 10/11/2004
IS1500: Introduction to Web Development
IST 220 – Intro to Databases
Physics validation database
Student SOLE Page – Living Page
Practicals on VOMS and MyProxy
Technical Board Meeting, CNAF, 14 Feb. 2004
Database JDBC Overview CS Programming Languages for Web Applications
The Grid Relational Catalog Project
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,
CRC exercises Not happy with the way the document for testbed architecture is progressing More a collection of contributions from the mware groups rather.
Web UI Basics ITM 352.
Creating and Using a Database
BASIC PHP and MYSQL Edward S. Flores.
Database Driven Websites
Web Browser server client 3-Tier Architecture Apache web server PHP
HTTP Hypertext Transfer Protocol
Microsoft Office Access 2003
Inside Module 3 Working with Eloquence Page
JavaScript Form Validation
PHP and Forms.
EGEE Middleware: gLite Information Systems (IS)
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
Database Connectivity and Web Development
Tutorial 7 – Integrating Access With the Web and With Other Programs
MySQL Web Application Connecting to a MySQL database
Grauer and Barber Series Microsoft Access Chapter One
Information Retrieval and Web Design
Presentation transcript:

SPACI Consortium, CMCC & University of Salento, LECCE Tutorial on GRelC DAS client command interfaces Ph.D. Sandro Fiore SPACI Consortium, CMCC & University of Salento, LECCE

What we will see during the tutorial Authorization Select Queries Query Memory Query DIME Query Online Query HTML BDII Query: grid-info-search GRelC DAS Tutorial link: https://grid.ct.infn.it/twiki/bin/view/GILDA/GRelCDataAccessService

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/grelc02.unile.it/sakila/Role=grelc-db-select With this proxy you will be able to access to the sakila database on grelc02.unile.it (only select statement)

Select query To carry out SELECT query you can use the following commands: query-das-memory query-das-dime query-das-online query-das-html The first two kinds of query were designed to address high performance The third should be used to submit DML Statements (Delete, Insert and Update) The last one stores result on the server as HTML pages that can be seen through a HTTP browser

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 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

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

Query Dime 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 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, --html Prints result in html 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 query submission with chunking and compression grelc-das-query-dime -s hostname -p 18500 -D database -Q 'select * from table' -c 50 -z

Query Dime 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 18500 -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 18500 -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 18500 -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

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

Query On line 13. Display help > grelc-das-query-online -h USAGE: grelc-das-query-online [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 -t, --table Prints result in table format (default) -x, --xml Prints result in xml format -H, --html Prints result in html format -h, --help Show usage EXAMPLES: grelc-das-query-online -s hostname -p 18500 -D database -Q 'select * from table'

Query On line 14. Submits a query and displays its result in tabular format. > grelc-das-query-online -s grelc02.unile.it -p 18500 -D sakila -t -Q "select * from actor" 15. Submits a query and displays its result in XML format. > grelc-das-query-online -s grelc02.unile.it -p 18500 -D sakila -x -Q "select * from actor"

Query HTML 16. Display help > grelc-das-query-html -h USAGE:grelc-das-query-html [options] -s, --server VAL Sets GRelC DAS IP (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 pagination) -x, --xml Prints result in xml format -t, --table Prints result in table format -h, --help Shows usage EXAMPLES: query submission grelc-das-query-html -s hostname -p 18500 -D database -Q 'select * from table' query submission with html pagination grelc-das-query-html -s hostname -p 18500 -D database -Q 'select * from table' -c 50

Query HTML 17. Submits a query. > grelc-das-query-html -s grelc02.unile.it -p 18500 -D sakila -Q "select * from actor" 18. Submits a query and stores the resultset in XML format. > grelc-das-query-html -s grelc02.unile.it -p 18500 -D sakila -Q "select * from actor" -x 19. Submits a query and stores the resultset in XML and tabular format. > grelc-das-query-html -s grelc02.unile.it -p 18500 -D sakila -Q "select * from actor" -x -t 20. Submits a query and stores the resultset in XML and tabular format. The resultset is stored splitted of 50 tuples/page > grelc-das-query-html -s grelc02.unile.it -p 18500 -D sakila -Q "select * from actor" -x -t -c 50

BDII Query 21. You can try to obtain information about the sakila database by querying the BDII on grid009.ct.infn.it (our grelc02.unile.it registers its information on grid009.ct.infn.it) > grid-info-search -x -p 2170 -b "mds-vo-name=OMII-CATANIA,o=grid" -h grid009.ct.infn.it