484.Which steps are mandatory to enable Direct NFS?
1. Mount all required file systems using the kernel NFS driver.
2. Create an oranfstab file containing the attributes for each NFS server to be accessed using Direct NFS.
3. Replace the ODM library libodm11.so_stub with libodm11.so.
A. 2 and 3
B. 1 and 3
C. 1 and 2
D. 1, 2 and 3
Answer: B
原答案选B,个人认为选A
To enable Direct NFS Client, you must add an oranfstab
file to Oracle_home
\dbs
. When oranfstab
is placed in this directory, the entries in this file are specific to one particular database. Direct NFS Client searches for the mount point entries as they appear in oranfstab
. Direct NFS Client uses the first matched entry as the mount point.
Complete the following procedure to enable Direct NFS Client:
-
Create an
oranfstab
file with the following attributes for each NFS server accessed by Direct NFS Client:-
server
: The NFS server name. -
path
: Up to four network paths to the NFS server, specified either by internet protocol (IP) address, or by name, as displayed using theifconfig
command on the NFS server. -
local
: Up to 4 network interfaces on the database host, specified by IP address, or by name, as displayed using theipconfig
command on the database host. -
export
: The exported path from the NFS server. Use a UNIX-style path. -
mount
: The corresponding local mount point for the exported volume. Use Windows-style path. -
mnt_timeout
: (Optional) Specifies the time (in seconds) for which Direct NFS Client should wait for a successful mount before timing out. The default timeout is 10 minutes (600). -
management
: Enables Direct NFS Client to use the management interface for SNMP queries. You can use this parameter if SNMP is running on separate management interfaces on the NFS server. The default value is theserver
parameter value. -
community
: Specifies the community string for use in SNMP queries. Default value ispublic
. -
uid
: (Optional) The UNIX user ID to be used by Direct NFS Client to access all NFS servers listed inoranfstab
. The default value isuid:65534
, which corresponds touser:nobody
on the NFS server. -
gid
: (Optional) The UNIX group ID to be used by Direct NFS Client to access all NFS servers listed inoranfstab
. The default value isgid:65534
, which corresponds togroup:nogroup
on the NFS server.
The mount point specified in the
oranfstab
file represents the local path where the database files would reside normally, as if Direct NFS Client was not used. For example, if the location for the data files if the database did not use Direct NFS Client would beC:\app\oracle\oradata\orcl
directory, then you specifyC:\app\oracle\oradata\orcl
for the NFS virtual mount point in the correspondingoranfstab
file.Example 3-1 and Example 3-2 provide examples of how Direct NFS Client attributes can be used in an
oranfstab
file.Note:
-
Direct NFS Client ignores a
uid
orgid
value of0
. -
The exported path from the NFS server must be accessible for
read/write/execute
by the user with theuid
,gid
specified inoranfstab
. If neitheruid
norgid
is listed, then the exported path must be accessible by the user withuid:65534
andgid:65534
.
-
-
Replace the standard Oracle Disk Manager (ODM) library,
oraodm11.dll
, with the ODM NFS library.Oracle Database uses the ODM library,
oranfsodm11.dll
, to enable Direct NFS Client. To replace the ODM library, complete the following steps:-
Change directory to
Oracle_home
\bin
. -
Shut down the Oracle Database instance on a node using the Server Control Utility (SRVCTL).
-
Enter the following commands:
copy oraodm11.dll oraodm11.dll.orig copy /Y oranfsodm11.dll oraodm11.dll
-
Restart the Oracle Database instance using SRVCTL.
-
Repeat Step a to Step d for each node in the cluster.
-