10g Release 1 (10.1) Part Number B1079 5-01 |
|
|
View PDF |
The Oracle Database Ap plication Developer's Guide - Fundamentals describes basic application development features of Oracle Database 10g. Information in this guide applies to features that work the same on all supported platforms, and does not include sy stem-specific information.
This preface contains these topics:
Oracle Database Application Developer's Guide - Fundamentals is intended for programmers developing new applications or converting existing applications to run in the Oracle Database environment. This book will also be valuable to systems analysts, proj ect managers, and others interested in the development of database applications.
This guide assumes that you have a working knowledge of application programming, and that you are familiar with the use of Structured Query Lang uage (SQL) to access information in relational database systems.
Certain sections of this gu ide also assume a knowledge of the basic concepts of object-oriented programming.
Activities that are typically required of an application developer include:
This document contains:
This part introduces several ways that you can write Oracle Database applications. You might need to use more than one language or development environment for a single application. Some database features are only supported by, or are easier to access from, certain languages.
This chapter outline s the strengths of the languages, development environments, and APIs that Oracle Database provides.
Before you develop an application, you need to plan the characteristics of the associated database. You must choose all the pieces th at go into the database, and how they are put together. Good database design helps ensure good performance and scalability, and reduc es the amount of application logic you code by making the database responsible for things like error checking and fast data access. p>
This chapter explains how to represent your business data i
n the database. The datatypes include fixed- and variable-length character strings, numeric data, dates, raw binary data, and row ide
ntifiers (ROWIDs).
This chapter explains how to use constraints to move error-checking logic out of your application and into the database.
This chapter explains how to choose the best indexing strategy for your application.
This chapter explains SQL topics such as commits, cursors, and locking that you can take advantage of in your applications.
This chapter describes dynamic SQL, compares native dynamic SQL to the DBMS_SQL package, and explains when to use dynamic SQL.
This chapter explains how to store reusable procedures in the database, and how to group procedures into packages.
This chapter explains how to code the bodies of computation i ntensive procedures in languages other than PL/SQL.
You can include all sorts of programming logic in the database itself, making the benefits available to many applications and saving repetitious coding work.
This chapter explains how to make the database do special processing before, after, or in stead of running SQL statements. You can use triggers for things like logging database access and validating or transforming data.
This chapter explains how to retrieve information, su ch as the user ID and database name, about the event that fires a trigger.
This chapter introduces the Oracle Database model for asynchronous communication, als o known as messaging or queuing.
This chapter discusses regular expression support built into Oracle Database, regular expression syntax, and how to write quer ies using regular expressions in SQL.
This chapter explains how to create dynamic Web pages and applications that work with the Internet, e-mail, and so on, using the PL/S QL language.
Thi s chapter lists features and techniques you can use to make applications run on Oracle Database 10g that were originally written for another, non-Oracle database.
This chapter describes how to use features that let you examine past data and its history, and to recover that data.
This chapter describes how to connect Oracle D atabase with a transaction monitor.
For more information, see these Oracle resources.
You can use the OCI to build third-generation lang uage (3GL) applications that access the Oracle Database.
http://oraclestore.oracle.com/
http://otn.oracle.com/membership/
If you already have a username and password for OTN, then you can go directly to the documentation section of the OTN Web site at
This section describes the conventions used in the text and code examples of this documentation set. It describes:
We use various conventions in text to help you more quickly identify special terms. The following table describes those conventions and provides examples of their use.
Code examples illustrate S QL, PL/SQL, SQL*Plus, and other command-line statements. They are displayed in a monospace (fixed-width) font and separated from norm al text, as shown in this example:
SELECT username FROM dba_users WHERE username = 'MIGRATE' ;
The following table describes typographic conventions used in cod e examples and provides examples of their use.
| Convention | Meaning | |
|---|---|---|
|
[ ] |
Brackets enclose one or more optional items. Do not enter the brackets. |
|
|
{ } |
Braces enclose two or more items, one of which is required. Do not enter the b races. |
|
|
| |
A vertical bar represents a choice of two or more options within brackets or braces. Enter one of the op tions. Do not enter the vertical bar. |
|
|
|
<
/a>
Horizontal ellipsis points indicate either: |
|
|
. a> . |
Vertical ellipsis points indicate that we h ave omitted several lines of code not directly related to the example. |
|
|
Other notation |
You must enter symbols other than brackets, braces, vertical bars, and e llipsis points as shown. |
acctbal NUMBER(11,2); acct CONSTANT NUMBER(4) := 3; |
|
|
Italicize d text indicates placeholders or variables for which you must supply particular values. |
|
|
|
Up percase typeface indicates elements supplied by the system. We show these terms in uppercase in order to distinguish them from terms you define. Unless terms appear in brackets, enter them in the order and with the spelling shown. However, because these terms are no t case sensitive, you can enter them in lowercase. |
|
|
<
p class="TB">Lowercase typeface indicates programmatic elements that you supply. For example, lowercase indicates names of tables, co
lumns, or files.
Note: Some programmatic elements use a mixture of UPPERCASE and lowercase. Enter these elements as shown. |
|
Our goal is to make Oracle products, services, and supporting documentation accessible, with good usability, to the disabled commun ity. To that end, our documentation includes features that make information available to users of assistive technology. This document ation is available in HTML format, and contains markup to facilitate access by the disabled community. Standards will continue to evo lve over time, and Oracle is actively engaged with other market-leading technology vendors to address technical obstacles so that our documentation can be accessible to all of our customers. For additional information, visit the Oracle Accessibility Program Web site at
http://www.oracle.com/accessibility/
JAWS, a Windows screen reader, may not always correctly rea d the code examples in this document. The conventions for writing code require that closing braces should appear on an otherwise empt y line; however, JAWS may not always read a line of text that consists solely of a bracket or brace.
This documentation may contain links to Web sites of other companies or organizations that Oracle does not own or control. Oracle neither evaluates nor makes any representations regarding the accessibility of these Web sites.