当前位置:网站首页>5. Oracle TABLESPACE
5. Oracle TABLESPACE
2022-07-05 06:22:00 【Feuilles froides flottantes】
- Créer un espace de table auto - partitionné géré localementUSERTBS1,Le fichier de données correspondant est20m
create tablespace usertbs1 datafile 'D:\app\Snakewood\oradata\orcl\usertbs1.dbf' size 20m;

- Créer un espace de table géré localementUSERTBS2,La taille de chaque partition est512K
create tablespace usertbs2 datafile 'D:\app\Snakewood\oradata\mydba\usertbs2.dbf' size 20m extent management local uniform size 512k;

- ModifierUSERTBS1Taille de l'espace de table,Changez le fichier de données de cet espace de table en mode d'extension automatique,Max.100M
alter database datafile 'D:\app\Snakewood\oradata\mydba\usertbs1.dbf' autoextend on next 5m maxsize 100m;

- PourUSERTBS2 Espace de table ajouter un fichier de données ,Taille20M
alter tablespace usertbs2 add datafile 'D:\app\Snakewood\oradata\mydba\usertbs2_1.dbf' size 20m;

- Créer un espace de table temporaire TEMPTBS1, Et défini comme l'espace de table temporaire par défaut pour la base de données
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;

- UtiliserSQLOrdre correctUSERTBS1 TABLESPACE pour les transitions d'état en ligne et hors ligne
Alter tablespace USERTBS1 offline;
Alter tablespace USERTBS1 online;

- Créer unSCTableau(SNO,CNO,GRADE),Ajoutertablespace usersPhrases,Et ensuite,USERS L'espace de table est défini en lecture seule ,Essayez deSCAjouter un enregistrement au tableau
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);


- Créer un espace de table ROLLBACK UNDOTBS2, Et comme espace de table Undo pour la base de données
create undo tablespace UNDOTBS2 datafile ‘D:\app\Snakewood\oradata\mydba\ UNDOTBS2_1.DBF’ size 20m;

- Oui.USERTBS1 Renommer l'espace de table en USERTBS01
alter tablespace USERTBS1 rename to USERTBS01;

- Supprimer l'espace de tableUSERTBS2, Supprimer à la fois le contenu et les fichiers de données de cet espace de table
drop tablespace USERTBS2 including contents and datafiles;

边栏推荐
- 高斯消元 AcWing 884. 高斯消元解异或線性方程組
- Leetcode-6110: number of incremental paths in the grid graph
- Network security skills competition in Secondary Vocational Schools -- a tutorial article on middleware penetration testing in Guangxi regional competition
- [rust notes] 13 iterator (Part 2)
- TypeScript 基础讲解
- LeetCode 0108. Convert an ordered array into a binary search tree - the median of the array is the root, and the left and right of the median are the left and right subtrees respectively
- 2021apmcm post game Summary - edge detection
- Open source storage is so popular, why do we insist on self-development?
- In depth analysis of for (VaR I = 0; I < 5; i++) {settimeout (() => console.log (I), 1000)}
- Series of how MySQL works (VIII) 14 figures explain the atomicity of MySQL transactions and the principle of undo logging
猜你喜欢

LeetCode 0108. Convert an ordered array into a binary search tree - the median of the array is the root, and the left and right of the median are the left and right subtrees respectively

Navicat连接Oracle数据库报错ORA-28547或ORA-03135

容斥原理 AcWing 890. 能被整除的数

Network security skills competition in Secondary Vocational Schools -- a tutorial article on middleware penetration testing in Guangxi regional competition

Erreur de connexion Navicat à la base de données Oracle Ora - 28547 ou Ora - 03135

高斯消元 AcWing 884. 高斯消元解异或線性方程組

Sorting out the latest Android interview points in 2022 to help you easily win the offer - attached is the summary of Android intermediate and advanced interview questions in 2022

SQL三种连接:内连接、外连接、交叉连接

Leetcode-6110: number of incremental paths in the grid graph

SPI details
随机推荐
博弈论 AcWing 894. 拆分-Nim游戏
1.13 - RISC/CISC
Data visualization chart summary (II)
MIT-6874-Deep Learning in the Life Sciences Week 7
1040 Longest Symmetric String
Leetcode-22: bracket generation
Groupbykey() and reducebykey() and combinebykey() in spark
MySQL advanced part 2: storage engine
LeetCode 0107. Sequence traversal of binary tree II - another method
New title of module a of "PanYun Cup" secondary vocational network security skills competition
博弈论 AcWing 893. 集合-Nim游戏
快速使用Amazon MemoryDB并构建你专属的Redis内存数据库
论文阅读报告
1.15 - input and output system
4.Oracle-重做日志文件管理
Redis publish subscribe command line implementation
C Primer Plus Chapter 15 (bit operation)
MySQL advanced part 1: index
MIT-6874-Deep Learning in the Life Sciences Week 7
求组合数 AcWing 887. 求组合数 III