ImageVerifierCode 换一换
格式:DOC , 页数:15 ,大小:58KB ,
资源ID:9010216      下载积分:10 金币
快捷注册下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

开通VIP
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.zixin.com.cn/docdown/9010216.html】到电脑端继续下载(重复下载【60天内】不扣币)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

开通VIP折扣优惠下载文档

            查看会员权益                  [ 下载后找不到文档?]

填表反馈(24小时):  下载求助     关注领币    退款申请

开具发票请登录PC端进行申请

   平台协调中心        【在线客服】        免费申请共赢上传

权利声明

1、咨信平台为文档C2C交易模式,即用户上传的文档直接被用户下载,收益归上传人(含作者)所有;本站仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。所展示的作品文档包括内容和图片全部来源于网络用户和作者上传投稿,我们不确定上传用户享有完全著作权,根据《信息网络传播权保护条例》,如果侵犯了您的版权、权益或隐私,请联系我们,核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
2、文档的总页数、文档格式和文档大小以系统显示为准(内容中显示的页数不一定正确),网站客服只以系统显示的页数、文件格式、文档大小作为仲裁依据,个别因单元格分列造成显示页码不一将协商解决,平台无法对文档的真实性、完整性、权威性、准确性、专业性及其观点立场做任何保证或承诺,下载前须认真查看,确认无误后再购买,务必慎重购买;若有违法违纪将进行移交司法处理,若涉侵权平台将进行基本处罚并下架。
3、本站所有内容均由用户上传,付费前请自行鉴别,如您付费,意味着您已接受本站规则且自行承担风险,本站不进行额外附加服务,虚拟产品一经售出概不退款(未进行购买下载可退充值款),文档一经付费(服务费)、不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
4、如你看到网页展示的文档有www.zixin.com.cn水印,是因预览和防盗链等技术需要对页面进行转换压缩成图而已,我们并不对上传的文档进行任何编辑或修改,文档下载后都不会有水印标识(原文档上传前个别存留的除外),下载后原文更清晰;试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓;PPT和DOC文档可被视为“模板”,允许上传人保留章节、目录结构的情况下删减部份的内容;PDF文档不管是原文档转换或图片扫描而得,本站不作要求视为允许,下载前可先查看【教您几个在下载文档中可以更好的避免被坑】。
5、本文档所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用;网站提供的党政主题相关内容(国旗、国徽、党徽--等)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
6、文档遇到问题,请及时联系平台进行协调解决,联系【微信客服】、【QQ客服】,若有其他问题请点击或扫码反馈【服务填表】;文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“【版权申诉】”,意见反馈和侵权处理邮箱:1219186828@qq.com;也可以拔打客服电话:0574-28810668;投诉电话:18658249818。

注意事项

本文(oracle和OS内核参数匹配问题.doc)为本站上传会员【pc****0】主动上传,咨信网仅是提供信息存储空间和展示预览,仅对用户上传内容的表现方式做保护处理,对上载内容不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知咨信网(发送邮件至1219186828@qq.com、拔打电话4009-655-100或【 微信客服】、【 QQ客服】),核实后会尽快下架及时删除,并可随时和客服了解处理情况,尊重保护知识产权我们共同努力。
温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载【60天内】不扣币。 服务填表

oracle和OS内核参数匹配问题.doc

1、 oracle和OS内核参数匹配问题 我最近解决了一些这方面的问题,并在网络上查询了一些相关资料终于发现一个比较全面解释这类问题的官方文档。本来打算当一次活雷锋全文翻译的,后来考虑自己英文一般,并且对于其中一些OS相关的知识也没有深入了解。就保留英文大家自己去领会其中的要领,自己简单总结了一下解决这类问题的关键点并整理一下英文原文。这个文档是oracle官方技术支持网站Metalink的资料,里面引用了一些其它的文档例如NOTE:115235.1 。 对于unix操作系统中Semaphores问题只是针对和oracle相关问题作一些解释。对于信号量和共享内存段参数在不同的系

2、统中可能有不同的参数对应,具体你去查询对应的OS文档。 在解决这类问题的时候我发现大部分问题都是因为在安装oracle时没有仔细阅读针对指定OS的安装说明造成安装实例失败,一般oracle的官方文档都详细说明在对应操作系统上如何设置这些内核参数。还有就是因为其他原因OS管理人员调整了参数,但是没有通知DBA,一旦oracle崩溃再次重新启动的时候就可能因为新的内核参数不合适而无法启动。 如果是oracle意外停机之后重新启动不成功,并出现类似ora-27123的错误那么一定要询问是否有其他人修改过内核参数,有时候你没有修改并不代表其他人没有修改哟,我遇到过不少这样的情况!    

