BASICS OF PROCEDURE BUILDER

50 335 0
BASICS OF PROCEDURE BUILDER

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Basics of Procedure Builder 19 Introduction to Oracle: SQL and PL/SQL Using Procedure Builder19Ć2 Objectives Schedule: Timing Topic 60 minutes Lecture 15 minutes Practice 75 minutes Total Class Management Note: If using SQL*Plus instead of Procedure Builder, replace this lesson with Appendix C. Files required for this lesson: Demonstration: l19loop.pls Practice: p19loop.pls Basics of Procedure Builder 19Ć3 Objectives A key feature of procedural programming is the ability to create and debug code quickly and easily. Procedure Builder provides all of the functionality necessary for you to successfully develop and debug PL/SQL programs. This lesson enables you to manipulate PL/SQL code using Procedure Builder. At the end of this lesson, you should be able to D Identify the advantages of developing and debugging PL/SQL programs in Procedure Builder. D Manage program units by using the Object Navigator. D Execute program units and SQL statements by using the PL/SQL Interpreter. D Define and compile procedures by using the Program Unit editor. D Define and compile database procedures by using the Stored Program Unit editor. D Set a breakpoint to suspend program execution. D Control the execution of an interrupted PL/SQL program unit. D Test possible solutions by changing variables and procedures at runtime. Introduction to Oracle: SQL and PL/SQL Using Procedure Builder19Ć4 Basics of Procedure Builder 19Ć5 Overview Procedure Builder is an integrated development environment. It provides for the editing, compiling, testing, and debugging of PL/SQL programs within a single tool. In addition, it enables developers to drag and drop program units between the client and server. You can improve your application development efforts by using the features available in Procedure Builder. You will become familiar with these features by learning about each component’s function. Once you are familiar with the Procedure Builder environment, you will cover the PL/SQL syntax. Procedure Builder Features Component Description Object Navigator Manage PL/SQL constructs. Perform debug actions. PL/SQL Interpreter Debug PL/SQL code. Evaluate PL/SQL code in real time. Program Unit Editor Create and edit PL/SQL source code. Stored Program Unit Editor Create and edit server-side PL/SQL source code. Database Trigger Editor Create and edit database triggers. For more information, see Oracle Procedure Builder Developer’s Guide, Release 1.5. Class Management Note: This lesson is designed to give students an overview of the Procedure Builder product. The actual syntax will be covered in the following lessons. The focus of this lesson should be how to use the product. Introduction to Oracle: SQL and PL/SQL Using Procedure Builder19Ć6 Procedural Programming Capabilities Basics of Procedure Builder 19Ć7 Oracle Procedure Builder Capabilities Procedure Builder is an integrated, interactive environment that you can use to create, execute, and debug PL/SQL programs. Using Procedure Builder, you can build portable database programs quickly and easily. Integrated PL/SQL Development Environment D Create and edit subprograms. D Compile subprograms to perform syntactical error checking. D Test subprograms. D Debug subprograms. Unified ClientĆServer PL/SQL Development D Create database triggers. D Create stored procedures and move them to the client to debug. D Build and edit client-side libraries. D Create client-side program units and move them to the server. Class Management Note: After you debug program units, move them to the server so all applications can access them. Server-side debugging through Procedure Builder will be available in release 2.0. Introduction to Oracle: SQL and PL/SQL Using Procedure Builder19Ć8 Procedure Builder Components Procedure Builder Components Basics of Procedure Builder 19Ć9 Procedure Builder Components The Object Navigator The Object Navigator provides an outline style interface to browse objects, view the relationships between them, and edit their properties. The Interpreter The Interpreter is the central debugging workspace of Procedure Builder. It is a two-pane window where you display, debug, and run PL/SQL program units. It also interactively supports the evaluation of PL/SQL constructs, SQL commands, and Procedure Builder commands. The Program Unit Editor The easiest and most common place to enter PL/SQL source code is in the Program Unit editor. You can use it to edit, compile, and browse warning and error messages during application development. The Stored Program Unit Editor The Stored Program Unit editor is a GUI environment for editing server-side packages and subprograms. The compile operation submits the source text to the server-side PL/SQL compiler. To debug server-side program units you can drag a copy of the program unit to the client side using the Object Navigator. The Database Trigger Editor The Database Trigger editor is a GUI environment for editing database triggers. The compile operation submits the source text to the server-side PL/SQL compiler. Online Help Oracle Procedure Builder has a help facility that provides assistance at any time during your session. You can access it from the menu bar. Class Management Note: Do not explain the functioning of procedures or functions. In this lesson, students just need to understand the various components of Procedure Builder. Details of procedures and functions will be covered in the next lesson. Introduction to Oracle: SQL and PL/SQL Using Procedure Builder19Ć10 Using the Quick Tour Class Management Note: DEMO PURPOSE: Familiarize students with Quick Tour. Access the Quick Tour from the Help menu. Demonstrate how to access one of the topics. [...]... confirmation Expand Expands the first level of subobjects of the currently selected object Collapse Collapses the first level of subobjects of the currently selected object Expand All Expands all levels of subobjects of the currently selected object Collapse All Collapses all levels of subobjects of the currently selected object Basics of Procedure Builder 19Ć17 Objects of the Navigator Class Management Note:... peruse the Stack node to change the value of the variable Organizing PL/SQL Step through application partitioning between the client and server, including using libraries and moving subprograms between the client and server Procedure Builder Features Review the kinds of application-building tasks you can perform using Procedure Builder Basics of Procedure Builder 19Ć11 Using Cue Cards Class Management... generated as a result of compilation Basics of Procedure Builder 19Ć27 Creating a Program Unit 1 2 1 Create the Program Unit 2 Write the code Class Management Note: DEMO PURPOSE: Create and compile a procedure Focus on how a procedure is created and compiled rather than on the syntax and algorithm for creating the procedure 1 Create a procedure named MY_MESSAGE 2 Compile the procedure using the Program... partial, of the object you wish to find in the Find Field As soon as you begin typing, any match found starting from the top of the Object Navigator is highlighted 2 Click the Search Forward or Search Backward button to find additional matches of the search criteria in the Object Navigator Basics of Procedure Builder 19Ć21 The Interpreter 19Ć22 Introduction to Oracle: SQL and PL/SQL Using Procedure Builder. .. execution of PL/SQL program units Stack Chain of subprogram calls, from the initial entry point down to the currently executing subprogram Database Objects Collection of server-side stored program units, libraries, tables, and views Basics of Procedure Builder 19Ć19 Class Management Note: DEMO: Expand and collapse the database objects node 19Ć20 Introduction to Oracle: SQL and PL/SQL Using Procedure Builder. .. copy of the program unit currently selected Interpreter pane Provides a command line interface to PL/SQL and Procedure Builder Scroll bar Scrolls the window Split bar Changes the relative amount of space occupied by each pane in the Interpreter Executing a PL/SQL Procedure From the PL/SQL prompt in the Interpreter pane, enter the name of the procedure Terminate the command with a semicolon Syntax procedure_ name.. .Procedure Builder Components continued Using the Quick Tour The Quick Tour, another type of online help, introduces you to product terminology, workflow, and theoretical concepts This is an excellent resource to get started with Procedure Builder You can invoke the Quick Tour by choosing the Quick Tour menu item from the Help menu Procedure Builder Basics Become familiar with... Program Units node are lost when you exit Procedure Builder Class Management Note: PL/SQL 2.3 extends I/O to text files with the VTL_FILE package Basics of Procedure Builder 19Ć29 The Stored Program Unit 4 1 2 3 1 Owner drop down list 2 Source Text pane 3 Compilation Message pane 4 Name drop down list 19Ć30 Introduction to Oracle: SQL and PL/SQL Using Procedure Builder The Stored Program Unit Editor Create,... 2.3 and Procedure Builder 2.0 Basics of Procedure Builder 19Ć33 Listing Code in the Source Pane 1 2 3 1 Source pane 2 Navigator pane 3 Interpreter pane Class Management Note: DEMO PURPOSE: Show how to use the Interpreter window 1 Insert the Navigator pane within the Interpreter 2 List source code in the Source pane 3 Resize a pane 19Ć34 Introduction to Oracle: SQL and PL/SQL Using Procedure Builder. .. Interpreter panes 4 Drag the split bars to adjust the size of each pane Listing Source Text in the Source Pane 1 Click the Program Units node in the Navigator pane to expand the list The list of program units is displayed 2 Click the object icon of the program unit to be listed The source code is listed in the Source pane of the Interpreter Basics of Procedure Builder 19Ć35 Setting a Breakpoint 1 2 1 Breakpoint . Introduction to Oracle: SQL and PL/SQL Using Procedure Builder1 9Ć4 Basics of Procedure Builder 19Ć5 Overview Procedure Builder is an integrated development environment Procedural Programming Capabilities Basics of Procedure Builder 19Ć7 Oracle Procedure Builder Capabilities Procedure Builder is an integrated, interactive

Ngày đăng: 04/11/2013, 13:15

Từ khóa liên quan

Tài liệu cùng người dùng

Tài liệu liên quan