How to create faster index in the table of 500 GB

Dear Experts,

I have to create 20 index on table data-ware house. This table is of size 500 GB.

freshen up this weekly chart using the external table.

creating 20 indexes on this table consumes a lot of time.

I have 40 GB of ram on 2012 box windows with 8 processors.

I installed 11 GR 2.

I have 4 drives C D E F

for AN index, it takes 4 hours


I added enough space to the tablespace

I put the tablespace in a drive D:\


I'm under control to create indexes below

create index  X_3_INVEN_ITEM_ID_IDX  on   X_3_PV_TD_2 (INVENTORY_ITEM_ID)  parallel 32 nologging;

output long ops

SID, SERIAL # CONTEXT SOFAR TOTALWORK LESS TARGET % _COMPLETE TIME_REMAINING

---------- ---------- ---------- ---------- ---------- ---------------------------------------------------------------- ---------------------------------------------------------------- ---------- --------------

108 10 0 3758 140973 Rowid Scan AD range. X_3_PV_TD_2                                    2.67            256

173 23 0 5279 141470 Rowid Scan AD range. X_3_PV_TD_2                                    3.73            258

114 6 0 10092 141786 Rowid Scan AD range. X_3_PV_TD_2                                    7.12            261

99         59          0      46283     325908 Sort Output                                                                                                                     14.2          15207

68        214          0      46763     323623 Sort Output                                                                                                                    14.45          14973

35         93          0      47531     318364 Sort Output                                                                                                                    14.93          14570

164         70          0      45058     288506 Sort Output                                                                                                                    15.62          12886

227         31          0      44130     282285 Sort Output                                                                                                                    15.63          13011

13          3          0      51890     309515 Sort Output                                                                                                                    16.76          12874

222 67 0 28837 141380 Rowid Scan AD range. X_3_PV_TD_2                                    20.4            343

73 37 0 32472 141488 Rowid Scan AD range. X_3_PV_TD_2 22.95 212

47 8 0 34332 141154 Rowid Scan AD range. X_3_PV_TD_2 24,32 202

176 20 0 35197 141161 Rowid Scan AD range. X_3_PV_TD_2 24.93 205

19 7 0 35239 141325 Rowid Scan AD range. X_3_PV_TD_2 24.93 205

80 4 0 40399 141611 Rowid Scan AD range. X_3_PV_TD_2 28,53 193

144 20 0 44960 141481 Rowid Scan AD range. X_3_PV_TD_2 31,78 182

233 101 0 74086 169228 Rowid Scan AD range. X_3_PV_TD_2 43,78 176

128 165 0 78765 141436 Rowid Scan AD range. X_3_PV_TD_2 55.69 173

235 1 0 41199796 70035728 table Scan AD. X_3_PV_TD_2 58,83 19804

199 6 0 52748651 70035728 table Scan AD. X_3_PV_TD_2 75,32-9709

44 2 0 53686039 70035728 table Scan AD. X_3_PV_TD_2 76,66 9022

204 26 0 119969 141464 Rowid Scan AD range. X_3_PV_TD_2                                   84.81             40

202 48 0 138880 162276 Rowid Scan AD range. X_3_PV_TD_2                                   85.58             43

17 33 0 126506 141778 Rowid Scan AD range. X_3_PV_TD_2                                   89.23             28

48 7 0 137772 141360 Rowid Scan AD range. X_3_PV_TD_2                                   97.46             15

Temp tablespace


USED_MB USED TOT_MB % NOM_TABLESPACE

------------------------------ ---------- ---------- ----------
TEMP 11533 286719 4.02

temporary tables

OWNER SEGMENT_NAME SEGMENT_TY TABLESPACE_NAME EXTENTS BYTES_
---------- ------------------------------ ---------- -------------------- ---------- ---------------
AD 156.1601650 TEMPORARY USERS 96 209,715,200

Question:

How to fix this?

(a) run several parallel create sqlplus statement index different sessions

(b) create a tablespace to put data files in different hard drives like D: E: F: C:

(c) create the separate tablespace for each hard drive and map it to a single disk IO benefit

(d) I have 8 processors but parallel 32 is not speed

(e) how these clues I can run in parallel. Is it OK to run 20 parallel index 32 sqlplus sessions

All that I have to create 20 index on the table of 500 GB

target memory = 30GB

index of names to create 20, each index is 10 GB

his is of 80 hours (4 hours per index)

This machine is waiting, I just used all the resources of the machine to accelerate.

Thanks for reading this

Thanks for the help in advance

I was talking about your end of issue speed up construction of index, where I proposed

orclz >

orclz > alter session set workarea_size_policy = manual;

Modified session.

orclz > alter session set sort_area_size = 2147483647;

Modified session.

orclz > create index

