nerdexam
Oracle

1Z0-144 · Question #88

View the Exhibit and examine the structure of the departments table in SCOTT's schema. Examine the following block of code: CREATE OR REPLACE PROCEDURE add_dept( p_id NUMBER, p_name VARCHAR2) IS…

The correct answer is A. JONES executes the procedure with definer's rights. C. SCOTT should grant only the execute privilege for the procedure to JONES. See the full explanation below for the reasoning.

Question

View the Exhibit and examine the structure of the departments table in SCOTT's schema. Examine the following block of code:

CREATE OR REPLACE PROCEDURE add_dept( p_id NUMBER, p_name VARCHAR2) IS BEGIN INSERT INTO departments VALUES <p_id, p_name, NULL, NULL); END; / The above procedure is created by user SCOTT. Another user JONES needs to use the procedure. Which two statements are true in the above scenario? (Choose two.)

Exhibit

1Z0-144 question #88 exhibit

Options

  • AJONES executes the procedure with definer's rights.
  • BJONES executes the procedure with invoker's rights.
  • CSCOTT should grant only the execute privilege for the procedure to JONES.
  • DSCOTT should grant both the BXKCOTE privilege for the procedure and insert privilege for the

How the community answered

(29 responses)
  • A
    83% (24)
  • B
    3% (1)
  • D
    14% (4)

Community Discussion

No community discussion yet for this question.

Full 1Z0-144 Practice