Beruflich Dokumente
Kultur Dokumente
Oleh :
Rintan Aprilia Pratiwi
2103171008
2 D3 Teknik Informatika A
In practice 2-2, you are introduced to the basic functionality of the SQL Developer
debugger:
Note: If you missed a step in a practice, please run the appropriate solution script for that
practice step before proceeding to the next step or next practice.
In this practice, you create, compile, and use stored functions and a procedure.
1) Create and invoke the GET_JOB function to return a job title.
a) Create and compile a function called GET_JOB to return a job title.
b) Use the function in a SELECT statement against the EMPLOYEES table for
employees in department 30.
d) Add another employee named Joe Harris in department 80, leaving the remaining
parameters with their default values. What is the result?
In this practice, you experiment with the basic functionality of the SQL Developer
debugger.
1) Enable SERVEROUTPUT.
11) Use the Step Into debug option to step into each line of code in emp_list and go
through the while loop once only.
12) Examine the value of the variables in the Data tab. What are the values assigned to
REC_EMP?
15) Continue pressing F7 until you observe the list of employees displayed in the
Debugging – Log tab. How many employees are displayed?
16) If you use the Step Over debugger option to step through the code, do you step
through the get_location function? Why or why not?