PBD 2. Pertemuan 1 Pengantar Oracle DeveloperPengantar Oracle Developer Introduction to PL/SQLIntroduction to PL/SQL.

Slides:



Advertisements
Similar presentations
PL/SQL.
Advertisements

BD05/06 PL/SQL  Introduction  Structure of a block  Variables and types  Accessing the database  Control flow  Cursors  Exceptions  Procedures.
AN INTRODUCTION TO PL/SQL Mehdi Azarmi 1. Introduction PL/SQL is Oracle's procedural language extension to SQL, the non-procedural relational database.
SQL*PLUS, PLSQL and SQLLDR Ali Obaidi. SQL Advantages High level – Builds on relational algebra and calculus – Powerful operations – Enables automatic.
INTRODUCTION TO ORACLE Lynnwood Brown System Managers LLC Introduction to PL/SQL – Lecture 6.
Triggers. Triggers: Motivation Assertions are powerful, but the DBMS often can’t tell when they need to be checked. Attribute- and tuple-based checks.
Introduction to Structured Query Language (SQL)
Triggers The different types of integrity constraints discussed so far provide a declarative mechanism to associate “simple” conditions with a table such.
A Guide to SQL, Seventh Edition. Objectives Create a new table from an existing table Change data using the UPDATE command Add new data using the INSERT.
Revision of course For examination purposes. Outline of Examination Question 1 is compulsory and is worth 40%. There are five other questions, of which.
Introduction to Structured Query Language (SQL)
System Administration Accounts privileges, users and roles
A Guide to Oracle9i1 Advanced SQL And PL/SQL Topics Chapter 9.
A Guide to SQL, Seventh Edition. Objectives Embed SQL commands in PL/SQL programs Retrieve single rows using embedded SQL Update a table using embedded.
A Guide to MySQL 7. 2 Objectives Understand, define, and drop views Recognize the benefits of using views Use a view to update data Grant and revoke users’
Introduction to Structured Query Language (SQL)
Triggers.
2 Copyright © 2004, Oracle. All rights reserved. Creating Stored Functions.
ORACLE ONLINE TRAINING Contact our Support Team : SOFTNSOL India: Skype id : softnsoltrainings id:
Advance Computer Programming Java Database Connectivity (JDBC) – In order to connect a Java application to a database, you need to use a JDBC driver. –
Agenda Journalling More Embedded SQL. Journalling.
CSIS 4310 – Advanced Databases Virtual Private Databases.
Introduction to SEQUEL. What is SEQUEL? Acronym for Structural English Query Language Acronym for Structural English Query Language Standard language.
1 Copyright © 2004, Oracle. All rights reserved. Introduction to PL/SQL.
PL/SQLPL/SQL Oracle10g Developer: PL/SQL Programming Chapter 6 Functions.
PL/SQLPL/SQL Oracle11g : PL/SQL Programming Chapter 6 Functions.
Stored procedures1 Stored procedures and functions Procedures and functions stored in the database.
1 Copyright © 2004, Oracle. All rights reserved. Introduction.
Controlling User Access. Objectives After completing this lesson, you should be able to do the following: Create users Create roles to ease setup and.
Lecture 8 Creating Stored Functions. Objectives  After completing this lesson, you should be able to do the following:  What is Function?  Types of.
7 1 Chapter 7 Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Oracle 11g DATABASE DEVELOPMENT LAB1. Introduction  Oracle 11g Database:-  Oracle 11g database is designed for some features, which helps to the organizations.
PRACTICE OVERVIEW PL/SQL Part Examine this package specification and body: Which statement about the V_TOTAL_BUDGET variable is true? A. It must.
6 1 Lecture 8: Introduction to Structured Query Language (SQL) J. S. Chou, P.E., Ph.D.
Programmatic SQL Shaista Khan CS 157B. Topic Embedded SQL statements in high-level programming languages.
1 Copyright © 2004, Oracle. All rights reserved. Introduction to PL/SQL.
CSCI 3140 Module 6 – Database Security Theodore Chiasson Dalhousie University.
Database Systems Design, Implementation, and Management Coronel | Morris 11e ©2015 Cengage Learning. All Rights Reserved. May not be scanned, copied or.
1 DBS201: Introduction to Structure Query Language (SQL) Lecture 1.
Stored Procedures. Definition a stored procedure is a set of Structured Query Language (SQL) statements with an assigned name that's stored in the database.
Course FAQ’s I do not have any knowledge on SQL concepts or Database Testing. Will this course helps me to get through all the concepts? What kind of.
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 12 Managing Databases with Oracle.
Chapter 9: Advanced SQL and PL/SQL Guide to Oracle 10g.
Database Security Cmpe 226 Fall 2015 By Akanksha Jain Jerry Mengyuan Zheng.
PL/SQLPL/SQL Oracle10g Developer: PL/SQL Programming Chapter 8 Program Unit Dependencies.
1 Announcements Reading for next week: Chapter 4 Your first homework will be assigned as soon as your database accounts have been set up.  Expect an .
Transactions, Roles & Privileges Oracle and ANSI Standard SQL Lecture 11.
© 2007 by Prentice Hall2-1 Introduction to Oracle 10g Chapter 2 Overview of SQL and SQL*Plus James Perry and Gerald Post.
A Guide to SQL, Eighth Edition Chapter Six Updating Data.
PL/SQL programming Procedures and Cursors Lecture 1 [Part 2]
PRACTICE OVERVIEW PL/SQL Part Your stored procedure, GET_BUDGET, has a logic problem and must be modified. The script that contains the procedure.
IT420: Database Management and Organization Triggers and Stored Procedures 24 February 2006 Adina Crăiniceanu
SQL Introduction to database and SQL. Chapter 1: Databases and Database Users 6 Introduction to Databases Databases touch all aspects of our lives. Examples:
Oracle9i Developer: PL/SQL Programming Chapter 5 Functions.
Stored Procedures and Functions Pemrograman Basis Data MI2183.
 Reviewing basic architecture concepts  Oracle 10g Architecture  Main features of 9i and 10g
