Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: Oracle on Unix/Linux >> Doskey functionality in sqlplus on linux platform

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: Doskey functionality in sqlplus on linux platform
 rajesh  Posted: Mar 17, 2005 04:03:46 AM

 Total Post: 2
 Joined: Mar, 2005






 Friends,

I am not getting doskey functionality (which is avaible on Win2k & winNT etc.) bcos of that I have to retype same command everytime.

I have tried will bash & sh shell in konsole & xterm terminals.

I am using Oracle 10g on RedHat AS 3.0

kindly, somebody tell me where i am wrong.

regards

Rajesh

 Marko
Posted: May 16, 2005 01:05:57 PM  

 Total Post: 2
 Joined: Nov, 2003






 
Hi,

One way is to set EDITOR=vi ; export EDITOR before running sqlplus. You can then use the command ed in sqlplus to edit the command using vi util from sqlplus.
Ex.
SQL> select * from t;
SQL> ed
(you then get vi running in your shell)
select * from t
(and edit it to something else using for ex. R command)
select user from tb;
(and close by Esc :wq!)
SQL> /

There is also a save command and some other utils handy for sql.

Not exactly what you was asking for but a really handy tip if you are running long sql and need to edit previous command ...
If you´re going to work in *nix env then basic vi commands is recuired a lot. Get to know it.

Regards
M

 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar857
  Mohammed Taj746
  positive fanatic483
  Jayanta Sur479
  Vigyan Kaushik386
  Gopu Gopi335
  Gitesh Trivedi322
  Vinoth Kumar264
  neeraj sharma258
  Ramesh Jois246






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software