auto default a tnsname
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: auto default a tnsname

  1. #1
    Join Date
    Jan 2000
    Location
    Surrey
    Posts
    2
    On an Open VMS system running Oracle 8i client I access a database on another server using sqlplus with the following syntax:

    sqlplus username/password@tnsname

    This works fine but I don't want to bother with typing @tnsname each time. The DB is on another server so defining ORACLE_SID doesn't do it for me. Is there another logical I can set?

    Martin

  2. #2
    Join Date
    May 2001
    Location
    Chantilly, Virginia
    Posts
    30

    Lightbulb

    Hi,

    you can create an alias for invoking sqlplus itself. Have multiple aliases created for different servicenames in .profile. I am talking about unix. I don't know about VMS.

    Prasad.

  3. #3
    Join Date
    Mar 2001
    Posts
    314
    Not sure about VMS, but in unix you can set TWO_TASK to the net service name to accomplish what you want.

    -amar

  4. #4
    Join Date
    Jan 2000
    Location
    Surrey
    Posts
    2
    Thanks for the help guys.

    Defining a TWO_TASK logical didn't work so it looks like there isn't a shortcut for this.

    Martin


  5. #5
    Join Date
    Mar 2001
    Posts
    314
    Do you have the equivalent of export (in unix) in VMS?
    In unix unless you export the TWO_TASK variable it does not work either!

    -amar

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