How can I convert an existing table to the ITO

Hello

My Oracle version is 10.2.0.4

Here's my my test_table structure.

He has 1141580 rows.

I want to convert to table index. However, there is no secondary indexes.
How can I convert an existing table to the ITO.

CREATE TABLE test_table (
   Column1             NUMBER        NOT NULL,
   Column2             DATE          NOT NULL,
   Column3             VARCHAR2(100) NOT NULL,
   Column4             VARCHAR2(8)   NULL,
   Column5             VARCHAR2(40)  NOT NULL,
   Column6             VARCHAR2(3)   NULL,
   Column7             NUMBER        NOT NULL,
   Column8             NUMBER        NULL,
   Column9             VARCHAR2(32)  NULL,
)

/



ALTER TABLE test_table
  ADD CONSTRAINT test_table_pk2 PRIMARY KEY (
    Column1,
    Column2
  )
  USING INDEX
    STORAGE (
      INITIAL   30720 K
    )

/


ALTER TABLE test_table
  ADD CONSTRAINT test_table_cons1 FOREIGN KEY (
    Column1
  ) REFERENCES test_table2 (
    Column1
  )
/

Documentation Oracle say:
Redefinition of Table online allows you to change the organization from a normal table (heap-organized) to an organized in index table and vice versa.

For example, you might want to try.

Tags: Database

