2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

SQL*Plusでの表領域の作成方法

2
Posted at

概要

SQL*Plusにて新規の表領域を作成してみます。

コマンド

CREATE TABLESPACE 表領域名 DATAFILE 'データファイルの名前' SIZE サイズ;

表領域名、データファイルの名前は各自お好きなネーミングでお願いします。

CREATE TABLESPACE TSPACE2 DATAFILE 'TSPACE2_DATAFILE' size 100m;

SmartSelectImage_2019-01-25-07-13-25.png

確認

SELECT * FROM DBA_DATA_FILES WHERE TABLESPACE_NAME = '表領域名';

表領域名は先ほど作成したものに書き換えてください。

SELECT * FROM DBA_DATA_FILES WHERE TABLESPACE_NAME = 'TSPACE2';

SmartSelectImage_2019-01-25-07-18-35.png

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?