Chinaunix

标题: 哪位进来大体讲讲innodb & oracle [打印本页]

作者: bitterness    时间: 2009-06-29 17:34
标题: 哪位进来大体讲讲innodb & oracle
比如,日志方面,表空间方面。。。

这样说太笼统了
我来先问二个吧:
innodb 表空间存储了什么内容,如何备份,如何恢复
innodb的redolog在哪,有无undolog

欢迎对这个话题有兴趣的一起提问

更希望高手们来解答呀

[ 本帖最后由 bitterness 于 2009-6-29 17:42 编辑 ]
作者: smallfish_xy    时间: 2009-06-30 08:37
innodb是存储引擎,没听说有表空间这个概念。。。
作者: suntoltti    时间: 2009-06-30 10:46
redolog 在**.bin文件里
oracle有undolog吗,你说的是undo表空间吧

下面是参考:

The InnoDB tablespace
InnoDB keeps its data in a tablespace, which is essentially a virtual filesystem span-
ning one or many files on disk. InnoDB uses the tablespace for many purposes, not
just for storing tables and indexes. It keeps its undo log (old row versions), insert
buffer, doublewrite buffer (described in an upcoming section), and other internal
structures in the tablespace.

我看了indodb结构图,没找到dedicated的undo tablespace。你可以仔细找找,然后分享给大家

[ 本帖最后由 suntoltti 于 2009-6-30 11:24 编辑 ]
作者: bitterness    时间: 2009-06-30 17:23
标题: 回复 #2 smallfish_xy 的帖子
有表空间的概念,而且到了新版本5.1.xx的mysqldump提供了备份表空间的功能
作者: bitterness    时间: 2009-06-30 17:24
标题: 回复 #3 suntoltti 的帖子
对,是undo tablespace , 我说错了
另外,ib_logfile0x 这里存储了什么内容,有无SCN的,如何实现的,哪位来讲讲呢
作者: ruochen    时间: 2009-06-30 17:57
看来楼主是搞oracle的
作者: suntoltti    时间: 2009-07-01 09:56
http://blog.chinaunix.net/u3/99514/showart_1974703.html

看看这个,没贴出处,但是看了觉得说的挺有道理
作者: yueliangdao0608    时间: 2009-07-01 11:00
INNODB tablespace里面存储了自己的UNDO LOG,数据字典以及其他数据PAGE的信息。
REDO LOG在 IB_LOG文件里面保存!

*.bin 与INNODB 引擎没有任何关系!
作者: bitterness    时间: 2009-07-01 11:02
标题: 回复 #6 ruochen 的帖子
呵呵,了解一些,更想了解一下MYSQL的一些内部原理性的东西,如实现方法,数据存储方式等
作者: bitterness    时间: 2009-07-01 11:04
标题: 回复 #8 yueliangdao0608 的帖子
请问一下,innodb在写入redo log,undo log和写文件的顺序




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2