当前位置:网站首页>oracle 修改默认临时表空间
oracle 修改默认临时表空间
2022-04-23 06:04:00 【旺财2】
--创建临时表空间
create temporary tablespace wdy_temp
tempfile 'D:\oracle\app\oracle\oradata\XE\wdy_temp.DBF'
size 50m
autoextend on
next 50m maxsize unlimited
extent management local;
--修改默认表空间为新建的临时表空间
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;
版权声明
本文为[旺财2]所创,转载请带上原文链接,感谢
https://blog.csdn.net/wdyliuxingfeiyang/article/details/122209038
边栏推荐
猜你喜欢

Virtio and Vhost_ Net introduction

Try catch cannot catch asynchronous errors

Chaos vous emmène au projet chaos.

Build an OSS based image sharing website - polite feedback

SSM项目在阿里云部署

Prometheus Thanos快速指南

Passerelle haute performance pour l'interconnexion entre VPC et IDC basée sur dpdk

搭建基于OSS的图片分享网站-反馈有礼

Chaos takes you to the chaos project quickly

Detailed explanation of RDMA programming
随机推荐
Redis practice notes and source code analysis
How does VirtualBox modify the IP network segment assigned to the virtual machine in the "network address translation (NAT)" network mode
异常记录-22
Redis 详解(基础+数据类型+事务+持久化+发布订阅+主从复制+哨兵+缓存穿透、击穿、雪崩)
Relabel of Prometheus_ Configs and metric_ relabel_ Configs explanation and usage examples
ES入门学习笔记
Detailed explanation of RDMA programming
Chaos vous emmène au projet chaos.
ACFS文件系统创建扩大缩小等配置步骤
Prometheus和Thanos Receiver的“写多租户”实现
Redis FAQ
Kubernetes CoreDNS常见问题资料参考
冬季实战营 动手实战-MySQL数据库快速部署实践 领鼠标 云小宝
timestamp隐式转换问题导致索引列未使用问题分析
Dolphinscheduler调度spark任务踩坑记录
19C RAC修改VIP及SCANIP步骤-同网段
Try catch cannot catch asynchronous errors
冬季实战营动手实战-上云必备环境准备,动手实操快速搭建LAMP环境 领鼠标 云小宝 背包 无影
try catch 不能捕获异步错误
Virtio and Vhost_ Net introduction