随笔分类 -  oracle&mysql/mariadb

1 2 3 4 5 ··· 11 下一页
摘要:事务 事务ID及回卷 参见postgresql中的事务回卷原理及预防措施。 子事务(事务处理:概念与技术 4.7) 子事务具有ACI特性,但是不具有D特性。只会在主事务提交时,才会提交,无法单独提交。pg不支持子事务。 xact 保存点 保存点是不支持子事务/嵌套事务时的折中实现,但它是ANSI S 阅读全文
posted @ 2024-11-10 20:42 zhjh256 阅读(36) 评论(0) 推荐(0) 编辑
摘要:该事件和"enq: US - contention"是一并出来的,但是他俩应该是刚好相反的,但是却在一个实例上出现,这时就有点怪了。下次找机会再去确认下具体的参数设置。 enq: US - contention的解决方法参见:19c生产环境enq: US - contention等待事件一例 参见: 阅读全文
posted @ 2024-10-10 09:43 zhjh256 阅读(20) 评论(0) 推荐(0) 编辑
摘要:1、参考https://blog.csdn.net/AllanHwang/article/details/127782317为主体 2、asm磁盘创建参考 https://blog.csdn.net/applmanwx/article/details/120389476,udev配置nvme不生效 阅读全文
posted @ 2024-01-29 09:49 zhjh256 阅读(204) 评论(0) 推荐(0) 编辑
摘要:在oracle 11g中,SCAN IP还用的很少。到oracle 12.2或者19c,用户已经基本上清一色的切换到了SCAN IP。所以很有必要理解oracle的SCAN IP运行机制和配置。 先回顾下VIP。 RAC的每个节点都需要有一个虚拟IP,这就是VIP。VIP需要和PUBLIC IP同一 阅读全文
posted @ 2024-01-27 23:45 zhjh256 阅读(1918) 评论(0) 推荐(0) 编辑
摘要:PG_PROC PG_OPERATOR pg_opclass用于定义索引上的相关操作符,一般来说是同一类数据类型。pg_opfamiliy定义了相互兼容的数据类型的操作符,关系见https://www.postgresql.org/docs/9.1/catalog-pg-opclass.html。p 阅读全文
posted @ 2023-12-28 08:35 zhjh256 阅读(126) 评论(0) 推荐(0) 编辑
摘要:postgresql自带pg_basebackup,也可用于在主库或备库对postgresql数据库进行在线实时全量备份,和oracle rman全量备份还是挺类似的。如下: [zjh@hs-10-20-30-193 zjh]$ lt_basebackup --help lt_basebackup 阅读全文
posted @ 2023-05-29 15:20 zhjh256 阅读(71) 评论(0) 推荐(0) 编辑
摘要:和oracle,lightdb也支持单列和多列统计信息,见14.2. Statistics Used by the Planner (light-pg.com)。 默认情况下,analyze收集的统计信息是针对单列的,多个列之间通常没有依赖关系,在多个where里面,这容易导致基数计算失真。 pla 阅读全文
posted @ 2023-04-25 14:19 zhjh256 阅读(29) 评论(0) 推荐(0) 编辑
摘要:对于系统服务来说,国际化是必须解决的非功能特性之一。因此理解本地化是系统编程的重要一个环节。本节梳理一下本地化相关的设置和影响。 首先看看原因。为什么时区正确很重要呢?因为很多应用的时间计算规则不同,通常是在UTC和本地时间之间不清晰,例如crontab定时任务以及其他定时任务。不同应用基于或返回U 阅读全文
posted @ 2023-03-08 11:23 zhjh256 阅读(316) 评论(0) 推荐(0) 编辑
摘要:最近看pg中insert的实现源码,看到on conflict的excluded优点疑惑,顺带总结下mysql和pg中已存在更新、不存在插入的差异(注:oracle是merge into实现)。 在mysql中的insert on duplicate和lightdb的on conflict是等价的。 阅读全文
posted @ 2023-01-25 13:11 zhjh256 阅读(78) 评论(0) 推荐(0) 编辑
摘要:create table temp1 ( aid VARCHAR(5) not null, car VARCHAR(10) not null ); create table temp2 ( bid VARCHAR(5) not null, username VARCHAR(10) not null 阅读全文
posted @ 2023-01-22 21:15 zhjh256 阅读(142) 评论(0) 推荐(0) 编辑
摘要:内存上下文的设计思路可以参考src/backend/utils/mmgr/README。 https://www.pgcon.org/2019/schedule/attachments/514_introduction-memory-contexts.pdf http://www.light-pg. 阅读全文
posted @ 2022-12-30 14:02 zhjh256 阅读(364) 评论(0) 推荐(1) 编辑
摘要:在postgresql中,work_mem不足(包括物化、hashjoin、某些table函数如generate_series)时写临时文件的实现在src/backend/utils/sort/tuplestore.c(它本质上是 tuplesort.c (logtape.c协助其实现multipl 阅读全文
posted @ 2022-10-23 17:14 zhjh256 阅读(545) 评论(0) 推荐(0) 编辑
摘要:ctas实现逻辑 > log_newpage C++ (gdb) _bt_blwritepage C++ (gdb) _bt_uppershutdown C++ (gdb) _bt_load C++ (gdb) _bt_leafbuild C++ (gdb) btbuild C++ (gdb) in 阅读全文
posted @ 2022-10-15 23:05 zhjh256 阅读(35) 评论(0) 推荐(0) 编辑
摘要:As you know Oracle has been chaned release name. In this post we talk about Oracle Realeases. Before we start let use see current Oracle Database Real 阅读全文
posted @ 2022-09-21 23:06 zhjh256 阅读(138) 评论(0) 推荐(0) 编辑
摘要:null首先跟char、varchar、bpchar(blank padded character)、text有关系。在oracle中,则与char、varchar2、clob有关。 其次,涉及的范围比较广,''、null、=、!=、is null、is not null、替换、计算长度、类型强转如 阅读全文
posted @ 2022-09-20 15:33 zhjh256 阅读(204) 评论(0) 推荐(0) 编辑
摘要:注:无论是copy to还是copy from,都有一个缺点,要求文件位于服务器上,这就限制了使用范围。为此,对于导出,lightdb提供了高性能导出版本ltuldr。对于导入,lightdb在23.1之前提供lt_bulkload,见下文;从23.1开始,支持和oracle sql*loader对 阅读全文
posted @ 2022-09-18 15:53 zhjh256 阅读(258) 评论(0) 推荐(0) 编辑
摘要:> The MAXIMUM_ALIGNOF value is set to 8 bytes in a Windows- 32-bit> environment. I have very little knowledge about Windows, but at> the face of it, t 阅读全文
posted @ 2022-09-15 12:58 zhjh256 阅读(58) 评论(0) 推荐(0) 编辑
摘要:ARCHIVE Mode ARCHIVE is the default WAL delivery mode. For example, to make a FULL backup in ARCHIVE mode, run: pg_probackup backup -B backup_dir --in 阅读全文
posted @ 2022-09-13 20:57 zhjh256 阅读(48) 评论(0) 推荐(1) 编辑
摘要:文件删除 rm -rf 1255 # pg_proc select * from pg_class [order by oid]; ##不报错 select * from pg_class where oid = 1255; ## 报错 ERROR: could not open file "bas 阅读全文
posted @ 2022-09-13 13:02 zhjh256 阅读(252) 评论(0) 推荐(0) 编辑
摘要:http://www.light-pg.com/docs/lightdb/13.3-22.2/sql-notify.html http://www.light-pg.com/docs/lightdb/13.3-22.2/sql-listen.html https://wiki.postgresql. 阅读全文
posted @ 2022-09-10 14:55 zhjh256 阅读(172) 评论(0) 推荐(0) 编辑

1 2 3 4 5 ··· 11 下一页
点击右上角即可分享
微信分享提示