Oracle
1Z0-061 · Question #316
A view and a synonym are created as follows: create view dept_v as select * from dept; create synonym dept_s for dept_v; Subsequently the table DEPT is dropped. What will happen if you query the…
The correct answer is D. There will be an error because the view will be invalid. See the full explanation below for the reasoning.
Question
A view and a synonym are created as follows:
create view dept_v as select * from dept; create synonym dept_s for dept_v; Subsequently the table DEPT is dropped. What will happen if you query the synonym DEPT_S ? (Choose the best answer.)
Options
- AThere will not be an error because the synonym addresses the view, which still exists, but there
- BThere will not be an error if you first recompile the view with the command ALTER VIEW DEPT_V
- CThere will be an error because the synonym will be invalid.
- DThere will be an error because the view will be invalid.
- EThere will be an error because the view will have been dropped implicitly when the table was
How the community answered
(58 responses)- A3% (2)
- B9% (5)
- C2% (1)
- D84% (49)
- E2% (1)
Community Discussion
No community discussion yet for this question.