Login ScriptThis is a featured page

Platform: Oracle App:
Tool: SQL*Plus
DB Ver: 9.2 App Ver:
Tool Ver: 9.2.0.8
Revision Date: 29-May-2006 Keywords: REF, REFERENCE, LOGIN SCRIPTS

Reference Notes
This script, when placed in the SQL*Plus path, executes when you login. It sets up the user prompt, the editor, and the output settings for you. The script is shown below, but can be downloaded also.

-- --------------------------------
-- SQL*Plus login script
-- A Noble 2006
-- based on Tom Kyte's login script
-- --------------------------------
-- set up editor to be UltraEdit by default
define _editor="C:\Program Files\IDM COMPUTER SOLUTIONS\ULTRAEDIT-32\uedit32.exe"
set serveroutput on size 1000000 format wrapped
set trimspool on
set long 500
set linesize 100
set pagesize 9999
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



consultium
consultium
Latest page update: made by consultium , Oct 9 2009, 10:53 AM EDT (about this update About This Update consultium Edited by consultium


view changes

- complete history)
Keyword tags: LOGIN SCRIPTS REF REFERENCE
More Info: links to this page
There are no threads for this page.  Be the first to start a new thread.

Related Content

  (what's this?Related ContentThanks to keyword tags, links to related pages and threads are added to the bottom of your pages. Up to 15 links are shown, determined by matching tags and by how recently the content was updated; keeping the most current at the top. Share your feedback on Wetpaint Central.)