nerdexam
Oracle

1Z0-144 · Question #32

View Exhibit1 and examine the structure of the EMP table. View Exhibit2 and examine the code created by the user SCOTT: SCOTT grants the necessary privileges to green to access the EMP table and…

The correct answer is C. SCOTT's session shows the EMPNO 100, GREEN'S session shows an error, and SCOTT's. See the full explanation below for the reasoning.

Question

View Exhibit1 and examine the structure of the EMP table. View Exhibit2 and examine the code created by the user SCOTT:

SCOTT grants the necessary privileges to green to access the EMP table and execute the package. Examine the following sequence of activities:

  • SCOTT starts a session and issues the SQL>EXEC CURS_PKG.OPEN command.
  • SCOTT then issues the SQL>EXEC CURS_PKG.NEXT command.
  • green starts a session while SCOTT's session is running and issues THE SQL>EXEC

CURS_PKG.NEXT command.

  • SCOTT issues the SQI>>EXEC SCOTT.CURS_PKG.NEXT command.

The EMP table contains sequential EMPNOS from 100 through 108. Which statement correctly describes the output?

Exhibits

1Z0-144 question #32 exhibit 1
1Z0-144 question #32 exhibit 2

Options

  • ASCOTT's session shows the EMPNO 100, GREEN'S session shows an error, and SCOTT's
  • BSCOTT's session shows the EMPNO 100, GREEN'S session shows EMPNO 100, and SCOTT's
  • CSCOTT's session shows the EMPNO 100, GREEN'S session shows an error, and SCOTT's
  • DSCOTT's session shows the EMPNO 100, GREEN'S session shows EMPNO 101, and SCOTT's

How the community answered

(23 responses)
  • A
    4% (1)
  • B
    9% (2)
  • C
    74% (17)
  • D
    13% (3)

Community Discussion

No community discussion yet for this question.

Full 1Z0-144 Practice