随笔分类 -  oracle&mysql/mariadb

上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
摘要:近日,现场一台服务器在运行时出现下列异常: ORA-12801: error signaled in parallel query server P139 ORA-12853: insufficient memory for PX buffers: current 274880K, max need 阅读全文
posted @ 2018-12-04 09:20 zhjh256 阅读(1611) 评论(0) 推荐(0) 编辑
摘要:结果集缓存 和聚合物化视图类似,报表系统和数据仓库系统是最适合结果集缓存的,这些系统通常具有大量复杂的SQL,其中不少子查询包含聚合函数,如果能够尽可能重用这些已经计算过的聚合结果集,将极大的提升系统性能并降低服务器负载。默认情况下,服务端结果集大小为共享池大小的0.5%,如果人工设置了共享池大小, 阅读全文
posted @ 2018-12-04 09:12 zhjh256 阅读(1375) 评论(0) 推荐(0) 编辑
摘要:目前暂时无法做到直接路径加载同时满足不生成redo,同时又写一份到buffer cache,这只能依赖于操作系统缓存,但是过多的并发append会导Disk file operations I/O致等待事件。 This event is used to wait for disk file oper 阅读全文
posted @ 2018-12-01 17:09 zhjh256 阅读(1514) 评论(0) 推荐(0) 编辑
摘要:该等待事件并不包含在等待事件范围,而是出现在ash的具体行源中,如下: 标注语句的每次执行大约1小时,如下awr所示: 该sql语句的最后一层Insert如下: 每个调用的函数里面又执行了sql语句查询,所以大多这些不存在I/O瓶颈的语句行源都在等待CPU + Wait for CPU,该事件只能说 阅读全文
posted @ 2018-12-01 14:19 zhjh256 阅读(888) 评论(0) 推荐(0) 编辑
摘要:早上看昨天现场的报告,发现晚上七八点,resmgr:cpu quantum 等待事件排在i第一位,如下: 该事件是和资源管理相关的,如果启用资源管理计划,就可能遇到这个问题. 所以常规的解决方案是禁用资源管理。经查证是因为一个 bug 10326338 引起的。 解决方法如下: 阅读全文
posted @ 2018-11-30 11:34 zhjh256 阅读(422) 评论(0) 推荐(0) 编辑
摘要:昨晚,一SQL执行的时候报了ORA-00600: internal error code, arguments: [kcblin_3], [103], [253952], [8192], [32769], [312], [640], [], [], [], [], [],该语句没什么异常之处,经查可 阅读全文
posted @ 2018-11-30 07:11 zhjh256 阅读(390) 评论(0) 推荐(0) 编辑
摘要:许久不用,又忘了,做个记录 update test b set b.val=(with t as(select t.id,val||'_'||row_number() over(partition by val order by id) t1from test t)select a.val from 阅读全文
posted @ 2018-11-29 12:05 zhjh256 阅读(2782) 评论(2) 推荐(0) 编辑
摘要:1.Does undo buffer exists or changes will directly write to undo datafiles?Undo blocks are database blocks, so they will sit in the buffer cache like 阅读全文
posted @ 2018-11-28 21:54 zhjh256 阅读(260) 评论(0) 推荐(0) 编辑
摘要:Last week I’ve mentioned on Twitter that we ran into wrong result bug. We found workaround quickly but I’ve decided to spend some time to reproduce er 阅读全文
posted @ 2018-11-28 21:17 zhjh256 阅读(290) 评论(0) 推荐(0) 编辑
摘要:10.10.6 大数据量插入优化 在很多涉及支付和金融相关的系统中,夜间会进行批处理,在批处理的一开始或最后一般需要将数据回库,因为应用和数据库通常部署在不同的服务器,而且应用所在的服务器一般也不会去安装oracle客户端,同时为了应用管理和开发模式统一,很多会利用mybatis的foreach c 阅读全文
posted @ 2018-11-23 16:45 zhjh256 阅读(1268) 评论(0) 推荐(0) 编辑
摘要:早上,开发说昨晚一台服务器的undo好像有异常,早上上去一看,库停了,正常startup之后,随手crud了一把,都正常。去看alert.log日志,发现undo某个数据块访问报I/O读错误,如下: ORACLE Instance ora11g (pid = 20) - Error 1115 enc 阅读全文
posted @ 2018-11-21 09:19 zhjh256 阅读(2082) 评论(0) 推荐(0) 编辑
摘要:orion需要首先配置hugepage,否则会出现下列错误。 [root@yyxxdb01 ~]# /opt/app/11.2.0/grid_home/bin/orion -run oltp -testname mytest ORION: ORacle IO Numbers -- Version 1 阅读全文
posted @ 2018-10-30 08:52 zhjh256 阅读(470) 评论(0) 推荐(0) 编辑
摘要:在oracle 12c之前,收集直方图信息是相对比较耗费资源的,因为要重复扫描几次;在oracle 12c中,则有较大的提升,具体可参考https://jonathanlewis.wordpress.com/2013/07/14/12c-histograms/。 There are a few en 阅读全文
posted @ 2018-10-28 20:41 zhjh256 阅读(475) 评论(0) 推荐(0) 编辑
摘要:Differences between Automatic Statistics Gathering job and GATHER_SCHEMA_STATS Mike Dietrich MASTER PRODUCT MANAGER Mike Dietrich MASTER PRODUCT MANAG 阅读全文
posted @ 2018-10-28 20:38 zhjh256 阅读(372) 评论(0) 推荐(0) 编辑
摘要:The ESTIMATE_PERCENT parameter in DBMS_STATS.GATHER_*_STATS procedures controls the percentage of rows to sample when gathering optimizer statistics. 阅读全文
posted @ 2018-10-28 20:32 zhjh256 阅读(392) 评论(0) 推荐(0) 编辑
摘要:Note that if you're interested in learning about Oracle Database 12c, there's an updated version of this post here. When it comes to gathering statist 阅读全文
posted @ 2018-10-28 20:30 zhjh256 阅读(488) 评论(0) 推荐(0) 编辑
摘要:18C之后的版本标识 从2017年7月开始,Oracle改变了以往的数据库软件发布流程,采用年度Release和季度更新的策略。 Yearly Release 将之前的N年一发布更改为每年一发布。每年发布的策略能够将更多的新功能更快的提供给用户,同时也大大减少了单次软件变更的数量,避免大的版本升级对 阅读全文
posted @ 2018-10-19 15:07 zhjh256 阅读(2677) 评论(0) 推荐(0) 编辑
摘要:我们是在生产系统中遇到,清空回收站,然后禁用回收站即可,这样后面就不会发生,单纯禁用可能仍会报错,因为不会自动清空回收站。 purge recyclebin; alter system set recyclebin=off scope=spfile; shutdown immediate; star 阅读全文
posted @ 2018-10-18 14:01 zhjh256 阅读(6937) 评论(0) 推荐(0) 编辑
摘要:使用ASSM表空间(默认模式)的时候,在dss系统中确实会出现truncate很慢的现象,但是他不会100%重现,得看概率。通过sql trace(对任何v$sysstat看起来资源消耗很低的情况,都可以通过sql trace找到根本原因,所以sql trace是个用来分析但是未必能够帮助解决问题的 阅读全文
posted @ 2018-10-17 18:54 zhjh256 阅读(906) 评论(0) 推荐(0) 编辑
摘要:oracle的闪回很早就出来了,准确的说一直以来应该都较少被真正用户广为使用,除了dba和极少部分开发人员偶尔用于逻辑出错、误删恢复之外,较少被用于产生更有价值的用途。 各种闪回表flashback table、flashback query、flashback transaction都有一定的适用 阅读全文
posted @ 2018-10-17 18:33 zhjh256 阅读(472) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
点击右上角即可分享
微信分享提示