Post edited by: JohnWatson

Sorry, I misread it: this question was not from you. My apologies. My solution should work for you, however: give yourself a big PGA, manually. Automatic PGA management using not will never give you enough.

Tags: Database

Similar Questions

  • How to create a grid with the tables and Boolean values?

    As part of a larger project, I'm trying to create a Subvi, which will allow me to spend a "cursor" in a 3 x 3 matrix.

    It should be 2 Boolean inputs, one for move them down in the table and the other to move them to the right. Once reached the edge of the table, the "cursor" will start back at the beginning.

    I have a vague idea of a table to 2 dimensions with LED. Once 'down' has been selected, the corresponding light to (0,0), light (0.1). Goes the same for the button 'right '. When 'down' is pressed (0.2), the LED should turn off, and LED (0,0) must light up.

    I'm sure it has something to do with the initialization of the tables, but I can't seem to find the right way to do it.

    Any help is much appreciated. Thank you!

    Your array is always empty.  Look at the detailed help for the function page replace table subset.  He says that the function has no effect if the specified index refers to a location outside the table.

    What you see on the Panel is only a view and has nothing to do with what is in the table.

    Lynn

  • How to call user B to drop/create an indexes on a table owned by the user has?

    Hello!
    We have the following situation:
    = > user B has a table that has an index
    = > user connects to the database and must have sufficient privileges or the ability to drop/create an index for a table owned by the user B.
    Since there are several different schemas in the database, it is not possible to grant the privilege "to create any index' or 'delete any index '.
    for the user.
    = > to do even more complicated: the necessary procedure must not belong to user B

    I tried to solve this problem with a stored procedure (which belongs to user C). Why do we use user C? C the user has several packages,
    procedures and functions that get used by other users (for example for purposes of logging, refresh materialized views,...)

    So the logic is:
    = > user A calls user procedure C. In this procedure the call "run immediately" ALTER SESSION SET CURRENT_SCHEMA = B' "»
    is executed successfully. The next step, the < drop index B.i1 > statement would get executed. But this statement fails with the
    exception ' ORA-01031: insufficient privileges ".

    If this procedure is created in the schema of the user B then everything works fine - but because of our current design of the database, this procedure
    must belong to the user C.

    Does anyone know a solution to this problem?

    Any help will be appreciated

    Rgds
    JH

    I think you need the privilege DROP_ANY_INDEX directly to user C.

  • Creating indexes for the table

    can someone help me how to create indexes in the table. I m creating own table... I need to select a particular field in the table. So I need to calculate the index position. I use my code like this,

    This will returnthe number of columns in the table.

    Class array

    {

    private int Table_Index()
    {
    for (int x = 0; x)<>
    {
    table_index = x;
    }
    Return table_index;
    }

    }

    MainClass can I get this length of Index

    Table T1;

    int t1 is T1. Table_Index();

    This property returns my length (4) of table column

    Using this index (t1) I HAV to see what position I'm at table now...

    someone help me...

    You can use a listfield, he supports methods to get the selected row and its contents.

  • Why I can't create indexes on the table of RDF data

    When I tried to create indexes on the table of RDF data, it always say the table or view does not exist. I created the RDF model using java codes:

    Oracle Oracle = new Oracle ("jdbc:oracle:thin:@localhost:1521:orcl", "system", "123");

    Chart GraphOracleSem = new GraphOracleSem (oracle, "test2");


    And used the following commands in sqlplus to create indexes:

    SQL >

    SELECT THE SEPARATE OWNER, OBJECT_NAME

    FROM DBA_OBJECTS

    WHERE TYPE_OBJET = 'TABLE '.

    4. AND OBJECT_NAME like ' % TEST2;

    OWNER

    --------------------------------------------------------------------------------

    OBJECT_NAME

    --------------------------------------------------------------------------------

    SYSTEM

    TEST2_NS

    SYSTEM

    RDFB_TEST2

    SYSTEM

    TEST2_TPL

    OWNER

    --------------------------------------------------------------------------------

    OBJECT_NAME

    --------------------------------------------------------------------------------

    SYSTEM

    RDFC_TEST2


    SQL > connect as sysdba

    Enter the password:

    Connected.

    SQL >

    SQL >

    SQL > select * from TEST2_TPL;

    Select * from TEST2_TPL

    *

    ERROR on line 1:

    ORA-00942: table or view does not exist

    SQL > CREATE INDEX test2_sub_idx ON TEST2_TPL (triple. GET_SUBJECT());

    CREATE INDEX test2_sub_idx ON TEST2_TPL (triple. GET_SUBJECT())

    *

    ERROR on line 1:

    ORA-00942: table or view does not exist

    Hi Shifu,

    It is not recommended to use the SYS or SYSTEM to store/manage schema graph RDF data.

    Can you please try the following in a SQL * more terminal?

    SQL > conn system/eu1

    Connected.

    SQL >

    SQL >

    SQL > create user graphuser identified by graphuser;

    Created by the user.

    SQL > grant connect, resources, unlimited tablespace to graphuser;

    Grant succeeded.

    SQL > conn graphuser/graphuser

    Connected.

    SQL > create table graph_tpl (triple sdo_rdf_triple_s) compress;

    Table created.

    SQL > sem_apis.create_sem_model exec ('graphic', 'graph_tpl', 'three');

    PL/SQL procedure successfully completed.

    SQL > insert into graph_tpl values (sdo_rdf_triple_s ('graph', '', '', ''));

    1 line of creation.

    SQL > select count (1) in the mdsys.rdfm_graph;

    1

    You see the same result?

    Thank you

    Zhe Wu

  • dynamic SQL to drop the indexes on the table

    Hello world

    Please tell me how to remove the indexes on a table by using a dynamic sql code

    for example, I have a dummy table with two index idx1, idx2

    I need a procedure or a function where I will be passing in the name of the table, the function/procedure should remove the indexes on the table

    Thank you

    Not tested:

    create or replace
    procedure drop_indexes_of_table(p_table_owner varchar2,
                                    p_table_name varchar2)
    as                              
    
    cursor c_drop_statements is
    select 'drop index '||owner||'.'||index_name stmt
    from all_indexes
    where table_owner=p_table_owner
    and table_name=p_table_name;
    
    begin
      for r in c_drop_statements loop
        execute immediate r.stmt;
      end loop;
    end;
    
  • How to create Mulitple tab in the Page

    Dear all,
    How to create Mulitple tab in the Page (UI)

    One way is to download the OA Framework Metalink Dev guide. You can also navigate to Jdevdoc (under your Jdev installation) and find the index.html file. There you have the reference to the Dev Guide. You can get the right information here too.

    Concerning
    Sumit

  • Index on the Table of the Publisher (the CDC configuration)

    We have installation Aync Auto Journal CDC on Oracle 11.1.0.7. Everything works well, but had a question about the performance of select on tables owned by the Publisher.

    According to my understanding, the changes are captured in the tables belonged to the Publisher and Subscriber had view based on these tables. Our data warehouse application reads these views (tables both editor)

    I'm not seeing any indexes on tables in the editor and see as bad performance on select on these views/tables. Thinking to create indexes on columns - CSCN$ ROW_ID$, on which we build our selection.

    Can someone share such an experience or any idea on this...?

    Thank you in advance!
    Mahesh

    Mahesh,

    I saw two or three questions identical to what you say. It is possible to create additional indexes on changing tables (the table of the editor you alluded) on columns as CSCN$, RSID$ etc. Since the imputation has fill in the change table, it would have a minor overload to fill these indices as well.

    Thank you
    Florent

  • How to create a '. '. The URL file"of a Web page I visit

    How to create a '. '. The URL file"of a Web page I visit

    Check these

    deskCut {web link}
    This extension adds desktop shortcut creation for the
    context menu for Windows, Linux and Mac.

    My CopyFixer {web link}
    Use Ctrl + C when nothing selected to copy the page title and the url in
    various (base model) format.

    Send the URL of the tab {web link}
    Send a list of URLS tab browser to email, webmail or the Clipboard

  • How to create a link on the web to use in an e-mail?

    I don't know how to create a link on the web that I can put in the e-mail addresses. Could you help me please? I know it must be very simple, because thousands of others do regularly. Thank you.

    Katy Anderson

    You can use file-> Send link or copy the web address of the address bar and paste it into an email.

    You are using an older version of Firefox (3.0.7) - you need to update as soon as possible

  • 'For' loop with a different number of iterations. Second, the auto-indexation of the tables with different sizes is done. It can affect the performance of the Vi?

    Hello

    I have a loop 'for' which can take different number of iterations according to the number of measures that the user wants to do.

    Inside this loop, I'm auto-indexation four different 1 d arrays. This means that the size of the tables will be different in the different phases of the execution of the program (the size will equal the number of measures).

    My question is: the auto-indexation of the tables with different sizes will affect the performance of the program? I think it slows down my Vi...

    Thank you very much.

    My first thought is that the compiler to the LabVIEW actually removes the Matlab node because the outputs are not used.  Once you son upward, LabVIEW must then call Matlab and wait for it to run.  I know from experience, the call of Matlab to run the script is SLOW.  I also recommend to do the math in native LabVIEW.

  • How to create a button like the one pictured here

    How to create a button in the button "print" below?

    I was actually thinking of doing it two separate buttons placed side by side. The "print" button, of course would be just updated the Boolean value, that is easy. But the drop down menu is a bit more difficult. I tell myself that I could customize a drop down, but because I was not able to play with it in LabVIEW (don't have it at home) I don't know if you can change the alignment of the drop-down box actually etc. The decline is down to the location of the box and look like something you can change in the control editor?

    I guess I could also use correct .net? But I'll try to keep it all with just control editing in LabVIEW if possible. Thank you.

    for (imstuck).

    I use a listbox multicolumn and toggle visibility is when the user clicks the button.  I've attached an example:

    ~ Simon

  • How to create an ERD for the vista sp2 x 64?

    How to create an ERD for the vista sp2 x 64?

    How to create an ERD for the vista sp2 x 64?

    If you do not have a Microsoft Vista DVD, make a repair disc to do a Startup Repair:

    Download the ISO on the link provided and make a record of repair time it starts.

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu.

    When you have changed that, insert the Bootable disk you did in the drive and reboot.

    http://www.bleepingcomputer.com/tutorials/tutorial148.html

    Link above shows what the process looks like and a manual, it load the repair options.

    NeoSmart containing the content of the Windows Vista DVD 'Recovery Centre', as we refer to him. It cannot be used to install or reinstall Windows Vista, and is just a Windows PE interface to recovering your PC. Technically, we could re-create this installation with downloadable media media freely from Microsoft (namely the Microsoft WAIK, several gigabyte download); but it is pretty darn decent of Microsoft to present Windows users who might not be able to create such a thing on their own.

    Read all the info on the website on how to create and use:

    http://NeoSmart.net/blog/2008/Windows-Vista-recovery-disc-download/

    ISO Burner: http://www.snapfiles.com/get/active-isoburner.html

    It's a very good Vista startup repair disk.

    You can do a system restart tool, system, etc it restore.

    It is NOT a disc of resettlement.

    Make sure you get the 64 bit version.

    See you soon. Mick Murphy - Microsoft partner

  • How to create an association in the Set associations Control Panel?

    When I try to open attachments to emails that have pps file it is said, this file does not have a program associated with it for performing this action. Create an association in the Set associations Control Panel. How to create an association in the Set associations Control Panel?

    1: If you do not PowerPiont or PowerPoint Viewer, you need at least the Viewer.

    PowerPoint 2007 Viewer:
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=048DC840-14E1-467D-8DCA-19D2A8FD7485&displaylang=en

    2: create a file association.

    1. download and save the attachment to the office.
    2. right click on the saved file.
    3. Select: Open with on the shortcut menu.
    4. click on: choose [default] program.
    5 PowerPiont select: (Or PPViewer).
    6. check: always use the selected program to open this type of file.
    7. click on OK.

    3: Edit the registry here if necessary.

    Cannot open. PPS directly from Windows Mail or Windows Live Mail attachments
    http://www.Winhelponline.com/articles/149/1/Unable-to-open-PPS-attachments-directly-from-Windows-mail-in-Windows-Vista.html

    Bruce Hagen ~ MS - MVP [Mail]

  • How to create IT strategy using the BES administrator API

    Hi all

    Can tell me, how to create IT strategy using the BES administrator API.

    Please provide me with the code example.

    Thanks in advance.

    Kind regards

    Sampath

    Hi Sebastian,.

    The Administration of BlackBerry API does not support the creation of it political. This feature is currently with the development of control and review for a future version of the BlackBerry Web Services for the Administration of the company.

    Kind regards

Maybe you are looking for

  • on third party cookies

    Hello! I just got the new macbook and I went invoice for my business and its saying that I need to allow third party cookies. I followed the instructions under "safari" and it seems to be for the earlier operating system. Help please! Thank you!

  • Qosmio G50 - 10 h - strange display problems

    My Qosmio G50 ran less bright for a few months, then experienced intermittent fault by which logo Qosmio would display on the screen, then on the logo of windows for a fraction of a second, then the screen would be completely obscure. Restart or hit

  • Satellite A200 - BOOT didn't need original disk recovery

    Hello I'm by no means techologically of mind, so please bear with me. Unable to start my computer and I got a message saying that it didn't boot. When I took it to my technician in computer science at the University, he said that I need the original

  • I had 7 a window and a window Vista and I had a VM for XP, I was wondering how can I get Vista on A Virtual Machine.

    I got 7 a window and a window Vista and I had a VM for XP, I was wondering how I can get Vista on Virtual Machine has what I need, or what I do to make the ISO or. VIRTUAL HARD DRIVE. Help, please

  • How to keep the folder views in Windows?

    Original title: folder settings (options?) return that think Vista is 'practice '. I have this desktop of Vista (Dell vostro 1700) for 3 years now, and he gave me no trouble so far. Vista doesn't remember my settings in Office 2003, for example. Real