Is there a way I can use the arrow keys as normal in Oracle SQLPlus?

I just want to use left and right keys to move my cursor and the up and down keys to show my flip among my previous commands.  Thanks.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gerwin Jansen, EE MVETopic Advisor Commented:
What environment are you running sqlplus from?

For Unix/Linux there is rlwrap (which I didn't test yet) that maybe of use:
slightwv (䄆 Netminder) Commented:
In Windows sqlplus (command prompt version) will allow arrow keys.

In 10g and before there is a sqlplusw GUI that will not.
thomaszhwangAuthor Commented:
I'm running sqlplus under Linux (Cent OS 5 or 6, I have two).  I'm not sure if rlwrap is something I'm looking for.
Gerwin Jansen, EE MVETopic Advisor Commented:
>> I'm not sure if rlwrap is something I'm looking for
Then what you want is not possible, only thing you can do is type ed at the sqlplus prompt to invoke the configured editor that lets you edit your previous sql statement. Save and close that editor to return to sqlplus and enter / to execute your (edited) statement.

You can set your sqlplus editor like this (from the sqlplus prompt):


or put the above line in ${ORACLE_HOME}/sqlplus/admin/glogin.sql

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
thomaszhwangAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.