随笔 - 225  文章 - 0  评论 - 6  阅读 - 75098

随笔分类 -  数据库相关

1 2 3 下一页
主要是各种数据库相关内容
redis6.0.5之cluster.c阅读笔记3-定时任务
摘要:redis6.0.5之cluster.c阅读笔记3-定时任务 ************************************************************************************************ 在server.c中,有集群的定时任务,每秒 阅读全文
posted @ 2021-12-24 17:17 子虚乌有 阅读(125) 评论(0) 推荐(0) 编辑
redis6.0.5之cluster.c阅读笔记2-报文处理
摘要:redis6.0.5之cluster.c阅读笔记2-报文处理 ************************************************************************************************ /* When this function 阅读全文
posted @ 2021-12-22 20:40 子虚乌有 阅读(133) 评论(0) 推荐(0) 编辑
redis6.0.5之cluster.c阅读笔记1-集群初始化
摘要:********************************************************************************* 在server.c文件中,服务器启动的时候,如果是集群模式,那么会调用函数clusterInit void initServer(voi 阅读全文
posted @ 2021-12-16 19:39 子虚乌有 阅读(418) 评论(0) 推荐(0) 编辑
redis6.0.5之cluster阅读笔记-搭建cluster环境3M3S
摘要:搭建cluster环境 redis的cluster模式,比较方便扩容和收缩,适合缓存键值对资源的合理利用 准备六台机器 10.100.13.81 10.100.13.88 10.100.13.160 10.100.13.109 10.100.13.111 10.100.13.113 1.修改配置 先 阅读全文
posted @ 2021-12-14 19:46 子虚乌有 阅读(59) 评论(0) 推荐(0) 编辑
关于redis-6.0.5之sentinel的定时任务
摘要:进过上文(关于redis sentinel的启动 https://www.cnblogs.com/cquccy/p/15625768.html ) 我们知道了默认情况下大概每隔100毫秒就会调用一次sentinel的定时器,那么定时器里面到底做了哪些内容呢? 让我们一起来看下 函数sentinelT 阅读全文
posted @ 2021-12-13 20:45 子虚乌有 阅读(193) 评论(0) 推荐(0) 编辑
备忘gdbredis源码提示xxxxxxxx:没有那个文件或目录
摘要:调试redis sentinel gdb ./src/redis-sentinel set args ./sentinel.conf 加断点 b async.c:redisAsyncRead 开始运行 r 出现提示 523 async.c: 没有那个文件或目录. 找不到async.c源码 输入dir 阅读全文
posted @ 2021-12-02 20:04 子虚乌有 阅读(102) 评论(0) 推荐(0) 编辑
关于redis sentinel的启动
摘要:关于redis sentinel的启动 ****************************************************************************** 1启动方式 可以看到在server.c中,下面这一行判断是否是sentinel模式启动 server. 阅读全文
posted @ 2021-11-30 19:37 子虚乌有 阅读(161) 评论(0) 推荐(0) 编辑
redis关于sentinel配置bind的ip先后顺序问题
摘要:redis关于sentinel配置bind的ip先后顺序问题 准备开始看sentinel相关的代码,首先先启动起来看看情况, 于是准备了3台机器 10.100.13.81 10.100.13.88 10.100.13.160 10.100.13.81作为主 88和160 作为从机, 启动单一的sen 阅读全文
posted @ 2021-11-29 20:28 子虚乌有 阅读(296) 评论(0) 推荐(0) 编辑
redis6.0.5之REPLICAOF同步命令-主从数据同步
摘要:REPLICAOF同步数据 根据注释,版本5以后使用REPLICAOF代替SLAVEOF { "SLAVEOF", "host port", "Make the server a replica of another instance, or promote it as master. Deprec 阅读全文
posted @ 2021-11-29 20:27 子虚乌有 阅读(1120) 评论(0) 推荐(0) 编辑
一个关于工作日和非工作日的表格
摘要:一个关于工作日和非工作日的表格 表设计如下: CREATE TABLE special_work_rest_day ( HWDAY varchar(10) COMMENT '具体日期', DAYTYPE varchar(1) COMMENT '参数类型 1休息 2工作', STATUS varcha 阅读全文
posted @ 2021-10-26 17:58 子虚乌有 阅读(259) 评论(0) 推荐(0) 编辑
mysql和oracle 不同的地方
摘要:今天一些收获date_format(date,'%Y-%m-%d') <--> to_char()str_to_date(date,'%Y-%m-%d') <--> to_date();select date_format('2019-02-01','%Y/%m/%d');select date_f 阅读全文
posted @ 2019-01-23 17:11 子虚乌有 阅读(340) 评论(0) 推荐(0) 编辑
关于备份PFILE
摘要:今天远程使用sqlplus登陆, 尝试直接将spfile备份到本地 sqlplus user/pass@tnsname as sysdbacreate pfile='F:\backup\init20170602backup.ora' from memory;本以为会保存到本地,实际上还是保存到连接O 阅读全文
posted @ 2017-06-02 19:20 子虚乌有 阅读(228) 评论(0) 推荐(0) 编辑
关于oralce数值存储
摘要:今天做dump的时候,对oracle的数字存储规则不是明白,就查了一些资料,这个资料不错 http://www.jlcomp.demon.co.uk/number_format.html (来自 : Jonathan Lewis) 做简单翻译如下: JL Computer Consultancy 一 阅读全文
posted @ 2014-10-29 17:14 子虚乌有 阅读(250) 评论(0) 推荐(0) 编辑
How to debug procedure in Oracle
摘要:1.create a table with two columns CREATE TABLE t_debug_log(StepInfo VARCHAR2(100 BYTE), intime datetime) 2. in the procedure declare l_dml varchar2(32 阅读全文
posted @ 2014-02-26 10:02 子虚乌有 阅读(220) 评论(0) 推荐(0) 编辑
Add new datafile or tempfile to space
摘要:ALTER DATABASE TEMPFILE 'D:\DATA\ORACLE\xxx_HOME\ORADATA\MIG_TEMP01.DBF' OFFLINE; select file#,status,name from v$tempfile; select file#,status,name from v$datafile; alter tablespace MIG_TEMP drop ... 阅读全文
posted @ 2013-12-04 10:56 子虚乌有 阅读(342) 评论(0) 推荐(0) 编辑
select columns to string
摘要:set serveroutput on DECLARE l_next_id integer; l_total integer; l_dml varchar2(1000); l_string varchar2(2000); l_column varchar2(100); begin l_string :=''; select count(1) into l_total from all_... 阅读全文
posted @ 2013-12-02 14:47 子虚乌有 阅读(323) 评论(0) 推荐(0) 编辑
Test resource is busy or not for ORACLE
摘要:Some time, we have no system or dba role, we must use schema ownere to test the resource busy or not follow is the test: // start sqlplus1 drop table 阅读全文
posted @ 2013-11-19 10:11 子虚乌有 阅读(216) 评论(0) 推荐(0) 编辑
LogicalSchema sql script
摘要:-------------------------------------------------------------------------------- -- logicalschema.sql -- 1. Set initial preferences for the logicalschema instance -- 2.Install clean-up procedure for... 阅读全文
posted @ 2013-11-12 19:27 子虚乌有 阅读(207) 评论(0) 推荐(0) 编辑
The problem when we use IMPDP
摘要:create directory mydir as 'c:\data' grant read,write on directory mydir to schemaname; export: expdp user/pass@db DIRECTORY=mydirectory schemas=schema 阅读全文
posted @ 2013-11-12 19:19 子虚乌有 阅读(179) 评论(0) 推荐(0) 编辑
How to use 10046 event trace quickly?
摘要:快速 入门 使用 10046 事件 How to use 10046 event trace quickly?--author Eureka at 2013.06.06 第一步 使用sqlplus 连接Oracle服务器 1 Use tool Sqlplus connect to Oracle server. Such as Sqlplus username/password@db 第... 阅读全文
posted @ 2013-09-24 10:20 子虚乌有 阅读(264) 评论(0) 推荐(0) 编辑

1 2 3 下一页
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示