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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Creating indexes in seperate tablespace

Re: Creating indexes in seperate tablespace

From: chaos <zhuchaopku_at_263.net>
Date: Tue, 06 Feb 2001 03:40:57 -0800
Message-ID: <F001.002ABC4E.20010206024048@fatcity.com>

John Dunnã

      u can use a clause in the create table command to specify the details of the primary key,or alter table to add constraint ,using index clause to specify the detail about the index.
for example:
sql>create table pk

        (name char(8),
         age  number);

sql> alter table pk add constraint pk1 primary key (name)  using index
 tablespace system;
or in create table command:
SQL> create table pk
  2 (name char(8) primary key using index tablespace system,   3 num number);
this also works.         

2001-2-6 0:42:00 д
>We have tables with primary keys, which result in indexes being created. We
>do not explicitly create indexes.
>
>How can I ensure that indexes are created in a seperate tablespace from the
>tables?
>
>Can I specify this in the create table statement?
>
>Oracle version is 8.1.6
>
>John
>
>
>
>--
>Please see the official ORACLE-L FAQ: http://www.orafaq.com
>--
>Author: John Dunn
> INET: john.dunn_at_sefas.co.uk
>
>Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
>San Diego, California -- Public Internet access / Mailing Lists
>--------------------------------------------------------------------
>To REMOVE yourself from this mailing list, send an E-Mail message
>to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
>the message BODY, include a line containing: UNSUB ORACLE-L
>(or the name of mailing list you want to be removed from). You may
>also send the HELP command for other information (like subscribing).

                    

            chaos
            zhuchaopku_at_263.net


--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: chaos
  INET: zhuchaopku_at_263.net

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Tue Feb 06 2001 - 05:40:57 CST

Original text of this message

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