Вы находитесь на странице: 1из 43

1

Oracle Forms Developer

1. Oracle Forms Developer


Oracle AS.
, , .
: Oracle Application Server, Oracle Forms Services, Oracle
Developer Suite.
: Oracle
Oracle AS.
Oracle
- :
Oracle10g, Oracle Collaboration
Suite, - Oracle
E-Business Suite
Oracle Data Hub.
,
150 . www.oracle.com.
Oracle Grid.
,
.

Oracle Application Server


Oracle Application Server ( ) GRID, -
, ,
.
Grid- Oracle AS
. Oracle AS
. Oracle Application Server
:
9

Web Oracle Developer

J2EE;
;
(Portal);
Web-Cache -;
- (Business Intelligence);
Rapid Development ;
Wireless ;
-.
Oracle Application
Server

. Oracle Application Server ,
(. 1.1).
1.1. , Oracle AS
/

Java and J2EE

Java Server Pages (JSP) v. 1.2


Java Servlets v. 2.3
Enterprise Java Beans (EJB) v.2.0
Java Database Connectivity (JDBC) v. 2.0 Extensions
Java Transaction API (JTA) v. 1.0
Java Naming and Directory Interface (JNDI) v. 1.2
Java Message Service (JMS) v.1.0.2b
Java Authentication and Authorization
Service (JAAS) v.1.0
J2EE Connector Architecture v. 1.0
Java API for XML Parsing (JAXP) v.1.1
Java Mail v. 1.0

XML

XML v. 1.0
XML Namespaces v. 1.0
Document Object Model (DOM) v.1.0/2.0
Extensible Stylesheet Language
Transformations (XSLT) v. 1.0
XML Schemas v.1.0
Simple API for XML (SAX) v.1.0/2.0 + Extensions
XML Path Language (XPath) v. 1.0
XSQL
Internet Data Access Presentation

10

Oracle Forms Developer

PL/SQL

PL/SQL Server Pages v. 9.0.4


PL/SQL Web Toolkit v. 9.0.4
Oracle Application Server Forms Services v. 9.0.4

Web services

Web Services Description Language (WSDL) v. 1.1


Universal Description, Discovery, and Integration
(UDDI) v. 2.0
Simple Object Access Protocol (SOAP) v. 1.1

Grid- , , Oracle Developer Suite,


. Oracle Forms Services,
, Oracle AS
, Forms Developer Web.
.
(Communication services).
(Application Runtime Services).
(System Services).
(Management Services).
(Connectivity services).
(Solutions).
1.2 (Solutions) Oracle Application Server.
1.2. Oracle AS

J2EE

Oracle HTTP Server


Oracle AS Containers for JEE
Oracle AS TopLink
Oracle Business Components for Java
Oracle Application Server Web Services
Oracle JDeveloper
Oracle Application Server Forms Services
Oracle XML Developer Kit
Oracle PL/SQL
Oracle Content Management SDK
Oracle Application Server MapViewer
11

Web Oracle Developer

Portals

Oracle Application Server Portal


Oracle Application Server Portal Developer Kit
Oracle Ultra Search
Oracle Application Server Syndication Services

Wireless

Oracle Application Server Wireless


Oracle Application Server Wireless Developer
Kit

Business Intelligence

Oracle Application Server Reports Services


Oracle Application Server Discoverer
Oracle Application Server Personalization

E-Business Integration

Oracle Application Server InterConnect


Oracle Application Server ProcessConnect

Caching

Oracle Application Server Web Cache

System Management

Oracle Enterprise Manager

Identity Management
Security

Oracle Application Server Single Sign-On


Oracle Application Server Certificate Authority
Java Authentication and Authorization Service
Oracle Internet Directory

, Oracle Application Server .


Oracle Application ,
, ,
Grid- ,
. :
Oracle Application Server
,
.
Oracle,
Oracle Application Server
,

. :
12

Oracle Forms Developer

Fast-Start Fault Recovery Architecture


;
Failure Notification (FaN) .

,
.
- -. Grid Computing Model
(GCM) , -, ,
.

Oracle Forms Services


Oracle Forms Services (OFS) Oracle Application Server,
Web.
Oracle Forms, Java- Java-
(Oracle AS). OFS Forms Developer
Java-,
. , Forms
Java- ,
JAVA.
-
Forms
Forms,
:

, , ;
OFS , ,
;
Oracle AS Forms Services
,
.

