爱生活的Iter

导航

2026年5月25日 #

SQLServer错误码-DNS 拒绝更新请求,系统不能 注册这些 RR

摘要: https://learn.microsoft.com/zh-cn/azure/azure-sql/virtual-machines/windows/hadr-cluster-best-practices?view=azuresql&tabs=windows2012#heartbeat-and-th 阅读全文

posted @ 2026-05-25 19:44 helontian 阅读(16) 评论(0) 推荐(0)

2025年6月26日 #

Rhel7.9配置FTP服务

摘要: $ cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.9 (Maipo) # yum install vsftpd # yum install lftp 创建一个用于访问 FTP 服务器的用户 # adduser ft 阅读全文

posted @ 2025-06-26 09:23 helontian 阅读(130) 评论(0) 推荐(0)

2025年1月24日 #

MySQL安装过程报错处理

摘要: rhel8.10安装MySQL8.0.32, error while loading shared libraries: libncurses.so.5 $ mysql -uroot -p mysql: error while loading shared libraries: libncurses 阅读全文

posted @ 2025-01-24 13:44 helontian 阅读(106) 评论(0) 推荐(0)

2024年7月17日 #

【Oracle归档日志管理】ORACLE归档日志清理策略

摘要: 定时任务制定 $ crontab -l #delete archivelog before 7 days 00 02 * * * sh /home/oracle/tkdba/del_arch_everyday.sh 脚本内容 脚本1:将包含$(date +%F)写到脚本中 $ cat /home/o 阅读全文

posted @ 2024-07-17 14:48 helontian 阅读(191) 评论(0) 推荐(0)

[定时任务未实现]Linux制定定时任务未生效

摘要: 定时任务: $ crontab -l #delete archivelog before 7 days 00 02 * * * sh /home/oracle/tkdba/del_arch.sh >> /home/oracle/tkdba/logs/del_arch.log.$(date +%F) 阅读全文

posted @ 2024-07-17 14:32 helontian 阅读(133) 评论(0) 推荐(0)

2024年7月14日 #

【SQLServer备份策略】通过Windows任务计划程序清理SQLServer历史备份

摘要: 服务器管理器->工具->任务计划程序 右键"任务计划程序"->新文件夹,自定义为DBA 右键DBA文件夹,创建基本任务,命名为purge_backup_history 选择每天触发 选择每天的执行时间为2:00:00,选择启动程序。因为数据库备份策略在每天23:00,所以指定清理历史备份时间为凌晨2 阅读全文

posted @ 2024-07-14 18:33 helontian 阅读(108) 评论(0) 推荐(0)

2024年7月11日 #

GP数据库数据迁移-pg_dump备份恢复GP数据库

摘要: 导出数据库: pg_dump --gp-syntax -U xxx -h xxx -p 5432 -d assetdb -Fa -c -C -f /home/gpadmin/tempdir/scottdb_202407111444.sql 导入GP数据库:scottdb_202407111444.s 阅读全文

posted @ 2024-07-11 10:28 helontian 阅读(105) 评论(0) 推荐(0)

2024年7月9日 #

【MySQL MGR管理】MySQL5.7 MGR集群切换测试

摘要: 一、服务器环境 MySQL5.7 MGR集群切换 目标:故障切换,启用备选主之后。还原MGR,切换回原主 服务器信息 [root@0321-mysqlmgr3 ~]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost 阅读全文

posted @ 2024-07-09 09:09 helontian 阅读(101) 评论(0) 推荐(0)

2023年12月8日 #

【SQLServer2019管理】事务日志备份策略

