Name

SET SQLPROMPT — Not available in iSQL*Plus

Synopsis

The SET SQLPROMPT setting changes the SQL*Plus command prompt.

Syntax

SET SQLP[ROMPT] prompt_text

Parameters

SET SQLP[ROMPT]

Is the command, which may be abbreviated SET SQLP.

prompt_text

Is the new prompt text. The default prompt text is "SQL> ".

Examples

The following example shows the prompt being changed from "SQL> " to "SQL*Plus> ":

SQL> SET SQLPROMPT "SQL*Plus> "
SQL*Plus>

In Chapter 14, the section Section 14.2 shows how you can set your prompt to automatically reflect the database to which you are connected.

Get Oracle SQL*Plus: The Definitive Guide, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.