我们如何在oracle中缩小临时表空间?并且为什么它增加到高达25 GB,因为数据库中只有一个模式用于应用程序,数据表空间大小为2 GB,索引表空间大小为1 GB.
嗨,有些人可以告诉我为什么我们为索引和数据创建了不同的表空间.
独立程序和打包程序之间的性能差异是什么?这将是明智的表现,为什么?两者的执行是否有任何区别?
OR子句是否会抑制索引,如果是,有人可以提供适当的示例吗?
create table test2(field1 varchar2(100),field2 varchar2(100),
field3 number,field4 varchar2(100));
create index test2_idx1 on test2(field1);
create index test2_idx2 on test2(field3);
declare
j number :=1;
begin
for i in 1..500000 loop
insert into test2 (field1,field2,field3,field4)
values('field1='||j,'field2='||i,j,'field4='||??i);
if (i mod 1000)=0 then
j:= j+1;
end if;
end loop;
commit;
end;
EXEC DBMS_STATS.GATHER_TABLE_STATS ('user', 'test2');
select * from test2 where field1='field1=1' or field3=1;
Run Code Online (Sandbox Code Playgroud) oracle ×11
oracle10g ×3
indexing ×2
partitioning ×2
sql ×2
deadlock ×1
plsql ×1
session ×1
tablespace ×1