Más contenido relacionado
La actualidad más candente (20)
Similar a 20180126 apexはじめの一歩 (20)
20180126 apexはじめの一歩
- 2. Copyright © 2017 Oracle and/or its affiliates. All rights reserved. |
以下の事項は、弊社の一般的な製品の方向性に関する概要を説明するものです。また、
情報提供を唯一の目的とするものであり、いかなる契約にも組み込むことはできません。以
下の事項は、マテリアルやコード、機能を提供することをコミットメント(確約)するものでは
ないため、購買決定を行う際の判断材料になさらないで下さい。オラクル製品に関して記載
されている機能の開発、リリースおよび時期については、弊社の裁量により決定されます。
OracleとJavaは、Oracle Corporation 及びその子会社、関連会社の米国及びその他の国における登録商標です。
文中の社名、商品名等は各社の商標または登録商標である場合があります。
2
- 3. Copyright © 2017 Oracle and/or its affiliates. All rights reserved. |
Program Agenda
Oracle Application Express (APEX) 概要
APEX 5.2 (いまわかっていること)
APEX Community、その他リソース
1
2
3
3
- 4. Copyright © 2017 Oracle and/or its affiliates. All rights reserved. |
Oracle Application Express (APEX) 概要
4
- 5. Copyright © 2017 Oracle and/or its affiliates. All rights reserved. |
Oracle データベースを軸とした 無償 Web アプリケーション開発ツール
Oracle Application Express (APEX)とは
5
デスクトップ/モバイル向け
アプリが開発可能
データの視覚化
データメンテナンス
SQL,PL/SQLのスキルを
活かした開発
ブラウザベースで開発
クライアントソフトの導入不要
追加ライセンス不要
Oracle Databaseの標準機能
追加構成は不要
Databaseと共に構成される
- 6. Copyright © 2017 Oracle and/or its affiliates. All rights reserved. |
Oracle Application Express (APEX)
概要
• Oracle Databaseで利用できるWebベースのアプリケーションを短期間で
開発する為のツール
– 旧名称: Oracle HTMLDB (2004年より提供開始)
– Oracle Databaseに無償バンドル (10.2頃より)
– Oracle Database 11g からは標準で構成
– ブラウザのみで利用可能
– アプリケーションはSQLおよびPL/SQLで記述
• Webベースのアプリケーションが必要とする機能をあらかじめ用意
– セッション管理
– 認証(LDAP利用可能)
– 簡易ソート、ページ遷移、CSV出力
6
最新バージョン: 5.1.4 (2018/01/25 時点)
- 7. Copyright © 2017 Oracle and/or its affiliates. All rights reserved. |
Oracle REST Data Services (ORDS)
旧名称:APEX Listener
• Oracle Database、Oracle NoSQL Databaseに対し、RESTを
使ったURIベースのアクセスを提供
– URIをSQLもしくはPL/SQLにマッピング
– 問い合わせ結果はJSONもしくはCSVで取得
– HTMLのメソッドを利用可能
• GET, PUT, POST, DELETE
– OAuth 2.0 と連携
– Java EEアプリケーション・サーバで動作
• Oracle WebLogic Server
• Oracle Glassfish Server ※
• Apache Tomcat
– Standalone モードでの動作も可能(Jetty)
7
最新バージョン: 17.4 (2018/01/25 時点)
※ GlassFish は ORDS 17.4 まではサポートされますが、今後サポートされなくなります
- 8. Copyright © 2017 Oracle and/or its affiliates. All rights reserved. |
※ mod_plsql は OHS 12.2.1から削除されました
GlassFish は ORDS 17.4まではサポートされますが、
今後サポートされなくなります
APEXのアーキテクチャ
三層構造アーキテクチャ
8
Oracle HTTP Server
mod_plsql
Oracle Database
APEX
エンジン
アプリケーション
メタデータ
データ
スキーマ
Oracle HTTP Server + mod_plsql ※
Oracle Database
データ
スキーマ
Javaアプリケーション・サーバ + ORDS, ORDSスタンドアロン
Oracle Database
データ
スキーマ
埋込みPL/SQLゲートウェイ
(Oracle Database 11g~)
PL/SQL
ゲートウェイ
WebLogic / GlassFish ※ / Tomcat
ORDS
ORDS
Standalone
外部
データ・ソース
外部
データ・ソース
REST API REST API
APEX
エンジン
アプリケーション
メタデータ
APEX
エンジン
アプリケーション
メタデータ
開発用途
- 9. Copyright © 2017 Oracle and/or its affiliates. All rights reserved. |
APEXの歴史
PL/SQL Web Toolkit
• 当初は Application Server の機能として提供
• Oracle Web Application Server
• Oracle Application Server (OAS)
– PL/SQL Cartridge (CORBA)
• Oracle Internet Application Server
(iAS, OracleAS)
– Oracle HTTP Server (OHS) + mod_plsql ※
• HTML DBがOracle Databaseのライセンスに
含まれるようになり、標準で利用可能に
(DB 10.2からマニュアルに掲載)
9
CREATE OR REPLACE PROCEDURE html_page IS
BEGIN
HTP.HTMLOPEN; -- generates <HTML>
HTP.HEADOPEN; -- generates <HEAD>
HTP.TITLE('Title'); -- generates <TITLE>Hello</TITLE>
HTP.HEADCLOSE; -- generates </HTML>
-- generates <BODY TEXT="#000000" BGCOLOR="#FFFFFF">
HTP.BODYOPEN( cattributes => 'TEXT="#000000" BGCOLOR="#FFFFFF"');
-- generates <H1>Heading in the HTML File</H1>
HTP.HEADER(1, 'Heading in the HTML File');
HTP.PARA; -- generates <P>
HTP.PRINT('Some text in the HTML file.');
HTP.BODYCLOSE; -- generates </BODY>
HTP.HTMLCLOSE; -- generates </HTML>
END;
/
1997年
1998年
2005年
2000年
~
マニュアル記述は以下を参照:
Oracle® Database開発ガイド 12c リリース2 (12.2)
17 PL/SQL Webアプリケーションの開発
https://docs.oracle.com/cd/E82638_01/ADFNS/web-applications.htm#GUID-
EE7C707C-990F-4CA4-8730-5C58A5C73491※ mod_plsql はOHS 12.2.1から削除されました
- 10. Copyright © 2017 Oracle and/or its affiliates. All rights reserved. |
APEXの歴史
APEXのバージョン毎の主要機能
10
1998
APEX
Oracle
Flows
1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018
Project
Marvel
1.5
1.6
2.0
2.1
2.2
3.0 3.1 3.2 4.0 4.1 4.2 5.0 5.1
HTML DB 1.5
▪ First Release
HTML DB 1.6
▪ Themes
APEX 2.1
▪ Oracle XE (10.2)
APEX 2.2
▪ Packaged Applications
APEX 3.1
▪ Interactive Reports
HTML DB 2.0
▪ SQL Workshop
APEX 3.0
▪ Flash Charts
▪ PDF Printing
▪ Microsoft Access Migration
APEX 3.2
▪ Oracle Forms to APEX
Conversion
APEX 4.1
▪ Data Upload
▪ Error Handling
▪ ROWID
APEX 4.2.x
▪ Mobile
▪ HTML5
▪ Packaged Apps
APEX 4.0
▪ Websheets
▪ Dynamic Actions
▪ Plug-Ins
▪ Team Development
APEX 5.0
▪ Page Designer
▪ Universal Theme
▪ Modal Dialogs
APEX 5.1
▪ Interactive Grid
▪ Oracle JET Charts
HTML
DB
- 11. Copyright © 2017 Oracle and/or its affiliates. All rights reserved. |
APEXの歴史
APEX、Oracle DatabaseおよびWebアプリケーションの要素技術の流れ
11
1998
APEX
Oracle
Database
(PL/SQL)
CSS
jQuery
HTML
Oracle
Flows
1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018
Project
Marvel
1.5
1.6
2.0
2.1
2.2
3.0 3.1 3.2 4.0 4.1 4.2 5.0 5.1
8.1.7 10.1 10.2 11.1 11.2 12.1 12.29.29.0
8.1.5
8.1.6
4.01 5 5.1 5.2
1.0
1.9
2.0
2.2
3.0
3.1
3.2
1.1
1.2
1.3 1.4
1.5
1.6
1.7
1.8 2.1
jQuery
Mobile
1.0
RC
1.4.51.0
2.0
2.1
3.0
▲Ajax
HTML
DB
▲HTML DB がOracle Databaseのライセンスに含まれる
5
draft
- 12. Copyright © 2017 Oracle and/or its affiliates. All rights reserved. |
APEXを効果的に使う: Low Code
Low Code Development with Oracle Application Express
12
https://apex.oracle.com/lowcode/
- 13. Copyright © 2017 Oracle and/or its affiliates. All rights reserved. |
APEXの作業領域(ワークスペース)
アプリケーションを開発する際に利用する、仮想的な枠組み
• 仮想的な枠を設けることで、アプリケーションを
分割作成可能
• アプリケーションが利用できるスキーマを制限
• 開発用のユーザはワークスペース単位で作成
– 「ワークスペース01」と「ワークスペース02」の
「ユーザA」は名前は同じでも別ユーザ
13
スキーマ:Bスキーマ:Aスキーマ:APEX_050100
ワークスペース:Internal ワークスペース:01 ワークスペース:02
ユーザ: Aユーザ: Admin ユーザ: A ユーザ: B
ワークスペース管理
アプリケーション: 002
アプリケーション: 001 アプリケーション: 003
APEX
Oracle Database
インスタンス管理
- 14. Copyright © 2017 Oracle and/or its affiliates. All rights reserved. |
SQL Developerとの連携
APEXのSQL WorkshopとSQL Developer
14
- 15. Copyright © 2017 Oracle and/or its affiliates. All rights reserved. |
SQL Developerとの連携
APEXアプリケーションの参照
15
- 16. Copyright © 2017 Oracle and/or its affiliates. All rights reserved. |
APEXで作成した画面のデバッグ
16
入力、ボタン実行など
実行されたSQLが表示
- 17. Copyright © 2017 Oracle and/or its affiliates. All rights reserved. |
アプリケーション画面の構成要素の確認、性能確認
Chrome Apps & Extension Developer Tool
17
- 18. Copyright © 2017 Oracle and/or its affiliates. All rights reserved. |
APEX 5.2 (いまわかっていること)
18
- 19. Copyright © 2017 Oracle and/or its affiliates. All rights reserved. |
APEX 5.2
Oracle Application Express Statement of Direction (2017/10/27更新)
19
http://www.oracle.com/technetwork/testcontent/apex-sod-087560.html
- 20. Copyright © 2017 Oracle and/or its affiliates. All rights reserved. |
APEX 5.2
https://apexea.oracle.com
20
- 21. Copyright © 2017 Oracle and/or its affiliates. All rights reserved. |
APEX 5.2
Mobile User Interface は利用しない
21
「Mobile」 が存在しない
http://joelkallman.blogspot.jp/2017/08/an-important-change-is-coming-for.html
jQuery Mobile が長期に渡ってメンテナンスされていないため
Universal Theme をMobileでも利用しやすいように拡張する方向
- 22. Copyright © 2017 Oracle and/or its affiliates. All rights reserved. |
APEX 5.2
共有コンポーネントの比較
22
APEX 5.1.4 APEX 5.2 EA
- 23. Copyright © 2017 Oracle and/or its affiliates. All rights reserved. |
APEX 5.2
簡単に触ってみたところ
23
アプリケーション毎に
管理者用の画面を作成可能
Facebook等のIDによる
認証が可能
RESTful Service の設定画面が大幅に変更
- 24. Copyright © 2017 Oracle and/or its affiliates. All rights reserved. |
APEX Community、その他リソース
24
- 25. Copyright © 2017 Oracle and/or its affiliates. All rights reserved. |
APEX Plug-in
25
- 26. Copyright © 2017 Oracle and/or its affiliates. All rights reserved. |
書籍
26
https://apex.oracle.com/pls/apex/f?p=411
- 27. Copyright © 2017 Oracle and/or its affiliates. All rights reserved. |
APEX Community
27
https://apex.oracle.com/pls/apex/f?p=411
- 28. Copyright © 2017 Oracle and/or its affiliates. All rights reserved. |
ユーザー・コミュニティ
28
- 29. Copyright © 2017 Oracle and/or its affiliates. All rights reserved. |
開発者コミュニティ: ODTUG (Oracle Development Tools User Group)
29
- 30. Copyright © 2017 Oracle and/or its affiliates. All rights reserved. | 30
Meetup
Meetup