Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do I force afiedt.buf (sqlplus edit) to /tmp ?

Tips and Tricks

how do I force afiedt.buf (sqlplus edit) to /tmp ?

by  DBAwhosaysNIE  Posted    (Edited  )
if you're like me you do a lot of local sqlplus work and end up with afiedt.buf files all over your filesystem(s). I've been pretty lazy about this and occasionally would run a find to hunt them down but finally got off my rear and fixed the root (pardon the pun) problem:

simply vi (,emacs or whatever editor you prefer for religous reasons) $ORACLE_HOME/sqlplus/admin/glogin.sql and insert the following line:

set editfile /tmp/afiedt.buf

it also works with shell variables so you can do:

--let each user have their own in their home directory
set editfile $HOME/afiedt.buf

or

--one per version if you have multiple on same host
set editfile $ORACLE_HOME/afiedt.buf

or

--one per PID im /tmp
set editfile /tmp/afiedt.$$

or wherever your imagination takes you (anything is better than "." wherever you happened to be)

this is certainly not a big deal and maybe I need more fiber but it is annoying when you're doing ls, can cause for loops in shell scripts to do stupid things and is a simple one line fix.
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top