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 |
Send this thread to your friend |
|
|
|
|
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 Khokhar | 857 |
| Mohammed Taj | 746 |
| positive fanatic | 483 |
| Jayanta Sur | 479 |
| Vigyan Kaushik | 386 |
| Gopu Gopi | 335 |
| Gitesh Trivedi | 322 |
| Vinoth Kumar | 264 |
| neeraj sharma | 258 |
| Ramesh Jois | 246 |
|
|