Results 1 to 7 of 7

Thread: shutdown and startup

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Expert Member
    Join Date
    Sep 2006
    Answers
    130

    Re: shutdown and startup

    Hi,

    Since the definition alone is not very much clear, let me explain with an example in detail.
    As already given, Setting termout is used to display or suppress the output of sql commands if the commands are run as a sql script.

    Let me create a sql file named samplescript.sql since termout works for sql scripts.
    The samplescript.sql consists of a simple query,
    select empno, ename from emp;

    Now, let me run the script by setting termout as on
    Note :- Default value for termout is "on"


    SQL> set termout on
    SQL> @samplescript;

    EMPNO EMPNAME
    ------------ -----------------
    25398 STEVE

    1 row selected.

    This is the output of the script file, check out for the output while running the same sql file with termout "off"

    SQL> set termout off
    SQL> @samplescript;
    SQL>


    The output is not displayed or lets say, the output is suppressed since the setting of termout is off.
    If there is a requirement where u want to run a sql script but avoid the output, then u can go for termout off.

    Hope it is clear now.

    Last edited by Innila; 06-12-2007 at 02:41 AM.
    *** Innila ***

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact