progressive skill. 2 who are we? we are a full services business consulting and internet technology...

96
Progressive Skill

Upload: cameron-stevens

Post on 17-Dec-2015

215 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

Progressive Skill

Page 2: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

2

Who Are We?We are a full services Business Consulting and Internet Technology Company.

Our mission is to improve business process and or generate net income for our customers.

We focus on database driven solutions leveraging ‘open source code’ models so that our customers are not ‘Hostage’ to the technology.

Page 3: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

3

Projects/Clients

Page 4: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

4

Rapid Application Development

Quick Development of Software Applications Visual Tools for Development Very Little Custom Coding/Programming Easier to Manage Code and Functionality Faster Testing and Debugging Simpler Collaboration among multiple skill sets Shorter Timelines Lower Budgets Greater Flexibility with changing/adding

requirements

Page 5: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

5

Introduction to Application Express

(formerly HTML DB)

Page 6: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

7

Agenda

• APEX Defined• Uses – who, what, when, where,

why• Building applications with APEX• APEX Administration and

Monitoring• Tips and Techniques

Page 7: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

8

APEX Defined

Page 8: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

9

What is APEX?

• Oracle’s answer to “Wizards”• Meta Data (lots of it!)• Dynamic HTML (fast!)• PL/SQL - No Java• Does anything you can do in SQL

or PL/SQL• Nice Web-based team

development environment

Page 9: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

10

It’s Origin

• Originated from Tom Kyte’s “ASK TOM” site

• Used mod_plsql to develop• Became “Project Marvel” then

HTML DB• Now it’s APEX• Also referred to as Einstein

Page 10: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

11

You’re a good candidate for APEX if you fit the following profile

• You are, or have developers who are, skilled in SQL and PL/SQL

• Your application is database-centric• Your application can be developed using

a hosted service• You are comfortable with a

declarative/4GL programming model • You want to migrate an Access / Excel

application to Oracle

Page 11: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

12

Scalable?• APEX.oracle• 5,500 active

workspaces• Dell 6550 4x2.0 Ghz

Xeon Processors• 6 GB RAM• Red Hat AS 2.1• 5,500+ schemas

• DB Size ~75 GB• SGA(System Global

Area) Size ~1.5GB• Average Unique

Page Views: 25,000+ per weekday

• Average Page View Time: <.5 seconds

• 1 DBA – manages 15 other DBs

Page 12: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

13

Major Components

• Administration

• SQL Workshop

• Application Builder

Page 13: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

14

Components• SQL Workshop

– Interact with your database as with SQL*Plus, but visual

– Data dictionary and object browsing, query by example

• Administration– Manage users– Manage services– Monitor activity

• Application Builder– Centerpiece of APEX– Loaded with wizards– Reports, forms and

charts– Connect pages using

branches– 75 pre-defined widgets– Basic HTML, pop-up lists,

calendars, etc.– Full data entry validation

Page 14: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

15

More Features• Session and State

Management– Each user has a session– Valid

username/password is required

• User Interface Control– Look-and-feel is separate

from application logic– Extensive templates

• Flexible Authentication and Authorization Schemes– Can use pre-built /

built-in methods or custom

Page 15: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

16

“Installing” APEX

• Apply for a free account at apex.oracle.com – Set up other developers / users for testing

• Can optionally download and install locally– Run the script on your 9iR2 or better database (also

need Apache listener)– Down / Upload your applications to your home system– Continue development on your home system

• Oracle 10g Companion CD• Oracle Express Edition• Develop your application (read the Help

messages – they really do help!)• Excellent support via OTN discussion forum

Page 16: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

17

Architecture

BrowserOracle Database

APEXOracle HTTP

Server

Page 17: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

18

Architecture B

BrowserOracle Database

APEXOracle HTTP

Server

Firewall

Instead of the Oracle HTTP Server, you can use the HTTP Server supplied with Oracle Application Server 9i or 10g

Page 18: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

19

APEX Uses

Who, What, When, Where, Why…

Page 19: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

20

What can you do with APEX?

• Select Journal Article review system (developed in 2 weeks)

• Web Collaboration application (developed in 2 days)

• General purpose Customer Survey (developed in 1 day)

• Survey Administration screens (developed in 2 hours)

Page 20: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

21

Select Journal Article review

Page 21: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

22

Web Collaboration application

Page 22: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

23

Customer Survey

Page 23: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

24

Survey Administration

Page 24: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

25

Testing Application

