在文件$ORACLE_HOME/sqlplus/admin/glogin.sql的最后一行添加如下内容
set SQLPROMPT '&_USER.@&_connect_identifier.>'
修改完后再登录为:
[oracle@node3 admin]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Mon Apr 25 14:14:15 2016
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
SYS@mes1>
其他参数如下: