随笔 - 404  文章 - 4  评论 - 0  阅读 - 25万
上一页 1 2 3 4 5 6 ··· 16 下一页
  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 阅读(133) 评论(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 阅读(236) 评论(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 阅读(536) 评论(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 阅读(152) 评论(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 阅读(287) 评论(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 阅读(283) 评论(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 阅读(1614) 评论(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 阅读(454) 评论(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 阅读(203) 评论(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 阅读(430) 评论(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 阅读(138) 评论(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 阅读(118) 评论(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 阅读(299) 评论(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 阅读(129) 评论(0) 推荐(0) 编辑
  2022年4月28日
摘要: 调整前的awr报告: 调整之后的AWR报告: Library Hit 将cursor_sharing调整为force 阅读全文
posted @ 2022-04-28 15:23 HelonTian 阅读(311) 评论(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 阅读(1216) 评论(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 阅读(298) 评论(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 阅读(153) 评论(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 阅读(185) 评论(0) 推荐(0) 编辑
  2022年4月10日
摘要: 一、编辑扩容配置文件scale-out-tikv.yaml [tidb@test11 ~]$ cat scale-out-tikv.yaml tikv_servers:- host: 10.172.32.106 ssh_port: 22 port: 20160 status_port: 20180 阅读全文
posted @ 2022-04-10 10:31 HelonTian 阅读(220) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 16 下一页
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示