2. Mark D Drake
Senior Product Manager
Product: Oracle XML DB
Oracle HQ, USA
Oracle 20+ years experience
3. Marco Gralike
Principal Database Consultant
DBA; Specialized Oracle XML DB
AMIS Services BV, Holland
Oracle experience since 1993
Oracle ACE Director
OakTable Member
32. Glue between Event Listener and Resource
An XML File
XML Schema - XDBResConfig.xsd
Contains (among others):
Events and Source (Event Listener)
Path to “itself” (/public/myResFile.xml)
Pre-conditions (XPATH on XDB$RESOURCE)
Is assigned to a Resource (File/Folder)
DBMS_RESCONFIG.AppendResConfig
33. Move all files created by BATCH to…
Extract Info from picture if extension GIF…
<pre-condition>
<existsNode>
<XPath>/Resource[Creator="BATCH"]</XPath>
</existsNode>
</pre-condition>
<pre-condition>
<existsNode>
<XPath>/Resource[ContentType="image/jpg"]</XPath>
</existsNode>
</pre-condition>
40. 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
41. The following embedded image metadata
formats are supported by Oracle Multimedia:
EXIF (JPEG/TIFF - JEIDA)
IPTC-IIM (JPEG/TIFF – Adobe)
XMP (GIF/JPEG/TIFF – Adobe/RDF)
http://www.adobe.com http://www.w3.org/RDF Wikipedia - EXIF
46. Metadata defined using an XML Schema
Metadata stored in a separate table
Table includes hidden column RESID
Enables join with RESOURCE_VIEW, PATH_VIEW
Applications query and update metadata
directly
Improved Indexing
Metadata deleted when resource is deleted
47. Document MIME type JPG Event Listener?
EXIF EXIF Extended
Event Handler?
XML Schema? w/ USER XSD ?
Extract JPG Extract JPG Extract JPG
File info EXIF info USER metadata
XDB$Resource XMLType Table XMLType Table
49. • XML DB
- Beyond the Database, Fileserver Realm
• Imagination is your limit, e.g.:
- Extending “file” server with Text Search
- Extending “file” server with ETL functionality
• Extra options: database / fileserver interfacing
• Based on standards
• No cost option / all database versions
50. 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…