LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Symbolic link problem (https://www.linuxquestions.org/questions/linux-newbie-8/symbolic-link-problem-937755/)

kais1 04-02-2012 04:37 PM

Symbolic link problem
 
Dear All,

In RHEL AS 4, when am trying to create symbolic link, its failign with the below error :

ln: creating symbolic link `/d04/oracle/proddata/APPS_TS_TX_IDX354.dbf' to `/erpdemo_d04/erptest/APPS_TS_TX_IDX354.dbf': No such file or directory
ln: creating symbolic link `/d04/oracle/proddata/APPS_TS_TX_DATA204.dbf' to `/erpdemo_d04/erptest/APPS_TS_TX_DATA204.dbf': No such file or directory
ln: creating symbolic link `/d04/oracle/proddata/APPS_TS_TX_DATA228.dbf' to `/erpdemo_d04/erptest/APPS_TS_TX_DATA228.dbf': No such file or directory
ln: creating symbolic link `/d04/oracle/proddata/APPS_TS_TX_IDX1001.dbf' to `/erpdemo_d04/erptest/APPS_TS_TX_IDX1001.dbf': No such file or directory
ln: creating symbolic link `/d04/oracle/proddata/APPS_TS_TX_IDX248.dbf' to `/erpdemo_d04/erptest/APPS_TS_TX_IDX248.dbf': No such file or directory
ln: creating symbolic link `/d04/oracle/proddata/APPS_TS_TX_IDX261.dbf' to `/erpdemo_d04/erptest/APPS_TS_TX_IDX261.dbf': No such file or directory
ln: creating symbolic link `/d04/oracle/proddata/APPS_TS_TX_IDX403.dbf' to `/erpdemo_d04/erptest/APPS_TS_TX_IDX403.dbf': No such file or directory
ln: creating symbolic link `/d04/oracle/proddata/UNDOTS1_01.dbf' to `/d06/UNDOTS1_01.dbf': No such file or directory

but the files physically exist there.

for example. the below file

ln: creating symbolic link `/d04/oracle/proddata/UNDOTS1_01.dbf' to `/d06/UNDOTS1_01.dbf': No such file or directory

[root@erptest final]# ls -rlt /d06/UNDOTS1_01.dbf
-rw-r--r-- 1 oracle dba 16777224192 Mar 31 00:03 /d06/UNDOTS1_01.dbf

I tried chaning chmod 777 to the file
/d06/UNDOTS1_01.dbf

but still it is failing..any idea

anomie 04-02-2012 05:59 PM

Please post the exact command you're typing on the command line. (Use code tags.)

kais1 04-02-2012 09:35 PM

Quote:

Originally Posted by anomie (Post 4643012)
Please post the exact command you're typing on the command line. (Use code tags.)

Thanks

Code:

ln -s /erpdemo_d04/erptest/APPS_TS_TX_IDX261.dbf          /d04/oracle/proddata/APPS_TS_TX_IDX261.dbf 
ln -s /erpdemo_d04/erptest/APPS_TS_TX_IDX403.dbf        /d04/oracle/proddata/APPS_TS_TX_IDX403.dbf
ln -s /d06/UNDOTS1_01.dbf                        /d04/oracle/proddata/UNDOTS1_01.dbf


anomie 04-02-2012 10:48 PM

Let's try coping and pasting into a file (using vi or nano -- not a Windows editor):

Code:

_suspect='/erpdemo_d04/erptest/APPS_TS_TX_IDX261.dbf
          /d04/oracle/proddata/APPS_TS_TX_IDX261.dbf 
          /erpdemo_d04/erptest/APPS_TS_TX_IDX403.dbf
          /d04/oracle/proddata/APPS_TS_TX_IDX403.dbf
          /d06/UNDOTS1_01.dbf
          /d04/oracle/proddata/UNDOTS1_01.dbf
        '

for I in $_suspect ; do

  file $I

done

Save it as foo, and then run:

Code:

$ bash ./foo
Please post the output.

deep27ak 04-02-2012 11:38 PM

Quote:

Originally Posted by kais1 (Post 4643149)
Thanks

Code:

ln -s /erpdemo_d04/erptest/APPS_TS_TX_IDX261.dbf          /d04/oracle/proddata/APPS_TS_TX_IDX261.dbf 
ln -s /erpdemo_d04/erptest/APPS_TS_TX_IDX403.dbf        /d04/oracle/proddata/APPS_TS_TX_IDX403.dbf
ln -s /d06/UNDOTS1_01.dbf                        /d04/oracle/proddata/UNDOTS1_01.dbf


I hope you are ware of the fact of usage of ln command

Code:

#ln -s (source_file) (your_file)
as per the error your command should be something like this
Code:

#ln -s          /d04/oracle/proddata/APPS_TS_TX_IDX261.dbf    /erpdemo_d04/erptest/APPS_TS_TX_IDX261.dbf


All times are GMT -5. The time now is 12:52 AM.