Home > Store

Oracle Web Application Programming for PL/SQL Developers

Register your product to gain access to bonus material or receive a coupon.

Oracle Web Application Programming for PL/SQL Developers

Book

  • Sorry, this book is no longer in print.
Not for Sale

About

Features

  • Core topics—Provides important information on HTML, Java, XML, WML, Perl and PBP.
    • Brings students up to speed quickly in the basics so they can use various techniques intelligently, rather than mechanically, to produce superior results.

  • Various maintenance duties—e.g., troubleshooting, debugging, indexing, testing, and site analysis.
    • Gives students hands-on practice in thinking and working like professionals, rather than just programmers in training.

  • Packed with practical tips.
    • Saves students time, effort, and frustration while developing and deploying Internet-ready, e-commerce applications using Oracle 9i.

Description

  • Copyright 2003
  • Dimensions: 7" x 9-1/4"
  • Pages: 768
  • Edition: 1st
  • Book
  • ISBN-10: 0-13-047731-1
  • ISBN-13: 978-0-13-047731-6

This book covers everything you need to know to master Web application development in an Oracle environment - using PL/SQL. It is packed with practical tips that save the reader time, effort and frustration while developing and deploying Internet-ready, e-commerce applications using Oracle 9i. The book also provides important information on core topics such as HTML, Java, XML, WML, Perl and PHP, as well as covering various maintenance duties, such as troubleshooting, debugging, indexing, testing and site analysis. As Oracle's premier tool for building store procedures, PL/SQL uniquely supplements the standard relational database language, SQL, with the features needed to build real-world applications.

Extras

Solutions

To aid your work with Oracle Web Application Programming for PL/SQL Developers, we are providing solutions for each unit of code in the sample applications to help you as you work through the book.

Sample Content

Online Sample Chapters

Introduction to Oracle Web Applications

Oracle Web Application Programming for PL/SQL Developers: Remote Server Access

Table of Contents



Acknowledgments.


About the Authors.


Foreword.


Preface.

I. INTRODUCTION.

1. Introduction to Oracle Web Applications.

Internet and Web Basics. What Are Web Applications?

2. Oracle 9iA.

Oracle 9iAS Architecture. Oracle 9iAS Configuration.

3. Remote Server Access.

Working with the Server.

4. Web Application Design.

What Is Web Design? How to Design a Web Application. Tips for Web Design.

II. CREATING THE APPLICATION.

5. Introduction to HTML: Basic Tags, Tables, and Frames.

Basic HTML Concepts. Common HTML Tags. Basic Tables. Basic Frames.

6. Advanced HTML: Forms, Nested Tables, and Nested Frames.

An Introduction to Forms. Advanced Tables. Advanced Framesets.

7. Introduction to JavaScript.

Embedding JavaScript in HTML. JavaScript Syntax. The Document Object Model. JavaScript Events. Window and Document Objects.

8. SQL Reminders and Tips.

SQL Basics. Advanced Uses of SQL's NVL and DECODE Functions.

9. PL/SQL Review.

Basic Concepts of PL/SQL. Stored Procedures. Packages. PL/SQL Tables.

10. Web Toolkit I: HTML and JavaScript with PL/SQL.

Web-Enable Databases. Create Web Pages in PL/SQL.

11. Web Toolkit II: Frames, Forms, and Parameters.

Frames. Forms and Form Handlers. Passing Parameters without Submitting Forms.

12. Working with PL/SQL Server Pages (PSPs).

What PL/SQL Server Pages Are. When to Use PSPs. Loading PSPs into the Database. Developing PSPs.

13. Images.

Image Types. Storing and Retrieving Images in the Database. JavaScript and Images. Image Maps.

14. JavaScript Form Validation.

Form Validation Using JavaScript. Regular Expressions in Form Validation.

15. Maintaining State with Cookies and Tables.

Using Cookies to Maintain State. The Web Toolkit and Cookies. JavaScript and Cookies. Storing State in Database Tables.

III. TAPAS.

16. The owa_util Package: Dynamic SQL, HTML, Date Utilities, and More.

Dynamic SQL Utilities. HTML Utilities. Date Utilities. Miscellaneous Utilities.

17. Troubleshooting.

Use Good Coding and Debugging Practices. Distinguish Error Messages. Find and Debug PL/SQL Errors. Find and Debug JavaScript Errors. Find and Debug HTML Errors.

