Oracle 12C 新特性 Temporary UNDO 可以减少存储在undo表空间的生成量和重做日志的生成
首页 → 数据库技术
背景:
阅读新闻
Oracle 12C 新特性 Temporary UNDO 临时回滚段
[日期:2014-05-23] 来源:Linux社区 作者:paulyibinyi [字体:]
Oracle 12C 新特性 Temporary UNDO 可以减少存储在undo表空间的生成量和重做日志的生成
[oracle@db12c ~]$ sqlplus / as sysdba
SQL*Plus: Release 12.1.0.1.0 Production on Mon Apr 28 14:18:21 2014
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
SQL> create global temporary table test as select * from dba_objects where 1=0;
Table created.
SQL> alter session set temp_undo_enabled=false;
Session altered.
SQL> set autotrace traceonly statistics
SQL>
SQL> insert into test select * from dba_objects;
19397 rows created.
Statistics
----------------------------------------------------------
83 recursive calls
1690 db block gets
2621 consistent gets
5 physical reads
121876 redo size
855 bytes sent via SQL*Net to client
842 bytes received via SQL*Net from client
3 SQL*Net roundtrips to/from client
3 sorts (memory)
0 sorts (disk)
19397 rows processed
SQL> update test set object_name=lower(object_name);
19397 rows updated.
Statistics
----------------------------------------------------------
6 recursive calls
615 db block gets
375 consistent gets
0 physical reads
1310712 redo size
857 bytes sent via SQL*Net to client
846 bytes received via SQL*Net from client
3 SQL*Net roundtrips to/from client
1 sorts (memory)
0 sorts (disk)
19397 rows processed
SQL> conn / as sysdba
Connected.
SQL> alter session set temp_undo_enabled=true
2 ;
Session altered.
SQL> set autotrace traceonly statistics
SQL>
SQL>
SQL> insert into test select * from dba_objects;
19397 rows created.
Statistics
----------------------------------------------------------
5 recursive calls
1695 db block gets
2517 consistent gets
0 physical reads
280 redo size
844 bytes sent via SQL*Net to client
842 bytes received via SQL*Net from client
3 SQL*Net roundtrips to/from client
1 sorts (memory)
0 sorts (disk)
19397 rows processed
SQL> update test set object_name=lower(object_name);
19397 rows updated.
Statistics
----------------------------------------------------------
2 recursive calls
22237 db block gets
827 consistent gets
0 physical reads
0 redo size
855 bytes sent via SQL*Net to client
846 bytes received via SQL*Net from client
3 SQL*Net roundtrips to/from client
1 sorts (memory)
0 sorts (disk)
19397 rows processed
SQL>
调整Oracle回滚的速度
Oracle 回滚(ROLLBACK)和撤销(UNDO)
OCP知识点讲解 之 Undo回滚基础知识
Oracle事务 行级锁 保存点 回滚 提交
Oracle基本步骤前滚和回滚
Oracle 回滚演示 rollback演示
本文永久更新链接地址:
Oracle 数据库版本对应的PSU和补丁号码
Oracle 11gR2 grid 集群资源设置跟随集群自动启动
相关资讯 Oracle 12c新特性 Oracle回滚段
图片资讯
本文评论 查看全部评论 (0)
评论声明
最新资讯
本周热门

MySQL使用的是GPL许可证。1)GPL许可证允许自由使用、修改和分发MySQL,但修改后的分发需遵循GPL。2)商业许可证可避免公开修改,适合需要保密的商业应用。

选择InnoDB而不是MyISAM的情况包括:1)需要事务支持,2)高并发环境,3)需要高数据一致性;反之,选择MyISAM的情况包括:1)主要是读操作,2)不需要事务支持。InnoDB适合需要高数据一致性和事务处理的应用,如电商平台,而MyISAM适合读密集型且无需事务的应用,如博客系统。

在MySQL中,外键的作用是建立表与表之间的关系,确保数据的一致性和完整性。外键通过引用完整性检查和级联操作维护数据的有效性,使用时需注意性能优化和避免常见错误。

MySQL中有四种主要的索引类型:B-Tree索引、哈希索引、全文索引和空间索引。1.B-Tree索引适用于范围查询、排序和分组,适合在employees表的name列上创建。2.哈希索引适用于等值查询,适合在MEMORY存储引擎的hash_table表的id列上创建。3.全文索引用于文本搜索,适合在articles表的content列上创建。4.空间索引用于地理空间查询,适合在locations表的geom列上创建。

toCreateAnIndexinMysql,usethecReateIndexStatement.1)forasingLecolumn,使用“ createIndexIdx_lastNameEnemployees(lastName); 2)foracompositeIndex,使用“ createIndexIndexIndexIndexIndexDx_nameOmplayees(lastName,firstName,firstName);” 3)forauniqe instex,creationexexexexex,

MySQL和SQLite的主要区别在于设计理念和使用场景:1.MySQL适用于大型应用和企业级解决方案,支持高性能和高并发;2.SQLite适合移动应用和桌面软件,轻量级且易于嵌入。

MySQL中的索引是数据库表中一列或多列的有序结构,用于加速数据检索。1)索引通过减少扫描数据量提升查询速度。2)B-Tree索引利用平衡树结构,适合范围查询和排序。3)创建索引使用CREATEINDEX语句,如CREATEINDEXidx_customer_idONorders(customer_id)。4)复合索引可优化多列查询,如CREATEINDEXidx_customer_orderONorders(customer_id,order_date)。5)使用EXPLAIN分析查询计划,避

在MySQL中使用事务可以确保数据一致性。1)通过STARTTRANSACTION开始事务,执行SQL操作后用COMMIT提交或ROLLBACK回滚。2)使用SAVEPOINT可以设置保存点,允许部分回滚。3)性能优化建议包括缩短事务时间、避免大规模查询和合理使用隔离级别。


热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

Video Face Swap
使用我们完全免费的人工智能换脸工具轻松在任何视频中换脸!

热门文章

热工具

ZendStudio 13.5.1 Mac
功能强大的PHP集成开发环境

螳螂BT
Mantis是一个易于部署的基于Web的缺陷跟踪工具,用于帮助产品缺陷跟踪。它需要PHP、MySQL和一个Web服务器。请查看我们的演示和托管服务。

SublimeText3汉化版
中文版,非常好用

EditPlus 中文破解版
体积小,语法高亮,不支持代码提示功能

Atom编辑器mac版下载
最流行的的开源编辑器