3、1、与oracle相关的信号量和共享内存段参数 一般unix系统中和信号量相关的是三个参数SEMMNI SEMMSL SEMMNS。他们相互关联决定系统可以分配的信号量。Oracle使用信号量完成内部进程之间的通信。 关于共享内存段使用shmmx参数进行总体控制。它指定了系统可以分配的共享内存段最大大小,实际并没有分配那么多只是给出一个可以使用的最大限制。 对于类核参数的修改必须要重新启动系统之后才会生效。 2、出现信号量和共享内存段相关问题的情况 oracle只有在startup nomount的时候才会请求os的这些资源,用于建立SGA和启动后台进

4、程。 有些情况下因为oracle崩溃之后os没有清除oracle分配的SGA,也可能造成共享内存段不足,需要人工清除。 3、如何解决相关的问题 你可以简单的修改init参数减少oracle对共享内存段和信号量的需求。 对于控制信号量的三个参数SEMMNI SEMMSL SEMMNS 。最终可以使用的信号量由下面公式 提取 (semmsl * semmni) 或者 semmns中最小的值。 例如在linux下. 进入目录/proc/sys/kernel;用cat命令或more命令查看semaphore当前参数的值: cat sem 命令运行后

5、将会出现如下的结果: 250 32000 32 128 其中, 250 是参数SEMMSL的值,32000是参数SEMMNS的值, 32是参数SEMOPM的值,而128则是参数SEMMNI的值。250*128=32000 对于oracle7需要信号量的设置等于init中processes的设置。对于8i 9i需要等于processes*2。 对于信号量参数的设定一定要小心,因为不正确的设置可能会让系统使用默认值。这个值一般比oracle系统要求的低。在HP unix上遇到过这样的问题,当时在参数配置的时候指定两个不同的sem-mni造成系统使用默认的设置。 对于共享内存段,

6、系统的设置至少要等于SGA的大小。   Semaphores and Shared Memory   BULLETIN Status: PUBLISHED Content Type: TEXT/PLAIN Creation Date: 05-AUG-2001 Last Revision Date: 05-AUG-2002 PURPOSE------- To provide an overview of shared memory and semaphores, answer common questions related to these OS resources an

7、d provide links to more detailed information. SCOPE & APPLICATION ------------------- This document is intended for anyone who is responsible for creating or administering an Oracle Database. It is intended to compliment the semaphore and shared memory information already provided in the Oracle

8、 Installation Guides. 关于信号量和共享内存段的背景知识 ---------------------------------------------------------------------------------- Semaphores and shared memory are two very distinct sets of Operating System resources. Semaphores are a system resource that Oracle utilizes for interprocess communication

9、 and they occupy a relatively small memory space, while shared memory is utilized to contain the SGA and can garner a large portion of physical memory. How many of these resources are available and how they are allocated is controlled by the configuration of the operating system kernel('kernel' re

10、ferring to the centralized core components of the underlying operating system). There are three OS kernel parameters that work together to limit semaphore allocation and one OS kernel paramater that dictates the maximum size of a shared memory segment. Operating System kernel parameters gen

11、erally cannot be tuned on the fly. If they are modified, the changes will not take place until the system is rebooted. Remember also that the kernel parameters related to semaphores and shared memory represent 'high-water' marks. Meaning that the OS will not automatically allocate a given amoun

12、t, but will allow up to that given amount to be available upon request. 什么时候信号量和共享内存段问题最有可能发生 ---------------------------------------------------------------------------------- Both semaphore or shared memory errors appear primarily at instance startup (The 'startup nomount' stage specifi

13、cally). This is the only time that Oracle tries to acquire semaphores and shared memory for the instance. Errors related to semaphores or shared memory rarely appear during normal database operations. The most common circumstance in which these errors occur is during the creation of a new data

14、base. Sometimes when an Oracle instance crashes, however, it's shared memory segments may not be released by the OS. This limits the overall amount of shared memory available for the instance to start up again. In this case, you will need to remove those segments manually. 如何解决信号量和共享内存段问题: How

15、 to resolve semaphore and shared memory errors: ---------------------------------------------------------------------------------- In addressing both semaphore and shared memory errors at instance startup, there are two separate areas that should be considered for reconfiguration. The first an

16、d most simple fix is to modify the init.ora to reduce the number of semaphores or the amount of shared memory Oracle will try to grab at instance startup. If your situation requires that you not reduce the appropriate init.ora parameters, you will have to modify the operating system kernel to al

