Académique Documents
Professionnel Documents
Culture Documents
1) Verify the Oracle OS user on all the nodes (NFS server & Client nodes) has the same OS id
and group id:
NFS server:
DB11G:oracle>hostname
dbaasm.us.oracle.com
DB11G:oracle>id
uid=501(oracle) gid=501(oinstall)
groups=501(oinstall),502(dba),503(oper),505(asmadmin)
context=user_u:system_r:unconfined_t
Client node:
DB11G:oracle>hostname
asmstorage.us.oracle.com
DB11G:oracle>id
uid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba),503(oper)
context=user_u:system_r:unconfined_t
2) On dbaasm.us.oracle.com (NFS server), as root, create the directory for the oracle files and
set the ownership of this directory to this UID and the GID:
/oraclenfs *(rw,sync,all_squash,anonuid=501,anongid=501)
6) Verify that the /oraclenfs directory was correctly exported (NFS server):
7.2) Update the /etc/fstab file to mount the /nfsdir during the reboot (client node):
DB11G:oracle>hostname
asmstorage.us.oracle.com
DB11G:oracle>pwd
/nfsdir
DB11G:oracle>touch testfile
DB11G:oracle>ls -l testfile
-rw-r--r-- 1 oracle oinstall 0 Mar 6 2009 testfile
========================================
DB11G:oracle>hostname
dbaasm.us.oracle.com
DB11G:oracle>pwd
/oraclenfs
DB11G:oracle>ls -l
total 4
-rw-r--r-- 1 oracle oinstall 0 Mar 6 10:14 testfile
Note 1: Direct NFS Client can use a new configuration file oranfstab or the mount tab file
(/etc/mtab on Linux) to determine the mount point settings for NFS storage devices.
Note 2: Direct NFS searches for mount entries in the following order:
i. $ORACLE_HOME/dbs/oranfstab
ii. /etc/oranfstab
iii. /etc/mtab
$ORACLE_HOME/dbs/oranfstab
server: dbaasm <=== NFS server Host name
path: 10.141.161.150 <--- First path to NFS server ie NFS server NIC
local: 10.141.161.151 <--- First client-side NIC
path: 10.141.161.150 <--- Second path to NFS server ie NFS server NIC (For load balance
purpose)
local: 10.141.161.151 <--- Second client-side NIC (For load balance purpose)
export: /oraclenfs mount: /nfsdir
DB11G:oracle>hostname
asmstorage.us.oracle.com
DB11G:oracle>vi $ORACLE_HOME/dbs/oranfstab
server: dbaasm
path: 10.141.161.150
local: 10.141.161.151
path: 10.141.161.150
local: 10.141.161.151
export: /oraclenfs mount: /nfsdir
DB11G:oracle>echo $ORACLE_SID
DB11G
DB11G:oracle>sqlplus "/as sysdba"
Connected to:
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
8.4) The database instance (during the startup) should report, in the alert.log, that ODM is
enabled as follow:
========================================
.
.
Oracle instance running with ODM: Oracle Direct NFS ODM Library Version 2.0
.
.
========================================
SQL> !hostname
asmstorage.us.oracle.com
DB11G:oracle>hostname
dbaasm.us.oracle.com
DB11G:oracle>cd /oraclenfs
DB11G:oracle>ls -l
total 102520
-rw-r----- 1 oracle oinstall 104865792 Mar 6 10:56 dnfs_ts_01.dbf