Difficulty: Easy
Correct Answer: Invalid (use EDIT or HOST to open the configured editor)
Explanation:
Introduction / Context:
This item checks practical knowledge of SQLPlus editor integration on Windows. SQLPlus allows you to configure a default external editor (for example, Notepad) and then invoke it from within the client. However, invoking that editor does not work by simply typing the program’s name as if it were a SQLPlus command; you must use specific SQLPlus commands to launch the editor or an operating system shell command.
Given Data / Assumptions:
Concept / Approach:
SQLPlus provides the EDIT command to open the currently buffered statement in the configured external editor. To run arbitrary operating system programs from SQLPlus, use HOST (or a leading exclamation mark in some environments). Typing NOTEPAD alone is not a SQLPlus command and will be treated as invalid SQL unless prefixed with HOST. Therefore, the blanket statement that “whenever you type NOTEPAD, SQLPlus will invoke Notepad” is incorrect.
Step-by-Step Solution:
Verification / Alternative check:
Try EDIT after DEFINE _EDITOR is set; Notepad opens with the SQL buffer. Try HOST notepad; a Notepad window opens. Typing NOTEPAD without HOST raises an error or is interpreted as SQL text.
Why Other Options Are Wrong:
Common Pitfalls:
Confusing EDIT (opens buffer) with HOST (runs OS command); assuming program names are SQLPlus commands.
Final Answer:
Invalid (use EDIT or HOST to open the configured editor)
Discussion & Comments