上一页 1 2 3 4 5 6 ··· 16 下一页
  2023年3月10日
摘要: SQLServer2016 AlwaysOn架构 主副本SQLServer服务重启之后,辅助副本数据库同步异常。 问题修复过程: SQLServer主副本SQLServer重启服务之后, AlwaysOn修复过程 主副本重启SQLServer未通过SQLServer 配置管理器,在重启之前Alway 阅读全文
posted @ 2023-03-10 13:50 helontian 阅读(761) 评论(0) 推荐(0)
  2022年10月11日
摘要: 1、启动从库,目录文件配置路径: basedir=/u01/mysql/basedatadir=/u01/mysql/datatmpdir=/u01/mysql/tmp 2、将冷备份data目录复制到新实例下的,datadir $ ll total 20 drwxr-xr-x. 9 mysql my 阅读全文
posted @ 2022-10-11 09:53 helontian 阅读(169) 评论(0) 推荐(0)
  2022年9月28日
摘要: 一、Slave错误信息 mysql> show slave status\G; *************************** 1. row *************************** Slave_IO_State: Waiting for master to send even 阅读全文
posted @ 2022-09-28 10:11 helontian 阅读(266) 评论(0) 推荐(0)
  2022年9月16日
摘要: Centos7.8关闭NUMA的过程1. 编辑 /etc/default/grub 文件,如下图所示加上:numa=off[root@p0-data-db03 ~]# cat /etc/default/grubGRUB_TIMEOUT=5GRUB_DISTRIBUTOR="$(sed 's, rel 阅读全文
posted @ 2022-09-16 18:08 helontian 阅读(581) 评论(0) 推荐(0)
  2022年7月29日
摘要: 开启Oracle11.2.0.4 DG库的克隆库 (1)演练库启动到mount SQL> startup mount; (2)备库停止日志接受并完成已收日志应用 SQL> alter database recover managed standby database finish; (3)检查备库状 阅读全文
posted @ 2022-07-29 15:44 helontian 阅读(169) 评论(0) 推荐(0)
  2022年6月20日
摘要: mysql> show slave status\G;*************************** 1. row *************************** Slave_IO_State: Waiting for master to send event Master_Host 阅读全文
posted @ 2022-06-20 10:36 helontian 阅读(299) 评论(0) 推荐(0)
  2022年6月14日
摘要: Repmgr:构建2节点PgSQL集群 HAProxy:通过监听ReadWrite,实现集群故障转移,应用感知;负载均衡 Repmgr高可用Postgresql:https://www.icode9.com/content-2-1042335.html PostgreSQL HAProxy ha & 阅读全文
posted @ 2022-06-14 18:23 helontian 阅读(308) 评论(0) 推荐(0)
  2022年5月11日
摘要: 迁移前的路径:binlog: /u01/mysql/logsrelaylog :/u01/mysql/logs 迁移的目标路径:binlog: /nasbackup/logsrelaylog :/nasbackup/logs 一、主库迁移binlog日志 在可停库的场景下:1、首先停止mysql2、 阅读全文
posted @ 2022-05-11 21:30 helontian 阅读(1696) 评论(0) 推荐(1)
  2022年5月6日
摘要: 1、相关日志cluster日志、windows系统日志、错误日志Get-ClusterLog -Destination D:\tkdba\ -UseLocalTime错误日志:如果SQL Server安装在C:\Program Files\Microsoft SQL Server\,则SQL Ser 阅读全文
posted @ 2022-05-06 21:10 helontian 阅读(507) 评论(0) 推荐(0)
  2022年5月5日
摘要: mysqldump使用场景 1、导出表 mysqldump -u用户名 -p密码 数据库名 表名 > 表名.sql 备份单表:mysqldump -uroot -pdbpasswd dbname test1 > test1.sql 导出多张表: mysqldump -uroot -ppasswd - 阅读全文
posted @ 2022-05-05 20:35 helontian 阅读(235) 评论(0) 推荐(0)
摘要: [WARNING]:-Mirror Active, Primary Failed Not In Sync [gpadmin@datacle-gp01 ~]$ gpstate -c 20220513:16:22:24:017955 gpstate:datacle-gp01:gpadmin-[INFO] 阅读全文
posted @ 2022-05-05 14:24 helontian 阅读(438) 评论(0) 推荐(0)
  2022年5月4日
摘要: time模块 time.time()函数返回自那一刻以来的秒数 >>> import time >>> time.time() 1651629220.041479 可以用于一段代码的运行时间计算 1 #!/usr/bin/env python 2 3 import time 4 def calcPr 阅读全文
posted @ 2022-05-04 11:04 helontian 阅读(148) 评论(0) 推荐(0)
摘要: 利用webbrowser模块 webbrowser模块的open()函数可以启动一个新浏览器 >>> import webbrowser >>> webbrowser.open('http://www.baidu.com/') True 用requests模块从Web下载文件 用requests.g 阅读全文
posted @ 2022-05-04 08:50 helontian 阅读(124) 评论(0) 推荐(0)
  2022年5月3日
摘要: CSV模块 Read对象 将CSV文件表示为列表的列表 >>> import csv >>> exampleFile = open('example.csv') Traceback (most recent call last): File "<stdin>", line 1, in <module 阅读全文
posted @ 2022-05-03 19:14 helontian 阅读(329) 评论(0) 推荐(0)
摘要: shutil模块 复制文件和文件夹 shutil.copy() 复制一个文件,shutil.copytree()将复制整个文件夹 >>> import shutil, os >>> os.chdir('C:\\PyProjects') >>> shutil.copy('C:\\PyProjects\ 阅读全文
posted @ 2022-05-03 00:45 helontian 阅读(137) 评论(0) 推荐(0)
  2022年4月28日
摘要: 调整前的awr报告: 调整之后的AWR报告: Library Hit 将cursor_sharing调整为force 阅读全文
posted @ 2022-04-28 15:23 helontian 阅读(321) 评论(0) 推荐(0)
摘要: minact-scn: useg scan erroring out with error e:12751 Oracle11.2.0.4表空间新增数据文件: SYS@>alter tablespace TS_DATA_MDMDATA add datafile '/u01/oradata/mdmdat 阅读全文
posted @ 2022-04-28 15:09 helontian 阅读(1354) 评论(0) 推荐(0)
  2022年4月27日
摘要: 备份数据库 #!/bin/bash #数据库备份 username=admin password='xxxxxx' backup_dir=/nasbackup db_list=$(cat dblist.txt) start_time=$(date +"%Y-%m-%d_%H:%M.%S") echo 阅读全文
posted @ 2022-04-27 14:00 helontian 阅读(307) 评论(0) 推荐(0)
  2022年4月13日
摘要: 登陆clickhouse # clickhouse-client -uxxx --password xxx --port 9000ClickHouse client version 21.10.2.15 (official build).Connecting to localhost:9000 as 阅读全文
posted @ 2022-04-13 09:31 helontian 阅读(162) 评论(0) 推荐(0)
  2022年4月12日
摘要: Docker部署 ES Kibana Run Elasticsearch: $ docker run -d --name elasticsearch --net somenetwork -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" 阅读全文
posted @ 2022-04-12 01:08 helontian 阅读(190) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 16 下一页