on 09-19-2007 4:52 AM
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>
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.