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

Thread: Accessing The remote DB Directly

  1. #1
    Join Date
    Dec 2000
    Posts
    255
    I am on Linux Machine and have to access Database 'gdb' on NT machine. Every time I have to enter $ sqlplus scott/tiger@gdb. Is there any way I can configure it so that I don't have to enter a complete sqlplus scott/tiger@gdb. I tried $ oracle_sid=gdb (export oracle_sid) and then entered 'sqlplus scott/tiger' but it didnt connect to remote DB. Can't I set oracle_sid to a remote DB.

    Amol

  2. #2
    I think is possible sqlplus to not use the oracle_sid in connect string. So...
    ovidius over!

  3. #3
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    export TWO_TASK=RMEOTEDB

    then you can do sqlplus scott/tiger

    but this works between unix/linux databases I am not sure if it would work with remote nt database, should but I am not 100% sure because I rarely work with NT

  4. #4
    Join Date
    Dec 2000
    Posts
    255
    Should I do $ oracle_sid=gdb before going for export TWO_TASK=gdb ?

    Amol

  5. #5
    Join Date
    Dec 2000
    Posts
    255
    Oh Pando .. Thats really worked ( Even for NT ). Thank You very much
    Ignore my earlier Question.

    Just let me know How can I make it permanent? Currently it works only for the teminal which is currently opened. Do I have to modify .bash_profile for it.

    Amol

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