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 -> Re: Q: recreate a table with index in anothor tablesapce

Re: Q: recreate a table with index in anothor tablesapce

From: Andy <usmle96_at_yahoo.com>
Date: 23 Jun 2004 04:14:10 -0700
Message-ID: <bacee0b8.0406230314.7a2e7bd1@posting.google.com>


Daniel Morgan <damorgan_at_x.washington.edu> wrote in message news:<1087947219.15823_at_yasure>...
>
> Following up on Howard's great advice ... I'd suggest in the future
> using the following syntax:
>
> ALTER TABLE mytest
> ADD CONSTRAINT pk_a
> PRIMARY KEY (a)
> USING INDEX
> PCTFREE 0
> TABLESPACE ...;
Daniel, thanks for advice. But I am in a situation not to modify the code I have for alter table. And the problem I think is this:

the index is created in another tablespace. When drop table, it may not be able to drop that index in that tablespace. When submit the statements again, sqlplus sees that index existing and generates error. I am writing a script, and try to drop that index in that tablespace while drop the table, this way I guess I won't see error. But, I don't know how to do this to drop that index in a different tablespace. Do you have some idea? Received on Wed Jun 23 2004 - 06:14:10 CDT

Original text of this message

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