tablespaces
来源:互联网 发布:淘宝标题怎么优化 编辑:程序博客网 时间:2024/05/09 21:34
第一部分:永久表空间
--------本地管理----------
1.新建表空间的方法1
create tablespace test
extent management local uniform size 64K --统一空间分配大小
segment space management auto --字段自动管理
datafile 'e:/test.dbf'
size 100M
2.新建表空间的方法2
create tablespace test
extent management local autoallocate --自动管理空间分配
segment space management auto --段管理自动管理
datafile 'e:/test.dbf'
size 100M
3.新建表空间的方法3
create tablespace test
datafile 'e:/test.dbf'
size 100M
extent management local autoallocate --表空间采用本地管理
segment space management manual --段管理设置为手动管理
4.新建表空间的方法4
create tablespace test
datafile 'e:/test.dbf'
size 100M
extent management local --表空间采用本地管理
segment space management manual --字段手动管理
----------字典管理---
5.新建表空间的方法5
create tablespace test
datafile 'e:/test.dbf' size 100M
extent management dictionary
6.新建表空间的方法6
create tablespace test
datafile 'e:/test.dbf' size 100M
extent management dictionary
segment space management manual
----注意:
create tablespace test
datafile 'e:/test.dbf' size 100M
extent management dictionary
segment space management auto --ORA-30572: AUTO 段空间管理不能与 DICTIONARY 区管理同时使用
第二部分:临时表空间
--7.新建临时表空间
/*新建临时表空间时不能使用AUTOALLOCATE选项*/
create temporary tablespace tmp01
tempfile 'e:/tm01.dbf' size 50M
extent management local uniform size 1K --没有指明段分配方式
--8.新建临时表空间
create temporary tablespace tmp01
tempfile 'e:/tm01.dbf' size 50M
extent management local uniform size 1K
segment space management manual --段分配方式为手动
--注意:
create temporary tablespace tmp01
tempfile 'e:/tm01.dbf' size 50M
extent management local uniform size 1K
segment space management auto --AUTO 段空间管理不适用于此类型的表空间
第三部分:撤销表空间
--9.新建撤销表空间
create undo tablespace un01
datafile 'e:/un01.dbf' size 4M
extent management local
--注意:
create undo tablespace un01
datafile 'e:/un01.dbf' size 4M
extent management local
uniform size 1K --CREATE UNDO TABLESPACE 的说明无效
第四部分:修改表空间属性
--1.将表空间设置为只读属性
alter tablespace test read only;
--当取访问只读的表空间时提示:表空间'TEST'是只读,无法在其中分配空间
--2.将表空间设置为读写
alter tablespace test read write;
--3.设置数据库默认表空间
alter database default tablespace test;
--4.设置数据库默认表空间
alter database default temporary tablespace test;
--5.删除表空间和相关的数据文件
drop tablespace test including contents and datafiles;
- tablespaces
- Tablespaces
- Transportable Tablespaces
- Temporary tablespaces
- Temporary Tablespaces
- tablespaces-datafiles示意图
- Transportable Tablespaces学习笔记
- TEMPORARY Tablespaces and TEMPFILES
- To create tablespaces
- Locally Managed Tablespaces
- Creating Tablespaces in ASM
- oracle tablespaces(表空间)
- TEMPORARY Tablespaces and TEMPFILES
- Locally vs. Dictionary Managed Tablespaces
- delete client and reorg tablespaces
- Free space in Oracle tablespaces
- Oracle表空间(tablespaces)
- Oracle表空间(tablespaces)
- 关于ASP.NET中GridView控件的编辑和删除问题!
- Word添加论文引用标注
- 深度剖析WinPcap之(二)——网络分析与嗅探的基础知识(2)
- asp.net中遇到这样的异常:System.Data.SqlClient.SqlException: 将截断字符串或二进制数据。语句已终止。
- GridView分页!增删改
- tablespaces
- ASP.NET图片上传加水印
- 表分区
- SQL语句及Recordset记录集对象详解
- 解7月4号的那道题,计算迷宫中可行路径的条数
- 关于T-sql导入导出Excel
- 定时跳转的几种方法
- 触发器
- Asp.net页面跳转的几种方法 和 值传递的几种方法