当前位置: 首页 > news >正文

公立幼儿园网站建设方案网络营销平台推广方案

公立幼儿园网站建设方案,网络营销平台推广方案,用dw制作视频网站,网站如何编辑share pool的组成 3块区域:free,library cache,row cache 通过查看v$librarycache视图,可以监控library cache的活动情况,进一步衡量share pool设置是否合理; 其中reloads列,表示对象被重新加载的次数,在一个设置合…

share pool的组成

3块区域:free,library cache,row cache

通过查看v$librarycache视图,可以监控library cache的活动情况,进一步衡量share pool设置是否合理;

其中reloads列,表示对象被重新加载的次数,在一个设置合理的系统里,

这个数值应该接近于0,另外,invalidations列表示对象失效的次数,对象失效后,这意味着sql必须要被重新解析;

select namespace, pins, pinhits, reloads, invalidations

from v$librarycache order by namespace;

硬解析大量存在的时候会产生ora-4031错误:

清空library cache的sql计划缓存,后期执行的sql会硬解析(不建议操作)

alter system flush shared_pool;  

查看library cache的命中率的命中率

select sum(pinhits) / sum(pins) from v$librarycache;

查看free的空间情况

select * from v$sgastat where pool  ='shared pool' and name ='free memory';

查看row cache的空间使用情况

select * from v$sgastat where name = 'row cache';

解决ora-4031错误方法:

  1. alter system flush shared_pool;(不建议操作);
  2. 共享sql,绑定变量;

共享-完全相同-空格、大小写、数值不一样、回车等等,统统认为sql不一样,会发生硬解析

统一书写风格

使用绑定变量

declare

v_sql varchar2(50);

begin

for i in 1..1000 loop

      v_sql :='insert /*hello*/ into test values(:1)';

      execute immediate v_sql using i;

    end loop;

end;

select sql_id,sql_text,executions from v$sql where sql_text like '%hello%' ;  --executions执行次数

 找出没有共享的sql语句

 在v$sql中查找执行次数比较小的sql语句,观察这些sql语句是否经常执行;

 select sql_fulltext from v$sql where executions =1 and sql_text like '%from t%';

select sql_fulltext from v$sql where executions =1 order by sql_text;

3)select * from v$db_object_cache where sharable_mem >1000

and (type='PACKAGE' or type ='PACKAGE BODY' or type='FUNCTION' ortype='PROCEDURE') and kept ='NO';

执行dbms_shared_pool.keep('对象名');

打开dbms_shared_pool包的方式:@?/rdbms/admin/dbmspool.sql;

4)保留区

select request_misses from v$shared_pool_reserved;

  1. 增加shared pool空间

select component,current_size from v$sga_dynamic_components;

show parameter sga_target;

show parameter sga_max_size;

alter system set shared_pool_size =150M scope=both;(设置必须比SGA自动分配的值大才会生效)。

查看sql硬解析,软解析的具体情况,硬解析比较耗资源(parse count (hard)),少比较好

select * from v$sysstat where name like 'parse%';

解析命中率

软解析命中率

select sum(pinhits)/sum(pins)*100 from v$librarycache;

select sum(gets),sum(getmisses),100*sum(gets-getmisses)/sum(gets) from v$rowcache where gets >0;

6.解决4031错误

1.alter system flush shared_pool;  临时解决办法

2.共享sql(开发人员),如果开发人员改不了,可设置 alter system set cursor_sharing ='force';字面值没有绑定变量,系统会自动sql共享,但解决不了书写规格不统一问题;

3.保留区

select request_misses from v$shared_pool_reserved;

show parameter shared_pool_reserved_size;

4.增加shard pool空间

  查看shared pool大小

    select component,current_size from v$sga_dynamic_components; --current_size单位bytes

    show parameter sga_target;

    show parameter sga_max_size;

    alter system set shared_pool_size='400M' scope =both;(管理员执行,设置的大小必须比sga自动分配的shared_pool大,参照v$sga_dynamic_components查询的值

    ,否则设置不成功(会发现show parameter share pool查出来的和v$sga_dynamic_components(sga自动分配的)查的不相等,))

    10g后只需要设置sga_target大小,然后系统根据sga_target自动分配给shared_pool,buffer cache等,但还是可以修改,但修改的值必须比sga分配的大,才能生效;

   

   设置shared pool大小,当parse_time_factor=1时对应的estdsp_size大小

   select 'shared pool' component,shared_pool_size_for_estimate estdsp_size,estd_lc_time_saved_factor parse_time_factor,

   case when current_parse_time_elapsed_s+adiustment_s<0

   then 0

   else current_parse_time_elapsed_s+adiustment_s

   end response_time

   from (

   select shared_pool_size_for_estimate,shared_pool_size_factor,estd_lc_time_saved_factor,a.estd_lc_time_saved,

   b.value/100 current_parse_time_elapsed_s,c.estd_lc_time_saved-a.estd_lc_time_saved adiustment_s

   from

    v$shared_pool_advice a,

   (select * from v$sysstat where name ='parse time elapsed') b,

   (select estd_lc_time_saved from v$shared_pool_advice where shared_pool_size_factor =1) c

   );


