Download presentation
Presentation is loading. Please wait.
Published byJoshua O’Brien’ Modified over 9 years ago
1
CERN ORACLE DEVELOPERS FORUM 5 Nov 2001 Adding Mathematica Software to an ORACLE database Roberto Terenzi CNR-IFSI & INFN CERN
2
Roberto Terenzi (ROG) Cnr INFN Cern CERN ORACLE DEVELOPERS FORUM Geneva 5 Nov 20012 EXPLORER Experiment at Cern EXPLORER Building 171
3
CERN ORACLE DEVELOPERS FORUM 5 Nov 2001 Adding Mathematica Software …
4
Roberto Terenzi (ROG) Cnr INFN Cern CERN ORACLE DEVELOPERS FORUM Geneva 5 Nov 20014 IGEC data at IGEC sites: Gravitational waves events: Amplitude Time Confident time interval (IGEC2000) SNR …….. Detectors data: on/off periods sensitivity ……. IGEC= International Gravitational Event Collaboration
5
Roberto Terenzi (ROG) Cnr INFN Cern CERN ORACLE DEVELOPERS FORUM Geneva 5 Nov 20015 Project Goals Both text and graphic data presentation. No special software requirements on Client-side (WEB Browsers only). Flexible architecture (distributed systems & resources ).
6
Roberto Terenzi (ROG) Cnr INFN Cern CERN ORACLE DEVELOPERS FORUM Geneva 5 Nov 20016 Hardware System Architecture PC's w/s's etc. (WORLD) SUN Ultra 10 (CNR-Rome) Client(s) Middle-Tier ORACLE Server CERN 0racle Server (cern Geneva) = Internet connection internet Internet
7
Roberto Terenzi (ROG) Cnr INFN Cern CERN ORACLE DEVELOPERS FORUM Geneva 5 Nov 20017 Hardware Architecture 3-Tier architecture benefits: Client – Client any computer running a WEB Browser ( Netscape, Internet Explorer). –Middle-Tier To shadow database implementation details to client (tables structure etc.): Client sees physics quantities, not ORACLE tables, columns etc. To do not overload Oracle server with application software. Flexible, but robust architecture (distributed systems & resources ).
8
Roberto Terenzi (ROG) Cnr INFN Cern CERN ORACLE DEVELOPERS FORUM Geneva 5 Nov 20018 Software System Architecture WEB Browser Communication, Oracle Interface, Data elaboration & Data formatting Client Middle-Tier ORACLE Server 0racle = Internet connection SQL QUERY & DATA HTML FORMS & PAGES
9
Roberto Terenzi (ROG) Cnr INFN Cern CERN ORACLE DEVELOPERS FORUM Geneva 5 Nov 20019 Middle-Tier Software Architecture 0racle Custom Java Classes Java JDBC JDBC Methods Override post/get/service JAVA Servlet classes Java JLINK JLINK Mathematica WEB Browser = Internet connection HTML FORMS & PAGES SQL QUERY & DATA ServletrunnerMathematicaPACKAGES
10
Roberto Terenzi (ROG) Cnr INFN Cern CERN ORACLE DEVELOPERS FORUM Geneva 5 Nov 200110 Application 1:Simple data Request (1) 0racle Custom Java Classes Java JDBC JDBC Methods Override post/get/service JAVA Servlet classes WEB Browser = Internet connection HTML FORMS & PAGES SQL QUERY & DATA Servletrunner
11
Roberto Terenzi (ROG) Cnr INFN Cern CERN ORACLE DEVELOPERS FORUM Geneva 5 Nov 200111 Application 1:Simple data Request (2) Client Client –Send HTML FORM for requesting data. –Display HTML page sent back by Middle-Tier. Middle-Tier Middle-Tier – Translate Html Form into sql queries. –Send queries to Oracle. –Get data from Oracle and format them. –Send data as an Html page to client.
12
Roberto Terenzi (ROG) Cnr INFN Cern CERN ORACLE DEVELOPERS FORUM Geneva 5 Nov 200112 Why Mathematica? (1) Client Client Requirements: graphics –Data Presentation (for example graphics) data filtering –Data elaboration (for example data filtering) Database administrator requirements: Database administrator requirements: Do not overload – Do not overload Oracle server with application programs.
13
Roberto Terenzi (ROG) Cnr INFN Cern CERN ORACLE DEVELOPERS FORUM Geneva 5 Nov 200113 Why Mathematica? (2) Client Client Requirements: –graphical presentation, –data elaboration and data filtering are “easy” using Mathematica. Database administrator requirements: Database administrator requirements: Mathematica can run outside Oracle server (Middle-Tier) – Mathematica can run outside Oracle server (Middle-Tier). Program Developer: Program Developer: –Application, i.e. Mathematica Package(s), can be developed by client too.
14
Roberto Terenzi (ROG) Cnr INFN Cern CERN ORACLE DEVELOPERS FORUM Geneva 5 Nov 200114 Application 2:Data elaboration (1) Middle-TierSoftware 0racle SQLQUERIES DATA Mathematica DATA Graphics DATA (GIF) HTML Page(GIF) HTML FORM CLIENTMIDDLE-TIER SERVER
15
Roberto Terenzi (ROG) Cnr INFN Cern CERN ORACLE DEVELOPERS FORUM Geneva 5 Nov 200115 Application 2:Data elaboration (2) Client: – send HTML FORM to request data. Middle-Tier – translate Html Form into sql queries. –Send queries to Oracle. Mathematica –get data from Oracle and elaborate them via Mathematica program. text orGIF images –send computed data as an Html page to client (text or GIF images as needed).
16
Roberto Terenzi (ROG) Cnr INFN Cern CERN ORACLE DEVELOPERS FORUM Geneva 5 Nov 200116 Application 2:Data elaboration (3) 0racle Custom Java Classes Java JDBC JDBC Methods Override post/get/service JAVA Servlet classes Java JLINK JLINK Mathematica WEB Browser = Internet connection HTML FORMS & PAGES SQL QUERY & DATA ServletrunnerMathematicaPACKAGES
17
Roberto Terenzi (ROG) Cnr INFN Cern CERN ORACLE DEVELOPERS FORUM Geneva 5 Nov 200117 Mathematica Interface Software // //open link to Mathematica: String [ ] args= {“-linkmode”,”launch”,math -mathlink”}; KerneLink ml= MathLinkFactory.createKernelLink(args); ……. // // Now load Mathematica Package(s):…….. ml.evaluate(”<<Graphics`Color`”); ml.evaluate(”<<Graphics`Color`”); /* Standard packages */……. ml.evaluate (”<<MyPackage`MyModule`”); ml.evaluate (”<<MyPackage`MyModule`”); /*Custom Packages */ // // Now send and get back data byte[ ] imageEX= ml.evaluate(mathCommand,width); JLINK KerneLinkKerneLink ml.evaluate(String command)ml.evaluate(String command) …...…...
18
Roberto Terenzi (ROG) Cnr INFN Cern CERN ORACLE DEVELOPERS FORUM Geneva 5 Nov 200118 Application 3:Data warehousing (1) Middle-TierSoftware 0racle SQLQUERIES DATA Mathematica DATA HTML Page HTML FORM CLIENT (“Power” User) MIDDLE-TIER SERVER F(DATA) INSERT DATA
19
Roberto Terenzi (ROG) Cnr INFN Cern CERN ORACLE DEVELOPERS FORUM Geneva 5 Nov 200119 Application 3:Data warehousing (2) Administrator Client (Administrator) send HTML FORM for data elaboration Middle-Tier – translate Html Form into sql queries. –Send queries to Oracle. –get data from Oracle and elaborate them via Mathematica program. –INSERT –INSERT into Oracle tables computed data.
20
Roberto Terenzi (ROG) Cnr INFN Cern CERN ORACLE DEVELOPERS FORUM Geneva 5 Nov 200120 Scalability Message dispatcher ORACLE Server CERN 0racle Server (cern Geneva) PC's w/s's etc. (WORLD) Client 1 Client 2 ……..Client_m M-T 1 M-T 2 M-T n..... LANINTERNET
21
CERN ORACLE DEVELOPERS FORUM 5 Nov 2001 Adding Mathematica Software …
22
Roberto Terenzi (ROG) Cnr INFN Cern CERN ORACLE DEVELOPERS FORUM Geneva 5 Nov 200122 Mathematica on client side (1) 0racle Custom Java Classes Java JDBC JDBC Methods Override post/get/service JAVA Servlet classes Java JMLINK JMLINK Mathematica WEB Browser = Internet connection HTML FORMS & PAGES SQL QUERY & DATA Servletrunner _____________________ CLIENT ___________________________________ | | MathematicaPACKAGES
23
Roberto Terenzi (ROG) Cnr INFN Cern CERN ORACLE DEVELOPERS FORUM Geneva 5 Nov 200123 Mathematica on client side (2) 0racle Java JDBC JDBC SQL QUERY & DATA Methods Override post/get/service JAVA Servlet classes Custom Java Classes Servletrunner Java JLINK JLINK Mathematica GUI Custom Java Classes HTML FORMS & Text MathematicaPACKAGES
24
Roberto Terenzi (ROG) Cnr INFN Cern CERN ORACLE DEVELOPERS FORUM Geneva 5 Nov 200124 Mathematica on client side (3) 0racle Custom Java Classes Java JDBC JDBC Methods Override post/get/service JAVA Servlet classes Java JLINK JLINK Mathematica WEB Browser HTML FORMS & PAGES SQL QUERY & DATA ServletrunnerCLIENTPACKAGES MathematicaPACKAGES
25
Roberto Terenzi (ROG) Cnr INFN Cern CERN ORACLE DEVELOPERS FORUM Geneva 5 Nov 200125 Mathematica on client side (4) 0racle Java JDBC JDBCJava JLINK JLINKMathematica Notebook SQL QUERY & DATA Methods Override post/get/service JAVA Servlet classes Custom Java Classes Classes Servletrunner Mathematica “calls” Java HTML FORMS & TEXT
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.