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

Thread: re: setting sqlplus prompt

  1. #1
    Join Date
    Jan 2004
    Posts
    58

    Question re: setting sqlplus prompt

    hi! Guys,

    I have Oracle 8.1.5 server and client running on a computer
    with windows 2000 professional operating system.

    I created a file login.sql in which I set the sql_prompt...

    But when I login through sqlplus the sql prompt remains SQL>

    What could be the problem and how do I change the sqlprompt ???

    thanks for your insights and help ..

    harish
    thanks,
    harish

  2. #2
    Join Date
    Nov 2002
    Location
    Geneva Switzerland
    Posts
    3,142
    Put the following as connect.sql in your /bin directory and connect in sqlplus with @connect instead of connect. (Full aknowledgements to Tom Kyte).
    Code:
    connect &1
    set termout off
    @login
    set termout on

  3. #3
    Join Date
    Jan 2004
    Posts
    58

    Exclamation

    still not working ??

    what am i missing ..

    do i need to put the login.sql in any particular place ?
    thanks,
    harish

  4. #4
    Join Date
    Nov 2002
    Location
    Geneva Switzerland
    Posts
    3,142
    Easiest to have both login.sql & connect.sql in the /bin directory on the client.

  5. #5
    Join Date
    Jan 2004
    Posts
    58
    works now !!!

    thanks a lot dapi ..
    thanks,
    harish

  6. #6
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    you can use SQL_PATH env variable to set directories where your scripts are stored.

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