摘要: 1.设定json文件 set @ddl_filter=' { "filter": { "class": { "name": "general", "event": { "name": "status", "log": { "and": [ { "or": [ {"field": { "name": 阅读全文
posted @ 2024-06-25 15:05 DBer_ablewang 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1.准备机器 #关闭防火墙 systemctl stop firewalld systemctl disable firewalld #关闭selinux #安装依赖 yum -y install unzip yum search libaio yum install libaio #在oracle 阅读全文
posted @ 2024-06-25 14:52 DBer_ablewang 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 1. 升级 升级的时候应该先升级replica 如果source使用的语句和依赖的行为在replica上不支持,即使replica已经升级成功也会导致复制出现问题 对5.7和8.0版本可以使用工具util.checkForServerUpgrade()来检查升级需要解决的一些问题,然后依个解决 a) 阅读全文
posted @ 2024-06-25 13:52 DBer_ablewang 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1. DELETE operation is an expensive operation due to the following reasons: it causes the records to be locked as part of the transaction executing th 阅读全文
posted @ 2024-06-25 13:49 DBer_ablewang 阅读(2) 评论(0) 推荐(0) 编辑
摘要: mysqld-auto.cnf ,持久化配置参数文件(位于DATA目录)(mysqld-auto.cnf 中的变量如果和my.cnf相同则使用mysqld-auto.conf中的) 命令行输入的配置参数 代码中指定配置文件 my.cnf中的配置参数 命令行输入配置文件 my.cnf中的配置参数 /e 阅读全文
posted @ 2024-06-25 13:48 DBer_ablewang 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 乐观备份可以用来提升备份和恢复体量比较大的数据库(只有少量的表经常变更)的性能。 2)在大型数据库的热备份过程中(例如,以TB为单位),当备份进行时,可能会在服务器上生成巨大的重做日志文件。由于重做日志文件的增长速度快于mysqlbackup处理的速度,因此当mysqlbackup无法赶上重做日志周 阅读全文
posted @ 2024-06-25 13:46 DBer_ablewang 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 1. 官方文档连接 https://dev.mysql.com/doc/refman/8.2/en/innodb-purge-configuration.html 2. 说明 当你用sql语句去删除一行数据的时候,innodb物理上不会立即从数据库中移除一行记录。当innodb丢弃关于这段删除的un 阅读全文
posted @ 2024-06-25 13:43 DBer_ablewang 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 1. English Description What is a Cumulative Update? When a group of multiple patches & updates comes out by Microsoft, we call it a Cumulative Update. 阅读全文
posted @ 2024-06-25 13:30 DBer_ablewang 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 只能通过注册表修改 通过修改注册表进行修改HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL15.TACTICALDEV\SQLServerAgent下的ErrorLogFile指标的值就可以修改sql gent的错误日志 阅读全文
posted @ 2024-06-25 13:27 DBer_ablewang 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1. 问题描述 使用MySQL8.0.30创建主从,启动从库的时候报错: Last_IO_Errno:2061 Last_IO_Error:error connecting to mater 'repl@xxxxx:3308' - retry-time:60 retries:1 massage:Au 阅读全文
posted @ 2024-06-25 13:24 DBer_ablewang 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 1. 服务器配置检查列表 1) 检查/tmp目录,至少需要400MB空间 2) 检查swap分区 256 MB: 3 times the size of RAM Between 256 MB and 512 MB: 2 times the size of RAM Between 512 MB and 阅读全文
posted @ 2024-06-25 13:21 DBer_ablewang 阅读(2) 评论(0) 推荐(0) 编辑
摘要: with aa as (SELECT IID, USERNAME, to_char(BEGIN_TIME,'mm/dd hh24:mi') begin_time, SQL_ID, decode(COMMAND_TYPE,3,'SELECT',2,'INSERT',6,'UPDATE',7,'DELE 阅读全文
posted @ 2024-06-25 13:15 DBer_ablewang 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 1. 问题描述 [oracle@servername db]$ OPatch/opatch version OPatch/opatch: line 839: [: too many arguments OPatch/opatch: line 839: [: too many arguments Ja 阅读全文
posted @ 2024-06-25 13:13 DBer_ablewang 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1. Oracle手工删除数据库 1) 关闭数据库 su - oracle sqlplus / as sysdba select name from v$database; shutdown immediate; 2) 删除文件 RACLE_BASE=/u01/app/oracle ORACLE_H 阅读全文
posted @ 2024-06-25 13:08 DBer_ablewang 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 安装依赖包 su - root yum -y install unzip yum -y install binutils.x86_64 yum -y install gcc.x86_64 yum -y install gcc-c++.x86_64 yum -y install glibc.i686 阅读全文
posted @ 2024-06-25 11:43 DBer_ablewang 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1. 创建存储过程 此脚本会在“master”数据库中创建两个存储过程。 过程命名为 sp_hexadecimal 和 sp_help_revlogin。 USE [master] GO IF OBJECT_ID ('sp_hexadecimal') IS NOT NULL DROP PROCEDU 阅读全文
posted @ 2024-06-25 11:29 DBer_ablewang 阅读(1) 评论(0) 推荐(0) 编辑
摘要: Linux 用户空间审计系统由 auditd、audispd、auditctl、autrace、ausearch 和 aureport 等应用程序组成。下面依次说明: auditctl : 即时控制审计守护进程的行为的工具,如添加规则等。 auditd :audit 守护进程负责把内核产生的信息写入 阅读全文
posted @ 2024-06-25 11:14 DBer_ablewang 阅读(2) 评论(0) 推荐(0) 编辑
摘要: APPLIES TO: MySQL Server - Version 8.0 and later Information in this document applies to any platform. GOAL Change the value of lower_case_table_names 阅读全文
posted @ 2024-06-25 11:09 DBer_ablewang 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 简介 在Linux操作系统中,fuser是一个命令行工具,用于查找并显示使用指定文件、文件系统或套接字的进程的情况。它可以帮助我们找出哪些进程占用了某个文件或目录,以便我们能够进行相关操作,比如杀死这些进程或释放对应的资源。 命令语法 fuser命令的基本语法如下: fuser [选项] 文件或目录 阅读全文
posted @ 2024-06-25 10:54 DBer_ablewang 阅读(8) 评论(0) 推荐(0) 编辑