Integrating Oracle HTML DB with Oracle Application Server 10g.

61

Transcript of Integrating Oracle HTML DB with Oracle Application Server 10g.

Page 1: Integrating Oracle HTML DB with Oracle Application Server 10g.
Page 2: Integrating Oracle HTML DB with Oracle Application Server 10g.

Integrating Oracle HTML DB with Oracle Application Server 10g

Page 3: Integrating Oracle HTML DB with Oracle Application Server 10g.

Scott SpendoliniSenior Product Manager, Oracle HTML DB

Oracle Corporation

Page 4: Integrating Oracle HTML DB with Oracle Application Server 10g.

Agenda

• Oracle HTML DB Overview

• Integration Points with Oracle Application Server 10g

• Summary

• Q & A

Page 5: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle HTML DB Overview

Page 6: Integrating Oracle HTML DB with Oracle Application Server 10g.

What is Oracle HTML DB?

• A secure, web-based, metadata-driven, database-centric application development and deployment platform that resides in the Oracle Database

Page 7: Integrating Oracle HTML DB with Oracle Application Server 10g.

Portal vs. HTML DB

• Oracle PortalConsolidated View of Personalized Data from Multiple Sources

• Oracle HTML DBSecure, Scalable Platform for Web Application Development & Deployment

Page 8: Integrating Oracle HTML DB with Oracle Application Server 10g.

Availability

• Release 1.5• Software ships on Oracle Database 10g Companion CD

• Release 1.6• Available as a Download from OTN• 1.6.1 Patchset Available via Metalink

• Works & Supported in Oracle Database 10g and Oracle Database 9iR2 (9.2.0.3+)

• Included as a component of Standard One, Standard and Enterprise Editions

• No Additional Charge

Page 9: Integrating Oracle HTML DB with Oracle Application Server 10g.

Demo EnvironmentPhysical Architecture

Browser

syracuse.us.oracle.com

Oracle HTML DB

orangemen.us.oracle.com

Page 10: Integrating Oracle HTML DB with Oracle Application Server 10g.

Demo EnvironmentPhysical Architecture

Oracle HTML DB

Reports

InternetDirectory

HTTP & mod_plsql

PortalSingle

Sign-On

orangemen.us.oracle.comsyracuse.us.oracle.com

OC4J MapViewer

Page 11: Integrating Oracle HTML DB with Oracle Application Server 10g.

Demo EnvironmentToday’s Architecture

Red Hat Advanced Serverhtmldb-demo.us.oracle.com

Page 12: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle HTML DBLogical Architecture

• Shared Workgroup Database Service• Ability to Host Many Users on a Single Instance• Centrally Deployed & Managed• Accessed anywhere via a Browser

• Declarative development style• Pages & Objects Stored as Metadata• Wizard-Based Development

Page 13: Integrating Oracle HTML DB with Oracle Application Server 10g.

ApplicationsApplications

ApplicationsApplications

ApplicationsApplications

Oracle HTML DBLogical Architecture

ApplicationsApplications Schema ASchema A

ApplicationsApplications Schema BSchema B

ApplicationsApplications Schema CSchema C

Workspace A

Workspace B

Workspace C

Page 14: Integrating Oracle HTML DB with Oracle Application Server 10g.

Integration Points with Oracle Application Server 10g

Page 15: Integrating Oracle HTML DB with Oracle Application Server 10g.

OC4J MapViewer

Oracle HTTP Server & mod_plsql

Oracle HTML DB

Reports

InternetDirectory

HTTP & mod_plsql

PortalSingle

Sign-On

orangemen.us.oracle.comsyracuse.us.oracle.com

Page 16: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle HTTP Server & mod_plsql

Software & Editions Required

• Software• Oracle HTTP Server• mod_plsql

• Editions• Oracle AS Java Edition• Oracle AS Standard Edition• Oracle AS Enterprise Edition

Page 17: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle HTTP Server & mod_plsql

How it Integrates

• Oracle HTTP Server & mod_plsql from Oracle AS can be used to serve Oracle HTML DB

• A single instance of OHS & mod_plsql can point to multiple instances of Oracle HTML DB

• Add entries to DAD configuration file

• Cluster HTTP Servers for Failover

Page 18: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle HTTP Server & mod_plsql

Steps to Configure

