7. mod_plsql: DAD
$ORACLE_HOMEApachemodplsqlconfdads.conf
<Location /bol>
SetHandler pls_handler
Order deny,allow
Allow from all
AllowOverride None
PlsqlDatabaseUsername bol
PlsqlDatabasePassword bol
PlsqlDatabaseConnectString lt-crokitta:1521:xe ServiceNameFormat
PlsqlAuthenticationMode Basic
PlsqlDefaultPage bol.hello_world
PlsqlDocumentPath docs
</Location>
8. PL/SQL Web Toolkit
CREATE OR REPLACE PROCEDURE hello_world
IS
BEGIN
HTP.htmlopen;
HTP.headopen;
HTP.title ('BOL - Demo: Hello World');
HTP.headclose;
HTP.bodyopen;
HTP.header (1, 'Hello World');
9. PL/SQL Web Toolkit
CREATE OR REPLACE PROCEDURE hello_world
(p_wie varchar2 DEFAULT 'World' )
IS
BEGIN
HTP.htmlopen;
HTP.headopen;
HTP.title ('BOL - Demo: Hello World');
HTP.headclose;
HTP.bodyopen;
HTP.header (1, 'Hello ' || p_wie);
10. APEX
Passing Parameters (f?p syntax)
f?p=App:Page:Session:Request:Debug:ClearCache:itemNames:itemValues:PrinterFriendly
App: application ID or alphanumeric alias
●
Page: page number or alphanumeric alias
●
Session: Identifies a session ID
●
Request: Sets the value of REQUEST. Each application button sets the value of
●
REQUEST to the name of the button. This enables accept processing to reference the
name of the button when a user clicks it.
Debug: Displays application processing details. Valid values for the DEBUG flag are YES
●
or NO.
ClearCache: Clears the cache. This sets the value of items to null.
●
ItemNames: Comma-delimited list of item names used to set session state with a URL.
●
ItemValues: List of item values used to set session state within a URL.
●
PrinterFriendly: Determines if the page is being rendered in printer friendly mode.
●
11. Architectuur
APEX Listener
●Java based
●Certified against
WebLogic, SUNOracle
Glassfish, OC4J, Apache
(, iAS)
12. Architectuur
Page Processing
●Show: page rendering process. It assembles all the page attributes (including
regions, items, and buttons) into a viewable HTML page
●Accept: performs page processing. It performs any
computations, validations, processes, and branching.
Each request opens / closes Database session!!
●
13. APEX DAD & DB Schema´s
DAD
APEX_PUBLIC_USER
F
APEX_040000
SCHEMA_A SCHEMA_B SCHEMA_C
16. Use Cases
Data-driven Applications Oracle Forms Modernization
Develop opportunistic and departmental Leverage SQL & PL/SQL declarative
productivity applications programming skills to move Forms
applications to HTML / Web 2.0
Online Reporting
Build SQL-based reporting
applications on existing
database schemas
Spreadsheet Web-ification Access Replacement
Consolidate outgrown Access applications
Convert spreadsheets to Web applications
to the Oracle database with an APEX Web
where they can be concurrently viewed and
front end
edited
28. Export/Import
2: Command Line Utilities
● APEXExport.class - Java program used to
export Oracle Application Express applications
● APEXExportSplitter.class - Java program
used to split Oracle Application Express export
files into separate SQL scripts
29. Usage APEXExport
used to export applications or workspaces
-db: Database connect url in JDBC format
-user: Database username
-password : Database password
-applicationid : ID for application to be exported
-workspaceid : Workspace ID for which all applications to be exported
or the workspace to be exported
-instance : Export all applications
-expWorkspace : Export workspace identified by -workspaceid or all
workspaces if -workspaceid not specified
-skipExportDate : Exclude export date from application export files
-expPubReports : Export all user saved public interactive reports
-expSavedReports: Export all user saved interactive reports
-expIRNotif : Export all interactive report notifications
-expFeedback : Export team development feedback for all workspaces or
identified by -workspaceid to development or
deployment
-expTeamdevdata : Export team development data for all workspaces or
identified by -workspaceid
-deploymentSystem : Deployment system for exported feedback
-expFeedbackSince : Export team development feedback since date in the
format YYYYMMDD
32. Command Line Import
Assumes you are running the script connected to
SQL*Plus as the Oracle user APEX_040000 or as
the owner (parsing schema) of the application.