Oracle HTMLDB introduction IT-AIS-HR Giovanni Chierico 1/16 Oracle HTMLDB introduction CERN Oracle...

16
1/16 Oracle HTMLDB introduction IT-AIS-HR Giovanni Chierico Oracle HTMLDB introduction CERN Oracle Developers Forum: May 12 th 2005

Transcript of Oracle HTMLDB introduction IT-AIS-HR Giovanni Chierico 1/16 Oracle HTMLDB introduction CERN Oracle...

Page 1: Oracle HTMLDB introduction IT-AIS-HR Giovanni Chierico 1/16 Oracle HTMLDB introduction CERN Oracle Developers Forum: May 12 th 2005.

1/16

Oracle HTMLDB introduction

IT-AIS-HR Giovanni Chierico

Oracle HTMLDB introduction

CERN Oracle Developers Forum: May 12th 2005

Page 2: Oracle HTMLDB introduction IT-AIS-HR Giovanni Chierico 1/16 Oracle HTMLDB introduction CERN Oracle Developers Forum: May 12 th 2005.

2/16

Oracle HTMLDB introduction

IT-AIS-HR Giovanni Chierico

What is HTMLDB

• A rapid web application development tool for the Oracle database.

• 100% web based development

• PL/SQL driven

Page 3: Oracle HTMLDB introduction IT-AIS-HR Giovanni Chierico 1/16 Oracle HTMLDB introduction CERN Oracle Developers Forum: May 12 th 2005.

3/16

Oracle HTMLDB introduction

IT-AIS-HR Giovanni Chierico

Architecture

Everything is in the Database!

RDBMS HTMLDB WebServer Client

Page 4: Oracle HTMLDB introduction IT-AIS-HR Giovanni Chierico 1/16 Oracle HTMLDB introduction CERN Oracle Developers Forum: May 12 th 2005.

4/16

Oracle HTMLDB introduction

IT-AIS-HR Giovanni Chierico

Pros & ConsPros

• Fast development• 100% web based• No code required• Ready to use components• Professional looking• Easy to create mock-ups• Easy to deploy• Easy to understand• Fast (no overhead)

Cons• Platform lock• Difficult to debug• Tricky to customize• Scaling problems• Difficult version control

Page 5: Oracle HTMLDB introduction IT-AIS-HR Giovanni Chierico 1/16 Oracle HTMLDB introduction CERN Oracle Developers Forum: May 12 th 2005.

5/16

Oracle HTMLDB introduction

IT-AIS-HR Giovanni Chierico

Trade Off ComparisonEffort

Results

J2EE

HTMLDB

?

Good for small/simple projects

Page 6: Oracle HTMLDB introduction IT-AIS-HR Giovanni Chierico 1/16 Oracle HTMLDB introduction CERN Oracle Developers Forum: May 12 th 2005.

6/16

Oracle HTMLDB introduction

IT-AIS-HR Giovanni Chierico

Designer Comparison

• HTMLDB is not a replacement for Designer

• Lacks the “design” part

• Targets Web Apps

• The layout is a lot more flexible

• Doesn’t have any “compile” phase

Page 7: Oracle HTMLDB introduction IT-AIS-HR Giovanni Chierico 1/16 Oracle HTMLDB introduction CERN Oracle Developers Forum: May 12 th 2005.

7/16

Oracle HTMLDB introduction

IT-AIS-HR Giovanni Chierico

Real World Examples

• http://htmldb.oracle.com/references

• AskTom

• CERN AIS– Pre Registration Tool– Safety Information Registration– Core Training Application

• HTMLDB Itself!

Page 8: Oracle HTMLDB introduction IT-AIS-HR Giovanni Chierico 1/16 Oracle HTMLDB introduction CERN Oracle Developers Forum: May 12 th 2005.

8/16

Oracle HTMLDB introduction

IT-AIS-HR Giovanni Chierico

Development Cycle

