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

Thread: re: undefine ... error

  1. #1
    Join Date
    Jan 2004
    Posts
    58

    Question re: undefine ... error

    hi! ,

    I have a file xyz.sql

    In that file I have three undefine statments at the begining ..

    undefine a
    undefine b
    undefine c

    create ...
    etc

    When I open the file from SQL*PLUS and issue the
    / command to run the contents of the file
    it is giving error
    ------------------------------------------------------
    SQL> ed
    Wrote file afiedt.buf

    1 undefine a
    2 undefine b
    3* undefine c
    4 /
    undefine a
    *
    ERROR at line 1:
    ORA-00900: invalid SQL statement


    SQL>
    --------------------------------------------------------

    What is the reason for this error and how do I get rid of this
    error ?
    I want to be able run the file with the undefine commands in it ..!!!

    thanks for your help !!!!
    thanks,
    harish

  2. #2
    Join Date
    May 2001
    Posts
    736

  3. #3
    Join Date
    Jan 2004
    Posts
    58

    Question

    sorry!!! but i do not have a metalink id ...
    Please refer me to any other documentation or information


    thanks
    thanks,
    harish

  4. #4
    Join Date
    Sep 2001
    Location
    Makati, Philippines
    Posts
    857
    using ed is treated as a single command, therefore you should save your undefined commands in one txtfile and execute it using START or @ as what the link of akhadar suggested.

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