13

Web Oracle Developer

, Oracle Enterprise Manager (OEM),


.
Oracle Forms Services (. 1.1).
, .
, .
, .

1.
2.
3.

. 1.1. Oracle Forms Services

Oracle Forms Services:


JAVA Client;
Forms Listener Servlet;
Forms Servlet;
Forms Runtime Engine.

Oracle Developer Suite


Oracle Developer Suite 10g
-,
, PL/SQL, Java, ,
-, . , ,
, . 1.3
() Oracle Developer Suite.
14

Oracle Forms Developer

1.3. Oracle DS

Oracle Designer

Oracle Forms Developer

Oracle Reports Developer

Oracle JDeveloper

Java

Business Components for Java

- Java

Oracle Discoverer

Oracle Warehouse Builder

Oracle Developer Suite XML Developers Kit


(XDK) , XML-. XDK:
XDK for Java;
XDK for JavaBeans;
XDK for C;
XDK for C++;
XDK for PL/SQL.
Oracle Developer Suite UML-
, BC4J.
Oracle, .
, Oracle Developer Suite ,

, XML. , .
,
. , ,
,
.
Oracle Developer Suite JavaBean ,
-.
API- Java User Interface XML (UIX).
15

Web Oracle Developer

Oracle Designer
Oracle Designer CASE- , , , , , , ,
, , ,
, .
Oracle JDeveloper 10g
Oracle JDeveloper 10g
, J2EE- -.
Oracle Forms, JDeveloper , , .
.
Oracle Reports
Oracle Reports
,
. Oracle Reports , ,
.
,
HTML, PDF, RTF, SPREADSHEETS XML.
Oracle Warehouse Builder
Oracle Warehouse Builder (OWB) CASE-,
.
Oracle Discoverer
Oracle Discoverer
, . , ,
16

Oracle Forms Developer

, Oracle. Oracle Discoverer ,


.
Oracle Business Intelligence Beans
Oracle Business Intelligence Beans
JavaBeans, -.
JDeveloper BI
Beans. Oracle Business Intelligence Beans
- OLAP.
Oracle Forms Developer
Oracle Forms Developer , ,
. Forms Developer
, ,
. , Oracle Reports, ,
,
Oracle Graphics.
, . Forms Developer
.
Forms,
,
.
Oracle Forms Developer ,

Oracle, , , Oracle .
Forms Developer.

PL/SQL- . , .
Forms Developer
.
17

Web Oracle Developer

, ,
.
(Software Configuration Manager SCM),
Forms Developer,

.
,

-
. ,
, , , , DML- DDL.
Java, SQL, PL/SQL Forms Developer .
Forms Developer
, , ()
, ,
(Object Library) .
Forms Developer
, ,
, -, .
Forms, , Oracle Forms 6i. , :
, (GUI) .
,
.
; , , , Oracle Forms 6i,
(Microsoft Word, Excel).
,
OLE- .
18

Oracle Forms Developer

Oracle Forms
Windows , Linux, Mac Os, AIX
. , , Forms,
- .
Forms 6i -
, .
, Oracle Forms Developer, ,
,
.
, Forms
Oracle.

19

Web Oracle Developer

2. Oracle Forms
Oracle Forms:
, , . ,
, , ,
.
: Oracle Application Server, Oracle Forms Services,
Oracle Developer Suite.
: Forms Developer, .
Forms ,
, . Forms 6i,
Forms 10g,
,
. , Oracle
Forms :
Oracle Forms Builder , : ,
. Oracle Designer
, ,
,
;
Oracle Forms Compiler , .
.FMX, .MMX .PLX;
Oracle Forms Runform Oracle Forms.
, -
Forms Developer Forms 9i Forms 10g
, Oracle Forms -
.
, , .
.
, ,
20

Oracle Forms

, (), , , , .
, ,
.
2.1 Oracle
Forms .
2.1. Oracle Forms

.FMB

Form Module Binary

.FMT

Form Module Text

.FMX

Form Module Executable

.MMB

Menu Module Binary

.MMT

Menu Module Text

.MMX

Menu Module Executable

.PLL

PL/SQL Library Module Binary


PL/SQL

.PLD

PL/SQL Library Module Text


PL/SQL

.PLX

PL/SQL Library Executable


PL/SQL ( )

: , .FMX, .MMX
.PLX, .

Forms Builder