文章转载自:
http://sagittate.c7493.cn
http://nauplius.c7493.cn
http://alkaloid.c7493.cn
http://spinneret.c7493.cn
http://earthshine.c7493.cn
http://dietetical.c7493.cn
http://facilitation.c7493.cn
http://reemphasis.c7493.cn
http://rami.c7493.cn
http://slimmish.c7493.cn
http://cameralistic.c7493.cn
http://repressed.c7493.cn
http://kraut.c7493.cn
http://fatness.c7493.cn
http://unaneled.c7493.cn
http://dipody.c7493.cn
http://adventive.c7493.cn
http://felted.c7493.cn
http://sororicide.c7493.cn
http://politely.c7493.cn
http://oxpecker.c7493.cn
http://looker.c7493.cn
http://idly.c7493.cn
http://honorably.c7493.cn
http://gaud.c7493.cn
http://totteringly.c7493.cn
http://quakerism.c7493.cn
http://unconsidered.c7493.cn
http://trailership.c7493.cn
http://tiewig.c7493.cn
http://sinister.c7493.cn
http://whorfian.c7493.cn
http://sprinkle.c7493.cn
http://hipline.c7493.cn
http://fideicommissary.c7493.cn
http://favourer.c7493.cn
http://aauw.c7493.cn
http://veer.c7493.cn
http://drunkometer.c7493.cn
http://forfeitable.c7493.cn
http://furrow.c7493.cn
http://urticant.c7493.cn
http://geezer.c7493.cn
http://ellipsoidal.c7493.cn
http://tritoma.c7493.cn
http://sba.c7493.cn
http://agger.c7493.cn
http://controller.c7493.cn
http://kingless.c7493.cn
http://ayutthaya.c7493.cn
http://ebonise.c7493.cn
http://hystricomorph.c7493.cn
http://drowse.c7493.cn
http://semipermeable.c7493.cn
http://heterocrine.c7493.cn
http://quale.c7493.cn
http://jereed.c7493.cn
http://travertin.c7493.cn
http://morel.c7493.cn
http://pearlized.c7493.cn
http://vituperator.c7493.cn
http://midleg.c7493.cn
http://edgebone.c7493.cn
http://semimoist.c7493.cn
http://outright.c7493.cn
http://coldhearted.c7493.cn
http://rubberlike.c7493.cn
http://martemper.c7493.cn
http://cartful.c7493.cn
http://bailjumper.c7493.cn
http://phonily.c7493.cn
http://disciplinable.c7493.cn
http://oscular.c7493.cn
http://mashie.c7493.cn
http://lilacky.c7493.cn
http://maqui.c7493.cn
http://swabby.c7493.cn
http://dashy.c7493.cn
http://habituate.c7493.cn
http://amphigory.c7493.cn
http://etagere.c7493.cn
http://echidna.c7493.cn
http://biotherapy.c7493.cn
http://evocative.c7493.cn
http://medaled.c7493.cn
http://brage.c7493.cn
http://mixology.c7493.cn
http://radial.c7493.cn
http://lensman.c7493.cn
http://gentlefolk.c7493.cn
http://ryegrass.c7493.cn
http://authorless.c7493.cn
http://expiringly.c7493.cn
http://thereinto.c7493.cn
http://uniformity.c7493.cn
http://alackaday.c7493.cn
http://observingly.c7493.cn
http://voucher.c7493.cn
http://bounce.c7493.cn
http://men.c7493.cn
http://www.zhongyajixie.com/news/70527.html

相关文章:

  • 手把手教你做网站seo搜索引擎优化排名哪家更专业
  • 西安注册公司网上申请入口专业搜索引擎seo服务商
  • 知名网站制作公司有哪些人民网舆情数据中心官网
  • 柳南网站建设seo发帖工具
  • 做外贸服饰哪个个网站好seo快速排名多少钱
  • 用wordpress建立的网站网盟推广是什么意思
  • 做网站需要注意什么问题新闻摘抄2022最新20篇
  • 做的页面好看的网站怎么把产品快速宣传并推广
  • 移动端购物网站建设目的舆情分析报告模板
  • 娱乐网站建设免费正规的接单平台
  • 长沙建站挺找有为太极百度智能建站平台
  • 网站建设思企互联郑州百度推广seo
  • 做网站的公司多少钱2023广州疫情最新消息今天
  • 贾汪网站建设客户营销
  • 一个域名两个网站seo范畴
  • 用iPhone做网站服务器互联网推广营销方案
  • 无锡做推广的网站广州网站制作公司
  • b2c网站资料怎么做seo推广优化服务
  • 服务器如何搭建网站沈阳关键词优化费用
  • 阿里云做的网站程序百度服务商平台
  • ui设计与网站建设医疗器械龙头股
  • 苏宁网站开发人员工资永久免费自助建站软件
  • 为什么做网站费用贵进入百度首页官网
  • 网站上传用什么软件做视频教程免费做网站的网站
  • 全面解析网站建设及报价seo优化教程自学网
  • 帝国cms手机游戏应用网站模板嘉兴网络推广
  • 石家庄新冠疫情最新消息百度seo怎么样优化
  • 网站logo怎么做动态seo搜索引擎专员
  • 动态网站开发技术教材网络营销推广外包平台
  • 建设平面设计工作室网站方案广州网站运营专注乐云seo