热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

Oracle数据库使用NFS存储,启动报错提示无法锁定文件

Oracle报错信息:SQLgt;startupgt;ORA-10997:anotherstartupshutdownoperationofthisinstanceinprogressgt;ORA

Oracle报错信息: SQLgt; startup gt; ORA-10997: another startup/shutdown operation of this instance inprogress gt; ORA

Oracle报错信息:

SQL> startup

> ORA-10997: another startup/shutdown operation of this instance inprogress

> ORA-09968: unable to lock file

> Linux-x86_64 Error: 37: No locks available

> Additional information: 64

message文件报错信息:(192.168.0.200为netapp存储地址)

> Jun 6 18:21:19 eccdemo sm-notify[3707]: Unable to notify bogon, giving up

> Jun 6 18:39:18 eccdemo rpc.statd[3705]: No canonical hostname found for 192.168.0.200

> Jun 6 18:39:18 eccdemo rpc.statd[3705]: STAT_FAIL to eccdemo for SM_MON of 192.168.0.200

> Jun 6 18:39:18 eccdemo kernel: lockd: cannot monitor 192.168.0.200

> Jun 6 18:39:33 eccdemo rpc.statd[3705]: No canonical hostname found for 192.168.0.200

> Jun 6 18:39:33 eccdemo rpc.statd[3705]: STAT_FAIL to eccdemo for SM_MON of 192.168.0.200

> Jun 6 18:39:33 eccdemo kernel: lo

> ckd: cannot monitor 192.168.0.200

解决办法:

按照oracle官方文档,需要增加挂载参数

mount -t nfs -o rw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,tcp,actimeo=0 192.168.0.200:/vol/oraclenfs /oracle

具体挂载参数需要参考官方文档,每个版本是不一样的。

RAC