18. Web Tips and Techniques.

Add Functionality to Forms. Use Stylesheets. Store Images for Performance. Use Dynamic SQL. Write and Reuse Modular Components.

19. Additional Web Toolkit Utilities and PL/SQL Built-ins.

Sending Electronic Mail from an Oracle Database. Reading Other Web Sites. Encrypting Sensitive Data. Security and Authentication. Read-Consistent Updates. Searching and Replacing Text.

20. Web Application Architecture.

Designing Code Structures. Designing for Performance. Overview of Architecture Considerations.

Appendix A. Student Database Schema.
Appendix B. PL/SQL Formatting Guide.
Appendix C. HTML Formatting Guide.
Index.

Preface

Preface

Oracle Web Application Programming for PL/SQL Developers gives PL/SQL programmers the knowledge necessary to build powerful applications on the Web.

PL/SQL, together with the Oracle Internet Application Server (iAS), provides a programmer with the ability to truly develop an entire application, from control over complex data processing on the back end, to the creation of a standardized, professional look-and-feel on the front end.

A programmer familiar with PL/SQL, but not necessarily familiar with the Web, can make the leap to building dynamic Web applications using this book. This book brings together the core pieces of the puzzle of PL/SQL Web development in one volume. In addition to reviewing a few basic PL/SQL concepts with examples, the practicalities of building a Web site are covered, including HTML and JavaScript. The essentials of how a computer connects to the Internet are explained, along with how a Web server handles requests for Web pages, Web browsers, image handling, FTP, and some of the basic UNIX commands you need to get started developing PL/SQL Web applications.

As you read and complete the exercises, you apply what you learn by building an application of your own. You create Web pages, connect them to an Oracle database, and use the power of PL/SQL to create a dynamic, database-driven, Web front-end application. The application presented in this book includes PL/SQL procedures developed using both PL/SQL Web Toolkit and PSP approaches, so that you learn and evaluate different development strategies. This hands-on approach gives you the opportunity to address many of the day-to-day challenges that a PL/SQL Web developer faces. Once you create the application, you should find you are ready to apply your knowledge to other projects.

Throughout the book you will analyze code in detail and are offered practical advice on writing—and debugging—complex code. Anyone that has struggled with the realities of JavaScript validation when it is embedded in HTML and PL/SQL, or dealt with similar situations, can refer to this book for tips and examples.

So many different elements work together to create a Web page that coordinating them can easily become the greatest challenge faced by the PL/SQL Web developer. This book focuses, in particular, on clarifying these issues. Many of the questions that a Web developer would ask are answered in this book. For example: There are references available on PL/SQL, HTML, and JavaScript individually, but how do these elements interact? In cases where they can accomplish the same task, how do they compare? What are the limits of each?

Putting all these various elements together to make an Oracle Web Application is much like preparing tapas, a Spanish meal comprised of many different appetizer-sized dishes. The beauty of tapas is the way individual elements work together to create a complex and delicious meal. That complexity is also a characteristic of Web programming. To achieve the results you desire, you must combine your knowledge of many different areas, and how they interact. This can be a tricky and frustrating process, but ultimately very powerful, and ideally very satisfying as well.

Who This Book Is For

This book is intended for anyone who needs an introduction to Web application programming with Oracle's PL/SQL language.

Readers are expected to be familiar with Oracle's SQL and PL/SQL languages. This book assumes you have the Oracle knowledge that can be obtained from the companion books in this series: Oracle SQL Interactive Workbook by Alice Rischert (Prentice Hall), and Oracle PL/SQL Interactive Workbook by Ben Rosenzweig and Elena Silvestrova (Prentice Hall). The ideal readers are those with some experience with Oracle relational databases. This book reviews basic PL/SQL concepts, particularly those that are helpful in building the Web application you create by completing the exercises in this book.

Readers of this book are not required to know HTML or JavaScript. When the fundamentals of how to create a Web page are covered, basic HTML and some of the JavaScript used most frequently in Web applications are introduced. We let you know where you can find details on the more advanced HTML and JavaScript features.

The content of this book is based on the material taught in the Database Application Development and Design concentration of Columbia University's Computer Technology and Applications (CTA) program in New York City. The student body is rather diverse, in that there are some students who have years of experience with Information Technology (IT) and programming, but no experience with building a Web application and then there are those with absolutely no experience in either IT or programming. The content of the book, like the class, is balanced to meet the needs of both extremes. The exercises in this book can be used as a lab and homework to accompany the lectures in such a course on Web application development.

