ORA-01555 快照过旧--详细解释
日期:2008年6月15日 作者: 查看:[大字体 中字体 小字体]-
-- If another tx is updating the table then we may not need the predicate
cursor c1 is select rowid, bigemp.* from bigemp where a < 20;
begin
for c1rec in c1 loop
update dummy1 set a = 'aaaaaaaa';
update dummy1 set a = 'bbbbbbbb';
update dummy1 set a = 'cccccccc';
update bigemp set done='Y' where c1rec.rowid = rowid;
commit;
end loop;
end;
/
ROLLBACK TRANSACTION SLOT OVERWRITTEN
rem * 1555_b.sql - Example of getting ora-1555 "Snapshot too old" by
rem * overwriting the transaction slot in the rollback
rem * segment header. This just uses one session.
drop table bigemp;
create table bigemp (a number, b varchar2(30), done char(1));
rem * Populate demo table.
begin
for i in 1..200 loop
insert into bigemp values (mod(i,20), to_char(i), 'N');
if mod(i,100) = 0 then
commit;
end if;
end loop;
commit;
end;
/
drop table mydual;
create table mydual (a number);
insert into mydual values (1);
commit;
rem * Cleanout demo table.
select count(*) from bigemp;
declare
cursor c1 is select * from bigemp;
begin
-- The following update is required to illustrate the problem if block
-- cleanout has been done on 'bigemp'. If the cleanout (above) is commented
-- out then the update and commit statements can be commented and the
-- script will fail with ORA-1555 for the block cleanout variant.
update bigemp set b = 'aaaaa';
commit;
for c1rec in c1 loop
for i in 1..20 loop
update mydual set a=a;
commit;
end loop;
end loop;
end;
/
Special Cases - 上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] 下一页
-
- ORA-01555 快照过旧--详细解释 相关文章:
- ·CPU主要参数名词解释
- ·Oracle主要的配置文件解释
- ·ORA-01555 快照过旧--详细解释
- ·解释一个关于Hibernate lazy的问题
- ·自己动手做一个SQL解释器
- ·详细解释主板的供电机制
- ·Java基础-关于session的详细解释
- ·CheckStyle及其配置的详细解释
- ·名词解释:什么是SSL VPN
- ·Win2000命令全集及解释
- ORA-01555 快照过旧--详细解释 相关软件
- ·经济解释
- 特别声明:本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作
- 者.文章版权归文章原始作者所有.对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转
- 载的文章有版权问题请联系编辑人员,我们尽快予以更正. 转载请注明来源:http://www.hackhome.com
下一篇:RMAN命令
精品推荐
热点TOP10
- ·Pro*C的使用
- ·Oracle触发器详细介绍
- ·Oracle的SQL*PLUS命令的使用大全
- ·oracle中pro*c的学习
- ·Oracle中分区表的使用
- ·Oracle job 管理
- ·详细介绍ORACLE sqlplus命令
- ·了解 Oracle ADF:入门示例
- ·ORACLE备份&恢复案例--ORACLE BACKUP&RESTORE SCHEME
- ·ORACLE UPDATE 语句语法与性能分析的一点看法
- ·ORA-12154: TNS: 无法解析指定的连接标识符
- ·如何使用Oracle case函数
- ·Oracle数据类型简介
- ·把Oracle数据库移植到Microsoft SQL Server 7.0
- ·如何在oracle中导入dmp数据库文件
- ·oracle双机热备份方法
- ·ORA-00257: archiver error. Connect internal only, until freed.
- ·VMware下RedHat安装Oracle 9i RAC全攻略
- ·Oracle常用的OCI函数
- ·在PL/SQL 开发中调试存储过程和函数的一般性方法
特别推荐
- ·Oracle数据库处理时间的几个小技巧
- ·Oracle数据库中TNS常见问题处理方案
- ·入侵Oracle数据库常用操作命令
- ·ORACLE UPDATE 语句语法与性能分析的一点看法
- ·Oracle SQL精妙SQL语句讲解
- ·Oracle环境下APACHE虚拟服务器如何设置
- ·常见Oracle HINT的用法
- ·ORA-00257: archiver error. Connect internal only, until freed.
- ·oracle的update问题
- ·小议索引的使用
- ·oracle产品服务和技术级别介绍,OrACLE服务
- ·Oracle 数据类型
- ·Oracle数据库检查死锁的sql
- ·怎样将冷备份移植到另一台Solaris机器上
- ·Oracle 动态SQL返回单条结果和结果集
- ·手动建立 Oracle9i 数据库
- ·Oracle内存结构(二)----Shared Pool的详细信息
- ·DELPHI 调用 Oracle 存储过程并返回数据集的例子.
- ·关于block中行数据的存储与空间重组三
- ·Sybase及SQL Anywhere SQL语句小结
