Operating System - HP-UX
1834130 Members
3002 Online
110064 Solutions
New Discussion

Linking a file on different server.

 
Gulam Mohiuddin
Regular Advisor

Linking a file on different server.

We have two servers ServerA and ServerB, the Oracle from ServerA writes a file in /utl_file/gis/gis.dat file. Now Oracle on SererB wants to read this file. For this we have a daily cron job which copies gis.dat file from ServerA and paste into the similar directory structure in ServerB at /utl_file/gis/gis.dat.

Is it possible to avoid this cron job and somehow link the ServerA:/utl_file/gis/gis.dat to ServerB:/utl_file/gis/gis.dat so that Oracle on ServerB can read it anytime.

Thanks,

Gulam.
Everyday Learning.
6 REPLIES 6
harry d brown jr
Honored Contributor

Re: Linking a file on different server.

With an NFS mount you can access a file on serverA from ServerB, but unfortunately not via "ln".


live free or die
harry
Live Free or Die
Kurtkarl
Frequent Advisor

Re: Linking a file on different server.

HI,

Would suggest to share server A directory to server B as it's local directory using NFS. This way it would prevent you from running cronjobs. Let me know if you need some guidelines how to make this as NFS dir.

Joey

Just starting to learn thru this forum
Sanjay_6
Honored Contributor

Re: Linking a file on different server.

Hi Gulam,

Don't think you can do that until you mount the remote directory as a NFS filesystem. If you do so, you can use "ln" to link the file.

Hope this helps.

Regds
Darrell Allen
Honored Contributor

Re: Linking a file on different server.

Hi Gulam,

The following thread seems similar to your issue:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x7bc9f715edc6d5118ff10090279cd0f9,00.html

You might want to look into rdist or if you want to send files both ways, rsync. Both are available at HP software porting and archive centers. One is http://hpux.cs.utah.edu/

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
Uday_S_Ankolekar
Honored Contributor

Re: Linking a file on different server.

Hi,

NFS as a local mount would be the best way to do it.

-USA..
Good Luck..
Bernie Vande Griend
Respected Contributor

Re: Linking a file on different server.

Your only option to link them would be to use NFS and mount the filesystem/directory on the other server.
I am not a fan of NFS though and would not recommend doing this is this was the only reason you needed NFS. NFS has security concerns, can lead to reliability issues if the NFS server machine goes down or is having problems. It also doesn't work well over a WAN unless the connection is very fast and consistent.
There is a neat little perl script called Mirror that I would probably use for this. It checks files or directories on 2 servers and keeps them in sync.
ftp://src.doc.ic.ac.uk/computing/archiving/mirror/
Ye who thinks he has a lot to say, probably shouldn't.