ITPUB??ì3
新一届的微软MVP评选已经开始,欢迎各位推荐!
ITPUB论坛 » Oracle新技术/11g » Oracle 11g new feature (持续更新)【2007-7-16 更新Invisible Index新特性】

标题: [精华] Oracle 11g new feature (持续更新)【2007-7-16 更新Invisible Index新特性】
离线 Kamus
版主


精华贴数 51
个人空间 400
技术积分 46530 (13)
社区积分 3558 (380)
注册日期 2002-5-26
论坛徽章:28
现任管理团队成员2007年度ITPUB最佳技术原创精华ITPUB元老ITPUB北京九华山庄2008年会纪念徽章管理团队2007贡献徽章参与2007年甲骨文全球大会(中国上海)纪念
ITPUB北京香山2007年会纪念徽章管理团队2006纪念徽章会员2007贡献徽章会员2006贡献徽章授权会员生肖徽章2007版:虎

发表于 2007-7-2 20:15 
Oracle 11g new feature (持续更新)

Oracle 11g New Feature - ASM

http://www.dbform.com/archives/314

简单介绍一下在今年即将发布的Oracle 11g中存储级别的ASM (Automatic Storage Management)的一些新功能。

1. ASM Fast Mirror Resync
在10g的ASM中如果因为某些硬件故障(比如接口线,比如光纤卡,比如电源)导致Diskgroup中的某些磁盘无法正常读取,这些磁盘将处于 offline状态,在offline之后不久ASM就会把这些磁盘从Diskgroup中删除,并且尝试利用冗余的extent来重新在其它磁盘中构建数据,这是一个比较耗时且耗资源的操作。当我们修复了磁盘,再将它们重新加回磁盘组中,又将是另外一次的数据重整操作。如果我们仅仅是例行的维护硬件,因为磁盘中的数据并没有真正的损坏,我们只是将磁盘取出来过一会儿再加回去,那么这样的两次数据重整操作无疑是没有必要的,在11g中ASM的Fast Mirror Resync功能允许我们设置磁盘的repair时间,在repair时间内ASM将不会尝试在磁盘间重新分配extent。

ALTER DISKGROUP dgroup SET ATTRIBUTE 'DISK_REPAIR_TIME'='3H';

上述命令可以设置当磁盘组dgroup中的磁盘失效和重新有效之间的时间在3小时内的话,ASM就不会重新构建extent,当磁盘重新有效之后,ASM需要做的只是将这3小时内更改的extent重新同步到刚才失效的这些磁盘中就可以了。

2. ASM Preferred Mirror Read
我们知道在10g中ASM总是会去读取Primary extent,这样做的目的是为了更好的分散IO,但是在某些环境中,一个ASM磁盘组中的磁盘对于某一个特定的节点来说,有些是Local Disk而有些则是Remote Disk,从Remote Disk中读取数据效率会低于Local Disk,但是在10g中我们无法要求从哪组磁盘中读取数据,在11g中新增的ASM_PREFERRED_READ_FAILURE_GROUPS参数帮助我们完成了这个功能。给每个实例设置优先读取的Failure Group就可以了。

3. ASM扩展性的增强
更详细的数据留待11g正式版出来以后再说吧,目前知道的是对于外部冗余(External redundancy),ASM可以最大支持到140PB了,而在10g中这个数字仅仅是35TB。

下一篇介绍Partition的增强,人性化的Interval Partitioning类型分区即将登场。


__________________
有事情请发Gmail邮箱,站内IM可能不能及时回复。    

***Chanel [K]***

从明天起, 做一个幸福的人  
喂马, 劈柴, 周游世界  
从明天起, 关心粮食和蔬菜  
我有一所房子 面朝大海, 春暖花开
只看该作者    顶部
离线 Kamus
版主


精华贴数 51
个人空间 400
技术积分 46530 (13)
社区积分 3558 (380)
注册日期 2002-5-26
论坛徽章:28
现任管理团队成员2007年度ITPUB最佳技术原创精华ITPUB元老ITPUB北京九华山庄2008年会纪念徽章管理团队2007贡献徽章参与2007年甲骨文全球大会(中国上海)纪念
ITPUB北京香山2007年会纪念徽章管理团队2006纪念徽章会员2007贡献徽章会员2006贡献徽章授权会员生肖徽章2007版:虎

发表于 2007-7-2 20:15 
Oracle 11g New Feature - Partition

Oracle 11g New Feature - Partition

http://www.dbform.com/archives/317

Partition(分区)一直是Oracle数据库引以为傲的一项技术,正是分区的存在让Oracle高效的处理海量数据成为可能,在即将发布的Oracle 11g中,分区技术在易用性和可扩展性上再次得到了增强。

