LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-02-2012, 04:37 PM   #1
kais1
Member
 
Registered: Dec 2008
Posts: 61

Rep: Reputation: 17
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
 
Old 04-02-2012, 05:59 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Please post the exact command you're typing on the command line. (Use code tags.)
 
Old 04-02-2012, 09:35 PM   #3
kais1
Member
 
Registered: Dec 2008
Posts: 61

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by anomie View Post
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
 
Old 04-02-2012, 10:48 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
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.
 
Old 04-02-2012, 11:38 PM   #5
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by kais1 View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with symbolic link gambrinus777 Linux - Software 2 07-25-2009 09:12 AM
How to create symbolic link to html file and avoid page link problem? haxpor Linux - General 2 01-29-2008 07:40 AM
Problem related symbolic link raj_sony2001 Linux - General 1 06-01-2006 05:17 AM
Unlink the symbolic link problem anh Linux - Software 3 03-17-2006 12:47 PM
symbolic link problem ranger225 Linux - Newbie 13 09-21-2004 02:47 PM


All times are GMT -5. The time now is 02:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration