①.、Oracle临时表分两种,事务级临时表和会话级临时表
注:存储过程里使用会话级临时表时,往临时表里插入数据前要先清空临时表内的数据
如果原库存在,先使用下面语句查询一下,根据查询结果设置文件大小.
select
t.tablespace_name,
round(sum(bytes
/
*
0)
ts_size
from
dba_tablespaces
t,
dba_data_files
d
where
t.tablespace_name
=
d.tablespace_name
group
by
t.tablespace_name;
①. 删除同名的永久表(如有必要在删除之前把数据导出备份)
①.、如果是多用户的情况下,反正没有数据,你不如把此用户删除,再重新建立,建立的时候,将此用户的临时表空间设置成新建的临时表空间.
Alter database default temporary tablespace temp;
以上就是土嘎嘎小编为大家整理的oracle怎么换临时表相关主题介绍,如果您觉得小编更新的文章只要能对粉丝们有用,就是我们最大的鼓励和动力,不要忘记讲本站分享给您身边的朋友哦!!