oracle表空间创建详解,oracle创建表空间详解(Oracle create table space detailed).doc

oracle创建表空间详解(Oracle create table space detailed)

oracle创建表空间详解(Oracle create table space detailed)

ORACLE, table space is the basic method of data management, all the user's object should be stored in the table space, that is, users have the right to use space, in order to create users

Object is not allowed to create objects, because it is to create objects, such as tables, indexes, etc., and there is no place to store, Oracle will prompt: there is no storage quota

So before you create objects, you need to allocate storage space first

Allocating storage creates table spaces:

Examples of creating table spaces are as follows:

CREATE TABLESPACE "SAMPLE""

LOGGING

DATAFILE'D:\ORACLE\ORADATA\ORA92\LUNTAN.ora'SIZE 5M

EXTENT, MANAGEMENT, LOCAL, SEGMENT, SPACE, MANAGEMENT, AUTO

The above statement is divided into the following sections:

First: CREATE TABLESPACE "SAMPLE" creates a tablespace called SAMPLE

Naming the table space follows the naming conventions of the Oracle

There are three types of table spaces that ORACLE can create:

(1) TEMPORARY: temporary tablespace, used for temporary data storage;

The syntax for creating temporary table spaces is as follows:

CREATE TEMPORARY TABLESPACE "SAMPLE""......

(2) UNDO: restore tablespace. Used to store redo log files

The syntax for creating a reduced table space is as follows:

CREATE UNDO TABLESPACE "SAMPLE""......

(3) user tablespace: the most important, but also used to store user data table space

It can be written directly: CREATE TABLESPACE, "SAMPLE""

TEMPORARY and UNDO table spaces are special table spaces managed by ORACLE. They are only used to store system related data

Second: LOGGING

There are two options for NOLOGGING and LOGGING,

When you create table spaces, NOLOGGING: does not create redo logs

LOGGING and NOLOGGING, on the other hand, create redo logs when creating table spaces

The advantage of using NOLOGGING is that you don't need to generate logs when you create it, so that the creation of table space is faster, but you can't recover after logging data, but gene

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值