Similar Questions

  • How can I move my existing sites to the catalyst for business for subscribers of creative cloud?

    Hello!

    I have three sites that I always welcomed with heart Internet (www.heartinternet.uk). I understand that I can host 5 free sites with catalyst for business with my creative cloud membership. How can I go on this passage?

    Thank you very much

    has answered your thread How can I move my existing sites to the catalyst for business for subscribers of creative cloud?

  • How can I convert my user standard ac the administrator account

    my administrative ac transferred to standard acre now I have no privileges to add or remove the softwareor programe. He asked me to provide the administrative password. well kindly help me how can I convert my standard user in adminstrater ac ac

    my administrative ac transferred to standard acre now I have no privileges to add or remove the softwareor programe. He asked me to provide the administrative password. well kindly help me how can I convert my standard user in adminstrater ac ac

    Here you go:

    1. Set your BIOS so that it uses the DVD drive as its primary boot device.
    2. Start the computer with your Windows 7 repair CD.
    3. Press a key when prompted to boot from the DVD.
    4. Select 'PC Repair' in the menu.
    5. Select 'Repair' when prompted.
    6. When you are prompted, select System Restore.
    7. Set Windows to a point before you demoted the admin account.
    8. Plan ahead a little and create, test and document an alternative admin account, same as you have a spare emergency House key. This will save you a lot of trouble.
  • How can I convert .wps to .doc? The option "save under" records in .doc but then opens as a .wps document!

    I need to convert all of my documents (stored in different folders on my table) to the .doc file format.

    l if I record my letters et al. as .doc, they open as .wps

    How can I get the documentation to open as .doc files?

    Hi Nick Bryant.

    You have made no changes to the computer before the broadcast took place?

    I suggest you to configure Microsoft's Word as default.

    Change default programs using Set Program Access and computer defaults
    http://Windows.Microsoft.com/en-us/Windows7/change-default-programs-using-set-program-access-and-computer-defaults

    Set Program Access and Computer Defaults: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows7/set-program-access-and-computer-defaults-frequently-asked-questions

  • How can I convert a negative image of the film a positive image in Lightroom 6?

    I've seen a number of online tutorials that explains how you can reverse/return line in the Module development of tone curve by dragging either end of the line, top / bottom for converting a negative to a positive image. This however does not seem possible in LR 6?  So, how are you? (My scanner is able to produce positives TIFF or JPEG of the film I've been scanning, but I would have preferred to edit pictures using Raw DNG files that it produces, which are negative).

    You must click on the small icon in the lower right curved panel to make editing possible.

    If it comes to color film, I don't know how good a conversion that would be, it will certainly color adjustments, because of the orange mask in the negative.

    And a scanner DNG files? I doubt that they will be real raw files...

    You can scan an image tiff with all the cliches and to highlight the present details, and that will be as good as any raw file.

  • How can I connect 2D Boolean table at the entrance to the structure of the case?

    Hello

    I would like to know how to solve this problem. I try to connect the output of a digital 2D painting and a constant number of 'BIG' before you connect it to the entrance of the structure of the case. An error message appears and it shows ' the type of the source is a 2D boolean array. The sink type is Boolean "."

    I tried to 'disable indexing' on the box of the structure of the case, but the error remains. Would appreciate any comments on it.

    Entry 0 third entry in the index table, not the other.

  • How can I add an existing program for the boot menu (so that it is initiated when I turn on the computer)

    Long story, but I accidentally deleted the program pad track (DellTPad) to start the ritual.  So now I can not turn the touchpad switch.   How can I get the program in the start menu so that I can control the touchpad again?  I found the DellTPad program on the computer but I don't know how to get it back in the boot process.  I don't have a decent backup to restore.

    Send a shortcut on the desktop. Then, without letting go of taken, drag it to the Start button, all programs, in the startup folder and drop it.
     
  • How can I convert RAW to JPEG in the bridge

    I need to convert about 40 RAW files to JPEG.  I don't know there's a way to do it but can't seem to find an option.  Can anyone help please?

    Thank you

    I would select and load everything in Camera Raw (Ctrl/Cmd-R), making global adjustments, then use the Save... button in the lower left corner.

  • How can I convert table 1 d in a 2D array.

    I have a table 1 d I want to get into an Excel template.  How can I convert a 2D table so I can enter Excel Table.vi easy?

    Be sure to check the correct operation. Solution-Marc adds another row of zeros and I don't know if this is desirable here. (See also)

  • How can I convert a photo in format PDF to Excel?

    How can I convert an image (presentation of the floor plan) in Excel?

    You will need to perform recognition (OCR) text during the conversion process.

    Please confirm if you are using the service ExportPDF or Acrobat.

  • How can I write in a table cell (row, column appear) in a databae?

    How can I write in a table cell (row, column appear) in a database using LabVIEW Database Toolkit? I use Ms Access. Suppose I have three columns in a table, I write 1 row of the 1st column, then 1st rank of the 3rd column. The problem I have is after writing the 1st column of 1st row, the reference goes to the second row, and if I write in the 3rd column, he goes to the 2nd row 3rd column. Any suggestion?

    When you perform a SQL INSERT command, you create a new line. If you want to change an existing line, you must use the UPDATE command (i.e. UPDATE tablename SET column = value WHERE some_column = some_value). The some_column could be the unique ID of each line, date and time, etc.

    I don't know what is the function to use in the Toolbox to execute a SQL command, since I do not use the Toolbox. Also, I don't understand why you don't do a single INSERT. It would be much faster.

  • How can I convert a column online

    Hi experts,
    How can I convert column as line in oracle...

    I have a table like Tab_Query this table has only one column.
       create table Tab_Query
      (
        result varchar2(4000);
      );
    
     insert into Tab_Query values(Mr,John,01-apr-1984,Software Engineer); 
    
      Then table has contain the value like below 
    
       Mr,John,01-apr-1984,Software Engineer
     
      My Requirement is i need the result like below
      Mr
      John
      01-apr-1984
      Software Engineer
    Please, can someone help how can I get the result...

    Kind regards
    Arun

    Hello

    Here's a way to do it when you have several lines:

    select   regexp_substr(result,'[^,]+',1,l) as Tokens
    from tab_query,
        (
        select level l
        from dual connect by level<= (
                                     select max(regexp_count(result, ',') )  +1
                                     from tab_query
                                     )
        )
    where regexp_substr(result,'[^,]+',1,l) is not null
    order by result, l ;
    

    Kind regards
    Sylvie

  • How can I convert my friends to the Game Center on Facebook?

    With the new iOS for my iPod & iPad, I lost all my friends Game Center.  I have two games that I play as I would like.  How can I convert my friends to the Game Center for Facebook friends?

    You do not have. They have two different systems. What you need to do is to start on. For example, if your game has a forum or support page, they may have a way for people to communicate to a friend. Or if they have a facebook page, they probably have a system for "I want to make friends."

    It is now up to the games themselves to put in place the means to a friend using iMessage. You will need to wait for your game to do.

  • Time Capsule - My current Time Capsule 1 TB (Version 7.6.7) is complete and is overwhelming back more old ups. How can I migrate back existing ups for a new time Capsule (2 TB or 3 TB). El Capitan 10.11.6 OSX

    Time Capsule migration - My current Time Capsule 1 TB (Version 7.6.7) is complete and is overwhelming back more old ups. How can I migrate back existing ups of my current for a new time Capsule time capsule (2 TB or 3 TB)? El Capitan 10.11.6 OSX

    You just set up the new TC and plug the old TC... copy the sparsebundle existing old TC to the new... but we do not recommend to do this.

    It's much better to start a new backup TM on the new TC and keep the old one for several months until you have a fair story and if you need never old file the chances you decreases considerably with time.

    The instructions are here if you really want to do.

    How do I move Time Machine backups to another - Support Apple Time Capsule airport

    Instructions better although updated here.

    Q18 http://pondini.org/TM/FAQ.html

  • How can I convert a page typed into an editable text file

    How can I convert a page typed in an edible text file? I have a 50 page typed (on a typewriter ;-) document I want to convert (scan?) in a format so that I can then open the file in a text editing application (Word?) and edit.

    How is the most effective (and least expensive) way to do it?

    Thank you

    HAL

    < re-titled by host >

    "Edible text file?" You hear as he print on rice paper, so you can serve it up like at dinner side dish? You want someone to eat their words

    I think that the last two multifunction printers, I bought came with some kind of OCR characters (OCR) software as part of the sweeping package.  I guess that's not the greatest.

Maybe you are looking for