摘要: 修改postgresql.conf archive_mode =on%p = path of file to archive%f = file name only archive_command ='cp %p /u01/pgsql/archive/pg_%f' 重启postgresql pg_ct 阅读全文
posted @ 2019-09-22 19:01 刚好遇见Mysql 阅读(3870) 评论(0) 推荐(0) 编辑
摘要: postgresql11 有2种安装方法:二进制源码安装 、rpm包安装 不过在上述2中安装方式前都要先建用户和组及目录编辑用户环境变量 严格起来还需要设置sysctl.conf and limits.conf rpm安装完毕以后需要从/usr/local/pgsql-11下的东西拷贝到/u01/p 阅读全文
posted @ 2019-09-22 17:04 刚好遇见Mysql 阅读(5181) 评论(0) 推荐(0) 编辑
摘要: 每隔1秒ping3次 [redis@redis01 ~]$ redis-cli -h 192.168.20.201 -p 7003 -i 1 -r 3 ping PONG PONG PONG 模拟复制进程 [redis@redis01 7001]$ redis-cli -h 192.168.20.201 -p 7002 --slave SYNC with master, discarding 17 阅读全文
posted @ 2019-09-17 18:09 刚好遇见Mysql 阅读(211) 评论(0) 推荐(0) 编辑
摘要: redis cluster和小哨兵组合 高可用方案是一种全自动的办法 cluster 主要编辑3个参数 启动server 创建cluster,redis5.0开始不再使用ruby搭建集群 查看cluster信息 添加从节点 查看nodes 添加master 删除节点 和 删除复制节点命令是一样的 检 阅读全文
posted @ 2019-09-16 21:47 刚好遇见Mysql 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 用主从复制的情况下,Master服务器进行了down机的情况,我们的系统就不能再进行写的操作,所以此时redis在2.6版本引入了哨兵模式,但是并不稳定,2.8版本之后哨兵模式才稳定了起来。顾名思义Redis的哨兵模式就是对redis系统进行实时的监控,其主要功能有下面两点1.监测主数据库和从数据库 阅读全文
posted @ 2019-09-16 18:45 刚好遇见Mysql 阅读(392) 评论(0) 推荐(0) 编辑
摘要: 下载redis wget http://download.redis.io/releases/redis-5.0.5.tar.gz 创建用户及目录 groupadd redis useradd -g redis redismkdir -p /u01/redis 解压及安装 gzip -d redis 阅读全文
posted @ 2019-09-16 18:06 刚好遇见Mysql 阅读(215) 评论(0) 推荐(0) 编辑
摘要: dbca 过程中如果提示有asm 磁盘的权限问题,可以在host01 和host02 分别设置/u01/app/11.2.0/grid/bin 目录下的oracle 权限,执行chmod 6755 oracle,再重新将之前的删除再执行dbca 阅读全文
posted @ 2019-09-10 06:52 刚好遇见Mysql 阅读(479) 评论(0) 推荐(0) 编辑
摘要: linux下面使用通配符正常 impdp system/oracle directory=dump dumpfile=ht_%u remap_schema=ht:ht1 REMAP_TABLESPACE=%:ts_3 TABLE_EXISTS_ACTION=replace 阅读全文
posted @ 2019-09-10 06:45 刚好遇见Mysql 阅读(1536) 评论(0) 推荐(0) 编辑
摘要: crsctl start hasCRS-4124: Oracle High Availability Services startup failed.CRS-4000: Command Start failed, or completed with errors. [grid@qzdb1 clien 阅读全文
posted @ 2019-09-06 10:52 刚好遇见Mysql 阅读(636) 评论(0) 推荐(0) 编辑
摘要: 1 [root@htdb2 ~]# /u01/app/crs/bin/oifcfg getif 2 eth11 192.168.20.0 global public 3 eth12 10.0.0.0 global cluster_interconnect 4 [root@htdb2 ~]# /u01/app/crs/bin/oifcfg setif -global eth13... 阅读全文
posted @ 2019-07-09 13:17 刚好遇见Mysql 阅读(375) 评论(0) 推荐(0) 编辑