HTMLDBWeb Interface

WebApplication

Developer

User

HTMLDB Engine

RDBMS

Application Metadata

Page 9: Oracle HTMLDB introduction IT-AIS-HR Giovanni Chierico 1/16 Oracle HTMLDB introduction CERN Oracle Developers Forum: May 12 th 2005.

9/16

Oracle HTMLDB introduction

IT-AIS-HR Giovanni Chierico

HTMLDB InterfaceApplication Builder

SQL Workshop

Data Workshop

•Create pages•Manage shared components (Items, Templates, Translations, …)•Import & Export application

•Browse DB Objects (Tables, Packages, DBLinks, Java Classes, …)

•Create DB Objects•Run arbitrary SQL

•Import/Export Data from/to XML/Spreadsheet

Page 10: Oracle HTMLDB introduction IT-AIS-HR Giovanni Chierico 1/16 Oracle HTMLDB introduction CERN Oracle Developers Forum: May 12 th 2005.

10/16

Oracle HTMLDB introduction

IT-AIS-HR Giovanni Chierico

Page Creation: Overview

Pre-processing

Rendering

Post-processing

Branching

Client

Page

Same or other Page

Order can be finelytuned mixing processingand rendering.

Request

Page 11: Oracle HTMLDB introduction IT-AIS-HR Giovanni Chierico 1/16 Oracle HTMLDB introduction CERN Oracle Developers Forum: May 12 th 2005.

11/16

Oracle HTMLDB introduction

IT-AIS-HR Giovanni Chierico

Page Creation: Rendering

User Interface Items

Data Loading PL/SQL

Repository

Input Text

Checkbox

Report

Every Item corresponds to a “global” variable

Page 12: Oracle HTMLDB introduction IT-AIS-HR Giovanni Chierico 1/16 Oracle HTMLDB introduction CERN Oracle Developers Forum: May 12 th 2005.

12/16

Oracle HTMLDB introduction

IT-AIS-HR Giovanni Chierico

Processing & BranchingProcesses

•execute PL/SQL

•manage sessions state

•Reports pagination

•Many others …

Computations

Set “item” values

•SQL or PL/SQL driven

•Static values

•Other item values

Branches

•Application Page

•External URL

•Functions returning URL/page

•Others …

Page 13: Oracle HTMLDB introduction IT-AIS-HR Giovanni Chierico 1/16 Oracle HTMLDB introduction CERN Oracle Developers Forum: May 12 th 2005.

13/16

Oracle HTMLDB introduction

IT-AIS-HR Giovanni Chierico

Example: Room Booking

Use Cases

• Search for first available time slot

• Book desired time slot

• Show room availability

Page 14: Oracle HTMLDB introduction IT-AIS-HR Giovanni Chierico 1/16 Oracle HTMLDB introduction CERN Oracle Developers Forum: May 12 th 2005.

14/16

Oracle HTMLDB introduction

IT-AIS-HR Giovanni Chierico

Conclusions

• Fast implementation

• Good looking results

• Good for small to medium applications

• It takes some time to get used to it

Page 15: Oracle HTMLDB introduction IT-AIS-HR Giovanni Chierico 1/16 Oracle HTMLDB introduction CERN Oracle Developers Forum: May 12 th 2005.

15/16

Oracle HTMLDB introduction

IT-AIS-HR Giovanni Chierico

Resources

• Official Oracle Page http://www.oracle.com/technology/products/database/htmldb/index.html

• Good support forumhttp://forums.oracle.com/forums/forum.jsp?forum=137

• AskTom http://asktom.oracle.com/

• Newsgroups comp.databases.oracle.tools

Page 16: Oracle HTMLDB introduction IT-AIS-HR Giovanni Chierico 1/16 Oracle HTMLDB introduction CERN Oracle Developers Forum: May 12 th 2005.

16/16

Oracle HTMLDB introduction

IT-AIS-HR Giovanni Chierico

Questions?