×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Oracle: All versions FAQ

Tips and Tricks

how do I force afiedt.buf (sqlplus edit) to /tmp ? by DBAwhosaysNIE
Posted: 12 May 04

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.

Back to Oracle: All versions FAQ Index
Back to Oracle: All versions Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close