- 博客(989)
- 资源 (19)
- 收藏
- 关注
原创 mysql truncate 慢 处理措施
MySQL 8.0 的 truncate 实现方式基本和 drop 实现方式相同,包括主要的耗时位置(都在 row_drop_table_for_mysql、os_file_delete_func)都是相同的。truncate 操作的主要的耗时有 dict_drop_index_tree、os_file_truncate。row_drop_table_for_mysql 慢的问题,可以通过设置 innodb_adaptive_hash_index = off 进行优化;MySQL 8.0 的优化措施。
2023-06-26 16:17:39 664
原创 Configuring MySQL for a SSD based SAN
In this DocumentConsidering a Virtualized environment with a SSD based SAN, what are the configuration parameters to be modified and their suggested values. Usually the SAN is not exposed to the VM directly. Instead VMs use the file system exposed by t
2023-05-23 11:30:01 208
转载 多监听器故障案例分析
一天晚上,朋友A给我打电话聊天,分享了他近期的一个案例。他们有一套11g RAC数据库,SCAN监听和本地监听端口都为1521。为了搭建DataGuard环境,于是创建了第二个监听LISTENER_DG(相同监听地址,端口为1522),专门给DataGuard使用。这样的规划,主要是为了分隔业务系统与DataGuard之间的网络影响,业务系统走1521端口,而DataGuard走1522端口。当他们创建完第二监听后,业务人员反映业务系统通过SCAN地址连接数据库时,有时能够成功,但有时连接失败。
2023-05-16 11:15:15 141
原创 asm 加盘 udev 重启 导致网络异常
In this DocumentDynamically added new disks to storage using udev rules(as per the docs note 414897.1, 1528148.1, 371814.1 etc).During start_udev, udev has deleted the public network interface and this caused the listener to crash, and clusterware moved al
2023-05-15 09:49:18 376
原创 如何理解 innodb status :Pending writes: LRU 0, flush list 0, single page 0
Pending writes: LRU 0, flush list 0, single page 0The statement "Pending writes: LRU 0, flush list 0, single page 0" is related to the InnoDB storage engine in MySQL. It provides information about the status of pending writes in the buffer pool.Here is the
2023-05-09 16:43:35 75
原创 oracle 18c dataguard 从库scn 不更新BUG
STANDBY: Datafiles Checkpoint not Updated at Standby Database when Media Recover is running
2023-04-25 16:41:21 448
原创 oracle internal : What are Latches and What Causes Latch Contention (11g and Above)
【代码】oracle internal : What are Latches and What Causes Latch Contention (11g and Above)
2023-04-19 09:11:31 263
原创 oracle internal : Understanding and Tuning Buffer Cache and DBWR
【代码】oracle internal : Understanding and Tuning Buffer Cache and DBWR。
2023-04-19 08:56:20 446
原创 oracle 性能优化-sql-判断特定sql 涉及的表,索引统计信息是否过期
【代码】oracle 性能优化-sql-判断特定sql 涉及的表,索引统计信息是否过期。
2023-04-17 17:24:22 117
原创 MySQL Log Messages: page_cleaner: 1000ms intended loop took 8120ms.
In this DocumentGuidance for configuring the server when seeing these messages frequently:[Note] InnoDB: page_cleaner: 1000ms intended loop took 4120ms. The settings might not be optimal. (flushed=0 and evicted=85273, during the time.) [Note] InnoDB: pa
2023-03-29 17:23:44 397
原创 golang 中 go func() {} 理解
具体来说,go func() {} 创建了一个匿名函数(即没有函数名的函数),并在其前面加上关键字 go,以表示该函数应该在一个新的 Goroutine 中异步执行。因此,当程序执行到该语句时,它会立即创建一个新的 Goroutine,然后在该 Goroutine 中执行这个匿名函数。在上面的示例中,我们创建了一个新的Goroutine,用于异步执行一个循环。在Golang 中,go func() {} 表示创建一个新的 Goroutine(轻量级线程),用于异步执行函数。
2023-03-23 16:58:20 6009
原创 Golang 中 defer 理解
在上面的示例中,我们创建了一个最大容量为10 的 goroutine 池,并使用 defer 关键字调用了 ants.Release() 函数,以确保在程序退出之前释放池中的资源。最后,我们在程序的其他部分执行了一些其他的工作。在上面的例子中,cleanup() 函数会在 foo() 函数返回前执行,即使在 foo() 函数出现异常或错误时也是如此。在这个过程中,Go 语言中的 defer 关键字可以用来注册一个函数调用,在当前函数执行完毕并将控制权交回给调用者之前,执行这个被注册的函数调用。
2023-03-23 16:57:31 279
原创 httpstat: url api 接口性能分析
httpstat通过封装curl命令,将整个连接过程每个阶段耗时可视化统计出来,就如README所述:"httpstat visualizes curl(1) statistics in a way of beauty and clarity。在任何需要分析网站速度在每个阶段耗时的场景下,通过抓包分析报文的方式太繁杂,httpstat可视化将每个阶段耗时统计出来。
2023-03-16 09:38:12 473
原创 windows 网络连接状态分析
Get-NetTCPConnection | Group-Object -Property State, OwningProcess | Select -Property Count, Name, @{Name="ProcessName";Expression={(Get-Process -PID ($_.Name.Split(',')[-1].Trim(' '))).Name}}, Group | Sort Count -Descending
2023-03-10 14:51:57 75
转载 某三甲医院数据库性能分析报告
客户信息系统数据库采用Oracle RAC高可用架构,集成了HIS、EMR、PACS信息系统数据。经过我们对该信息系统数据库检查发现如下性能问题:性能概况:Ø数据库自动任务job被关闭,收集数据库统计信息的自动任务不能正常执行Ø数据库中存在大量的全表扫描。Ø存在较多可优化的 SQL 语句。综合以上信息,通过我们对该信息系统数据库性能分析判断,我们决定先打开数据库自动任务job,先解决因统计信息过旧而导致的数据库性能问题,进而逐步单个优化仍然存在性能问题的SQL语句。
2023-03-10 10:49:45 380
原创 Cost-Based Optimizer
Type A:Type B:Type C:ChooseAll_rowsRuleFirst_rowsiinstead.nnnis set torulerulemode.ruleplan diffiiruleiivalueii. Example:. Example:costioutlinesiiidbms_statsimonitoringMonitoringandConclusionAppendix A。
2023-02-23 14:59:42 582
转载 深入浅出SQL优化器原理
阿里云数据库已认证帐号8 人赞同了该文章1979年,第一款基于 SQL 的商业关系型数据库管理系统 Oracle V2 问世,也标志着第一款商用的 SQL 优化器诞生。理论上,成熟的优化器原型,更早可以追溯到 IBM 的 System-R 项目。现今,很多开源数据库和大数据优化器还是沿用 System-R 原型。SQL(Structured Query Language)是一种结构化的查询语言。它只描述了用户需要什么样的数据,而没有告诉数据库该如何执行。这使得有很多优化空间蕴含在 SQL 改写中,我们来看一
2023-02-22 14:39:43 335
原创 dbdeployer 使用札记
可以通过dbdeplyoer defaults export导出并修改配置或者直接通过dbdeployer defaults update来更新默认文件,默认配置文件为当前用户的$HOME/.dbdeployer/config.json作为配置文件,##安装单实例Percona Server。#部署一套1M1S的gtid复制集群。配置文件包含MySQL初始信息。##部署mysql 单实例环境。##下载在线tarball。
2023-02-17 10:48:48 355
原创 达梦数据库会话、事务阻塞排查步骤
注:对于DSC,需要在相应的节点执行。–--可用于查询阻塞事务的相关锁信息。–查找问题DML SQL,保留。注:需要开启SVR_LOG参数。查询阻塞事务的会话信息。
2023-02-14 10:19:45 689
原创 oracle optimizer :QREF: SQL Statement HINTS
oracle optimizer :QREF: SQL Statement HINTS
2023-02-02 11:24:19 333
原创 oracle optimizer:Optimizer Cost Based Query Transformation
Optimizer Cost Based Query Transformation)
2023-02-02 11:19:20 245
原创 oracle optimizer:Optimizer Join Push Predicate (Doc ID 1082106.1)
oracle optimizer:Optimizer Join Push Predicate
2023-02-02 11:16:11 274
原创 oracle optimizer:Optimizer Filter Push Down
oracle optimizer:Optimizer Filter Push Down fpd
2023-02-02 11:10:38 215
原创 ORA-600 [kcbzpbuf_1] ORA-600 [kcbzpb_1] Troubleshooting and workarounds (Doc ID 1560270.1)
To BottomPURPOSE......
2023-01-12 10:05:26 124
原创 DUL: INTERNAL Error: Kcbh does not fit in a data block?
使用oracle dul 10.2.0.5.26 抽取oracle 19c 数据库数据文件。应该是dul 10 不支持oracle 19c。使用dul 12 进行数据恢复。
2023-01-06 16:23:20 486
原创 start TNSLSNR with Unable to OpenSCManager: err=5 TNS-12560: TNS:protocol adapter error TNS-00530:
启动tnslsnr: 请稍候...TNS-12560: TNS: 协议适配器错误TNS-00530: 协议适配器错误。
2022-12-02 09:03:24 1750
原创 windows 平台使用dul 抽取Linux oracle ASM 磁盘数据文件
window平台下使用dul.exe 可以直接抽取linux asm 磁盘组中数据文件;即使asm 磁盘损坏,无法mount 起来也是可以尝试进行数据恢复;
2022-11-11 10:24:44 279
原创 oracle dul for windows 一键打开,oracle 数据恢复
有的时候我们的oracle 数据库被误操作时(delete,truncate等),或者遇到勒索加密病毒,我们可以通过oracle 的DUL Data UnLoader 工具进行数据库抢救性恢复,但是在使用oracle 的dul 工具时我们警察会遇到一下问题,需要下载一个最新版的dul。但是这个工具时oracle 内部的,并且这个工具有1个月的短暂使用时间,过来一定时间后就没法再使用了。为了方便使用dul,破解oracle dul 的使用限制,空余时间写了一个工具一键启动oracle dul;
2022-10-26 10:49:59 619
原创 mysql 8.0 版本innodb 内存管理锁 buffer pool mutex 变化
mysql 8.0 由原来的一个大buffer pool mutex被拆分成多个为free_list, LRU_list, zip_free, 和zip_hash单独使用mutex:
2022-09-08 15:01:29 535
原创 mysql binlog redelog 2阶段提交如何保障一致性?
当在3之前崩溃 重启恢复:虽没有commit,但满足prepare和binlog完整,所以重启后会自动commit。备份:有binlog. 一致。binlog和redolog 有一个共同的数据字段,叫XID。2.如果碰到只有prepare、而没有commit的redo log,就拿着XID去binlog找对应的事务。当在2之前崩溃时 重启恢复:后发现没有commit,回滚。备份恢复:没有binlog。1.如果碰到既有prepare、又有commit的redo log,就直接提交。
2022-09-08 11:22:08 378
oracle 11g 数据文件头block 1解析
2023-11-16
golang 版 linux windows httpstat http url api 性能分析工具
2023-03-16
msp430课件
2013-06-17
sql 语言艺术
2011-10-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人