ORACLE sqlprompt设置
SYS@orcl>define
DEFINE _DATE = "17-JUN-19" (CHAR)
DEFINE _CONNECT_IDENTIFIER = "orcl" (CHAR)
DEFINE _USER = "SYS" (CHAR)
DEFINE _PRIVILEGE = "AS SYSDBA" (CHAR)
DEFINE _SQLPLUS_RELEASE = "1102000300" (CHAR)
DEFINE _EDITOR = "vi" (CHAR)
DEFINE _O_VERSION = "Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options" (CHAR)
DEFINE _O_RELEASE = "1102000300" (CHAR)
SYS@eas_orcl>
cd /u01/app/oracle/product/11.2.0/db_1/sqlplus/admin
vi glogin.sql
set sqlprompt _USER'@'_CONNECT_IDENTIFIER>
col name for a70
set lines 300
col file_name for a50
col tablepace_name for a30