2022-07-18 509
oracle怎么修改临时表空间
--查询当前数据库默认临时表空间名
select * from database_properties where property_name='DEFAULT_TEMP_TABLESPACE';
--创建新的临时表空间
create temporary tablespace temp01 tempfile '/oradata/temp01.dbf' size 2G autoextend on;
--修改默认表空间为新建的临时表空间
alter database default temporary tablespace temp01;
--查看用户当前使用的临时表空间
select username,temporary_tablespace from dba_users;
--删除原来的临时表空间
drop tablespace temp including contents and datafiles;
--查看所有表空间名确认临时表空间是否已删除
select tablespace_name from dba_tablespaces;
扩展:
--临时表空间添加数据文件
alter tablespace temp01 add tempfile '/oradata/temp02.dbf' size 2G autoextend on;
--修改临时表空间数据文件大小
alter database tempfile '/oradata/temp02.dbf' resize 4G;
原文链接:https://77isp.com/post/2095.html
=========================================
https://77isp.com/ 为 “云服务器技术网” 唯一官方服务平台,请勿相信其他任何渠道。
数据库技术 2022-03-28
网站技术 2022-11-26
网站技术 2023-01-07
网站技术 2022-11-17
Windows相关 2022-02-23
网站技术 2023-01-14
Windows相关 2022-02-16
Windows相关 2022-02-16
Linux相关 2022-02-27
数据库技术 2022-02-20
抠敌 2023年10月23日
嚼餐 2023年10月23日
男忌 2023年10月22日
瓮仆 2023年10月22日
簿偌 2023年10月22日
扫码二维码
获取最新动态