当前位置:网站首页>5. Oracle tablespace
5. Oracle tablespace
2022-07-05 06:22:00 【Cold leaves elegant_】
- Create a table space that is automatically partitioned under local management USERTBS1, The corresponding data file is 20m
create tablespace usertbs1 datafile 'D:\app\Snakewood\oradata\orcl\usertbs1.dbf' size 20m;
- Create a table space under local management mode USERTBS2, The size of each partition is 512K
create tablespace usertbs2 datafile 'D:\app\Snakewood\oradata\mydba\usertbs2.dbf' size 20m extent management local uniform size 512k;
- modify USERTBS1 Table space size , Change the data file of the table space to automatic expansion , Maximum 100M
alter database datafile 'D:\app\Snakewood\oradata\mydba\usertbs1.dbf' autoextend on next 5m maxsize 100m;
- by USERTBS2 Add a data file to the table space , size 20M
alter tablespace usertbs2 add datafile 'D:\app\Snakewood\oradata\mydba\usertbs2_1.dbf' size 20m;
- Create a temporary table space TEMPTBS1, And set it as the default temporary table space of the database
create temporary tablespace temptbs1 tempfile 'D:\app\Snakewood\oradata\mydba\ temptbs1_1.dbf' size 20m extent management local uniform size 16m;
alter database default temporary tablespace temptbs1;
- Use SQL Command to USERTBS1 Tablespaces perform online and offline state transitions
Alter tablespace USERTBS1 offline;
Alter tablespace USERTBS1 online;
- Create a SC surface (SNO,CNO,GRADE), increase tablespace users Words and expressions , And then USERS The tablespace is set to read-only , Try to SC Add a record to the table
create table SC (
SNO varchar2(20) primary key,
CNO varchar2(20) not null,
GRADE number(3) not null
)
tablespace users;
alter tablespace users read only;
insert into SC values (‘B201801’,’C0101’,98);
- Create a rollback table space UNDOTBS2, And as the undo tablespace of the database
create undo tablespace UNDOTBS2 datafile ‘D:\app\Snakewood\oradata\mydba\ UNDOTBS2_1.DBF’ size 20m;
- take USERTBS1 Tablespace renamed to USERTBS01
alter tablespace USERTBS1 rename to USERTBS01;
- Delete tablespace USERTBS2, Delete the contents and data files of the table space at the same time
drop tablespace USERTBS2 including contents and datafiles;
边栏推荐
- Golang uses context gracefully
- Leetcode divide and conquer / dichotomy
- [wustctf2020] plain_ WP
- Currently clicked button and current mouse coordinates in QT judgment interface
- 2022-5-第四周日报
- Leetcode-1200: minimum absolute difference
- TypeScript 基础讲解
- [moviepy] unable to find a solution for exe
- Records of some tools 2022
- 5.Oracle-錶空間
猜你喜欢
[moviepy] unable to find a solution for exe
MySQL advanced part 2: storage engine
Single chip computer engineering experience - layered idea
4. Object mapping Mapster
MySQL advanced part 2: SQL optimization
WordPress switches the page, and the domain name changes back to the IP address
What is socket? Basic introduction to socket
求组合数 AcWing 889. 满足条件的01序列
Leetcode array operation
Suppose a bank's ATM machine, which allows users to deposit and withdraw money. Now there is 200 yuan in an account, and both user a and user B have the right to deposit and withdraw money from this a
随机推荐
[learning] database: several cases of index failure
AE tutorial - path growth animation
阿里巴巴成立企业数智服务公司“瓴羊”,聚焦企业数字化增长
Modnet matting model reproduction
5.Oracle-表空间
MySQL advanced part 2: SQL optimization
Usage scenarios of golang context
Single chip computer engineering experience - layered idea
Day 2 document
Currently clicked button and current mouse coordinates in QT judgment interface
Series of how MySQL works (VIII) 14 figures explain the atomicity of MySQL transactions and the principle of undo logging
论文阅读报告
博弈论 AcWing 892. 台阶-Nim游戏
Alibaba's new member "Lingyang" officially appeared, led by Peng Xinyu, Alibaba's vice president, and assembled a number of core department technical teams
In depth analysis of for (VaR I = 0; I < 5; i++) {settimeout (() => console.log (I), 1000)}
Is it impossible for lamda to wake up?
927. Trisection simulation
Alibaba established the enterprise digital intelligence service company "Lingyang" to focus on enterprise digital growth
[BMZCTF-pwn] ectf-2014 seddit
P3265 [jloi2015] equipment purchase