1 Copyright © 2004, Oracle. All rights reserved. PL/SQL Programming Concepts: Review.
D Copyright © 2009, Oracle. All rights reserved. Using SQL*Plus.
DEVRY CIS 336 W EEK 5 G ROUP P ROJECT T ASK 3 Check this A+ tutorial guideline at
Creating Stored Functions
IS221: Database Management
A Guide to SQL, Seventh Edition
Managing Privileges.
Final Project: Read from a csv file and write to a database table
PRACTICE OVERVIEW PL/SQL Part - 2.
A Guide to SQL, Eighth Edition
Managing Privileges.
PRACTICE OVERVIEW PL/SQL Part - 1.
Updating Databases With Open SQL
Updating Databases With Open SQL
Presentation transcript:

PBD 2. Pertemuan 1 Pengantar Oracle DeveloperPengantar Oracle Developer Introduction to PL/SQLIntroduction to PL/SQL

Topik Diskusi Apa yang dimaksud dengan Oracle Developer ? Apa perbedaan PL/SQL dan SQL

Pembahasan Soal

PBD 2. Pertemuan 1 Pembahasan Soal terakit dengan materi: Pengantar Oracle DeveloperPengantar Oracle Developer Introduction to PL/SQLIntroduction to PL/SQL Declaring PL/SQLDeclaring PL/SQL

1. Which command must you issue in SQL*Plus to display the result of the DBMS_OUTPUT package? A.SET ECHO ON B.SET OUTPUT ON C.SET FEEDBACK ON D.SET SERVEROUTPUT ON

2. When creating a function in SQL*Plus, you receive an error message stating that the function created with compilation errors. What must you do to see the compilation errors? A.Issue the SHOW ERRORS command. B.Issue the DISPLAY ERRORS command. C.Query the FUNCTION_ERRORS data dictionary view. D.Do nothing. The errors will display after a five-second delay.

3. You have just created a PL/SQL user-defined function called CALC_COMM. Which statement will successfully test it? A.EXECUTE calc_comm; B.SELECT * FROM calc_comm(emp); C.EXECUTE calc_comm(SELECT total FROM ord); D.SELECT * FROM ord GROUP BY ordid HAVING calc_comm(total) > 5000;

4. You have just successfully dropped the CALC_COMM procedure and deleted the script file containing the source code. Which command can you execute to recover this procedure? A.ROLLBACK; B.ROLLBACK TO PROCEDURE calc_comm; C.ALTER PROCEDURE calc_comm COMPILE; D.Only the database administrator can recover this procedure using backups.

5. Examine this procedure: CREATE PROCEDURE add_theater IS BEGIN INSERT INTO theater VALUES (35, 'Riverplace Theatre', '1222 River Drive, Austin, Tx.'); END; This procedure already exists in the database. You have made a change to the code and want to recreate the procedure. Which command must you now use to prevent an error? A.REPLACE PROCEDURE B.RECREATE PROCEDURE C.UPDATE PROCEDURE WITH D.CREATE OR REPLACE PROCEDURE