• Add an entry to your DAD configuration file for each instance of Oracle HTML DB:<Location /pls/htmldb>SetHandler pls_handlerOrder deny,allowAllow from allAllowOverride NonePlsqlDatabaseUsername HTMLDB_PUBLIC_USERPlsqlDatabasePassword @BXUKpCh0pabnAcDAE+X2P9w= PlsqlDatabaseConnectString localhost:1521:sadler ServiceNameFormat PlsqlDefaultPage htmldbPlsqlDocumentTablename wwv_flow_file_objects$PlsqlDocumentPath docsPlsqlDocumentProcedure wwv_flow_file_manager.process_downloadPlsqlAuthenticationMode BasicPlsqlNLSLanguage AMERICAN_AMERICA.WE8MSWIN1252</Location>

Page 19: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle HTTP Server & mod_plsql

Resources

• OTN: Oracle HTTP Serverhttp://www.oracle.com/technology/products/ias/ohs/index.html

• Studio: Install HTML DB into multiple Oracle Instances using a single Oracle HTTP Serverhttp://htmldb.oracle.com/pls/otn/f?p=18326:54:::::P54_ID:481

• How To: Install and Configure Oracle HTML DB for use with Oracle Application Server 10g http://www.oracle.com/technology/products/database/htmldb/howtos/howto_useoas10g.html

• How To: Install and Configure Oracle HTML DB for use by a 9iR2 Oracle HTTP Server http://www.oracle.com/technology/products/database/htmldb/howtos/howto_use9ir2ohs.html

Page 20: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle HTTP Server & mod_plsql

Demonstration

Page 21: Integrating Oracle HTML DB with Oracle Application Server 10g.

OC4J MapViewer

Oracle Single Sign-On

Oracle HTML DB

Reports

InternetDirectory

HTTP & mod_plsql

PortalSingle

Sign-On

orangemen.us.oracle.comsyracuse.us.oracle.com

Page 22: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle Single Sign-OnSoftware & Editions Required

• Software• Oracle Single Sign-On Server

• Editions• Oracle AS Standard Edition• Oracle AS Enterprise Edition

Page 23: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle Single Sign-OnHow it Integrates

• Oracle HTML DB can integrate with Oracle Single Sign-on as a:

• Partner Application• External Application

• Signing on to the Oracle Login Server means you're authenticated to any Oracle HTML DB application using the SSO Authentication Scheme

Page 24: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle Single Sign-OnSteps to Configure

• Download & Install the SSO SDK into your HTML DB Schema

• Alternatively, you can install the SSO SDK into a separate schema, in order to preserve it when HTML DB is upgraded

• Create an SSO Authentication Scheme in your HTML DB Application

• Register Oracle HTML DB or a specific Oracle HTML DB Application as a Partner Application

Page 25: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle Single Sign-OnResources

• OTN: Oracle Single Sign-Onhttp://www.oracle.com/technology/products/id_mgmt/osso/index.html

• How To: Configure an HTML DB Application as a Partner Application in Oracle AS Single Sign-Onhttp://www.oracle.com/technology/products/database/htmldb/howtos/sso_partner_app.html

Page 26: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle Single Sign-OnDemonstration

Page 27: Integrating Oracle HTML DB with Oracle Application Server 10g.

OC4J MapViewer

Oracle Portal

Oracle HTML DB

Reports

InternetDirectory

HTTP & mod_plsql

PortalSingle

Sign-On

orangemen.us.oracle.comsyracuse.us.oracle.com

Page 28: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle PortalSoftware & Editions Required

• Software• Oracle Portal

• OmniPortlet

• Oracle Single Sign-On Server• Oracle Internet Directory

• Editions• Oracle AS Standard Edition• Oracle AS Enterprise Edition

Page 29: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle PortalHow it Integrates

• Oracle Portal can be used as a launch point for Oracle HTML DB Applications which are integrated with Oracle SSO

• The OmniPortlet can display any Oracle HTML DB Report of type XML as a table, chart, news items, bullets, or in a form

• OmniPortlets can drill-down into Oracle HTML DB applications

• Page Parameters can be passed to the OmniPortlet in order to filter the results from Oracle HTML DB

Page 30: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle PortalSteps to Configure

• Create a SQL Report in HTML DB• Ensure the the Report Title and Column Titles contain no

spaces (DeptNo instead of Dept No)

• Change the Report Template to export: XML• Create an OmniPortlet of type XML• Supply the URL for the page with your Oracle HTML

DB XML Report for the XML URL• Specify the Filter, View and Layout parameters