17、low the OS to provide more semaphores or allow larger shared memory segments. SEMAPHORES ================================================== ================================ IMPORTANT NOTE: ORACLE DOES NOT UTILIZE SEMAPHORES ON AIX OR DIGITAL/TRU64. 与信号量相关的的ORA错误 What kind of ORA errors ar

18、e related to semaphores? ---------------------------------------------------------------------------------- 'Out of memory' type errors are seldom related to semaphores. Error messages which reference a 'SEMM*****' function are related to semaphores. IMPORTANT NOTE: THESE ERRORS ONLY OCCUR AT I

19、NSTANCE STARTUP. ORA-7250 "spcre: semget error, unable to get first semaphore set." ORA-7279 "spcre: semget error, unable to get first semaphore set." ORA-7251 "spcre:semget error, could not allocate any semaphores." ORA-7252 "spcre: semget error, could not allocate any semaphores." ORA-7

20、339 "spcre: maximum number of semaphore sets exceeded." [NOTE:115235.1] Resolving ORA-7279 or ORA-27146 errors when starting instance VERY COMMON On Oracle8i and Oracle9i: ORA-3113 "end-of-file on communication channel" at instance startup. ORA-27146 "post/wait initialization failed"

21、[NOTE:115235.1] Resolving ORA-7279 or ORA-27146 errors when starting instance If you want a very specific explanation of causes for the above errors, refer to: [NOTE:15566.1] TECH Unix Semaphores and Shared Memory Explained However, while their exact cause varies, all these error messages ind

22、icate that your init.ora is configured to grab more semaphores than the OS has available. If you configure your OS as indicated in the following sections, you will not get any of the errors indicated above.   成功配置信号量的步骤 The Basic Steps to Semaphore Success: -----------------------------

23、 1. Understand The Basic Concept Behind Semaphores 2. Understand How Many Semaphores Your Oracle Instance(s) Will Attempt to Grab From The Operating System. 3. Configure Your OS Kernel To Accomodate all Your Oracle Instance(s) And also Allow

24、For Future Growth. [STEP 1] How are semaphores released by the OS for use by an application? ---------------------------------------------------------------------------------- There are 3 OS kernel parameters that work together to limit semaphore allocation. When an application requests semaph

25、ores, the OS releases them in 'sets'. Illustrated here as 2 sets: +---+ +---+ | | | | | | | | +---+ +---+ Controlled by SEMMNI -->OS limit on the Number of Identifiers or sets. Each set contains a tunable number of individual semaphores. Illustrated here as 2 semaphores per semaphore set: +

26、 +---+ | S | | S | S | | S | +---+ +---+ Controlled by SEMMSL -->The number of semaphores in an identifier or set.(Semaphore List) Ultimately however, the OS can limit the total number of semaphores available from the OS. Controlled by: SEMMNS --> The total Number of Semaphores allowe

27、d system wide. For instance: Let's say SEMMNI = 100000000 and SEMMSL= 100000000 while SEMMNS=10 Even though SEMMNI is 100000000 and SEMMSL is 100000000, the max # of semaphores available on your system will only be 10, because SEMMNS is set to 10. Inversely: Let's say SEMMNI = 10 and SEMMSL =

28、 10 while SEMMNS= 100000000000000000000000000 Because SEMMNI is 10 and SEMMSL is 10, the max # of semaphores avail on your system will only be 100 or (10 X 10), despite what SEMMNS is set too. THIS NOTION CAN BE SUMMARIZED BY THE FOLLOWING STATEMENT: The max # of semaphores that can be alloca

29、ted on a system will be the lesser of: (semmsl * semmni) or semmns. On HP: semmsl is hardcoded to 500. [NOTE:74367.1] HP-UX SEMMSL Kernel Parameter SEMMNI, SEMMSL & SEMMNS are the basic names for OS semaphore kernel parameters,the full name may vary depending on your OS. Consult your OS specific

30、Oracle Install guide. [NOTE:116638.1] Understanding and Obtaining Oracle Documentation) [STEP 2] How many semaphores will my Oracle instance(s) require? ---------------------------------------------------------------------------------- With Oracle7: The number of semaphores required by an in

31、stance is equal to the setting the 'processes' parameter in the init.ora for the instance. With Oracle8, Oracle8i and Oracle9i: The number of semaphores required by an instance is equal to 2 times the setting of the 'processes' parameter in the init.ora for the instance. Keep in mind, however,

32、that Oracle only momentarily grabs 2 X 'processes' then releases half at instance startup. This measure was apparently introduced to ensure Oracle could not exhaust a system of semaphores. Oracle may also grab a couple of additional semaphores per instance for internal use. [STEP 3] Configure

