Oracle PL/Sql 10g Test
A table has to be dropped from within a stored procedure. How can this be implemented?
All packages can be recompiled by using an Oracle utility called:
An internal LOB is _____.
CREATE OR REPLACE PACKAGE manage_emp IS tax_rate CONSTANT NUMBER(5,2) := .28; v_id NUMBER; PROCEDURE insert_emp (p_deptno NUMBER, p_sal NUMBER); PROCEDURE delete_emp; PROCEDURE update_emp; FUNCTION...
Evaluate the following PL/SQL block: DECLARE result BOOLEAN; BEGIN DELETE FROM EMPloyee WHERE dept_id IN (10,40,50); result:=SQL%ISOPEN; COMMIT: END; What will be the value of RESULT if three rows...
Evaluate the following PL/SQL block: DECLARE v_low NUMBER:=2; v_upp NUMBER:=100; v_count NUMBER:=1; BEGIN FOR i IN v_low..v_low LOOP INSERT INTO test(results) VALUES (v_count) v_count:=v_count+...
Examine the following code: CREATE OR REPLACE PACKAGE comm_package IS g_comm NUMBER := 10; PROCEDURE reset_comm(p_comm IN NUMBER); END comm_package; User MILLER executes the following code at 9:0...
Examine the following code: CREATE OR REPLACE FUNCTION gen_email (first_name VARCHAR2, last_name VARCHAR2, id NUMBER) RETURN VARCHAR2 IS email_name VARCHAR2(19); BEGIN email_name := SUBSTR(first_na...
Examine the following code: CREATE OR REPLACE TRIGGER secure_emp BEFORE LOGON ON employees BEGIN IF (TO_CHAR(SYSDATE, 'DY') IN ('SAT', 'SUN')) OR (TO_CHAR(SYSDATE, 'HH24:MI') NOT BETWEEN '08:00' AN...
Examine the following code: CREATE OR REPLACE TRIGGER UPD_SALARY FOR EACH ROW BEGIN UPDATE TEAM SET SALARY=SALARY+:NEW.SALARY WHERE ID=:NEW.TEAM_ID END; Which statement must be added to make this t...
Examine the following code: CREATE OR REPLACE TRIGGER update_emp AFTER UPDATE ON emp BEGIN INSERT INTO audit_table (who, dated) VALUES (USER, SYSDATE); END; / An UPDATE command is issued in the EMP...
Examine the following package specification: CREATE OR REPLACE PACKAGE combine_all IS v_string VARCHAR2(100); PROCEDURE combine (p_num_val NUMBER); PROCEDURE combine (p_date_val DATE); PROCEDURE co...
Examine the following procedure: PROCEDURE emp_salary (v_bonus BOOLEAN, V_raise BOOLEAN, V_issue_check in out BOOEAN) is BEGIN v_issue_check:=v_bonus or v_raise; END; If v_bonus=TRUE and v_raise=N...
Examine the following trigger: CREATE OR REPLACE TRIGGER Emp_count AFTER DELETE ON Employee FOR EACH ROW DECLARE n INTEGER; BEGIN SELECT COUNT(*) INTO n FROM employee; DMBS_OUTPUT.PUT_LINE( 'There...
How can migration be done from a LONG to a LOB data type for a column?
If user defined error condition exists,Which of the following statements made a call to that exception?
In Pl/Sql, if the where clause evaluates to a set of data, which lock is used?
In which type of trigger can the OLD and NEW qualifiers can be used?
SQL%ISOPEN always evaluates to false in case of a/an:
The CHECK_SAL procedure calls the UPD_SAL procedure. Both procedures are INVALID.Which command can be issued to recompile both procedures?
The oracle server implicitly opens a cursor to process:
The technique employed by the Oracle engine to protect table data, when several people are accessing it is called:
What can be done with the DBMS_LOB package?
What happens during the execute phase with dynamic SQL for INSERT, UPDATE, and DELETE operations?
What happens when rows are found using a FETCH statement?
What is the maximum number of handlers processed before the PL/SQL block is exited, when an exception occurs?
What type of trigger is created on the EMP table that monitors every row that is changed, and places this information into the AUDIT_TABLE?
When the procedure or function is invoked, the Oracle engine loads the compiled procedure or function in the memory area called:
Which code is stored in the database when a procedure or function is created in SQL*PLUS?
Which command is used to disable all triggers on the EMPLOYEES table?
Which cursor dynamically allows passing values to a cursor while opening another cursor?
Which datatype does the cursor attribute '%ISOPEN' return?
Which of the following are identified by the "INSTEAD OF" clause in a trigger?
Which of the following is a benefit of using procedures and functions?
Which of the following is not a legal declaration?
Which of the following statements is true regarding stored procedures?
Which of the following statements is true?
Which package construct must be declared and defined within the packages body?
Which part of a database trigger determines the number of times the trigger body executes?
Which precomplied word is called, which when encountered, immediately binds the numbered exception handler to a name?
Which procedure is called after a row has been fetched to transfer the value, from the select list of the cursor into a local variable?
Which Section deals with handling of errors that arise during execution of the data manipulation statements, which makeup the PL/SQL Block?
Which table and column can be queried to see all procedures and functions that have been marked invalid?
Which table should be queried to check the status of a function?
Which table should be queried to determine when the procedure was last compiled?
Which two among the following programming constructs can be grouped within a package?
Which two statements among the following, regarding oracle database 10g PL/SQL support for LOB migration, are true?
Which two statements out of the following regarding packages are true?
Which two statements, among the following, describe the state of a package variable after executing the package in which it is declared?
Which type of variable should be used to assign the value TRUE, FALSE?