Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: SQL-Plus spooling problem
Try "get c:\temp\convcount.sql" command to edit file and use "edit" command to edit SQL*Plus buffer.
I hope this will help you.
John van Kaam wrote:
>
> Hi,
>
> I used to use a sql script like:
>
> set echo off
> set hea off
> set pagesize 0
> set linesize 4000
> set feedback off
> set verify off
>
> spool c:\temp\convcount.sql;
> SELECT 'update CONVINFO set intTotTabRecords = (select COUNT(*) FROM
> '||bestandnaam||') where bestandnaam='''|| bestandnaam||CHR(39)||';'from
> rubriek GROUP by bestandnaam;
> spool off;
>
> edit c:\temp\convcount.sql
>
> Now there use to come an output file with just the results of the select
> statement. Now also the SQL> prompt comes along and the initial
> SQL-statement. This was never so. We still have machines that work without
> this problem. What is wrong?
> I could set the sqlprompt like:
>
> set sqlprompt ""
>
> but then I still get the inital SQL-statement and I only used to get the
> output!
>
> Who can help.
-- Valery A. Sorokin ProSoft, Russia, Moscow, Information Systems Division Phone: +7 (095) 234 0636 (6 lines) FAX: +7 (095) 234 0640 E-mail: vsorokin_at_dd.ru OR vsorokin_at_prosoft.ru http://www.dd.ruReceived on Tue Dec 22 1998 - 00:00:00 CST