Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Specify tablespace for primary key index in create table statement

pcpaascheMar 13 2017 — edited Mar 14 2017

Is it possible to specify the tablespace for the primary key index when the primary key is created like this:

CREATE TABLE AST_EU

(

   AST_EU_ID          NUMBER GENERATED BY DEFAULT ON NULL AS IDENTITY CONSTRAINT AST_EU_PK PRIMARY KEY,

   REQUEST_ID         VARCHAR2(50 BYTE) NOT NULL

);

When running the create table statement above, the primary key index AST_EU_PK is created in the default tablespace DATA01. However, we would like to have it created in a tablespace named INDEX01.

This post has been answered by AndrewSayer on Mar 13 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 11 2017
Added on Mar 13 2017
11 comments
4,840 views