Oracle XML DB
   Marco Gralike     Principal Database Consultant     DBA; Specialized Oracle XML DB     AMIS Services BV, Holland   Or...
Oracle XML DB
   Storage and handling of XML data    • Optimized storage for structured, semi-structured and unstructured       data   ...
   Relational data to XML conversion capabilties    • XML can easily be exposed via Webservices etc.    • Buildin Standar...
   Database content shared via Native Database Web Services as part of a    Service Orientated Architecture    • Decouple...
   The historical data storage for end-of-life systems    • Data Sources: relational, hierarchical, network, object orien...
   XBRL Extension capabilties    • XML Business Reporting Language    • Oracle Database Enterprise Edition 11.2.0.2 and o...
Oracle XML DB
Oracle Fusion Middleware                               Oracle Database                                                 J2E...
   Based on XML Standards:    XPath , XSLT, XQuery ,    XQuery Update (11.2.0.3) , XBRL (Extention)   XML Handling     S...
•   File Storage      Oracle XML DB•   XML Database       A World within a World    • C / Kernel       More then one Opt...
DBA                                           WSDL      PL/SQL                                 ? SOAP                     ...
Create        Lock the     Make it Resource       Resource    Versioned               Update theCheck it Out              ...
# Create file / dbms_xdb.createResource1.   dbms_xdb.lockResource2.   dbms_xdb_version.makeVersioned3.   dbms_xdb_version....
Oracle XML DB
   Ever executed DBMS_XDB…?    dbms_xdb.SetHTTPPort(8080)    dbms_xdb.SetFTPPort(2100)
Servlet ?MIME Type?Security ?XMLSchema ?XDB Event ?Extention?
   XDB Repository File / Folder (aka Resources)   Resource manipulation     DBMS_XDB, DBMS_XDBRESOURCE   Default XDB AC...
   XDB$RESOURCE     XDBResource.xsd     XMLType Table (Schema based XML Table)   Access to XDB Repository     WebDAV,...
XML Schema      XML SchemaXML Document                     in XML ?       Registered ?Physical XMLType   Shred XML into   ...
Use Case
Database FileServer   2 The MAX      Copy a FILE    to the Database
EventMIME                     Event             ListenerCheck                   Handler         XML Protocol        Server...
Extract               MoveFile Info     Store in XDB      Repository
Extract File    XDB File to Content          Server    Batch File to XDB    “Batch” Directory
Use Case
Jeffreys EXIF Viewer
   Camera Make and Model   Aperture, Shutter Speed, Focal Length   ISO Speed, Date Taken, Description   Geo-coding, Co...
Database FileServer   2 The MAX    Copy a PICTURE    to the Database
EventMIME                     Event             ListenerCheck                   Handler         XML Protocol        Server...
Extract       Store in XML           Table    Store in XDB     Repository
EXIF           KML  Display in GUI,   Google Map
Servlet ?MIME Type?Security ?XMLSchema ?XDB Event ?Extension?
Its about Time to wrap it Up
•   XML Database      Oracle XML DB    • C / Kernel       A World within a World    • XML Enabled      More then one Opt...
Servlet ?MIME Type?Security ?XMLSchema ?XDB Event ?Extention?
   URL: OTN XMLDB Sample Code     XFILES Version 5     Introduction to Oracle XML DB Repository Events     Oracle XML ...
   Blog posts about, among others…     Storage of XML     Creating and Handling XML     Concepts & Howto’s for XDB Rep...
   www.expertezed.com   www.amis.nl                     marco.gralike@amis.nl
Expertezed 2012 Webcast - XML DB Use Cases
Expertezed 2012 Webcast - XML DB Use Cases
Expertezed 2012 Webcast - XML DB Use Cases
Expertezed 2012 Webcast - XML DB Use Cases
Expertezed 2012 Webcast - XML DB Use Cases
Expertezed 2012 Webcast - XML DB Use Cases
Expertezed 2012 Webcast - XML DB Use Cases
Expertezed 2012 Webcast - XML DB Use Cases
Expertezed 2012 Webcast - XML DB Use Cases
Expertezed 2012 Webcast - XML DB Use Cases
Expertezed 2012 Webcast - XML DB Use Cases
Expertezed 2012 Webcast - XML DB Use Cases
Expertezed 2012 Webcast - XML DB Use Cases
Upcoming SlideShare
Loading in …5
×