• Under View, select "Don't Cache the Portlet Content" to ensure that you don't see stale data in Oracle Portal

Page 31: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle PortalResources

• OTN: Oracle Portalhttp://www.oracle.com/technology/products/ias/portal/index.html

• How To: Publish an HTML DB Component as a Portlet in Oracle Application Server Portalhttp://www.oracle.com/technology/products/database/htmldb/howtos/omniportlet_index.html

• Publishing an HTML DB Report on a Portal Page• Publishing an HTML DB Report as a Chart on a Portal

Page• Linking from an OmniPortlet to an HTML DB Page• Making an OmniPortlet Parameter-Driven

Page 32: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle PortalDemonstration

Page 33: Integrating Oracle HTML DB with Oracle Application Server 10g.

OC4J MapViewer

Oracle Internet Directory

Oracle HTML DB

Reports

InternetDirectory

HTTP & mod_plsql

PortalSingle

Sign-On

orangemen.us.oracle.comsyracuse.us.oracle.com

Page 34: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle Internet DirectorySoftware & Editions Required

• Software• Oracle Internet Directory

• Editions• Oracle AS Standard Edition with Identity

Management Option• Oracle AS Enterprise Edition

Page 35: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle Internet DirectoryHow it Integrates

• Oracle HTML DB Users & Groups can be stored in Oracle Internet Directory (OID)

• OID can be synchronized with MS Active Directory

• OID Groups can be referenced in Oracle HTML DB Authorization Schemes to restrict access to Oracle HTML DB applications and/or components

• Users can manage their own account (change their password, edit their profile) via OID

• Administrators can enforce security policies (password settings & expiration dates, etc) via OID

Page 36: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle Internet DirectorySteps to Configure

• Create an Authorization Scheme based on a PL/SQL Function Returning BOOLEAN

• Associate the Authorization Scheme with a page or page component in HTML DB

• Sample function call:

return wwv_flow_ldap.is_member (:APP_USER, null, 'cn=users, dc=somedomain, dc=com', 'oidserver.somedomain.com', '389', 'SAMPLE_APP_ADMINS', 'cn=Groups, dc=somedomain, dc=com');

Page 37: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle Internet DirectoryResources

• OTN: Oracle Internet Directoryhttp://www.oracle.com/technology/products/oid/index.html

• Studio: How to use OID Groups to Manage HTML DB Securityhttp://htmldb.oracle.com/pls/otn/f?p=18326:54:::::P54_ID:281

Page 38: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle Internet DirectoryDemonstration

Page 39: Integrating Oracle HTML DB with Oracle Application Server 10g.

OC4J MapViewer

Oracle Reports

Oracle HTML DB

Reports

InternetDirectory

HTTP & mod_plsql

PortalSingle

Sign-On

orangemen.us.oracle.comsyracuse.us.oracle.com

Page 40: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle ReportsSoftware & Editions Required

• Software• Oracle Reports Services

• Editions• Oracle AS Business Intelligence• Oracle AS Enterprise Edition

Page 41: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle ReportsHow it Integrates

• Oracle HTML DB applications can directly call Oracle Reports to produce PDF output

• Parameters can be passed to the Report

Page 42: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle ReportsSteps to Configure

• Create and deploy and Oracle Report on your Oracle AS server

• Build an HTML DB Application that will call the Oracle Report

• /reports/rwservlet?module=orders.rdf&userid=sspendol/oracle@syracuse&destype=cache&desformat=PDF&p_order_id=&P29_ORDER_ID.

• You can optionally secure the report and not pass username & password via the URL

• You can optionally store parameters in a table to prevent URL tampering

Page 43: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle ReportsResources

• OTN: Oracle Reportshttp://www.oracle.com/technology/products/reports/index.html

• How To: Integrate Oracle Reports with Oracle HTML DBhttp://www.oracle.com/technology/products/database/htmldb/howtos/howto_integrate_oracle_reports.html

Page 44: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle ReportsDemonstration

Page 45: Integrating Oracle HTML DB with Oracle Application Server 10g.

MapViewer

WebServices on Oracle AS

Oracle HTML DB

Reports

InternetDirectory

HTTP & mod_plsql

PortalSingle

Sign-On

orangemen.us.oracle.comsyracuse.us.oracle.com

OC4J

Page 46: Integrating Oracle HTML DB with Oracle Application Server 10g.

WebServices on Oracle AS Software & Editions Required

