oracle登陸設定指令碼

skuary發表於2011-07-12

set termout off
column object_name format a30
column table_name format a30
column segment_name format a30
column file_name format a30
column name format a30
column loginname format a30
column what format a30 word_wrapped
column plan_plus_exp format a100
set trimspool on
set long 50000
set wrap off
set linesize 260
set pagesize 50000
set verify off
set serveroutput on size 1000000 format wrapped

define gname=SQL
column name new_value gname
select lower(user)||'@'||
substr(name,1,decode(dot,0,length(name),dot-1)) name
from (select name, instr(name,'.') dot
from v);
set sqlprompt '&gname> '
set termout on

蠻有用的,記錄一下。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25618347/viewspace-713822/,如需轉載,請註明出處,否則將追究法律責任。

相關文章