Loading

摘要: 1.删除某个目录下的几天前的文件 find /u01/app/oracle/diag/rdbms/marc/marc1/trace -mtime +7 -exec rm {} \; find /u01/app/oracle/diag/rdbms/orcl/orcl/trace -mtime +1|x 阅读全文
posted @ 2020-02-26 10:16 李行行 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 系统版本 [root@rsync-test01 ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.8 (Santiago) 脚本内容 #!/bin/bash cd /u01/app/oracle/diag/rd 阅读全文
posted @ 2020-02-25 10:06 李行行 阅读(730) 评论(0) 推荐(0) 编辑
摘要: 安装mysql 5.7遇到一个特别纠结的问题,初始化成功之后,使用临时密码提示过期。反复初始化n次,还是临时密码过期。脑袋很大。下面贴出代码 [root@oracle11g data]# mysqld --initialize --user=mysql [root@oracle11g data]# 阅读全文
posted @ 2020-01-14 11:27 李行行 阅读(1999) 评论(0) 推荐(0) 编辑
摘要: 生成awr报告的过程中,发生awr报告没有快照,并返回ORA-20200错误。 查看dba_hist_active_session_history发现有数据,判断mmon和mmnl后台进程的问题,故需要重新启动mmon和mmnl后台进程 方法一: 重启数据库 方法二: 启用restricted模式, 阅读全文
posted @ 2020-01-11 23:33 李行行 阅读(3292) 评论(0) 推荐(0) 编辑
摘要: 1.日志监控三个经典状态参数 2.计算数据库检索数据命中率 3.计算内存读的趋势 4.调整mysql数据库的读写线程数量 是否进行调整我们要结合数据库读写性能,如果数据库在系统最繁忙的时候读写线程还有空闲等待的,那么我们就不需要进行调整,通过下面读写线程的状态,我们就看出数据库的读写线程的数量不需要 阅读全文
posted @ 2019-11-13 15:58 李行行 阅读(437) 评论(0) 推荐(0) 编辑
摘要: mysql 5.6升级到mysql5.7查看参数报错 --从mysql5.7.6开始information_schema.global_status已经开始被舍弃,为了兼容性,此时需要打开 show_compatibility_56 解决办法 阅读全文
posted @ 2019-11-03 11:01 李行行 阅读(4703) 评论(0) 推荐(0) 编辑
摘要: 官网下载5.6版本 Linux-Generic版本 https://www.mysql.com/ mysql-5.6.46-linux-glibc2.12-x86_64.tar.gz mysql-5.6.46-linux-glibc2.12-x86_64.tar.gz 1.创建mysql用户组 gr 阅读全文
posted @ 2019-11-02 21:03 李行行 阅读(978) 评论(0) 推荐(0) 编辑
摘要: [oracle@bjyctzdb04 trace]$ id uid=1008(oracle) gid=801(oinstall) groups=801(oinstall),802(dba),806(asmdba),808(oper) [root@bjyctzdb04 ~]# echo 802 >/p 阅读全文
posted @ 2019-10-31 20:25 李行行 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 方法一:通过设置client标签,直接编辑/etc/my.cnf文件 我们直接输入mysql就可以进行登录mysql数据库,这种不好的地方就是我们的密码是不加密的,可见的,是不安全的。 [root@tz-ftp-yum ~]# mysql Welcome to the MySQL monitor. 阅读全文
posted @ 2019-10-31 19:38 李行行 阅读(18387) 评论(0) 推荐(0) 编辑
摘要: 服务器端配置 1.关闭防火墙,以及设置开启不自启 [root@localhost network-scripts]# systemctl stop firewalld [root@localhost network-scripts]# systemctl disable firewalld Remo 阅读全文
posted @ 2019-10-31 17:27 李行行 阅读(1494) 评论(0) 推荐(0) 编辑