摘要: 查询日志大小: dbcc sqlperf(logspace) go 备份事务日志,之后清理掉3天前的备份,最后的目的是进行日志收缩 收缩的T-SQL语句 USE [infusion] GO DBCC SHRINKFILE (infusion_log,100) GO DBCC SHRINKFILE ( 阅读全文

posted @ 2023-12-08 18:37 helontian 阅读(116) 评论(0) 推荐(0)

【SQLServer2019管理】事务日志收缩

摘要: SQL Server日志清理 在数据库使用很久后日志文件会累计的越来越大,如果硬盘空间不足可能会导致宕机。 SQL Server三个恢复模式 sql server数据库提供了三种恢复模式:完整,简单和大容量日志,这些模式决定了sql server如何使用事务日志,如何选择它要记录的操作,以及是否截断 阅读全文

posted @ 2023-12-08 16:27 helontian 阅读(367) 评论(0) 推荐(0)

2023年12月7日 #

【SQLServer2019管理】备份还原包含数据库

摘要: 恢复报错信息: sp_configure 值 'contained database authentication' 必须设置为 1 才能 创建 包含的数据库。您可能需要使用 RECONFIGURE 设置 value_in_use。 (Microsoft SQL Server,错误: 12824) 阅读全文

posted @ 2023-12-07 11:49 helontian 阅读(189) 评论(0) 推荐(0)

2023年12月4日 #

【SQLServer AlwaysOn管理】备份策略未生效,作业执行成功,但是未产生备份文件

摘要: 通过事件查看器: 阅读全文

posted @ 2023-12-04 15:51 helontian 阅读(128) 评论(0) 推荐(0)

Windows本地用户管理

摘要: 配置用户及用户组 1、创建用户 进入Powershell后,输入net user 查看当前存在的用户 输入创建用户的命令:net user appadmin P@ssword /fullname:”一般用户” /comment:”堡垒机用户” /add 2、将用户加入到Administrators用 阅读全文

posted @ 2023-12-04 10:31 helontian 阅读(106) 评论(0) 推荐(0)

2023年12月3日 #

【SQLServer日常管理】SQLServer2019及SQLServer FC日志收集

摘要: 日志收集: 1. SQL Server 错误日志 SQL Server 2019: <Data Drive>:\Program Files\Microsoft SQL Server\MSSQL15.<instance name>\MSSQL\Log 以上路径可能根据您的实例名称不同而有所不同。请找到 阅读全文

posted @ 2023-12-03 15:04 helontian 阅读(197) 评论(0) 推荐(0)

2023年11月30日 #

【Transact-SQL(T-SQL)】创建SQLServer2019 用户

摘要: https://learn.microsoft.com/zh-cn/sql/t-sql/statements/create-login-transact-sql?view=sql-server-ver16 主要副本创建登录名、用户名 创建登录名 CREATE LOGIN TestLogin WITH 阅读全文

posted @ 2023-11-30 11:42 helontian 阅读(172) 评论(0) 推荐(0)

2023年11月17日 #

【Oracle数据迁移】Oracle19C数据泵数据迁移

摘要: 【Oracle数据迁移】Oracle19C数据泵数据迁移版本:Oracle19C需求:将10.64.147.207业务数据库PDB2上面的业务数据迁移至10.64.87.206数据库实例下 1、在10.64.147.207做数据导出工作 SQL> show pdbs; CON_ID CON_NAME 阅读全文

posted @ 2023-11-17 15:45 helontian 阅读(581) 评论(0) 推荐(0)

2023年11月15日 #

Linux系统Keepalive Nginx做前置机配置

摘要: 1、软件官网下载 https://www.keepalived.org/download.htmlhttp://nginx.org/download/选择软件版本如下[root@ZE-NGXFR01 data]# lltotal 1960-rw 1 sysadm sysadm 927631 Nov 阅读全文

posted @ 2023-11-15 18:24 helontian 阅读(314) 评论(0) 推荐(0)

2023年11月4日 #

【MySQL8.0.32安装】Windows Server2019安装MySQL8.0.32

摘要: 安装包下载: https://downloads.mysql.com/archives/community/ 下载mysql-8.0.32-winx64.zip 1、制定目录配置 basedir=D:\\mysql8.0.32#mysql数据存放目录datadir=D:\\mysql8.0.32\\ 阅读全文

posted @ 2023-11-04 08:47 helontian 阅读(569) 评论(0) 推荐(0)

2023年10月24日 #

通过MySQL router连接MySQL8.0.23 Group Replication使用方式

摘要: 服务器信息:应用服务器:部署Myrouter,版本mysql-router-8.0.23-linux-glibc2.17-x86_64-minimal10.172.144.8810.172.144.89 数据库服务器:部署MGR,版本mysql-8.0.23-linux-glibc2.17-x86_ 阅读全文

posted @ 2023-10-24 14:30 helontian 阅读(196) 评论(0) 推荐(0)

2023年10月16日 #

MySQL主从复制与Keepalive结合方案

摘要: 一、准备工作 # ldd --versionldd (GNU libc) 2.17Copyright (C) 2012 Free Software Foundation, Inc.This is free software; see the source for copying conditions 阅读全文

posted @ 2023-10-16 23:51 helontian 阅读(155) 评论(0) 推荐(0)