[转]Oracle 11g Direct NFS

Direct NFS Client
NAS storage devices use
the Network File System (NFS) to access data. In Oracle Database 10g, NAS
devices were accessed using operating system–specific kernel NFS drivers. This
required that you tune many parameters, and the configuration varied across the
platforms. The NFS clients tended to be inconsistent across the different
operating system platforms. Manageability wasn’t easy because you had to contend
with over 20 configuration parameters.
In Oracle Database 11g, the Oracle NFS
implements the NFS Version 3 protocol in the Oracle RDBMS kernel. Implementing
the Oracle Direct NFS offers the following benefits:
Avoids the bottlenecks
and resource constraints by avoiding the kernel NFS layer.
Provides a common
NFS interface for Oracle for use on all operating system platforms and supported
NFS servers.
Provides load balancing across multiple connections to the NFS
servers, thus improving performance.
Performance is predictable because the
Oracle NFS implementation enables you to completely control the input/output
path to the Network File Servers.
Easier management including simpler
configuration and superior diagnosability.
Configuring Direct
NFS

You don’t have to configure much to implement Oracle
Direct NFS Client. Direct NFS searches for the mount point entries in the
following
order:
$ORCLE_HOME/dbs/oranfstab
/etc/orafnstab
/etc/mtab
The
database uses the first match as the mount point. Oracle always requires that
even when you use Direct NFS, the kernel NFS system must perform the mounting.
For this reason, Oracle will always crosscheck the information about mount
points in the oranfstab file with the operating system NFS mount points. If
there’s a mismatch, Direct NFS can’t act as a client to the NFS server and stops
serving the NFS server.
Enabling Direct
NFS

You must follow these steps to enable Direct
NFS:
1.You must mount all NFS mount points with your kernel NFS client. You
must make sure you mount any file systems you plan on using through ODM NFS and
make the file systems available to Oracle over regular NFS mounts.
2.If you
want to specify Oracle-specific options to Direct NFS, you’ll need an oranfstab
file. This is an optional step. The oranfstab file must have the following
attributes so the database can access all NFS servers through Direct
NFS:
server: Provides the NFS server name.
mount: Provides the local mount
point for the NFS server.
export: Provides the exported path from the NFS
server.
path: Provides the network path to the NFS server. You can specify up
to four network paths with an IP address or by name. Using multiple network
paths enables the Direct NFS client to use an alternate path if the current path
fails. Multiple paths also enable the client to perform load
balancing.
Mnt_timeout: Specifies (in seconds) the time Direct NFS Client
should wait for a successful mount before timing out. This parameter is
optional. The default timeout is 10 minutes (600).
Dontroute: Specifies that
outgoing messages should not be routed by the operating system, but instead sent
using the IP address to which they are bound. Note that this POSIX option
sometimes does not work on Linux systems with multiple paths in the same
subnet.
A typical oranfstab file looks similar to the
following:
server: TestServer1
path:
130.33.34.11
export: /vol/oradata1 
mount:
/mnt/oradata1
In order to remove an NFS path that the database is
using currently, you must restart the database.
3. You must replace the
standard ODM library, libnfsodm10.so, with the ODM NFS library, as shown
here:
$ cd $ORACLE_HOME/lib
$ cp libodmll.so
libodmll.so_stub
$ ln -s libnfsodm11.so
libodm11.so
You can disable the Direct NFS client by using any of the
following three methods.
Delete the oranfstab file.
Replace the ODM NFS
library with the stub libodm11.so file.
Modify the oranfstab file by deleting
the specific NFS server or the network paths to the NFS server.
If the
database can’t open the NFS server using Direct NFS, it will use the operating
system kernel client instead.
Monitoring Direct NFS
You can query the
following views in order to manage Direct NFS:
V$DNFS_STATS Shows performance
statistics for Direct NFS.
V$DNFS_SERVERS Shows servers accessed by Direct
NFS.
V$DNFS_FILES Shows files currently using Direct NFS.
V$DNFS_CHANNELS
Shows the open network paths being used by Direct NFS.

参考至:
《McGraw.Hill.OCP.Oracle.Database.11g.New.Features.for.Administrators.Exam.Guide.Apr.2008》           
http://docs.oracle.com/cd/E11882_01/install.112/e41961/storage.htm#CWLIN279

http://czmmiao.iteye.com/blog/1965839

时间: 2024-08-01 22:53:02

[转]Oracle 11g Direct NFS的相关文章

oracle 11G direct path read 很美也很伤人

