2025年6月26日
摘要: $ 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 阅读(44) 评论(0) 推荐(0)
  2025年1月24日
摘要: 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 阅读(59) 评论(0) 推荐(0)
  2024年7月17日
摘要: 定时任务制定 $ 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 阅读(159) 评论(0) 推荐(0)
摘要: 定时任务: $ 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 阅读(100) 评论(0) 推荐(0)
  2024年7月14日
摘要: 服务器管理器->工具->任务计划程序 右键"任务计划程序"->新文件夹,自定义为DBA 右键DBA文件夹,创建基本任务,命名为purge_backup_history 选择每天触发 选择每天的执行时间为2:00:00,选择启动程序。因为数据库备份策略在每天23:00,所以指定清理历史备份时间为凌晨2 阅读全文
posted @ 2024-07-14 18:33 helontian 阅读(68) 评论(0) 推荐(0)
  2024年7月11日
摘要: 导出数据库: 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 阅读(72) 评论(0) 推荐(0)
  2024年7月9日
摘要: 一、服务器环境 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 阅读(67) 评论(0) 推荐(0)
  2023年12月8日
摘要: 查询日志大小: 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 阅读(96) 评论(0) 推荐(0)
摘要: SQL Server日志清理 在数据库使用很久后日志文件会累计的越来越大,如果硬盘空间不足可能会导致宕机。 SQL Server三个恢复模式 sql server数据库提供了三种恢复模式:完整,简单和大容量日志,这些模式决定了sql server如何使用事务日志,如何选择它要记录的操作,以及是否截断 阅读全文
posted @ 2023-12-08 16:27 helontian 阅读(293) 评论(0) 推荐(0)
  2023年12月7日
摘要: 恢复报错信息: sp_configure 值 'contained database authentication' 必须设置为 1 才能 创建 包含的数据库。您可能需要使用 RECONFIGURE 设置 value_in_use。 (Microsoft SQL Server,错误: 12824) 阅读全文
posted @ 2023-12-07 11:49 helontian 阅读(135) 评论(0) 推荐(0)
  2023年12月4日
摘要: 通过事件查看器: 阅读全文
posted @ 2023-12-04 15:51 helontian 阅读(120) 评论(0) 推荐(0)
摘要: 配置用户及用户组 1、创建用户 进入Powershell后,输入net user 查看当前存在的用户 输入创建用户的命令:net user appadmin P@ssword /fullname:”一般用户” /comment:”堡垒机用户” /add 2、将用户加入到Administrators用 阅读全文
posted @ 2023-12-04 10:31 helontian 阅读(67) 评论(0) 推荐(0)
  2023年12月3日
摘要: 日志收集: 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 阅读(156) 评论(0) 推荐(0)
  2023年11月30日
摘要: 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 阅读(124) 评论(0) 推荐(0)
  2023年11月17日
摘要: 【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 阅读(475) 评论(0) 推荐(0)
  2023年11月15日
摘要: 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 阅读(234) 评论(0) 推荐(0)
  2023年11月4日
摘要: 安装包下载: 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 阅读(447) 评论(0) 推荐(0)
  2023年10月24日
摘要: 服务器信息:应用服务器:部署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 阅读(160) 评论(0) 推荐(0)
  2023年10月16日
摘要: 一、准备工作 # 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 阅读(134) 评论(0) 推荐(0)
  2023年10月9日
摘要: 软件版本 grafana 7.5.3 下载地址:https://grafana.com/grafana/download/7.5.3?pg=oss-graf&plcmt=hero-btn-1 influxdb 1.7.11 influxdb-1.7.11.x86_64.rpm 下载地址:https: 阅读全文
posted @ 2023-10-09 11:03 helontian 阅读(54) 评论(0) 推荐(0)