Unix Technical Forum

sqlplus command history: rlwrap and multiple line sql statements

This is a discussion on sqlplus command history: rlwrap and multiple line sql statements within the Oracle Database forums, part of the Database Server Software category; --> OK.. Great for one-liners, but what about multiple lines? Thanks. ........ We use Oracle 8.1.7.4 and 9.2.0.6/7 on Solaris ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-24-2008, 04:43 PM
NetComrade
 
Posts: n/a
Default sqlplus command history: rlwrap and multiple line sql statements

OK..

Great for one-liners, but what about multiple lines?

Thanks.
........
We use Oracle 8.1.7.4 and 9.2.0.6/7 on Solaris 2.7 and RH4
remove NSPAM to email
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-24-2008, 04:46 PM
www.twisted-nail.com
 
Posts: n/a
Default Re: sqlplus command history: rlwrap and multiple line sql statements

You can use / to repeat the previous sql statement. Oracle advise to
use iSQLplus and there you can edit your statements.

Best regards,
Primoz Mihelic

http://www.twisted-nail.com

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-24-2008, 04:46 PM
Egor Starostin
 
Posts: n/a
Default Re: sqlplus command history: rlwrap and multiple line sql statements

> Great for one-liners, but what about multiple lines?
I use vim.
Here's some kind of howto: http://oracledba.ru/notes_vim_en.html


--
Egor
http://www.oracledba.ru/orasrp/
Free Oracle Session Resource Profiler

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-24-2008, 04:46 PM
Noons
 
Posts: n/a
Default Re: sqlplus command history: rlwrap and multiple line sql statements

NetComrade apparently said,on my timestamp of 29/09/2005 6:15 AM:

> Great for one-liners, but what about multiple lines?
>
> We use Oracle 8.1.7.4 and 9.2.0.6/7 on Solaris 2.7 and RH4
> remove NSPAM to email



define _editor=vim

--
Cheers
Nuno Souto
in sunny Sydney, Australia
wizofoz2k@yahoo.com.au.nospam
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-24-2008, 04:48 PM
NetComrade
 
Posts: n/a
Default Re: sqlplus command history: rlwrap and multiple line sql statements

On Sun, 02 Oct 2005 02:23:57 +1000, Noons <wizofoz2k@yahoo.com.au>
wrote:

>NetComrade apparently said,on my timestamp of 29/09/2005 6:15 AM:
>
>> Great for one-liners, but what about multiple lines?
>>
>> We use Oracle 8.1.7.4 and 9.2.0.6/7 on Solaris 2.7 and RH4
>> remove NSPAM to email

>
>
>define _editor=vim


I think people mis-understood my question.
rlwrap is used to add command history to sqlplus
http://www.dizwell.com/html/cli_history.html
however, it cannot recall the full sql command, if the command wrapped
for longer then one line
I do know how to use vi and 'edit' in sqlplus.

thanks.
........
We use Oracle 8.1.7.4 and 9.2.0.6/7 on Solaris 2.7 and RH4
remove NSPAM to email
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-24-2008, 04:49 PM
Noons
 
Posts: n/a
Default Re: sqlplus command history: rlwrap and multiple line sql statements

NetComrade wrote:
> >
> >
> >define _editor=vim

>
> I think people mis-understood my question.
> rlwrap is used to add command history to sqlplus
> http://www.dizwell.com/html/cli_history.html
> however, it cannot recall the full sql command, if the command wrapped
> for longer then one line
> I do know how to use vi and 'edit' in sqlplus.
>


Didn't say you didn't, buddy. Just suggested you use
it. Because I don't think there is an exact parallel
with WIndows available in the Looneecks world.
Still, if there is I'd love to hear details.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:57 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com