上一页 1 ··· 8 9 10 11 12 13 下一页
摘要: 具体搭建参考 Linux两节点+keepalive搭建MySQL双主集群 - So怪咖 - 博客园 (cnblogs.com) auto_increment_offset = 1 # 双主复制中,2台服务器的自增长字段初值分别配置为1和2,取值范围是1 .. 65535 auto_increment 阅读全文
posted @ 2023-02-15 22:43 蚌壳里夜有多长 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 1.锁定不使用的用户 sqlplus / as sysdba alter user username account lock; 2.对现有profile进行备份 set linesize 1000 set pagesize 0 set echo off set heading off set fe 阅读全文
posted @ 2023-02-15 14:41 蚌壳里夜有多长 阅读(421) 评论(0) 推荐(0) 编辑
摘要: 1.创建物化视图 alter session set container=pdb; grant create materialized view to scott; create materialized view 物化视图名 -- 1. 创建物化视图build [immediate | defer 阅读全文
posted @ 2023-02-15 13:26 蚌壳里夜有多长 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 我有一个备库经常出现这个错误 查看alert 是日志切换频繁导致解决方案 oracle support 1243177.1 阅读全文
posted @ 2023-02-15 10:53 蚌壳里夜有多长 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 目前有一个求oracle tps这么一个需求 19c要用这个统计tps select ceil(a.value) from v$con_sysmetric a,v$container b where a.metric_name ='User Transaction Per Sec' and a.co 阅读全文
posted @ 2023-02-13 17:38 蚌壳里夜有多长 阅读(211) 评论(0) 推荐(0) 编辑
摘要: mysql 数据库出现这个问题 解决办法 mysql_upgrade -uroot -p 修复完成之后回复正常 阅读全文
posted @ 2023-02-10 11:01 蚌壳里夜有多长 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 业务希望在主备切换时候可以自动完成 1.修改参数 主从两边都设置set global set enforce_gtid_consistency=warn; 去错误日志查看错误信息tail -100f error.log 如何错误日志没有告警 主从两边都设置set global set enforce 阅读全文
posted @ 2023-02-09 17:34 蚌壳里夜有多长 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 业务上需要用到 create table as select时候gtid不支持 1.停止从库 主从延时要停止 1、stop slave 2、 CHANGE MASTER TO MASTER_AUTO_POSITION =0,MASTER_HOST='master2.example.com', MAS 阅读全文
posted @ 2023-02-09 17:23 蚌壳里夜有多长 阅读(21) 评论(0) 推荐(0) 编辑
摘要: CREATE TABLE new_table LIKE original_table; new_table 是需要创建的表 original_table 是一个已经存在的表 通过这种方法创建表,包括原始表中定义的任何列属性和索引 临时表不可以,临时表创建方法 CREATE TEMPORARY TAB 阅读全文
posted @ 2023-02-09 16:11 蚌壳里夜有多长 阅读(96) 评论(0) 推荐(0) 编辑
摘要: vim 文件名字 -c "e ++enc=gb18030 | set fileencodings=utf-8 | x" 该完之后就可以在脚本中过滤文件中的中文了 阅读全文
posted @ 2023-02-09 09:23 蚌壳里夜有多长 阅读(219) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 下一页