摘要:Far Sync是Oracle Data Guard的 Oracle 12c新特性。此功能旨在解决当你维护一个地理上远离主数据库的备用数据库时由网络延迟引起的性能问题。在这种情况下,你有时必须在性能和数据丢失之间做出妥协。Far Sync功能为你提供了两者。 Far Sync是如何工作的 原理相当简 阅读全文
【Oracle】 RAC环境AHF安装成功但是启动失败
2022-06-08 22:07 by abce, 435 阅读, 0 推荐, 收藏,
摘要:# tfactl start Starting TFA.. start: Job is already running: oracle-tfa Waiting up to 100 seconds for TFA to be started.. . . . . . . . . . . . . . . 阅读全文
【Oracle】将RAC闪回到指定的闪回点
2022-06-08 13:53 by abce, 229 阅读, 0 推荐, 收藏,
摘要:1)查看和设置实例的环境变量 ps -ef | grep pmon. oraenv 2)获取还原点信息 SQL> select name, host_name, status from gv$instance;SQL> select log_mode,flashback_on from v$data 阅读全文
【Oracle】Oracle开启和关闭闪回
2022-06-07 13:14 by abce, 1006 阅读, 0 推荐, 收藏,
摘要:确保oracle处于归档状态: SQL> select log_mode,flashback_on from v$database; 配置参数db_recovery_file_dest、db_recovery_file_size: SQL> alter system set db_recovery_ 阅读全文
【PostgreSQL】部分索引、覆盖索引和多列索引是如何降低update操作的
2022-06-06 22:25 by abce, 678 阅读, 0 推荐, 收藏,
摘要:部分索引(partial indexes) 部分索引(partial indexes)可以提升查询性能且节省磁盘空间。(索引越小,对应的索引扫描越快) 下面是PostgreSQL文档中的例子: create index orders_unbilled_index on orders (order_n 阅读全文
【MongoDB】从复制集迁移到分片集群
2022-06-05 14:06 by abce, 909 阅读, 0 推荐, 收藏,
摘要:迁移的过程 1.为Confiugure Server初始化最少包含三个节点的副本集(另一个成员可以作为隐藏节点用于备份中)。 2.现有副本集执行必要的操作系统、硬件和磁盘级别的调优。 3.在mongod配置文件中为Config服务器设置适当的 clusterRole。 4.为查询路由器(MongoS 阅读全文
【MySQL】 5.7 中意外缓慢的alter table操作
2022-06-04 20:35 by abce, 1679 阅读, 0 推荐, 收藏,
摘要:通常人们会期望algorithm=copy的alter table会比默认的algorithm=inplace慢。本文描述了并非如此的情况。 这种行为的原因之一是alter table(默认 algorithm=inplace)鲜为人知的限制避免了redo操作。因此,被修改的表/表空间的所有脏页都必 阅读全文
【ORACLE】ORA-09925 Unable to create audit trail file
2022-06-03 10:59 by abce, 868 阅读, 0 推荐, 收藏,
摘要:今天临时加班接手同事夜间升级的RAC库。登录第一节点报错 $ sqlplus /nolog SQL*Plus: Release 19.0.0.0.0 - Production on Fri Jun 3 10:38:51 2022 Version 19.14.0.0.0 Copyright (c) 1 阅读全文
【SqlServer】统计索引使用情况解决DB的CPU高和IO高的问题
2022-06-03 09:30 by abce, 621 阅读, 0 推荐, 收藏,
摘要:转载地址:https://segmentfault.com/a/1190000018022330 查看表的索引情况: use [数据库名] sp_helpindex 表名; 查看索引使用情况: user_seeks和user_scans字段都为0的,考虑是否为垃圾索引 另外last_user_see 阅读全文
【SqlServer】使用IO比较高的语句
2022-06-02 20:10 by abce, 184 阅读, 0 推荐, 收藏,
摘要:select top 100 (total_logical_reads / execution_count) as avg_logical_reads, (total_logical_writes / execution_count) as avg_logical_writes, (total_ph 阅读全文
浙公网安备 33010602011771号