如何从Oracle中的缓存中删除表?

时间:2016-07-06 19:48:09

标签: database oracle oracle11g ddl alter-table

我尝试在Oracle中添加一个表来缓存

alter table Test_Table cache;

那么现在如何将其从缓存中删除?

3 个答案:

答案 0 :(得分:4)

你可以这样做:

alter table Test_Table NOCACHE;

但请注意,使用缓存实际上并不会将表固定在缓存中。它告诉oracle一旦到达那里就以不同方式处理它们。 Tom Kyte对this.

有很好的解释

答案 1 :(得分:1)

cache的对应方为nocache

ALTER TABLE test_table NOCACHE;

答案 2 :(得分:1)

我相信您只需要使用nocache运行相同的命令:

alter table Test_Table nocache;