Work through the following materials this week, making sure that you can do the given activities.
Sections 10.1, 10.4.1 & 26.1.1–2
Name the three basic approaches to database programming.
Explain the concepts of:
impedance mismatch
stored procedures
triggers
Server-Side Programming: PL/SQL and Java. — Focus on server-side programming, PL/SQL and triggers; skip the section on “Overview of Java in Oracle Database”.
Compare and contrast:
procedural vs non-procedural languages.
client-side vs server-side database programming.
Explain why one would want to do server-side programming using PL/SQL.
For each of the following code segments, identify the type of the database object and explain what it does.
CREATE PROCEDURE limited_count (limit IN integer) AS BEGIN FOR i IN 1..limit LOOP dbms_output.put_line(i); END LOOP; END;
BEGIN dbms_output.put_line('Hello, PL/SQL!'); END;
CREATE TRIGGER log_trigger BEFORE INSERT OR UPDATE OF lastName ON Person FOR each row BEGIN dbms_output.put_line('Hello, name change!'); END;