Expertezed 2012 Webcast - XML DB Use Cases

1,071 views

Published on

Presentation used during the 3rd December 2012 Expertezed Webcast (see the following websites for more details: www.expertezed.com, www.amis.nl or www.xmldb.nl)

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,071
On SlideShare
0
From Embeds
0
Number of Embeds
100
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Expertezed 2012 Webcast - XML DB Use Cases

  1. 1. Oracle XML DB
  2. 2.  Marco Gralike Principal Database Consultant DBA; Specialized Oracle XML DB AMIS Services BV, Holland Oracle experience since 1993 Oracle ACE Director OakTable Member
  3. 3. Oracle XML DB
  4. 4.  Storage and handling of XML data • Optimized storage for structured, semi-structured and unstructured data • Build-in Standard Gateways to the outside world: ▪ WebDAV, HTTP, FTP, SOAP Webservices ▪ (Binary) XMLType support in Oracle Streams ▪ XMLType API’s for C / Java / .Net Reasons • Complies to almost all (W3C) XML standards • Build-in XML Aware Repository • Versioning Capabilities • Security build-in (ACL / On top off the known relational features)
  5. 5.  Relational data to XML conversion capabilties • XML can easily be exposed via Webservices etc. • Buildin Standard Gateways to the outside world: ▪ WebDAV, HTTP, FTP, Native Database Web Services ▪ (Binary) XMLType support in Oracle Streams ▪ XMLType API’s for C / Java / .Net ▪ UriTypes Reasons • Adaption of current systems to the XML / SOA world • International Format Standards of Sharing Data (XML Taxonomy)
  6. 6.  Database content shared via Native Database Web Services as part of a Service Orientated Architecture • Decoupled • Stateless, etc Reasons • Adaption of current systems • SOA “API” compliant  SOAP, WS* • Web browser compatible
  7. 7.  The historical data storage for end-of-life systems • Data Sources: relational, hierarchical, network, object orientated databases • Data Target: The Oracle XML Database Reasons • Data still needed ▪ * Fraud Investigation ▪ * Mash-ups • Ease of Sharing Data for example via Webservices • Dutch Law: Deletion of Historical Data allowed after 7 years • Intelligent ways to search (Unstructured) Data
  8. 8.  XBRL Extension capabilties • XML Business Reporting Language • Oracle Database Enterprise Edition 11.2.0.2 and onwards • Why build the functionality if it has already been done? ▪ No extra cost / a no cost option ▪ Extention can be downloaded via http://support.oracle.com Reasons • Following the official standards • Supported and further optimized • Quick start…
  9. 9. Oracle XML DB
  10. 10. Oracle Fusion Middleware Oracle Database J2EE Integration Wireless RAC Oracle Oracle Fusion Web Service Web Cache BI & Reports Data Pump Grid Control Apps Oracle XML DB Portal OID LDAP XSQL TransX C/C++ XML Utilities (oraxml10.lib) Java XML Utilities (xml.jar)Oracle JDeveloper (XSU) JSR170 XML Diff JAXB XML Pipeline XML Diff Class Generator Java XML Processing (xmlparserv2.jar) C XML Processing (oraxml10.lib) DO SA JAXP XPath XQuery XSLT XSD DOM SAX Pull XPath XSD XSLT VM M X Oracle XML Broadband Network— Binary XML Multi-Platform, Multi-OS Runtime in Java C and C++ JDK 1.5 JDBC (classes12.jar) NLS (orai18n*.jar) NLS (oranls.lib) CORE (oracore10.lib)
  11. 11.  Based on XML Standards: XPath , XSLT, XQuery , XQuery Update (11.2.0.3) , XBRL (Extention) XML Handling Stores, Consumes, Generates, Validates XDB Repository HTTP(s), FTP & WebDAV XDB Repository Events, Versioning & Security No Cost Option, Core database feature
  12. 12. • File Storage Oracle XML DB• XML Database  A World within a World • C / Kernel  More then one Option • XML Enabled  Complies to Standards • Native & more  License Free  Core part of (OXJR)DBMS • An XML Parser  The (relational) foundation is does not have there and can be used for a dictionary solving XML “imperfections”
  13. 13. DBA WSDL PL/SQL ? SOAP SOA DB WS SQL XQueryEasy: a few steps, no other software installation and no codingSecure: HTTP authentication and easily integrate with WS Security ProductsHigh performance : C-based engine, natively build in to the Oracle DB
  14. 14. Create Lock the Make it Resource Resource Versioned Update theCheck it Out Check It In Resource UnLock the Resource
  15. 15. # Create file / dbms_xdb.createResource1. dbms_xdb.lockResource2. dbms_xdb_version.makeVersioned3. dbms_xdb_version.checkOut # Update file content4. dbms_xdb_version.checkIn5. dbms_xdb.unlockResource # Done…
  16. 16. Oracle XML DB
  17. 17.  Ever executed DBMS_XDB…? dbms_xdb.SetHTTPPort(8080) dbms_xdb.SetFTPPort(2100)
  18. 18. Servlet ?MIME Type?Security ?XMLSchema ?XDB Event ?Extention?
  19. 19.  XDB Repository File / Folder (aka Resources) Resource manipulation DBMS_XDB, DBMS_XDBRESOURCE Default XDB ACL Driven Security XDB Protocol Listener Respository Events Versioning XML Schema awareness Extending XML Schema functionality
  20. 20.  XDB$RESOURCE  XDBResource.xsd  XMLType Table (Schema based XML Table) Access to XDB Repository  WebDAV, FTP, HTTP(s)  SQL, PL/SQL, NDWS  PATH_VIEW, RESOURCE_VIEW Select, Update, Delete  UNDER_PATH, EQUALS_PATH
  21. 21. XML Schema XML SchemaXML Document in XML ? Registered ?Physical XMLType Shred XML into Update Associated ? XMLType XDB$Resource
  22. 22. Use Case
  23. 23. Database FileServer 2 The MAX Copy a FILE to the Database
  24. 24. EventMIME Event ListenerCheck Handler XML Protocol Server (Listener)
  25. 25. Extract MoveFile Info Store in XDB Repository
  26. 26. Extract File XDB File to Content Server Batch File to XDB “Batch” Directory
  27. 27. Use Case
  28. 28. Jeffreys EXIF Viewer
  29. 29.  Camera Make and Model Aperture, Shutter Speed, Focal Length ISO Speed, Date Taken, Description Geo-coding, Copyright Information EXIF XML Schema is pre-registered with XML DB by Oracle MultiMedia Type ordsys.ordimage extracts EXIF metadata document from a JPG image
  30. 30. Database FileServer 2 The MAX Copy a PICTURE to the Database
  31. 31. EventMIME Event ListenerCheck Handler XML Protocol Server (Listener)
  32. 32. Extract Store in XML Table Store in XDB Repository
  33. 33. EXIF KML Display in GUI, Google Map
  34. 34. Servlet ?MIME Type?Security ?XMLSchema ?XDB Event ?Extension?
  35. 35. Its about Time to wrap it Up
  36. 36. • XML Database Oracle XML DB • C / Kernel  A World within a World • XML Enabled  More then one Option • Native & more  Complies to Standards • An XML Parser  License Free  Core part of (OXJR)DBMS does not have  The (relational) foundation is a dictionary there and can be used for solving XML “imperfections”
  37. 37. Servlet ?MIME Type?Security ?XMLSchema ?XDB Event ?Extention?
  38. 38.  URL: OTN XMLDB Sample Code  XFILES Version 5  Introduction to Oracle XML DB Repository Events  Oracle XML DB-based Mashup with Google Earth  Oracle XML DB Repository Features  XDB Utilities and more…
  39. 39.  Blog posts about, among others…  Storage of XML  Creating and Handling XML  Concepts & Howto’s for XDB Repository  Automatically shred content out of Windows Office (docx) into table columns  Setting up logging in the XDB Repository  Security and Performance
  40. 40.  www.expertezed.com www.amis.nl marco.gralike@amis.nl

×