DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Logging Script Execution

  1. #1
    Join Date
    Feb 2002
    Posts
    14

    Post

    Hi All,

    Is there anyway i can log the errors into a log file when i am executing the script file which creates database, tablespaces, schema, tables, etc...

    Also i want to branch or terminate the script when an error occurs. Means, while creating database/tablespace/schema if i get an error i want to terminate the script.

    How to do this. Are there any script generating tools that will do this for me.


    Thanks in advance

    Regards
    Jagannadh
    Jagannadh

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    In your sqlplus script, put:
    WHENEVER SQLERROR EXIT SQL.SQLCODE
    Jeff Hunter

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width