33、your OS kernel to accomodate all your Oracle instances. ---------------------------------------------------------------------------------- There seems to be some confusion of how to deal with lack of semaphore errors. The popular theory being that if Oracle cannot find enough semaphores on a sy

34、stem, increase semmns. This is not always the case, as illustrated in [STEP 1]. Once you have determined your semaphore requirements for Oracle and compensated for future growth, contact your System Administrator or OS vendor for assistance in modifying the OS kernel. What should I set 'semmni'

35、 'semmsl' & 'semmns' to? ---------------------------------------------------------------------------------- Oracle Support typically does not recommend specific values for semaphore kernel parameters. Instead, use the information provided in this document to set the parameters to values that are

36、 appropriate for your operating environment. For more info please look at the following note : [NOTE:15654.1] TECH: Calculating Oracle's SEMAPHORE Requirements 快速解决信号量问题 Quick fix for resolving lack of semaphore errors: -----------------------------------------------------------------------

37、 Reduce the number of semaphores Oracle requires from the OS. The first and most simple fix is to modify the init.ora to reduce the number of semaphores or the amount of shared memory Oracle will try to grab at instance startup. Keep in mind, with Oracle8, we grab 2 X 'processes' t

38、hen release half. This measure was apparently introduced to ensure Oracle could not exhaust a system of semaphores. 如何查找OS配置的信号量 How can I find out how my OS kernel is configured for semaphores? ---------------------------------------------------------------------------------- The files t

39、hat are used to tune kernel parameters varies depending on your Operating System. Consult your system administrator or OS vendor, because viewing the system file may not show accurate information about the runtime values. However, an important point to remember is that if a typographical error is

40、made while editing these files, the OS will defer to a default value which is usually to low to accomodate Oracle. So it's a good idea to check runtime values with utilities like '/etc/sysdef'. I've tuned my OS kernel parameters, but I am still having semaphore problems.... ------------------

41、 常见问题!! This may mean that you made a typographical error or did not rebuild your Operating System kernel correctly(if a typographical error is made while editing these files, the OS will defer to a default value which is usually to

42、low to accomodate Oracle). On Solaris, check current OS kernel values with this command: > /etc/sysdef|grep -i semm If these values do not reflect what you put in your 'system' file, you likely made a typographically error. On HP, be sure the OS kernel was rebuilt correctly and that the OS w

43、as booted off the correct file. Contact your System Administrator or HP for more information. 在Linux系统上 进入目录/proc/sys/kernel;用cat命令或more命令查看semaphore当前参数的值: cat sem 命令运行后将会出现如下的结果: 250 32000 32 128 其中, 250 是参数SEMMSL的值,32000是参数SEMMNS的值, 32是参数SEMOPM的值,而128则是参数SEMMNI的值。250*128=32000   如何

44、获得当前正在使用的信号量 How can I determine how many semaphores are currently being utilized? ---------------------------------------------------------------------------------- On most Unix systems, current semaphore allocation can be displayed with the OS command 'ipcs -s'. % ipcs -s While good to know

45、 this command is seldom used as part of troubleshooting semaphore errors. SHARED MEMORY ================================================== OS如何分配共享内存段 How is shared memory allocated by the OS? ---------------------------------------------------------------------------------- This proce

46、ss varies slightly depending on Unix platform, but the basic premise is this: An application requests a given amount of contiguous shared memory from the OS. The OS dictates how large of a shared memory segment it will allow with the kernel parameter SHMMAX(Shared Memory Maximum). If the amount

47、of shared memory requested by the application is greater than SHMMAX, the OS may be granted the shared memory in multiple segments. Ideally, however, you want the amount requested by the application to be less than SHMMAX so that the application's request can be fulfilled with one shared memory segm

48、ent. SHMMAX和SGA的关系 How does SHMMAX relate to my SGA? ---------------------------------------------------------------------------------- Since the SGA is comprised of shared memory, SHMMAX can potentially limit how large your SGA can be and/or prevent your instance from starting. What limit

49、s the size of my SGA? ---------------------------------------------------------------------------------- In no particular order. 5. The amount of Physical Memory and Swap space available on your system. 6. The kernel paramater SHMMAX. 7. Other OS specific limitations on shared memory. Memo

50、ry SHMMAX OS Limits +----------+ +----------+ +----------+ | | | | | | +------+ | | | | | | | S | | | | | | | > | G | | | | | | | | A | | | | | | | +------+ +----------+ +----------+ +----------+ Some OS specific limitations are discussed in the following documents: "Oracle Administrator

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2025 宁波自信网络信息技术有限公司  版权所有

客服电话:0574-28810668  投诉电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服