• Software• Oracle AS Containers for J2EE (OC4J)

• Editions• Oracle AS Java Edition• Oracle AS Standard Edition• Oracle AS Enterprise Edition

Page 47: Integrating Oracle HTML DB with Oracle Application Server 10g.

WebServices on Oracle AS How it Integrates

• WebServices can be built using Oracle JDeveloper and Deployed in an OC4J container in Oracle AS Containers for J2EE

• Oracle HTML DB can consume WebServices• WebService must have valid WSDL document• Both Input & Output parameters supported

Page 48: Integrating Oracle HTML DB with Oracle Application Server 10g.

WebServices on Oracle AS Steps to Configure

• Build & Deploy a WebService and associated WSDL document with Oracle JDeveloper & Oracle AS

• Consume the WebService with Oracle HTML DB

• Build a report and/or a form based on the in/out parameters of the WebService

Page 49: Integrating Oracle HTML DB with Oracle Application Server 10g.

WebServices on Oracle AS Resources

• OTN: Oracle AS Containers for J2EEhttp://www.oracle.com/technology/tech/java/oc4j/index.html

• How To: Develop a Web Service From a Web Service Description Language (WSDL) Documenthttp://www.oracle.com/technology/tech/java/oc4j/1013/howtos/how-to-ws-topdown/doc/how-to-ws-topdown.html

• Publish a JAX-RPC Web Servicehttp://www.oracle.com/technology/tech/webservices/htdocs/series/jaxrpc1/index.html

Page 50: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle AS Containers for J2EE

Demonstration

Page 51: Integrating Oracle HTML DB with Oracle Application Server 10g.

OC4J

Oracle AS MapViewer

Oracle HTML DB

Reports

InternetDirectory

HTTP & mod_plsql

PortalSingle

Sign-On

orangemen.us.oracle.comsyracuse.us.oracle.com

MapViewer

Page 52: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle AS MapViewerSoftware & Editions Required

• Software• Oracle AS MapViewer• Oracle AS Containers for J2EE (OC4J)

• Editions• Oracle AS Java Edition• Oracle AS Standard Edition• Oracle AS Enterprise Edition

Page 53: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle AS MapViewerHow it Integrates

• Oracle MapViewer can be embedded in an Oracle HTML DB application

• PL/SQL APIs will be released with the How To• Functions Supported:

• Zoom In & Out• Zoom Box• Pan

Page 54: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle AS MapViewerSteps to Configure

• Install PL/SQL API• Download data from NavTeq or OTN

• Sample data for both Washington, DC & San Francisco

• Spatially Index your Data• Build required HTML DB components or

Download Template App from HTML DB Studio

Page 55: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle AS MapViewerResources

• OTN: Oracle AS MapViewerhttp://www.oracle.com/technology/products/mapviewer/index.html

• OTN: NavTeq Map Datahttp://www.navteq.com/oracle-download/index.jsp

• OTN: MapViewer Quick Starthttp://download.oracle.com/otn/other/mapviewer/mapviewer1012_demo.zip

• How To: Coming Soon

Page 56: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle AS MapViewerDemonstration

Launch Viewlet

Page 57: Integrating Oracle HTML DB with Oracle Application Server 10g.

Oracle HTML DB How To's

• Step-by-Step instructions on how to configure/build/integrate Oracle Technologies

• Each one of these Integration Demos has a corresponding How To Document

http://htmldb.oracle.com/howtos

Page 58: Integrating Oracle HTML DB with Oracle Application Server 10g.

Summary

Page 59: Integrating Oracle HTML DB with Oracle Application Server 10g.

Summary

• Oracle HTML DB and Oracle Application Server 10g are designed to work together

• Oracle HTML DB can easily leverage many of Oracle Application Server 10g's features

• Combining Oracle HTML DB & Oracle Application Server 10g make a powerful development platform

Page 60: Integrating Oracle HTML DB with Oracle Application Server 10g.

More Technical Information

• Visit Oracle Technology Networkhttp://otn.oracle.com

• Oracle HTML DB Home pagehttp://htmldb.oracle.com/otn

• Oracle HTML DB Studiohttp://htmldb.oracle.com/studio

• Discuss Oracle HTML DB in the Forumshttp://htmldb.oracle.com/forums

Page 61: Integrating Oracle HTML DB with Oracle Application Server 10g.

AQ&Q U E S T I O N SQ U E S T I O N S

A N S W E R SA N S W E R S