(. 6.
) :
;
;
;
PL/SQL;
(Data Block Wizard);
21

Web Oracle Developer

(Layout Wizard);
(LOV Wizard).
,
.
, PL/SQL, .

(. 2.1) , . ,
:
File ,
(Create), (Save, Save As), (Open)
;
Edit , , ,
;
View , ;
Layout , ;
Program , PL/SQL;
Debug ;
Tools Forms;
Window ;
Help .
(. . 2.1),

. ,
View | Main Toolbar.

. 2.1. (Main Toolbar)


22

Oracle Forms

Oracle Forms
Oracle Forms Developer n , , , .
Forms, (. 2.2):
;
;
.

. 2.2.
. 2.3
Forms, .

. 2.3. Forms
23

Web Oracle Developer

. 2.3 . Oracle Forms


, ,
(View, Table, Synonym), .
, , ,
. ,
, , , . ,
. : ,
. ,
, , .



(.FMB, .MMB, .PLL) .FMX, .MMX, .PLX. Oracle
Forms :
Forms Compiler.
Form Builder.
.

. 2.4. Oracle Forms Compiler


24

Oracle Forms

Forms Compiler
Forms Compiler
DevSuiteHome_1\BIN\frmcmp.exe. . 2.4
Forms Compiler.

: , . Forms Compiler ,
. Forms
Compiler, :
, . .
: _,
.
FORM, MENU LIBRARY?
. .
Form Builder

1.

2.

3.

Form Builder:
, ,
Forms Builder. Forms Builder ,
(),
.
Forms 6i, File | Administration |
Compile Module, ,
Program | Compile Module.
,
Module Generated Successfully. Oracle Forms
.FMX (),
, Forms Builder.

Forms
Builder, :
Options Tools | Options.
Generate Before Run On
( ).
Forms Builder , ,
, File | Run.

25

Web Oracle Developer

Oracle Forms .
: Generate Before Run,
On, ,
.
File | Administration | Generate.
: ,
Generate Before Run. :
,
. ,
,
, .


, Menu Module. ,
, Oracle Forms
.
, ,
.MMX ..
Forms Builder:
1.
, , Forms
Builder. Designer , , , .
2. File | Administration | Compile Module.
Oracle Forms . ,
, Forms Builder.


.
.PLL, Forms Builder,
, , , . .PLL ,
Runform Debugger .
26

Oracle Forms

Forms Builder ,
, .PLL .
Forms Builder,
, .
.PLL,
, File | Compile
Selection File | Compile All.
.PLL Generate, module_type compile_all,
:
f60gen mylib.pll scott/tiger module_type=library compile_all=yes

,
.PLX .PLL.
.PLX ,
.PLL. .PLX Designer
.
Designer , .PLL . Oracle
Forms .PLX.
.PLX , Oracle Forms .PLL .
.PLX Designer:
1. , ,
Designer. Designer ,
,
, .
2. File | Administration | Compile All.
Oracle Forms .PL ,
, .PLL Forms Builder.
.PLX :
Forms Compiler module_type:
f60gen mylib.pll scott/tiger module_type=library
,
.
, Forms Builder.

27

Web Oracle Developer

3. .
,
- Forms Builder. , .
: Module, OC4J, J2EE, Login, Browser (), Java
Applet, .
: , Web.


Oracle Forms Builder
. () , , , .
.

- , .

Oracle Forms , :
1. \DevSuiteHome_1\BIN\frmbld.exe, Forms
(Forms 9i ,10g), \BIN\ifbld60.EXE,
Forms 6i.
2. ,
(. 3.1).
3. Forms Builder
MODULE1*. , MODULEXX,
MODULE , XX .
4. ,
| | .
:
* ,
MODULEXX, MODULE , XX .
28

. 3.1. (Form Builder)


Ctrl+N Ctrl+Insert;
;

;
| .
: ,
.

, .

:
29

Web Oracle Developer

1.

:
;
;
.
2. :
, ;
, ,
.
,
:
1. ,
.
,
, (Canvas).
2. ,

. , Forms
.
3. Test.fmb File | Save as.
, ,
. Forms :
;
- GUI;
- .
Forms -
- (); ,
- GUI-
. Forms 6i,
.
(GUI)
, .
Forms Runtime .
Oracle, Oracle Forms
:
30

Oracle , , , ,
;
Oracle , , , -
.
,
.

