Archive

Author Archive

深入SecureFile—新一代LOB揭秘

January 18th, 2011 1 comment

全文PDF版本可以在这里下载,格式排版要容易看一些SecureFile_Internal.pdf

1.       SecureFile LOB的特点

最近张乐亦(Kamus)在gtalk上问了俺一个问题,为啥SecureFile类型的LOB要比以前的LOB性能要好很多,是不是存储结构上发生了什么变化。这两天抽空看了些资料,现在整理出来算是回答他的问题了。

关于11g以前的LOB类型的实现方式可以参考前一段写的一篇博文《CLOB的物理存储结构及语言编码详解》。从11g开始,Oracle提供了一种新的LOB存储方式叫SecureFile,以前旧有的LOB存储方式就叫BasicFile了。Oracle宣称,“SecureFile不仅是新一代 LOB,它们还为 LOB 带来了更多的价值,尤其是以前只能在文件系统领域中获得的特性。SecureFile可以进行加密以确保安全性,可以进行重复消除和压缩以提高存储效率,可以进行缓存(或不进行缓存)以加快访问(或节省缓冲池空间),可以按多个级别记录以减少崩溃后的平均恢复时间。引入 SecureFile 后,您可以在数据库中存储更多的非结构化文档,而不会导致过多的开销,也不会失去 OS 文件系统提供的任何重要功能。” Read more…

Categories: Knowledge, New Feature Tags:

[zt]EXPDP和IMPDP的比较详细使用说明

January 17th, 2011 No comments

本打算自己写一篇关于data pump的blog,然后发现此文真的不错,就转载一下喽。http://space.itpub.net/11417069/viewspace-683740

ORCALE10G提供了新的导入导出工具,数据泵。Oracle官方对此的形容是:OracleDataPump technology enables Very High-Speed movement of data and metadata from one database to another.其中Very High-Speed是亮点。
Read more…

Categories: How to, Knowledge Tags: , , ,

CLOB的物理存储结构及语言编码详解

January 6th, 2011 1 comment

最近测试一个工具Database Migration for Unicode,功能是把非unicode编码存储数据的数据库转化为Unicode的数据库。在guide中提到一句,CLOB类型的列无需转换编码,这句话引起我的兴趣,为何别的字符类型char或者varchar2都需要编码转换,为什么CLOB不需要。在网上搜索,找到了DBSNAKE的这篇文章(http://dbsnake.com/2010/07/lob-characterset-endian.html)。里面提到了一篇Note [ID 257772.1],核心意思是,基本上从10g之后的CLOB的字符编码无论在何种CharacterSet下均为AL16UTF16。现在特来验证一下。
Read more…

Categories: Knowledge Tags: , ,

在11gR2中编译BBED工具

December 20th, 2010 2 comments

11gR2中编译bbed时报错
Read more…

Categories: Knowledge, New Feature Tags: , , ,

Oracle 11.2.0.2新特性——用户重命名(Rename User)

September 7th, 2010 No comments

11.2.0.2里新增了一个很有意思的新特性——用户重命名(Rename User),以前俺们都是Rename datafile呀,tablespace呀,Index呀,抑或是constraint之类,没想到User也可以重命名的。据说这个DDL操作的需求是来源于SAP: SAP identifies a specific SAP system by the name of the database schema. If the system is renamed, the schema needs also to be renamed. This happens quite often when a database is copied (i.e. for testing purposes) and the system gets therefore a new name. The schema should also get a new name.

Read more…

Categories: New Feature Tags:

Physical Standby出现ORA-10458,ORA-01157,ORA-01111

July 15th, 2010 No comments

今天在测试系统中启动Physical Standby,发现报错,最终查出原因是有人在测试库中创建了个tablespace而且把datafile没有放在默认path,导致db_file_name_convert没有产生作用。

系统环境:DB11.2.0.2,Primary和Standby都在同一台主机上

Read more…

EM dbcontrol的常用命令

July 5th, 2010 No comments

详细的命令列表还是看OTN(http://download.oracle.com/docs/cd/E11882_01/server.112/e10701/emca.htm#BABDEHCE),下面只列出一些常见的:

创建DBcontrol:emca -config dbcontrol db -repos create

RAC下重新部署DBcontrol:emca -reconfig dbcontrol -cluster

删除DBcontrol:emca -deconfig dbcontrol db -repos drop

Read more…

Categories: Enterprise Manager Tags: , ,

EMGC11g内存占用100%问题

June 12th, 2010 No comments

EMGC11g测试机上的内存占用总是过一段时间就增长到100%了,怀疑是内存泄漏,查了一下,果然是weblogic的bug。而且GC11g的安装文档上已经明确要求安装weblogic的相关patch了。

http://download.oracle.com/docs/cd/E11857_01/install.111/e15838/install_em_exist_db.htm#CIAIEAAC

Oracle WebLogic Server Patch Requirements Ensure that you apply patch ID WDJ7 on Oracle WebLogic Server using the Oracle Smart Update utility. This patch fixes bugs 8990616, 9100465, and 9221722.

For information on applying this patch, see My Oracle Support note 1072763.1.

For information on Oracle Smart Update utility, see Oracle Smart Update Installing Patches and Maintenance Packs documentation available at:

http://www.oracle.com/technology/products/weblogic/index.html

How to apply recommended WLS patches on WLS home for 11g Grid Control Install/Upgrade [ID 1072763.1]

Categories: Enterprise Manager Tags: , ,