Skip to Main Content

Japanese

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!

Create Table As Select ~ 時に、TableSpace句を指定できない。

user13416195Jan 16 2012 — edited Jan 16 2012
やりたい事は、バックアップテーブルを表領域指定で作成したいです。

①やりたい事。 tablespace句を指定するとエラーになる。
SQL> create table xxemp_bk as select * from scott.emp tablespace users ;
create table xxemp_bk as select * from scott.emp tablespace users
*
行1でエラーが発生しました。:
ORA-00933: SQLコマンドが正しく終了されていません。


②参考1 tablespace句を指定しない場合はOK
SQL> create table xxemp_bk as select * from scott.emp ;

表が作成されました。

③参考2 As Select ~ を指定しない場合はOK
SQL> create table xxemp_bk2 (col varchar2(1)) tablespace users ;

表が作成されました。


※一応、回避策としては、事前にAlter Table文で、Default TableSpaceを変更すれば、
 可能ですが、単にSQLの記述が悪い場合は、教えて頂けないでしょうか?

宜しくお願いします。
This post has been answered by Hiroyuki Nakaie-Oracle on Jan 16 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 13 2012
Added on Jan 16 2012
1 comment
14,987 views