Page 25: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

26

Creating an APEX Application

Generally speaking

Page 26: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

27

Log into Workspace

• Use the Workspace you chose, the username and password emailed to you

Page 27: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

28

Home Menu• You’re ready to begin

– Build Applications– Work in SQL– Work with Data– Manage users

Page 28: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

29

Migrate Data

• Import data from Spreadsheets, XML or Delimited Files

Page 29: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

30

Load Northwinds?

• I loaded the Northwinds Database from SQL Server

• Used Periscope to load/copy data

• Once loaded, view data using SQL Workshop

Page 30: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

31

Drill and Create

• Can – Drill into data– Count rows– Insert/Edit rows– Query by Example– View components– Much more…

Page 31: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

32

Use the Wizards

• APEX’s many wizards will simplify your life – use them!

• Reports, Charts, Forms, Calendars, Trees, etc.

Page 32: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

33

Create a Hardware Inventory Application

Page 33: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

34

Building an application “from scratch” – in 5 simple steps

• Login with developer privileges• Use the SQL tools to make your tables,

constraints, triggers, procedures etc.• Start a new application (use the wizard)• Customize the application (check each

change as you make it)• Deploy to the users!

Page 34: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

35

ExampleHardware Inventory

App• Record and view hardware

inventory• Searchable report • Present analysis graphically as well

as numerically• Design for novice users• Remote users with access to

Internet

Page 35: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

36

Main Menu

Page 36: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

37

Import Data (SQL Workshop)

Page 37: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

38

Converting Data

• Previously, data was stored in an Excel spreadsheet

• Conveniently, this can be made into an Oracle table by simply copying and pasting into the APEX create table wizard

• Select Region• Copy from Excel

Page 38: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

39

Import Data Wizard

Page 39: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

40

Paste Your Data In…

Page 40: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

41

Set Column Preferences

Page 41: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

42

Create a Primary Keyand sequence

Page 42: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

43

Object Detail for Table Created (in Object Browser)

Page 43: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

44

Create Lookup Table

• Select column for look up

• Specify lookup table specifics

Page 44: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

45

Create an Application

Page 45: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

46

Create the application form scratch (this time)

Page 46: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

47

Add Report and Form based on Hardware table

• Notice inclusion of Analysis pages

Page 47: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

48

Specify Details for Analysis

Page 48: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

49

Could add as many pages as you want

Page 49: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

50

Select Levels of Tabs

Page 50: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

51

Can Share Components for

other applications

Page 51: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

52

Specify Security and Language

Page 52: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

53

Choose a Theme

Page 53: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

54

Verify and Finish

Page 54: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

55

Run your new Application!(you will need to log in)

Page 55: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

56

Instant Application!• Searchable report • Links to edit individual rows

Page 56: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

57

Instant Application!

• Edit form with– Calendar widget– Picklist based off lookup table

Page 57: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

58

Instant Application!• Analysis Chart and Report

Page 58: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

59

Good start but improvements can be made

• Makes “codes” more meaningful

• Format output

Edit page through edit link

Page 59: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

60

Three basic areas for each page

Page 60: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

61

Elements of a Page

• Shared Components– Tabs– Navigation bar– Templates

• Regions– Items– Labels– Buttons– Widgets

Page 61: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

62

Most things are created through WIZARDS

• Step by step • Collect

essential info

Page 62: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

63

EVERYTHINGhas attributes and almost

everything has an edit page

All of the basic attributes collected through the wizards, and many more detailed attributes are editable through an elements attribute/edit page. All of this information is called Meta Data.

Page 63: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

64

Attribute/Edit Pages

• Attributes in regions by logical groups

• Quick navigation to each region

• Many items are select lists

• Almost all have context sensitive help

Page 64: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

65

Reuse of Shared Components

LOV used for both report and edit

Page 65: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

66

Easy Data Validation

• Some validation created automatically based on database.

• Others easily created with wizard.

Page 66: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

67

Validation Wizard

• Choose the item

• Specify the validation type

Page 67: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

68

Validation Wizard

• Choose subtype• Specify

sequence and where error message is to be displayed

Page 68: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

69

Validation Wizard

• Depending on method, provide validation details

• Specify error message

• Always look for help provided– Examples– Item lookups

Page 69: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

70

MOST things can beCONDITIONAL!

• Many, many different types of conditions available.

• Item is displayed or processed depending on the outcome of the condition.

Page 70: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

71

Validation

