执行SQLPLUS登录到SQL 界面时候,就会自动的加载 $ORACLE_HOME/sqlplus/admin 中的login.sql(若没有则加载glogin.sql)
这里面的东西 是根据自己的爱好设置的,基本设置的代码如下(深入ORACLE体系编程艺术):
define _editor=vi
set serveroutput on size 1000000
set trimspool on
set long 5000
set linesize 100
set pagesize 9999
column plan_plus_exp format a80
column global_name new_value gname
set termout off
define gname=idle
column global_name new_value gname
select lower(user) || ‘@‘ || substr( global_name, 1, decode( dot, 0,
length(global_name), dot-1) ) global_name
from (select global_name, instr(global_name,‘.‘) dot from global_name );
set sqlprompt ‘&gname> ‘
set termout on
编辑login.sql进行sqlplus登陆设置
时间: 2024-09-30 11:12:46