In the table below

  • Binaries is the shared mount points where the Oracle Home and CRS_HOME is installed.

  • Datafiles includes Online Logs, Controlfile and Datafiles

  • nfsvers and vers are identical on those OS platforms that has nfsvers. The ver option is an alternative to the nfsvers option. It is included for compatibility with other operating systems

  • Please note that the mount options on each of the following cells are applicable only to those type of files listed in the column heading.

  • For RMAN backup sets, image copies, and Data Pump dump files, the "NOAC" mount option should not be specified - that is because RMAN and Data Pump do not check this option and specifying this can adversely affect performance.

  • Operating System

    Mount options for Binaries ##

    Mount options for Oracle Datafiles Mount options for CRS Voting Disk and OCR

    Sun Solaris *

    rw,bg,hard,nointr,rsize=32768,
    wsize=32768,proto=tcp,noac,

    vers=3,suid

    rw,bg,hard,nointr,rsize=32768,
    wsize=32768,proto=tcp,noac,
    forcedirectio, vers=3,suid rw,bg,hard,nointr,rsize=32768,
    wsize=32768,proto=tcp,vers=3,
    noac,forcedirectio

    AIX (5L) **

    rw,bg,hard,nointr,rsize=32768,
    wsize=32768,proto=tcp,

    vers=3,timeo=600

    cio,rw,bg,hard,nointr,rsize=32768,
    wsize=32768,proto=tcp,noac,
    vers=3,timeo=600

    cio,rw,bg,hard,intr,rsize=32768,
    wsize=32768,tcp,noac,
    vers=3,timeo=600

    HPUX 11.23 *** -- rw,bg,vers=3,proto=tcp,noac,
    hard,nointr,timeo=600,
    rsize=32768,wsize=32768,suid rw,bg,vers=3,proto=tcp,noac,
    forcedirectio,hard,nointr,timeo=600,
    rsize=32768,wsize=32768,suid rw,bg,vers=3,proto=tcp,noac,
    forcedirectio,hard,nointr,timeo=600
    ,rsize=32768,wsize=32768,suid

    Windows Not Supported Not Supported Not Supported

    Linux x86
    #
    ****

    rw,bg,hard,nointr,rsize=32768,
    wsize=32768,tcp, vers=3,
    timeo=600, actimeo=0

    rw,bg,hard,nointr,rsize=32768,
    wsize=32768,tcp,actimeo=0,
    vers=3,timeo=600

    rw,bg,hard,nointr,rsize=32768,
    wsize=32768,tcp,noac,actimeo=0,
    vers=3,timeo=600

    Linux x86-64 #
    **** rw,bg,hard,nointr,rsize=32768,
    wsize=32768,tcp,vers=3,
    timeo=600, actimeo=0 rw,bg,hard,nointr,rsize=32768,
    wsize=32768,tcp,actimeo=0,
    vers=3,timeo=600 rw,bg,hard,nointr,rsize=32768,
    wsize=32768,tcp,noac,vers=3,
    timeo=600,actimeo=0

    Linux - Itanium rw,bg,hard,nointr,rsize=32768,
    wsize=32768,tcp,vers=3,
    timeo=600, actimeo=0 rw,bg,hard,nointr,rsize=32768,
    wsize=32768,tcp,actimeo=0,
    vers=3,timeo=600 rw,bg,hard,nointr,rsize=32768,
    wsize=32768,tcp,noac,vers=3,
    timeo=600,actimeo=0

    * NFS mount option “forcedirectio” is required on Solaris platforms when mounting the OCR/CRS files when using Oracle 10.1.0.4 or 10.2.0.2 or later (Oracle unpublished bug 4466428)
    ** AIX is only supported with NAS on AIX 5.3 TL04 and higher with Oracle 10.2.0.1 and later (NetApp)
    *** NAS devices are only supported with HPUX 11.23 or higher ONLY
    **** As per BUG 11812928, the 'intr' & 'nointr' are deprecated in OEL 5.6 kernels and up including Oracle Linux 6. It is harmless to still include it, but the "NFS: ignoring mount option: nointr" will appears. This message can be ingnored.


    # These mount options are for Linux kernels 2.6 and above for older kernels please check Note 279393.1

    Due to Unpublished bug 5856342, it is necessary to use the following init.ora parameter when using NAS with all versions of RAC on Linux (x86 & X86-64 platforms) until 10.2.0.4. This bug is fixed and included in 10.2.0.4 patchset.
    filesystemio_optiOns= DIRECTIO

    Single Instance

    Operating System

    Mount options for Binaries Mount options for Oracle Datafiles

    Sun Solaris *
    (8, 9, 10)

    rw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,proto=tcp,suid

    rw,bg,hard,rsize=32768,wsize=32768,vers=3,[forcedirectio or llock],nointr,proto=tcp,suid

    AIX (5L) **

    rw,bg,hard,rsize=32768,wsize=32768,vers=3,intr,timeo=600,proto=tcp

    rw,bg,hard,rsize=32768,wsize=32768,vers=3,cio,intr,timeo=600,proto=tcp

    HPUX 11.23 **** rw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,proto=tcp,suid rw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,proto=tcp, suid, forcedirectio

    Windows Not Supported Not Supported

    Linux x86
    # rw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,tcp rw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,tcp,actimeo=0*

    Linux x86-64 # rw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,tcp rw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,tcp,actimeo=0*

    Linux - Itanium rw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,tcp rw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,tcp

    * actime=0 or noac can be used


    推荐阅读
    • 本文讨论了在数据库打开和关闭状态下,重新命名或移动数据文件和日志文件的情况。针对性能和维护原因,需要将数据库文件移动到不同的磁盘上或重新分配到新的磁盘上的情况,以及在操作系统级别移动或重命名数据文件但未在数据库层进行重命名导致报错的情况。通过三个方面进行讨论。 ... [详细]
    • 本文介绍了数据库的存储结构及其重要性,强调了关系数据库范例中将逻辑存储与物理存储分开的必要性。通过逻辑结构和物理结构的分离,可以实现对物理存储的重新组织和数据库的迁移,而应用程序不会察觉到任何更改。文章还展示了Oracle数据库的逻辑结构和物理结构,并介绍了表空间的概念和作用。 ... [详细]
    • 本文介绍了在Hibernate配置lazy=false时无法加载数据的问题,通过采用OpenSessionInView模式和修改数据库服务器版本解决了该问题。详细描述了问题的出现和解决过程,包括运行环境和数据库的配置信息。 ... [详细]
    • Metasploit攻击渗透实践
      本文介绍了Metasploit攻击渗透实践的内容和要求,包括主动攻击、针对浏览器和客户端的攻击,以及成功应用辅助模块的实践过程。其中涉及使用Hydra在不知道密码的情况下攻击metsploit2靶机获取密码,以及攻击浏览器中的tomcat服务的具体步骤。同时还讲解了爆破密码的方法和设置攻击目标主机的相关参数。 ... [详细]
    • 本文详细介绍了Linux中进程控制块PCBtask_struct结构体的结构和作用,包括进程状态、进程号、待处理信号、进程地址空间、调度标志、锁深度、基本时间片、调度策略以及内存管理信息等方面的内容。阅读本文可以更加深入地了解Linux进程管理的原理和机制。 ... [详细]
    • Webmin远程命令执行漏洞复现及防护方法
      本文介绍了Webmin远程命令执行漏洞CVE-2019-15107的漏洞详情和复现方法,同时提供了防护方法。漏洞存在于Webmin的找回密码页面中,攻击者无需权限即可注入命令并执行任意系统命令。文章还提供了相关参考链接和搭建靶场的步骤。此外,还指出了参考链接中的数据包不准确的问题,并解释了漏洞触发的条件。最后,给出了防护方法以避免受到该漏洞的攻击。 ... [详细]
    • 本文介绍了一个在线急等问题解决方法,即如何统计数据库中某个字段下的所有数据,并将结果显示在文本框里。作者提到了自己是一个菜鸟,希望能够得到帮助。作者使用的是ACCESS数据库,并且给出了一个例子,希望得到的结果是560。作者还提到自己已经尝试了使用"select sum(字段2) from 表名"的语句,得到的结果是650,但不知道如何得到560。希望能够得到解决方案。 ... [详细]
    • 本文介绍了Linux系统中正则表达式的基础知识,包括正则表达式的简介、字符分类、普通字符和元字符的区别,以及在学习过程中需要注意的事项。同时提醒读者要注意正则表达式与通配符的区别,并给出了使用正则表达式时的一些建议。本文适合初学者了解Linux系统中的正则表达式,并提供了学习的参考资料。 ... [详细]
    • Ubuntu 9.04中安装谷歌Chromium浏览器及使用体验[图文]
      nsitionalENhttp:www.w3.orgTRxhtml1DTDxhtml1-transitional.dtd ... [详细]
    • 高质量SQL书写的30条建议
      本文提供了30条关于优化SQL的建议,包括避免使用select *,使用具体字段,以及使用limit 1等。这些建议是基于实际开发经验总结出来的,旨在帮助读者优化SQL查询。 ... [详细]
    • 如何在服务器主机上实现文件共享的方法和工具
      本文介绍了在服务器主机上实现文件共享的方法和工具,包括Linux主机和Windows主机的文件传输方式,Web运维和FTP/SFTP客户端运维两种方式,以及使用WinSCP工具将文件上传至Linux云服务器的操作方法。此外,还介绍了在迁移过程中需要安装迁移Agent并输入目的端服务器所在华为云的AK/SK,以及主机迁移服务会收集的源端服务器信息。 ... [详细]
    • Android源码深入理解JNI技术的概述和应用
      本文介绍了Android源码中的JNI技术,包括概述和应用。JNI是Java Native Interface的缩写,是一种技术,可以实现Java程序调用Native语言写的函数,以及Native程序调用Java层的函数。在Android平台上,JNI充当了连接Java世界和Native世界的桥梁。本文通过分析Android源码中的相关文件和位置,深入探讨了JNI技术在Android开发中的重要性和应用场景。 ... [详细]
    • Linux如何安装Mongodb的详细步骤和注意事项
      本文介绍了Linux如何安装Mongodb的详细步骤和注意事项,同时介绍了Mongodb的特点和优势。Mongodb是一个开源的数据库,适用于各种规模的企业和各类应用程序。它具有灵活的数据模式和高性能的数据读写操作,能够提高企业的敏捷性和可扩展性。文章还提供了Mongodb的下载安装包地址。 ... [详细]
    • CentOS 7部署KVM虚拟化环境之一架构介绍
      本文介绍了CentOS 7部署KVM虚拟化环境的架构,详细解释了虚拟化技术的概念和原理,包括全虚拟化和半虚拟化。同时介绍了虚拟机的概念和虚拟化软件的作用。 ... [详细]
    • Ubuntu安装常用软件详细步骤
      目录1.GoogleChrome浏览器2.搜狗拼音输入法3.Pycharm4.Clion5.其他软件1.GoogleChrome浏览器通过直接下载安装GoogleChro ... [详细]
    author-avatar
    c_陈可儿
    这个家伙很懒,什么也没留下!
    PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
    Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有