1. Interval Partitioning
在我曾经的一个项目中,由于数据量的巨大,所以表设计为每一个小时一个分区,数据库管理员日常要做的一件重复而无聊的工作就是每隔一天要生成新的24个分区,用以存储第二天的数据。
而在11g中这项工作可以交由Oracle自动完成了,基于Range和List的Interval Partitioning分区类型登场。

   1. CREATE TABLE TB_INTERVAL
   2. PARTITION BY RANGE (time_col)
   3. INTERVAL(NUMTOYMINTERVAL(1, 'month'))
   4. (PARTITION P0 VALUES LESS THAN (TO_DATE('1-1-2007', 'dd-mm-yyyy')));

指定需要Oracle自动创建分区的间隔时间,上面这个例子是1个月,然后至少创建一个基本分区,上面这个例子是在2007-1-1之前的所有数据都在P0分区中,以后每个月的数据都会存放在Oracle自动创建的一个新分区中。

目前还没有更多的资料显示Oracle如何控制每个新分区的属性,比如存放在哪个表空间中,自动创建的数据文件有多大,如果是数据文件是裸设备如何处理,当第一条跨分区的记录插入时实时创建分区效率如何,虽然这些仍然是未知数,但是我们不得不承认这是一个人性化的进步。

2. System Partitioning
又一个人性化的分区类型,系统分区,在这个新的类型中,我们不需要指定任何分区键,数据会进入哪个分区完全由应用程序决定,实际上也就是由SQL来决定,终于,我们在Insert语句中可以指定插入哪个分区了。

假设我们创建了下面这张分区表,注意,没有指定任何分区键:

   1. CREATE TABLE systab (c1 integer, c2 integer)
   2. PARTITION BY SYSTEM
   3. (
   4. PARTITION p1 TABLESPACE tbs_1,
   5. PARTITION p2 TABLESPACE tbs_2,
   6. PARTITION p3 TABLESPACE tbs_3,
   7. PARTITION p4 TABLESPACE tbs_4
   8. );

现在由SQL语句来指定插入哪个分区:

   1. -- 数据插入p1分区
   2. INSERT INTO systab PARTITION (p1) VALUES (4,5);
   3. -- 数据插入第2个分区,也就是p2分区
   4. INSERT INTO systab PARTITION (2) VALUES (7,8);
   5. -- 为了实现绑定变量,用pno变量来代替实际分区号,以避免过度解析
   6. INSERT INTO systab PARTITION (no) VALUES (9,10);

由于System Partitioning的特殊性,所以很明显,这种类型的分区将不支持Partition Split操作,也不支持create table as select操作。

3. More Composite Partitioning
在10g中,我们知道复合分区只支持Range-List和Range-Hash,而在在11g中复合分区的类型大大增加,现在Range,List, Interval都可以作为Top level分区,而Second level则可以是Range,List,Hash,也就是在11g中可以有3*3=9种复合分区,满足更多的业务需求。

4. Virtual Column-Based Partitioning
Virtual Column是11g中的一个新功能,这种列中的数据并不实际存储于磁盘上(我们可以看成是一个类似Function的列),只有当读取的时候才实时计算。暂时不讨论性能问题,这个功能还是比较有意思的。