How This Book Is Organized

The intent of this workbook is to teach you about Oracle Web applications by presenting you with a series of exercises that builds towards a complete application. The book consists of three sections. The first section is an introduction to the Web, as well as key concepts and skills required to develop a Web application. The second section is called "Building the Application." In this section, each chapter walks you through the construction of procedures and Web pages that ultimately comprise a complete application by providing you with all the coding skills required. Chapters in this section cover HTML, JavaScript, PL/SQL, the PL/SQL Web Toolkit and PL/SQL Server Pages (PSP). The complete application specification and source code can be found on the book's companion Web site (http://www.phptr.com/boardman/). The last section is called "Tapas." This section goes a step beyond and introduces the reader to a number of other tools and utilities available to a developer creating a Web site based on PL/SQL code.

About the Companion Web Site

At the companion Web site (http://www.phptr.com/boardman/) you will find three very important items:

  1. Files you will need before you begin completing the exercises in the workbook.
  2. Specification for the application developed in Section II.
  3. Complete source code for the application developed in Section II.

All of the exercises and questions are based on a sample database schema called STUDENT. The files required to create and install this STUDENT schema are downloadable from the Web site.

In addition to required files and application source code, the Web site will have other features like additional review questions, a message board and periodically updated information about and errata for the book.

You should visit the companion Web site to this book (www.phptr.com/boardman) to download the STUDENT schema and install it in your database.

What You Will Need

There are software programs, as well as knowledge requirements, necessary to complete the exercises in this book.

Software

  • Oracle 9i or higher
  • Oracle 9iAS
  • SQL*Plus 8.1.7 or higher
  • Internet Access to the World Wide Web

Oracle 9i Enterprise Edition and Oracle 9i Personal Edition include the Oracle 9i database and SQL*Plus, as well as a core version of the Oracle 9iAS. Further information about installing and configuring the 9i Application Server is provided in Chapter 2, "Oracle 9iAS."

There are various ways to obtain Oracle software. The educational version of this book comes with CDs containing the Oracle software for educational purposes. Oracle also offers trial versions of Oracle 9i for evaluation purposes. These CDs can be purchased at the Oracle Store (http://oraclestore.oracle.com).

Readers are encouraged to join the Oracle Technology Network, or Technet, (http://technet.oracle.com) Oracle's free community for sharing technical information. There is no fee to register with TechNet and some software is available for free download from TechNet for registered users. All Oracle documentation can also be found at Oracle's document site (http://docs.oracle.com).

USING SQL*Plus

You should be familiar with using SQL*Plus to execute SQL statements (refer to the other book in the Prentice Hall Interactive Workbook series on this topic, Alice Rischert's Oracle SQL Interactive Workbook). You should also be familiar with compiling PL/SQL programs (refer to Rosenzweig/Silvestrova's Oracle PL/SQL Interactive Workbook).

BUILD AN APPLICATION

As you progress through the exercises in this book, you will build your own Oracle Web application. It serves as a helpful, real-world example and a context for the material covered. Employing a hands-on approach is an excellent way to truly learn new material. To gain the maximum benefit this book has to offer, readers are strongly urged to follow along with the exercises. Once you create the application, you should find you are ready to apply your knowledge to other projects.

STUDENT SCHEMA

The STUDENT schema (Appendix A) contains tables and other objects meant to keep information about a registration and enrollment system for a fictitious university. There are tables in the system that store data about students, courses, instructors, and so on. In addition to storing contact information (addresses and telephone numbers) for students and instructors, and descriptive information about courses (costs and prerequisites), the schema also keeps track of the sections for particular courses, as well as the sections in which students have enrolled.

The section and enrollment tables are two of the most important tables in the schema. The section table stores data about the individual sections that have been created for each course. Each section record also stores information about where and when the section will meet, and which instructor will teach the section. The section table is related to the course table and the instructor table.

The enrollment table is equally important, because it keeps track of which students have enrolled in which sections. Each enrollment record also stores information about the student's grade and enrollment date. The enrollment table is related to the student table and the section table.

Furthermore, the schema contains a number of other tables that manage grading for each student in each section.

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020