• Message displayed by item, central location or both • Navigation not allowed until validations pass

Page 71: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

72

Security• Two levels

– Authentication, controls initial access to the application– Authorization, can control access to tabs, pages, regions, items,

buttons, read/write vs read only, …..

• Use APEX built in functionality, totally custom or somewhere in between.

Page 72: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

73

Make a backup!

Page 73: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

74

Save the export

Page 74: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

75

Deployment Process

Development Production

Data

HTML DB App

PL/SQL Code

(Periodic Refresh)

Page 75: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

76

APEX Administration• Administrator controls

Workspaces • Workspaces control

developer access and provide resources.

Page 76: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

77

APEX Administration

• Workspaces can be requested.

• Workspaces are “provisioned”

• Initial users are created, more can be created by the “workspace” administrator

• Workspaces/Applications can be monitored.

Page 77: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

78

Workspace Administration

• Workspace administrator manages services

• Creates and alters workspace / application users

• Monitors Activity

Page 78: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

79

Workspace Administration

Many reports and charts are available to monitor workspace activity.

Many application reports are also available (to developers also)

Page 79: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

80

APEX Tips and Techniques

Page 80: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

81

Sample Applications

• The Sample Applications have great examples

• Take some time to understand the applications

• Standard Sample – Common Concepts

Page 81: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

82

Spend Time onAnalysis/Design

• Time Well Spent– Follows standard design

principals– Storyboard approach

makes it a visual process

• Pay me now or pay me more later…– Poor design, results in a

poor application• Important to understand

Web development to design

Page 82: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

83

Storyboard Design

• Take the time to map our your tabs, menus, layout and design

Home Page

Products

Consulting Training

A…B…C...

ProductsConsultingTraining

Page 83: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

84

Debugging

• To view the current value of any object (if you’re a developer), you can click on the session button at any time

Page 84: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

85

Help!

• The online help that is available is very well written as a reference

• The OTN Discussion Forum is very helpful!

http://forums.oracle.com/forums/forum.jspa?forumID=137

Page 85: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

86

Creating a Popup

• You can specify a TARGET=NEW for an href if you want the URL / Link to pop up a new page when clicked

• This is useful when referencing other sites

Page 86: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

87

Adding Images• To add images, static HTML / Docs

and CSS files to the application, click on– Shared Components

• Images• CSS• Static Files

Page 87: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

88

Advanced Topics

• Debugging• Using Collections• Authentication & Authorization• Administration• Deployment Process• Available Functions & APIs• Monitoring Activity

Page 88: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

89

Debugging

• Run any page in your application• Turn on debug mode by clicking on

Debug in the developer toolbar• Timing is processor time, not rendering

time• Append &p_trace=YES to your URL to

generate SQL Trace File

http://hostname.com/pls/htmldb/f?p=100:1&p_trace=YES

Page 89: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

90

Using Collections• Enable you to temporarily capture rows

and columns of data• Data is persistent throughout a users

unique session• Examples of when to use a collection:

– A wizard with more than one page– A shopping cart application

Page 90: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

91

Authentication & Authorization

• Establish User Identity Through Authentication

• Provide Security Through Authorization

Page 91: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

92

Administration• An HTML DB Administrator’s main task is to

manage the instance of HTML DB• Monitor Activity to ensure good performance• Some common tasks include

– Approving Service & Change Requests– Managing Schema to Workspace Mappings– Managing Schemas & Tablespaces– All Other Associated DBA functions

http://hostname.com/pls/htmldb/htmldb_admin

Page 92: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

93

APEX Summary

• For additional information, check out:– http://apex.oracle.com

• Externally Hosted Instance• OTN Discussion Forums• HTML DB “How To” Documents

Page 93: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

94

&variableName.

• &variableName is used when you need to substitute a variable as when you are building a link to another page

• You often need to place a period at the end of the name

• For example:– f?p=&app_id.:2:&session

Page 94: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

95

Summary

• Powerful• Relatively Easy• Fast• Secure• Really works• Hosted

Page 95: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

96

Questions and Answers

Page 96: Progressive Skill. 2 Who Are We? We are a full services Business Consulting and Internet Technology Company. Our mission is to improve business process

97

• htmldb.oracle.com• metalink.oracle.com• technet.oracle.com• otn.oracle.com• www.tusc.com

• Oracle Press, “Oracle HTML DB Handbook” by Lawrence C Linnemeyer and Bradley D. Brown

Where to Get More Information