可以通过这样的语句来创建虚拟列。

   1. CREATE TABLE tb_v
   2. (col_1 number(6) not null,
   3. col_2 number not null,
   4. …
   5. col_v as (col_1 *( 1+col_2));

虚拟列虽然没有实际的存储空间,但是却可以跟其他普通列一样,创建索引,作为分区键,甚至可以收集统计信息,这是让人感觉有意思的地方,一个实时计算的Function如何创建索引呢?等到11g推出的时候就真相大白了。

下一篇介绍RMAN的增强。


__________________
有事情请发Gmail邮箱,站内IM可能不能及时回复。    

***Chanel [K]***

从明天起, 做一个幸福的人  
喂马, 劈柴, 周游世界  
从明天起, 关心粮食和蔬菜  
我有一所房子 面朝大海, 春暖花开
只看该作者    顶部
离线 ZALBB
正在看龙蛇演义


精华贴数 8
个人空间 0
技术积分 29316 (29)
社区积分 14413 (101)
注册日期 2001-10-15
论坛徽章:54
      
      

发表于 2007-7-3 09:02 
分区这一块,只看到管理上进步,性能提高多少,还未知。


只看该作者    顶部
离线 vongates
开门


精华贴数 3
个人空间 0
技术积分 19502 (48)
社区积分 10046 (157)
注册日期 2002-11-28
论坛徽章:83
现任管理团队成员2008北京奥运纪念徽章:羽毛球2008北京奥运纪念徽章:排球2008年新春纪念徽章  
      

发表于 2007-7-3 12:15 
11g的文档还很少看到呀。


__________________
只看该作者    顶部
离线 shahand
版主


精华贴数 2
个人空间 100
技术积分 15905 (67)
社区积分 3446 (396)
注册日期 2002-7-31
论坛徽章:31
现任管理团队成员ITPUB元老管理团队2007贡献徽章会员2006贡献徽章2008北京奥运纪念徽章:皮划艇激流回旋 
      

发表于 2007-7-3 12:57 
我关心的cluster的部分:


1.5 Clustering

The following sections describe clustering features for Oracle Database 11g Release 1 (11.1).
1.5.1 Oracle Real Application Clusters Ease-of-Use

The following sections describe Oracle RAC enhancements that make clustering and Oracle RAC set up and installation easier to perform by anyone unfamiliar with both Oracle RAC and clustering.
1.5.1.1 Enhanced Oracle RAC Monitoring and Diagnostics in Enterprise Manager

This feature improves Oracle RAC performance monitoring and diagnostics through the GUI interface in Enterprise Manager.

This enhanced GUI interface eases management of Oracle RAC.

See Also:

Oracle Database 2 Day + Real Application Clusters Guide for details
1.5.1.2 Enhanced Oracle Real Application Clusters Configuration Assistants

This feature updates the graphical configuration utilities (DBCA, DBUA and NetCA) for all features of Oracle RAC.

The benefit is a reduction in the management costs of cluster database environments through wizard-driven GUI management tools.

See Also:

Your platform-specific Oracle Real Application Clusters installation and configuration guide for details
1.5.1.3 OCI Runtime Connection Load Balancing

In Oracle RAC environments, session pools to services use service metrics to load balance sessions across different instances at runtime. OCI and OCCI applications have this feature enabled by default provided the necessary events are turned on.

Applications using OCI Session Pools have the best possible throughput for the resources provided. No application changes are required. Load balancing works toward the goal specified for the service. If an instance becomes hung or unresponsive, connections are directed to other instances that can provide better service.

See Also:

Oracle Call Interface Programmer's Guide for details
1.5.1.4 Parallel Execution for Oracle Real Application Clusters

Parallel execution is now aware of the service definition and automatically takes on the appropriate PARALLEL_INSTANCE_GROUPS setting, thus making the explicit setting of PARALLEL_INSTANCE_GROUPS for a services-controlled information grid environment unnecessary.

Oracle RAC services and the control of eligible nodes for parallel execution are now integrated and controlled by the services set up, making parallel execution fully transparent in an Oracle RAC services controlled environment.

See Also:

Oracle Real Application Clusters Administration and Deployment Guide for details
1.5.1.5 Support for Distributed Transactions in an Oracle RAC Environment

An XA transaction can now span Oracle RAC instances. Individual branches have the ability to execute on different instances in the cluster.

This feature allows any application using XA to take full advantage of the Oracle RAC environment, thus enhancing high availability and scalability of the application.


只看该作者    顶部
离线 risepp
在迷惘中前行的人~~~~~


精华贴数 0
个人空间 0
技术积分 4028 (357)
社区积分 2 (26113)
注册日期 2004-12-10
论坛徽章:3
会员2007贡献徽章会员2006贡献徽章ITPUB新首页上线纪念徽章   
      

发表于 2007-7-4 16:22 
想问问这些信息是从哪里得到的啊? metalink麽?  强烈其他新版本的发布。


__________________
拨开迷雾 终将看到光明 相信自己 终能获得成功
只看该作者    顶部
离线 Kamus
版主


精华贴数 51
个人空间 400
技术积分 46530 (13)
社区积分 3558 (380)
注册日期 2002-5-26
论坛徽章:28
现任管理团队成员2007年度ITPUB最佳技术原创精华ITPUB元老ITPUB北京九华山庄2008年会纪念徽章管理团队2007贡献徽章参与2007年甲骨文全球大会(中国上海)纪念
ITPUB北京香山2007年会纪念徽章管理团队2006纪念徽章会员2007贡献徽章会员2006贡献徽章授权会员生肖徽章2007版:虎

发表于 2007-7-5 01:01 


QUOTE:
最初由 shahand 发布
我关心的cluster的部分:


1.5 Clustering

The following sections describe clustering features for Oracle Database 11g Release 1 (11.1).
1.5.1 Oracle Real Application Clusters Ease-of-Use

The following sections describe Oracle RAC enhancements that make clustering and Oracle RAC set up and installation easier to perform by anyone unfamiliar with both Oracle RAC and clustering.
1.5.1.1 Enhanced Oracle RAC Monitoring and Diagnostics in Enterprise Manager

This feature improves Oracle RAC performance monitoring and diagnostics through the GUI interface in Enterprise Manager.

This enhanced GUI interface eases management of Oracle RAC.

See Also:

Oracle Database 2 Day + Real Application Clusters Guide for details
1.5.1.2 Enhanced Oracle Real Application Clusters Configuration Assistants

This feature updates the graphical configuration utilities (DBCA, DBUA and NetCA) for all features of Oracle RAC.

The benefit is a reduction in the management costs of cluster database environments through wizard-driven GUI management tools.

See Also:

Your platform-specific Oracle Real Application Clusters installation and configuration guide for details
1.5.1.3 OCI Runtime Connection Load Balancing

In Oracle RAC environments, session pools to services use service metrics to load balance sessions across different instances at runtime. OCI and OCCI applications have this feature enabled by default provided the necessary events are turned on.

Applications using OCI Session Pools have the best possible throughput for the resources provided. No application changes are required. Load balancing works toward the goal specified for the service. If an instance becomes hung or unresponsive, connections are directed to other instances that can provide better service.

See Also:

Oracle Call Interface Programmer's Guide for details
1.5.1.4 Parallel Execution for Oracle Real Application Clusters

Parallel execution is now aware of the service definition and automatically takes on the appropriate PARALLEL_INSTANCE_GROUPS setting, thus making the explicit setting of PARALLEL_INSTANCE_GROUPS for a services-controlled information grid environment unnecessary.

Oracle RAC services and the control of eligible nodes for parallel execution are now integrated and controlled by the services set up, making parallel execution fully transparent in an Oracle RAC services controlled environment.

See Also:

Oracle Real Application Clusters Administration and Deployment Guide for details
1.5.1.5 Support for Distributed Transactions in an Oracle RAC Environment

An XA transaction can now span Oracle RAC instances. Individual branches have the ability to execute on different instances in the cluster.

This feature allows any application using XA to take full advantage of the Oracle RAC environment, thus enhancing high availability and scalability of the application.


1-3 没什么意思
4 PARALLEL_INSTANCE_GROUPS在目前的应用中我们都是暂时不使用的,11g居然又自动了。。。
5 目前接触Distributed Transactions仍然算比较少,没太多感觉


__________________
有事情请发Gmail邮箱,站内IM可能不能及时回复。    

***Chanel [K]***

从明天起, 做一个幸福的人  
喂马, 劈柴, 周游世界  
从明天起, 关心粮食和蔬菜  
我有一所房子 面朝大海, 春暖花开
只看该作者    顶部
离线 xzh2000
仙人抚我须 结发授长生



精华贴数 13
个人空间 0
技术积分 46440 (14)
社区积分 5155 (286)
注册日期 2002-7-17
论坛徽章:30
现任管理团队成员ITPUB元老授权会员生肖徽章2007版:狗2008北京奥运纪念徽章:柔道2008北京奥运纪念徽章:帆船
生肖徽章2007版:虎ITPUB新首页上线纪念徽章数据库板块每日发贴之星数据库板块每日发贴之星数据库板块每日发贴之星数据库板块每日发贴之星

发表于 2007-7-5 10:39 
继续啊,千万别太监啦...


__________________
过目即忘  插柳成荫
只看该作者    顶部
离线 mustapha
高级会员


来自 没的看了
精华贴数 1
个人空间 0
技术积分 5127 (263)
社区积分 81 (3852)
注册日期 2006-5-18
论坛徽章:13
会员2007贡献徽章授权会员2008北京奥运纪念徽章:沙滩排球生肖徽章2007版:猴生肖徽章2007版:鸡生肖徽章2007版:鼠
ITPUB新首页上线纪念徽章生肖徽章:虎数据库板块每日发贴之星生肖徽章:龙生肖徽章:马生肖徽章:羊

发表于 2007-7-5 22:35 
分区得新特性感觉不错得,说不定有点实用价值


__________________
没事就运动运动~~~~~~~~~~~~~
只看该作者    顶部
离线 hotiice
版主


精华贴数 10
个人空间 0
技术积分 16699 (62)
社区积分 1796 (649)
注册日期 2004-9-9
论坛徽章:21
现任管理团队成员会员2007贡献徽章铁扇公主生肖徽章2007版:牛2008北京奥运纪念徽章:帆船2008北京奥运纪念徽章:游泳
设计板块每日发贴之星设计板块每日发贴之星生肖徽章2007版:蛇2008年新春纪念徽章生肖徽章2007版:猴生肖徽章2007版:鼠

发表于 2007-7-6 17:13 
ppt下载


__________________
①②⑧

只看该作者    顶部
相关内容


CopyRight 1999-2006 itpub.net All Right Reserved.
北京皓辰广域网络信息技术有限公司. 版权所有
E-mail:Webmaster@itpub.net
京ICP证:010037号 联系我们 法律顾问