当前位置:网站首页>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;
边栏推荐
- 什么是套接字?Socket基本介绍
- 求组合数 AcWing 887. 求组合数 III
- Basic explanation of typescript
- [2021]GIRAFFE: Representing Scenes as Compositional Generative Neural Feature Fields
- Operator priority, one catch, no doubt
- 【LeetCode】Easy | 20. Valid parentheses
- 20220213-CTF MISC-a_ good_ Idea (use of stegsolve tool) -2017_ Dating_ in_ Singapore
- Traditional databases are gradually "difficult to adapt", and cloud native databases stand out
- our solution
- There are three kinds of SQL connections: internal connection, external connection and cross connection
猜你喜欢
[2020]GRAF: Generative Radiance Fields for 3D-Aware Image Synthesis
区间问题 AcWing 906. 区间分组
Client use of Argo CD installation
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
There are three kinds of SQL connections: internal connection, external connection and cross connection
4. 对象映射 - Mapping.Mapster
阿里新成员「瓴羊」正式亮相,由阿里副总裁朋新宇带队,集结多个核心部门技术团队
[wustctf2020] plain_ WP
安装OpenCV--conda建立虚拟环境并在jupyter中添加此环境的kernel
4.Oracle-重做日志文件管理
随机推荐
Leetcode-1200: minimum absolute difference
[rust notes] 14 set (Part 1)
栈 AcWing 3302. 表达式求值
【LeetCode】Easy | 20. Valid parentheses
4. 对象映射 - Mapping.Mapster
How to set the drop-down arrow in the spinner- How to set dropdown arrow in spinner?
快速使用Amazon MemoryDB并构建你专属的Redis内存数据库
C - XOR to all (binary topic)
Leetcode dynamic programming
Appium automation test foundation - Summary of appium test environment construction
LeetCode-61
Modnet matting model reproduction
Quickly use Amazon memorydb and build your own redis memory database
Presentation of attribute value of an item
Alibaba's new member "Lingyang" officially appeared, led by Peng Xinyu, Alibaba's vice president, and assembled a number of core department technical teams
SQLMAP使用教程(一)
New title of module a of "PanYun Cup" secondary vocational network security skills competition
[rust notes] 16 input and output (Part 1)
Bash exercise 17 writing scripts to install the server side of FRP reverse proxy software
Sqlmap tutorial (1)