Home » Other » Client Tools » Bug in SQL*Plus "spool" command? (Oracle 18c (18.3) and 19c (19.3), Windows 7)
|
|
Re: Bug in SQL*Plus "spool" command? [message #680236 is a reply to message #680234] |
Wed, 29 April 2020 10:30   |
 |
Michel Cadot
Messages: 68757 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
I didn't know this option but it does not work:
D:\Temp\Listing>sqlplus /nolog
SQL*Plus: Release 19.0.0.0.0 - Production on Wed Apr 29 17:21:43 2020
Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle. All rights reserved.
SQL> set escchar $
SP2-0306: Invalid option.
Usage: SET ESCCHAR [OFF|@|?|%]
SQL> set escchar '$'
SP2-0306: Invalid option.
Usage: SET ESCCHAR [OFF|@|?|%]
For information:
https://docs.oracle.com/en/database/oracle/oracle-database/19/sqpug/SET-system-variable-summary.html#GUID-37A75C28-8B05-4D5E-838C-083 28D51FBB6
Quote:12.41.21 SET ESCCHAR
Syntax
SET ESCCHAR {@ | ? | % | OFF}
Specifies a character to be escaped and not interpreted when used in a file name for the SPOOL, START, @, RUN and EDIT commands. These special characters are translated to the following:
@ in a filename will be translated to Oracle SID
? is translated to Oracle Home in Unix
% is translated to Oracle Home in Windows
While it is not recommended that these characters are used in filenames, if you have legacy files that do use them, it might be useful to include a SET ESCCHAR command in your GLogin file to implement it across your site.
If not escaped, the characters @, ? and % have significance when interpreted and cause errors for the SPOOL, START, @, RUN and EDIT commands.
SET ESCCHAR is set OFF by default.
|
|
|
|
|
Goto Forum:
Current Time: Sat May 03 11:56:30 CDT 2025
|