2017年11月2日
摘要:
1. 日志传输方式 有两种日志传输方式(ARC和LGWR),第一种是采用ARC进程传输日志,其示意图如下: 注:上图来自《大话Oracle RAC》 其大致过程如下: 1)主库:日志先写入在线重做日志,当在线重做日志满后(或人为切换), ARC0进程归档该日志至主库本地归档目录,归档完成后,ARC1
阅读全文
posted @ 2017-11-02 18:57
helontian
阅读(1757)
推荐(0)
摘要:
Maximum Availability Maximum Availability This protection mode provides the highest level of data protection that is possible without compromising the
阅读全文
posted @ 2017-11-02 18:51
helontian
阅读(252)
推荐(0)
2017年10月4日
摘要:
引自:http://www.cnblogs.com/me115/p/3427319.html 本文将介绍Linux下使用Shell处理文本时最常用的工具:find、grep、xargs、sort、uniq、tr、cut、paste、wc、sed、awk;提供的例子和参数都是最常用和最为实用的;我对s
阅读全文
posted @ 2017-10-04 16:25
helontian
阅读(144)
推荐(0)
2017年9月30日
摘要:
http://blog.itpub.net/29345367/viewspace-1816427/ 方法一: 在实际的应用中经常会遇到TRUNCATE或者DELETE表中的数据后发现表空间并没有将空间进行释放,磁盘空间被告占用感觉空间白白被浪费掉了。 通过下面的SQL语句查看表空间总大小及实用大小,
阅读全文
posted @ 2017-09-30 16:11
helontian
阅读(385)
推荐(0)
摘要:
检查ora.crf服务 crsctl stat res ora.crf -init -t 关闭ora.crf服务 crsctl stop res ora.crf -init cd $ORACLE_HOME/crf/db rm *.bdb CHM(ClusterHealth Monitor)服务未关导
阅读全文
posted @ 2017-09-30 15:45
helontian
阅读(591)
推荐(0)
2017年9月23日
摘要:
undo segments的extents 的状态共有四种,free ,active , inacitve, expired SQL> select SEGMENT_NAME,TABLESPACE_NAME,STATUS from dba_undo_extents; SEGMENT_NAME TAB
阅读全文
posted @ 2017-09-23 16:10
helontian
阅读(441)
推荐(0)
2017年9月22日
摘要:
容器间切换 切换到对应的PDBSSQL> alter session set container=pdb1;Session altered.SQL> alter database open; 切换到cdb$root下: SQL>conn / as sysdba 可以用os认证、ezconnect方式
阅读全文
posted @ 2017-09-22 17:00
helontian
阅读(321)
推荐(0)
2017年9月15日
摘要:
Fatal NI connect error 12170. VERSION INFORMATION: TNS for Linux: Version 11.2.0.3.0 - Production Oracle Bequeath NT Protocol Adapter for Linux: Versi
阅读全文
posted @ 2017-09-15 11:04
helontian
阅读(729)
推荐(0)
2017年9月12日
摘要:
http://blog.itpub.net/23135684/viewspace-1203447/ Mon Sep 11 08:56:10 2017Errors in file /oracle/db/diag/rdbms/orcl/orcl1/trace/orcl1_o000_39574.trc (
阅读全文
posted @ 2017-09-12 16:39
helontian
阅读(765)
推荐(0)
2017年9月11日
摘要:
转载:http://blog.csdn.net/yuanyuanispeak/article/details/52765365 二者之间有六大区别: SELECT UPDATE INSERT Delete 对于AUTO_INCREMENT类型的字段,InnoDB中必须包含只有该字段的索引,但 是在M
阅读全文
posted @ 2017-09-11 07:30
helontian
阅读(278)
推荐(0)
2017年9月8日
摘要:
摘自:http://blog.csdn.net/zq9017197/article/details/7925338
阅读全文
posted @ 2017-09-08 16:47
helontian
阅读(120)
推荐(0)
2017年9月7日
摘要:
MySQL-5.6.36.tar.gz多实例安装 查看官方安装说明 安装cmake及相关依赖包 [root@vhost1 ~]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.0 (Maipo) [root@vho
阅读全文
posted @ 2017-09-07 17:01
helontian
阅读(353)
推荐(0)
2017年8月31日
摘要:
[oracle@db04-1 ~]$ sqlplus -prelim / as sysdba SQL*Plus: Release 11.2.0.3.0 Production on 星期四 8月 31 10:00:51 2017 Copyright (c) 1982, 2011, Oracle. Al
阅读全文
posted @ 2017-08-31 10:20
helontian
阅读(423)
推荐(0)
2017年8月28日
摘要:
MySQL体系结构 InnoDB体系结构 MySQL实例有一组后台线程、一些内存块和若干服务线程组成 在默认情况下,MySQL有7组后台线程,分别为1个主线程,4组IO线程,1个锁线程,1个错误监控线程。MySQL5.5之后,有新增了一个purge线程。 这些线程的主要功能如下: master th
阅读全文
posted @ 2017-08-28 21:03
helontian
阅读(207)
推荐(0)
摘要:
表格对比了MyISAM、InnoDB、Memory这3个常用引擎支持的索引类型: 比较常用的索引是B-Tree索引和Hash索引,只有Memory/Heap引擎支持Hash索引。Hash索引适用于Key-Value查询,通过Hash索引要比通过B-Tree索引查询更迅速;Hash索引不适用范围查询,
阅读全文
posted @ 2017-08-28 20:37
helontian
阅读(1573)
推荐(0)
摘要:
参考:http://www.linuxidc.com/Linux/2015-06/119354.htm cmake编译时,提示错误 CMake Error: The source directory "/tools/mysql-5.6.36-linux-glibc2.5-x86_64" does n
阅读全文
posted @ 2017-08-28 16:46
helontian
阅读(145)
推荐(0)
2017年8月11日
摘要:
4节点RAC:版本oracle11.2.0.4 22:20——23:40发生ora600 alert日志: Errors in file /u01/app/oracle/diag/rdbms/orcl/orcl2/trace/orcl2_j000_28639362.trc (incident=114
阅读全文
posted @ 2017-08-11 09:11
helontian
阅读(1094)
推荐(0)
2017年8月1日
摘要:
http://czmmiao.iteye.com/blog/1497509 10046事件概述Oracle的10046事件,可以跟踪应用程序所执行的SQL语句,并且得到其解析次数.执行次数,CPU使用时间等信息。这对我们分析、定位数据库性能问题是非常有用的。 10046 event是oracle用于
阅读全文
posted @ 2017-08-01 16:50
helontian
阅读(329)
推荐(0)
2017年7月30日
摘要:
http://liwenshui322.iteye.com/blog/1488949 一. 什么是redo(用于前滚数据) redo也就是重做日志文件(redo log file),Oracle维护着两类重做日志文件:在线(online)重做日志文件和归档(archived)重做日志文件。这两类重做
阅读全文
posted @ 2017-07-30 23:15
helontian
阅读(911)
推荐(0)
摘要:
http://blog.csdn.net/wanghai__/article/details/4881492 Buffer Cache LRU与Dirty List 在Buffer Cache中,Oracle通过几个链表进行内存管理。 LRU list用于维护内存中的Buffer,按照LRU算法进行
阅读全文
posted @ 2017-07-30 12:22
helontian
阅读(504)
推荐(0)