Results 1 to 4 of 4

Thread: Unix KSH

  1. #1
    Join Date
    Apr 2004
    Posts
    113

    Unanswered: Unix KSH

    Hello,

    I am a newbie and I am on a windows machine and have telnetting into the server I need.

    I typed in:

    $ sudo su - oracle

    It brought me to this prompt:

    Oracle8i>

    I am trying to get to my tnsnames, listener.ora and sqlnet.ora.

    What do I type in next?

  2. #2
    Join Date
    Sep 2003
    Location
    Columbia, MD USA
    Posts
    95
    if things are set up correctly (ORACLE_HOME set)... you should be able to type:

    cd $ORACLE_HOME/network/admin to get to those files

    what you do from there is up to you
    drew
    ------------------
    http://wjtechnologies.com

  3. #3
    Join Date
    Apr 2004
    Posts
    113
    Thanks a bunch! That worked!

    how can I then ftp it to my machine?

  4. #4
    Join Date
    Sep 2003
    Location
    Columbia, MD USA
    Posts
    95
    2 ways...

    1st thing you need to do is see where you are working by typing 'pwd' at your Unix command prompt, this will show you the directory you were in after typing cd $ORACLE_HOME/network/admin

    1. open a command prompt (windows)

    ftp <server name>
    login with your user info
    cd <full path>/network/admin
    get tnsnames.ora
    get whatever.else

    you'll find the file in whatever your current working directory was for the command prompt

    you can do the same thing to send them back except you can use 'put' instead of get

    type ftp /? for more info

    2. Open Internet Explorer

    in the address bar type 'ftp://<serve name/<full path>
    log in, and use the GUI manus to copy to and from

    just be sure you use something like notepad or edit when editing the files or there's a chance that they'll be in DOS format and you'll have to use 'dos2unix on them before you can use them... the way to tell is to use something like 'more' in your unix window

    more <file name>

    if you see a bunch of ^M after each line feed, you'll need to convert it

    if you want to just edit the files, it might not be a bad idea to learn the vi editor, it seems difficult at first, but is surprisingly easy once you get started. just be careful with the format of those file as the format is VERY specific
    drew
    ------------------
    http://wjtechnologies.com

Posting Permissions

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