direct path read 在11g中,全表扫描可能使用direct path read方式,绕过buffer cache,这样的全表扫描就是物理读了. 在10g中,都是通过gc buffer来读的,所以不存在direct path read的问题. direct path read较高的可能原因有: 1. 大量的磁盘排序操作,order by, group by, union, distinct, rollup, 无法在PGA中完成排序,需要利用temp表空间进行排序. 当从临时表空间中

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境二

以下检查,最好在二台机器上都进行操作: 检查crs状态: [[email protected] ~]$ crsctl check crs CRS-4638: Oracle High Availability Servicesis online CRS-4537: Cluster Ready Services is online CRS-4529: Cluster Synchronization Servicesis online CRS-4533: Event Manager is online

Centos6.5 + Oracle 11g r2 + nfs搭建RAC环境一

环境要求: 1.2台系统为Centos6.5的机器,其中 1台做nfs(硬盘大小至少4T) 2. 每台机器至少2块网卡 3. 准备5个可用的IP地址(一个为scan,二台配置各配置public和private地址) 4. 内存至少2G以下内存,建议使用4G或者更高 地址规划: 第一台主机:rac1  网卡eth0 IP地址:172.16.0.1/24  网卡eth1地址: 192.168.1.192/24 第一台主机:rac1  网卡eth0 IP地址:172.16.0.2/24  网卡eth1

ORACLE Direct NFS安装

DNFS由Oracle 11g引入的新特性,旨在提高系统自带NFS的IO性能.DNFS相对于系统级NFS的降低了网络和IO传输的消耗.普通NFS的IO能力不高的原因是:1.低效的数据传输,多链路实现较难:2.系统的RPC堆栈IO以队列方式实现,限制了发送到TCP层的数据:3.oracle实例到nfs客户端的IO传输效率低下; NFS与DNFS数据传输的路径:普通NFS:DNFS可以看到dnfs比nfs少了TCP->IP的数据传输阶段,直接通过RPC进行连接.安装过程: 环境 NFS SERVER

Oracle 11g新特性direct path read引发的系统停运故障诊断处理

黎俊杰 | 2016-07-28 14:37 声明:部分表名为了脱敏而用XX代替 1.故障现象 (1)一个业务系统输入用户名与密码后无法进入首页,表现为一直在运行等待,运行缓慢 (2)整个系统无法正常使用,接近停运状态 2.故障解决方法 调整数据库参数alter system setevent='10949 trace name context forever, level 1'来关闭"direct path read"(直接路径读)特性,使SQL语句可以从缓存中查询数据,达到降低I/

Oracle 11g Articles

发现一个比较有意思的网站,http://www.oracle-base.com/articles/11g/articles-11g.php Oracle 11g Articles Oracle Database 11g: New Features For Administrators OCP Exam Articles Oracle Database 11g Release 1: Miscellaneous Articles Oracle Database 11g Release 2: Misc

Oracle 11g笔记——RAC简介、意义

一.RAC简介 1.高可用性 是指整合了硬件和软件技术的综合解决方案.它保证在不丢失数据的前提下,应用程序(服务)能够不间断运行,也就是服务的有效性或服务的可持续访问性. 特征:可靠性:可靠的硬件和可靠的软件 可恢复性:提供各种机制,确保能从失败中恢复丢失的数据和失败的进程 错误自动检测:能自动探测各种错误,并采取相应措施 可持续性:当某些组件失败时,仍然能够继续对外界提供服务 Oracle HA解决方案:Oracle Golden Gate.Oracle Data Guard.Oracle S

Oracle 11g R2 RAC RMAN备份脚本示例

一.将RAC切换成归档模式 1. 修改数据库的归档模式,通常在安装RAC的时候都会配置归档并且使用闪回区,已经配置过归档下面的方式可以略过. SQL> alter system set cluster_database=false scope=spfile sid='*'; 2. 关闭所有实例(两边都要shutdown) SQL> shutdown immediate 或直接关闭所有实例   $ srvctl stop database -d orcl 3. 在任意一个实例上将数据库启动到mo

关于oracle 11g ASM使用时要注意的点

1. 配置最少2个data group (datagroup 存放数据文件: fra datagroup 作为闪回区方归档 ,备份等)主要考虑的是io 性能问题 2. oracle 官方文档建议每个dg 最少4块盘且大小,性能一样.否者io 将会受限于速度最慢的那个盘 3. 硬件raid 条带大小取2的幂,且要<= asm au size 4.支持存储: Disk Partition A disk partition can be the entire disk drive or a secti