问题描述
LiveSQL-链接:https://livesql.oracle.com/apex/livesql/s/hblhxmq40jtini45sivyqj4le
create table test_table (id number(10),name varchar2(10)) row archival; insert into test_table (id,name) values (1,'name1'); insert into test_table (id,name) values (2,'name2'); insert into test_table (id,name) values (3,'name3'); insert into test_table (id,name) values (4,'name4'); commit; select * from test_table; update test_table set ora_archive_state = 1 where id = 1; commit; select * from test_table where id = 1; /* no data found -> correct*/ select * from test_table t left join test_table t1 on (t.id = t1.id) where t.id = 1; /* 1 row found -> incorrect*/ select * from test_table t join test_table t1 on t.id = t1.id and t.id = 1;/* no data found -> correct */复制
你好,汤姆,
我有点小问题。我使用数据库中的行存档,并希望隐藏一些数据,因为它不再相关。不应因为存档政策而将其删除。但是,如果我选择具有normal select或inner join的数据,则不会选择存档的数据。
如果我使用左或右连接,我变成比我想要的更多的数据 (已经存档的行)
我没有找到关于使用行存档连接的文档。
是bug还是功能?
我可以配置它来隐藏存档的行吗?
亲切的问候
叶夫根尼·戈林
专家解答
这是一个错误 (27555481: 使用外部连接条件的行存档选项的错误结果)。在Linux上有一个可用于12.1的补丁。
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。
评论
相关阅读
【专家有话说第五期】在不同年龄段,DBA应该怎样规划自己的职业发展?
墨天轮编辑部
1276次阅读
2025-03-13 11:40:53
Oracle RAC ASM 磁盘组满了,无法扩容怎么在线处理?
Lucifer三思而后行
769次阅读
2025-03-17 11:33:53
Oracle+Deepseek+Dify 实现数据库数据实时分析
bicewow
689次阅读
2025-03-06 09:41:49
【ORACLE】ORACLE19C在19.13版本前的一个严重BUG-24761824
DarkAthena
565次阅读
2025-03-04 14:33:31
Oracle避坑指南|同名表导出难题:如何精准排除指定用户下的表?
szrsu
528次阅读
2025-03-05 00:42:34
2月“墨力原创作者计划”获奖名单公布
墨天轮编辑部
455次阅读
2025-03-13 14:38:19
Ogg23ai高手必看-MySQL Innodb Cluster跟oracle的亲密接触
曹海峰
450次阅读
2025-03-04 21:56:13
【ORACLE】char类型和sql优化器发生的“错误”反应
DarkAthena
406次阅读
2025-03-04 23:05:01
什么,oracle 主机用户被删了?原来是虚惊一场!
Lucifer三思而后行
402次阅读
2025-03-03 21:12:09
Oracle 如何修改 db_unique_name?强迫症福音!
Lucifer三思而后行
342次阅读
2025-03-12 21:27:56