On the Oracle database server, mount the NAS device.
Examples
Add the following command to the /etc/fstab file to mount the share at boot time on a Red Hat Linux system:
//CIFS_server/share_name /var/opt/etl/load cifs username=<userName>,password='<password>',_netdev,auto 0 0
Run the following command to mount the shares specified in the fstab file:
$ mount –a
Another way to test at runtime is with the following command template. (The mount does not persist after a system reboot). Depending on your system, you may need to replace mount –t cifs
with mount.cifs
.
# mount -t cifs //<server/shareName> /var/opt/etl/load -o username=<shareUser>,password=<sharePassword>,domain=<domainName>
4 Comments
Application Engineering
for Redhat 6 we used the following change to have the mount persist
instead of -o
we used
_netdev,username=
Julien Flamez
Thanks!
_netdev is a very pertinent enhancer option (it tells the mount depends on networking so should wait for such).
The reference we've put are minimalist to get a mount up. Ideally _netdev and few others should be added, but we'd need to test and clarify which are must and optional...
Thanks again, this may help others.
Katherine Welford
Daniel Diaz