cancel
Showing results for 
Search instead for 
Did you mean: 

ln: 0653-417 /oracle/SID/oraarch// is a directory. (cannot unlink)

Former Member
0 Kudos

Hi,

I have to restore a system for a DRP test.

I first deleted the /usr/sap/SID, /sapmnt/SID and /oracle/SID directories.

Before starting the restore I have to create a symbolic link of oraarch on saparch because the mount is on oraarch. I did it with the following command :

ln -s /oracle/SID/saparch/ /oracle/SID/oraarch/

after executing this line, it returns the error:

ln: 0653-417 /oracle/SID/oraarch// is a directory. (cannot unlink)

Many thanks for your help

Regards

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

It works.

Thanks to all of you !

Regrads

Former Member
0 Kudos

Hi Orkun

I tried to drop the slash, it returns the same error :

ln -s /oracle/SID/saparch/ /oracle/SID/oraarch

ln: 0653-417 /oracle/SID/oraarch/ is a directory. (cannot unlink)

Many thanks

Regards

Former Member
0 Kudos

Hi,

Is there an "oraarch" folder at the same level? If yes, rename to "oraarch1" then try execute command

Best regards,

Orkun Gedik

Former Member
0 Kudos

What exactly are you trying to do?

I have to create a symbolic link of oraarch on saparch

Somehow I suspect it has to be the other way round:

ln -s /oracle/SID/oraarch /oracle/SID/saparch

Read the manual pages of man ln and think again about your requirement.

Edited by: Joe Bo on Oct 12, 2011 2:26 PM

(typo: ln, not ls)

volker_borowski2
Active Contributor
0 Kudos

What exactly are you trying to do?

>

I have to create a symbolic link of oraarch on saparch

> Somehow I suspect it has to be the other way round:

>

ln -s /oracle/SID/oraarch /oracle/SID/saparch

>

> Read the manual pages of man ln and think again about your requirement.

>

> Edited by: Joe Bo on Oct 12, 2011 2:26 PM

> (typo: ln, not ls)

Yeah,

it is always the other way round than you think with "ln -s".

If you ever find a system with a link "b" pointing to "a"

you might safely assume I had may hands on it once when I had once again

no clue which way round the parameters work. In this case I always execute

ln -s a b

just to re-ensure myself

So if the filesystem mounted is .../oraarch, saparch needs o be non-existent when executing

ln -s /oracle/SID/oraarch /oracle/SID/saparch

see, just some twenty executions of "ln -s a b" and you are very sure to say which way round the parameters should be.

Volker

Former Member
0 Kudos

Thanks Orkun

Is there any solution to make this symbolic link ?

Thx

Former Member
0 Kudos

I already noted, in the previous message

drop the "/" at the end of the "/oracle/SID/oraarch/"

Former Member
0 Kudos

Hi,

Because oraarch is a physical directory. You can create the link by executing command, below;

ln  -s /oracle/<SID>/saparch/ /oracle/<SID>/oraarch

Best regards,

Orkun Gedik