Operating System - HP-UX
1833596 Members
3401 Online
110061 Solutions
New Discussion

How to create a symlic LinK

 
SOLVED
Go to solution
Shahbaz_1
Regular Advisor

How to create a symlic LinK

Hi,
I am trying to run odma, (oracle migration utility). and it is looking for jre in /u01/prod/proddb/JRE/bin/jre, whereas
it is located in some other dir, /u01/jre817/1.8.1/bin.
Though I put this location in the PATH, but still it is searchig in the above said path.

can I resolve it by creating symbolic link?

how to create a symbolic linke?

please...

Regards
Shah
Let's share the great thing "THE KNOWLEDGE"
5 REPLIES 5
Michael Tully
Honored Contributor
Solution

Re: How to create a symlic LinK

yes you can, it is very easy, and it should work.

# ln -s /u01/jre817/1.8.1/bin/jre /u01/prod/proddb/JRE/bin/jre

Also have a look at the man page for 'ln'
Anyone for a Mutiny ?
Sukant Naik
Trusted Contributor

Re: How to create a symlic LinK

Hi Shah,

It is very simple. Please do the following

ln -s /u01/jre817/1.8.1/bin /u01/prod/proddb/JRE/bin

-Sukant
Who dares he wins
Shahbaz_1
Regular Advisor

Re: How to create a symlic LinK

Hi
Thanks,

I've created the link,
but now it says Execute permission denied on
/u01/prod/proddb/8.1.7/JRE/bin:

I tried giving full access on jre file using
chmod 777 jre
and all the java files belongs to oracle:dba group

so what could be the problem?

please...

Regards
Shah
Let's share the great thing "THE KNOWLEDGE"
Sukant Naik
Trusted Contributor

Re: How to create a symlic LinK

Hi Shah,

try

chmod -R +x /the directory name

-Sukant
Who dares he wins
Robert R. Colp
Advisor

Re: How to create a symlic LinK

Don't forget to put this link in a location your PATH variable searches. Issue the command "set" to determine what your path is then place the link in one of those directories before it looks in "/u01/prod/proddb/JRE/bin/jre817/1.8.1/bin"

I hope this helps.