ORACLE
,
, . Oracle Forms, , Oracle ,
(SID).
Oracle Forms Builder
| (. 3.2). | |
.

. 3.2.
Oracle
USERID f60run:
f60run module_name USERID=login/password@connect _line
Forms Runtime (. 3.3), ,
. Forms Runtime
\BIN\ifrun60.EXE ifrun60 .
31

Web Oracle Developer

. 3.3. Forms Runtime


, Oracle ,
, ,
.
: Oracle Forms c
SYS.

.

(GUI)
Forms, Forms 4.5 Forms 6i,
(GUI). GUI, :
1. Oracle Forms f60desm frmbld.
Form Builder (. 3.4,
:
32

Use the Data Block Wizard ( )


Data Block
Wizard Layout Wizard;
Build a new form manually ( )
,
, ;
Open an existing form ( )
, ;
Build a form based on template Designer
;
Run the Quick Tour (concepts) - (*.htm)
Developer
, .
Designer Build a new form
manually;
Explore the Cue Cards (tasks) Forms Designer,
, ; Designer
Object Navigator,
Cue Cards,
Forms ( , ).

. 3.4. Form Builder


2.

, ,
(Use the Data Block Wizard), Forms
:
(Data Block Wizard);
(Layout Wizard).
3. ,
,
, |
| -.
33

Web Oracle Developer

GUI
Forms Forms 6i
. , ,
.
, , : , OLE-,
ActiveX, Chart Item, Image Item, Bean Area. ,
.
,
:
1. Form_
Term. .
2. , , SHELL, :
f60run module_name USERID=login/password@connect_line
3.

, ENTER
(. . 3.4).

, f60run.

:
f60run module_name 6i;
frmbld module_name 9i .


- ,
, GUI .
Forms Builder ,
,
(. 3.5).
,
OC4J. OC4J DevSuiteHome_1\j2ee\DevSuite\startinst.bat.
OC4J, ?
OC4J (Oracle Application Server Containers for J2EE)
34

. 3.5. HTTP Listener Error


Oracle AS, Java- Java 2 Enterprise Edition. OC4J
Java Java,
JDK 1.2 1.3. OC4J J2EE,
JSP, Java- Enterprise Java Beans (EJB).
, ,
:
1. OC4J. OC4J Java
Console (. 3.6).
2. Forms Builder Test.fmb.
3. File |
Connect .
4. Run Form
Program | Run Form.

. 3.6. Java Console


,
, . Java Console
:
35

Web Oracle Developer

07/09/23 10:29:21 FormsServlet init():


configFileName:
D:\DevSuiteHome_1
testMode:
false
07/09/23 10:29:28 ListenerServlet init()
. 3.7 ,
:
1. (Browser);
2
Java applet;
3. (Console);
4. URL;
5. (Menu Toolbar);
6. (Default Menu);
7. (Item Button);
8. (Window).

. 3.7. Test.fmx
36

:
ORACLE FORMS, , Jiniator.


EXIT_FORM , , .
, , *.html, . :
1. *.html :
*.html
<html>
<head>
<script language=javascript>
function closeit()
{
win = top;
win.opener = top;
win.close ();
}
</script>
</head>
<body onload=closeit()>
close window
</body>
</html>
2.
3.

C:\<DevSuiteHome_home>\tools\web\
html exit.html.
POST-FORM (form_level)
:
POST-FORM
Web.Show_Document(/forms/html/exit.html,_self);

4.

EXIT_FORM,
POST-FORM. .
37

Web Oracle Developer

4. .


Normal, Query Enter Query Mode.
TNSNAMES.
ORA .
: TNSNAMES.ORA, Net Configuration Assistant,
Oracle_home, Manifest XP, Normal Mode, Query Mode Enter-Query
Mode.
:
.
tnsnames.ora .


, .
,
,
.
:
Enter Query Mode;
Normal Mode;
Query mode.
, , :SYSTEM.
FORM_STATUS.
Enter Query Mode ( )

. ,
. :
:
1. , , ;
2. ;
3. Query/Where-;
38

:
;
;
DML Insert (), Delete ()
Update ().
Enter Query . . . 4.1
.
1.
2.
3.

. 4.1.
(Unrestricted Query),
:
1. Execute Query Menu Toolbar.
2.
Query|Enter Query
Enter Query Execute Query.
3. Query|Execute Query.
, :
1. .
2.
.
3. Execute Query , .
39

Web Oracle Developer

,
AND=.
, Like, IN Between,
,
.

ID

122

Name

ID
ID

#BETWEEN
100 AND 122
:I (I
:variable_name)

ID=122,
and
ID=122
% _
Like,
,

hash #
BETWEEN
Query/Where-

Normal Mode ( )
,
,
DML. ,
, ,
. :
:
DML Insert (), Delete ()
Update ();
,
;
(commit) (rollback) ;
;
run-time .
:
;
Query/Where-.
40

, , , , Enter Query
.
.
,
- .
: ,
, Execute Query, ,
.

Display Error ( )

, ,
Display Error Help|Display Error.

. 4.2. Display Error



? ,
, . FRM-40505:
Oracle:
(Unhandled exception),
, , Display Error, , .
41

Web Oracle Developer


,
, .
.
, , .
:
(Name) .
.
(Subclass Information)
, .
(Console Window)
, Forms Builder. NULL, ,
, .
(Defer Required Enforcement)
, , , , , , , .
(Mouse Navigation Limit)
. .
:
;
;
;
.
(First Navigation Data Block)
, ,
CLEAR_FORM.
NULL, Forms ,
, WHEN-NEW-FORM-INSTANCE.
, ,
.

.
:
42

;
;
;
;
.

.
,
, .
,
.
(Isolation Mode) .
/
MDI,
/ .

, ,
.

, ,
. , :
1. ,
.
2.
(. 4.3.).

. 4.3.
43

Web Oracle Developer

3.


(Real) (Character).
,
,
. .
:
;
;
;
;
.
4. ,
.
5.
. , Forms
.
6. , 7, 14.
,
, .

TNSNAMES.ORA
,
.
TNSNAMES.ORA , ,
.
Net Configuration Assistant

Oracle Forms
Oracle, :
1. , Forms, , .
2. OC4J Instance, .
3. TNSNAMES.ORA ORACLE_HOME\NETWORK\
ADMIN , DevSuiteHome_1\
NETWORK\ADMIN.
44

4.

TNSNAMES.ORA , ,
.
\network\tools\netca.cl ||Oracle
DevSuiteHome\Configuration and Migration Tools|Net Configuration.
Net Configuration Assistant .
Local Net Service Name Configuration
TNSNAMES.ORA (. 4.4).
-

5.
6.

7.

. 4.4. Net Configuration Assistant

8.

:
Add ;
Modify ;
Delete ;
Rename ;
Test .
, Add .
(. 4.5)
;
.
45

Web Oracle Developer

. 4.5.
9.

(. 4.6)
. TCP .

. 4.6.
46

10

,
(. 4.7). , .

. 4.7.
11.

,
,
Net Configuration Assistant.

Net Configuration Assistant,


TNSNAMES.ORA.

XP
, , ,
, . , ,
, .
Forms 4.5 ,
, .
Windows XP,
XP (XP Manifest)
. XP ,
,
47

Web Oracle Developer

. , Delphi ,
XP,
Manifest XP. Oracle Forms ,
.
1. Oracle Forms.
2. Windows
. | .
3. .
4. WindowsShell.Manifest BIN
Forms.
5. WindowsShell.Manifest ifbld60.exe.manifest
6. WindowsShell.Manifest BIN
ifdbg60.exe.manifest.
7. ifrun60.exe.manifest.
, Forms.
.
XP. ifbld60.
exe.manifest XP ,
ifdbg60.exe.manifest ifrun60.exe.manifest . (. 4.8) .
XP , .

. 4.8. XP

48



, ,
.

Forms
(. 4.9).

. 4.9.
,
(. 4.10), . , Forms
Designer, . , , , Forms
(. 4.11).
, Forms, , Designer.

. 4.10.

. 4.11.
49

1.

2.

Web Oracle Developer

, :
ON-LOGON. , ,
.
| .
ON-LOGON
(. 4.12).

. 4.12.
3.

, PL/
SQL-.
:
logon(,);

4.

5.

6.

PL/SQL .
| .

. , ,
Forms , .
.
,
.
|
.

50

Logon screen.

Forms ,
LOGON_SCREEN, , PASSWORD EXPIRE.
, .
,
.
PASSWORD EXPIRE .
().
,
Forms - ,
PASSWORD EXPIRE.
PASSWORD EXPIRE :
CREATE USER Sqaimes IDENTIFIED BY sqaimes
PASSWORD EXPIRE;
, , Forms
.

51