oracle编程艺术笔记1

本文介绍了Oracle数据库中的闪回技术应用及并行执行的优化方法,并探讨了临时表在过程中的使用限制及其对性能的影响。

1.parallel execution 并行执行

2.strength优点 weakness缺点 seed潜能 virtue 品德 competence能力

3. variable scn numberexec :scn:=dbms_flashback.get_system_change_number;

select * from tablename as of scn :scn;

select * from tablename as of timestamp sysdate-1/1440; 

select timestamp_to_scn(to_date('2010-01-01 10:10:10','yyyy-mm-dd hh24:mi:ss')) from dual;

alter table enable row movement; /*this operation will cause a new rowid;*/

flashback table tablename to scn :scn;

function index: create index t_index on t(nvl(id,-1));

4.better not to create temporary table in procedure:

  because DDL statement will commit transaction;

  must dynamicly using the temporary table in procedure;

  Its performance is worse than static statement.

转载于:https://www.cnblogs.com/asingna/archive/2011/03/15/1984787.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值