Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: How to disable < control + C > key in SQL*PLUS
I have tried your suggestion but failed.
In my case, I write SQL script to ask user to input some values before
execution. I want to prevent user pressing < CRTL+C> to exit to SQL prompt.
Here is my script:
SET ESCAPE OFF
spool %windir%\temp\test.log
set verify on
accept PUR_DATE prompt 'Purge History Log before (DD-MMM-YYYY) : '
set termout off
lock table sahistlog in exclusive mode;
delete from sahistlog
where print_fg = '1' and date_log <= '&PUR_DATE';
Thanks again.
In article <356142f6.2383607_at_news2.mm.com>, johng_at_nospam.mm.com wrote:
>Try SET ESCAPE = OFF
>as the first line of your script.
>
>
>
>yltong_at_oliv1.oli.hk wrote:
>
>> As the subject mentioned, I won't user can the stop my sql script to exit to
>>SQL prompt during running.
>>
>
Received on Mon May 18 1998 - 23:30:56 CDT
![]() |
![]() |