摘要: 用主从复制的情况下,Master服务器进行了down机的情况,我们的系统就不能再进行写的操作,所以此时redis在2.6版本引入了哨兵模式,但是并不稳定,2.8版本之后哨兵模式才稳定了起来。顾名思义Redis的哨兵模式就是对redis系统进行实时的监控,其主要功能有下面两点1.监测主数据库和从数据库 阅读全文
posted @ 2019-09-16 18:45 刚好遇见Mysql 阅读(421) 评论(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 阅读(225) 评论(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 阅读(525) 评论(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 阅读(1650) 评论(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 阅读(685) 评论(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 阅读(389) 评论(0) 推荐(0)
摘要: 1 11g中引入DBMS_SHARED_POOL.PURGE删除指定的某个sql_id不用清空shared_pool 2 查看包DBMS_SHARED_POOL定义 3 desc sys.DBMS_SHARED_POOL; 4 PROCEDURE PURGE 5 Argument Name Type In/Out Default? 6 ... 阅读全文
posted @ 2019-07-03 22:39 刚好遇见Mysql 阅读(1084) 评论(0) 推荐(0)
摘要: 1 mysql> SHOW VARIABLES LIKE 'innodb_file_per_table'; 2 + + + 3 | Variable_name | Value | 4 + + + 5 | innodb_file_per_table | ON | 6 + + + 7 1 row in 阅读全文
posted @ 2019-06-05 17:19 刚好遇见Mysql 阅读(8187) 评论(0) 推荐(0)
摘要: 测试表employees.t_emp水平分片,按照emp_no分片 配置mycat schema rule 1 [mycat@redis04 conf]$ cat schema.xml 2 <?xml version="1.0"?> 3 <!DOCTYPE mycat:schema SYSTEM " 阅读全文
posted @ 2019-06-04 16:46 刚好遇见Mysql 阅读(229) 评论(0) 推荐(0)
摘要: mysql> select emp_no,first_name,last_name,gender into outfile '/home/mycat/t1.txt' -> FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMIN 阅读全文
posted @ 2019-05-30 14:16 刚好遇见Mysql 阅读(662) 评论(0) 推荐(0)