Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Q: recreate a table with index in anothor tablesapce

Q: recreate a table with index in anothor tablesapce

From: Andy <usmle96_at_yahoo.com>
Date: 22 Jun 2004 13:09:39 -0700
Message-ID: <bacee0b8.0406221209.30b7ee29@posting.google.com>


I am a new user of Oracle using 10g. Got the problem when sub following sql statements:

create table mytest (

	a varchar2(30)
		);

alter table mytest
  add constraint pk_a primary key(a);

alter table mytest
  enable primary key using index
  tablespace users_indx
  pctfree 0;

drop table mytest cascade constraints;

sqlplus tells second alter table has error: ora-00955: name is already used by another existing object.

At least I found if comment out the tablespace clause, everything runs fine. may you explain what is wrong with this statement? and how to fix it?

Thanks very much. Received on Tue Jun 22 2004 - 15:09:39 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US