Skip to Content
author's profile photo Former Member
Former Member

Creating Symbolic link for installaiton

I was browsing through the steps of installation of SAP in AIX Machine.

I got the following lines in that document.

Pls help me understand what does this line do and why is it done

<b>create the directory sapreorg in /oracle/<SID>/oraarch and create a symbolic link

/oracle/<SID>/sapreorg to /oracle/<SID>/oraarch/sapreorg

• Create /oracle/stage/920_64 with user root

cd /oracle/<SID>

mkdir oraarch/sapreorg

ln -s /oracle/<SID>/oraarch/sapreog sapreorg</b>

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Sep 19, 2007 at 08:02 AM

    Hi Balaji

    Basically what your doing is creating a link that when calling

    sapreorg will go to /oracle/<SID>/oraarch/sapreog.

    Found this info very good and should answer your question,

    The ln command links the file designated in the SourceFile parameter to the file designated by the TargetFile parameter or to the same file name in another directory specified by the TargetDirectory parameter. By default, the ln command creates hard links. To use the ln command to create symbolic links, designate the -s flag.

    -s flag causes the ln command to create symbolic links. A symbolic link contains the name of the file to which it is linked. The referenced file is used when an open operation is performed on the link. A stat call on a symbolic link returns the linked-to file; an lstat call must be done to obtain information about the link. The readlink call may be used to read the contents of a symbolic link. Symbolic links can span file systems and refer to directories.

    Read more here,

    http://www.unet.univie.ac.at/aix/cmds/aixcmds3/ln.htm

    Regards

    Juan

    Please reward with points if helpful

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.