Tài liệu basic of procedure builder pptx

50 389 0
Tài liệu basic of procedure builder pptx

Đ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 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. 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. 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. Introduction to Oracle: SQL and PL/SQL Using Procedure Builder19Ć10 Using the Quick Tour [...]... 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 19Ć18 Introduction to Oracle: SQL and PL/SQL Using Procedure. .. 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 19Ć12 Introduction to Oracle: SQL and PL/SQL Using Procedure. .. you to monitor or interrupt the 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 19Ć20 Introduction to Oracle: SQL and PL/SQL Using Procedure Builder The Object Navigator continued Managing... 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. . .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... 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... entries Program units that reside in the Program Units node are lost when you exit Procedure Builder 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, edit, and compile server-side program... 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... statements For example, to select all columns of the B_TEST table, enter the following statement: PL/SQL> SELECT * FROM b_test; Basics of Procedure Builder 19Ć25 The Program Unit Editor 1 2 3 4 1 Compile and Source Text maintenance buttons 2 Name drop down list 3 Source Text pane 4 Compilation Message pane 19Ć26 Introduction to Oracle: SQL and PL/SQL Using Procedure Builder The Program Unit Editor Create,... and edit PL/SQL program unit source text Compilation Message pane Displays error messages generated as a result of compilation Basics of Procedure Builder 19Ć27 Creating a Program Unit 1 2 1 Create the Program Unit 19Ć28 2 Write the code Introduction to Oracle: SQL and PL/SQL Using Procedure Builder The Program Unit Editor continued Creating a Program Unit 1 Select the Program Units object or subobject . PL/SQL Using Procedure Builder1 9Ć8 Procedure Builder Components Procedure Builder Components Basics of Procedure Builder 19Ć9 Procedure Builder Components. Basics of Procedure Builder 19 Introduction to Oracle: SQL and PL/SQL Using Procedure Builder1 9Ć2 Objectives Basics of Procedure Builder 19Ć3

Ngày đăng: 10/12/2013, 17:15

Từ khóa liên quan

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

  • Đang cập nhật ...

Tài liệu liên quan