Index rebuild required after truncate the table and load data

Hello


I have a situation that we truncate tables bit and then we loaded data [only content] on these tables. What you need to rebuild the index online is necessary or not?


And another question is if we drop a few clues is the total amount of space is released or not. And re-create indexes will use the same amount of space. As I don't have disk space more? In this situation, rebuild the index online will be a better idea...

Can you please on this...


truncate the table some the few loading tables + reconstruction markings online is the best (or) droping little tables, a few tables loading + re-create the index is better

Can you suggest the best way... We have a time that it currently we don't have enough space on the disk... [Option should not effect the space]

user13095767 wrote:
Ok. I have it...

u want to say if we disbale the index while loading... Next, we need to spend the time to build.

If the indexes are enabled, then rebuild again is not necessary after loading tables...

Please answer if my understanding is correct...

above is correct

>

If so, how abt the differences in the space occupied by the spaces of storage during the index rebuild and re-create... T he acquires more space if recreate us [deletion and creation] or rebuild online is preferable to an index...?

space used is the same for all options.

Tags: Database

Similar Questions

  • Need to truncate the table before loading new data

    I use sqlldr control file to load a flat file to a table. This file will be provided each month and is a complete replacement file. I need to automate the process to truncate the data already present in the table before loading new records. I can do this in the same ctl file as load or do I need a separate batch file?

    He is the current ctl file:

    DOWNLOAD THE DATA
    INFILE ' D:\DATA\OHNFILES\OHN_PROVIDER_DATA. TXT'
    INSERT
    PRESERVE SPACES
    IN THE WEB OF THE TABLE. OHN_OK_SELECT
    (
    Position of CHKPPO (0001:0003).
    Position of the EFFECTIVEDATE (0004:0011).
    Position of TERMDATE (0012:0019),.
    CRED_ID position (0020:0024).
    LASTNAME position (0025:0099),
    Position of FIRSTNAME (0100:0124),
    Position of MIDDLENAME (0125:0149),
    Position of PROFESSIONALDEGREE (0150:0164),
    Position of PRIMARYSPECIALTYID (0165:0214),
    Position of PRIMARYSUBSPECIALTYID (0215:0264),
    Position of SECONDARYSPECIALTY (0265:0314),
    Position of OKLICENSENO (0315:0329),
    Position of the Nordic Institute of patents (0330:0339),
    Position of TAXIDNO (0340:0348),
    Position of MEDICARENO (0349:0365),
    Position of OFFICEADDRESS (0366:0465),
    Position of BLDGSUITEPO_BOX (0466:0500),
    Position of the CITY (0501:0525),
    Position of the STATE (0526:0527),
    Position of code POSTAL (0528:0537),
    Position of TELEPHONE number (0538:0549),
    Position of FAX number (0550:0561),
    Position of EMAILADDRESS (0562:0611),
    Position of the COUNTY (0612:0631),
    BILLINGADDRESS position (0632:0731),
    BLDGSUITEPO_BOX1 position (0732:0766).
    Ville1 position (0767:0791).
    STATE1 position (0792:0793).
    POSTALCODE1 position (0794:0803).
    Telephone1 position (0804:0815).
    Position of telecopie1 (0816:0827),
    EMAILADDRESS1 position (0828:0877).
    MAILINGADDRESS position (0878:0977),
    BLDGSUITEPO_BOX2 position (0978:1012).
    CITY2 position (1013:1037),
    STATE2 position (1038:1039).
    POSTALCODE2 position (1040:1049).
    Telephone2 position (1050:1061).
    Telecopieur2 position (1062:1073).
    EMAILADDRESS2 position (1074:1123).
    Position of the OST (1124:1163),
    Position of CLINIC_GRPNAME (1164:1263),
    Position of FEESCHEDULEID (1264:1278),
    FILL position (1279:1400)
    )

    customer wrote:
    I use sqlldr control file to load a flat file to a table. This file will be provided each month and is a complete replacement file. I need to automate the process to truncate the data already present in the table before loading new records. I can do this in the same ctl file as load or do I need a separate batch file?

    Same file. Say "TRUNCATE" instead of "INSERT".

    LOAD DATA
    INFILE 'D:\DATA\OHNFILES\OHN_PROVIDER_DATA.TXT'
    TRUNCATE
    PRESERVE BLANKS
    INTO TABLE WEB.OHN_OK_SELECT
    ( ...
    

    Published by: Frank Kulash, on September 3, 2009 15:12

  • Read data from the Table and load it into the csv file

    Hello

    I would like to read a table (select * from employees) and load the data into a csv file.

    What methods are available?

    Records will be at high volume.

    Thank you

    If it is to do a lot, use APEX.

    Create a new page with an interactive report based on the SQL code you want. When you go to download Excel, it is actually a CSV file.

    If it is large, you may need to go on the FILE_UTL road.

    If it is only once, use an interface such as SQL tool * or SQL * Developer.

    If it's a learning experience, you must do all three.

    MK

  • Select the name of the table and some data in the same sql

    If anyone can help with this?

    I need the name of the selection table that have columns called col1 (which could be done with the help of dba_tab_columns) and col1 data itself.

    Here is my desired outcome:

    table_name col1

    alex tab1
    tab2 bob
    .... ....
    Tabn sue

    TIA.

    You can use a cross join, like this...

    SELECT ut.table_name
    x.column_name
    OF some_table_name x
    ut user_tables
    WHERE ut.table_name = upper ('some_table_name');

    or...

    SELECT ut.table_name
    x.column_name
    OF some_table_name x CROSS JOIN user_tables ut
    WHERE ut.table_name = upper ('some_table_name');

    This will work if you have one or more column value returns. Basically, a table name is multiplied by the number of lines found in the table. I hope this helps.

  • ProBook 6470b: problems after format the laptop and load the W7

    Hi all

    Here are my problems:

    After 2 years using the laptop, I decided to format it and reboot with the disk W7 of professional origin.

    At the same time, I exchanged the original SATA HDD with a new SSD in Kingston.

    After you have installed all the drivers, it seems to work very well and much more quickly, but has two problems:

    1 - the automatic update of Windows does not work. Only is looking for available updates, but it ends, even > 24 h research.

    2. before reinstalling, my battery lasts for 5 hours. Now only 2 to 2.5 hours.

    Does anyone have any ideas on how to solve my problems?

    Thanks in advance.

    Ernest

    Good, glad it worked

    Have you had any success with the BIOS settings? Contact HP support directly for this may be a good idea here.

    Captain_WD.

  • Data export of the Disqualification to the table in step should not truncate the table.

    Hello friends,

    Please find blow my requirement and do the necessary.

    We export data cleaned to staging tables, whenever we export data, Disqualification truncates the table and inserts the new data sets into this table.

    My requirement is instead of truncating the table before inserting the data in it, Disqualification must add these records, should not truncate the table.

    Please let me know how to configure this in OEDQ, your help is appreciated.

    Thank you, Prasad

    Could not be easier. Double-click the task to export in your work and change the mode append.

  • After the reopening of the dreamweaver files, the table and its contents do not appear in design mode

    I had a problem with the deisgn opinion that caught me all week. I designed a Web page with dreamweaver CS4. After having reopened this Web page, I got the problem to see the tables and images inserted in dreamweaver (the images cut into slices of Fireworks works well). Somehow this problem existed only in design, but is NOT seen on browser / see live.  I thought that it is the problem of adjustment, but I tried to reopen the Web page I designed earlier... you have no problem in design or mode live view. I also tried to start another file, same problem existed (tables/images do not display in design) I'm really confused. Any thoughts?

    I've already done my research in the world, but cannot find solution.

    You closed the first cell in what appears to be your content area.

    />

    Must be:

    Write it down / at the end of the

    is removed from the version "should be."

    Enjoy.

    _T

  • Time necessary to truncate the table

    Hello

    We use Oracle 9.2.0.8.
    There is an array whose size is close to 30 GB.
    Because there are no locks and just a string index into this table, is possible to estimate the time required to truncate this table?
    I need to plan this activity. Is someone can give me an idea about the time based on past experiences?

    Thanks in advance,
    Iron

    Hello

    normally maximum a few minutes, depending on which is more go in the database.

    Herald tiomela
    http://htendam.WordPress.com

  • 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

  • Is it possible to place the table and the text online?

    Hi all

    I have a table need to align with the numbered list. Is it possible in line of the table and text on a single line. EX: 6.12 and top of the 'text' must align horizontally.

    See the screenshot of the problem.

    Currently what I do, it is to place the table in separate frame and place it online using the option of the anchor.

    Screen Shot 2016-08-30 at 1.20.22 PM.png

    Thanks in advance.

    Kasi

    We could use the options for text blocks to position the first line.
    Fixed value set to 0.

    And a table style that would govern the distance before and after a table.
    If you wish, set both values to 0 .

    We could also do a minimum in the lead with the paragraph formatting to separate paragraph following with the next table.

    Best,
    Uwe

  • 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

  • Form doesn't work after updating the table

    I did a form and that you added prior insertion for the block trigger. And the form works perfectly well without any problems.
    Two new columns have been added to the table and must be added to the form now.
    I opened the block of data in the form wizard and made an update of the table to get the two columns. After I pressed on the "refresh" and then tried to launch the form (but has not added new columns), the trigger for prior insertion fails and begins to throw me an error that the value must be entered. (FRM:40202)

    After further analysis I also discovered that there is a null value is passed into another element. In fact when I update the Datablock Assistant I see this column on the left side to be present on the right side.

    Kindly if you could help on the same.

    Guy wrote:
    Details: I just start the form. The error appears in a pop-up window as soon as the form application opens (without any input from me)

    Hello Guy

    Pls check if you have a TIME-NEW-FORM-BIFURCATION, PREFORM, etc an EXECUTE_QUERY;

    If so, then this is the reason for the error arise...

    Please note: all lines with null, associated with the two old columns will cause the error

    Action: insert a value for columns NOT NULL...

    I hope this helps...

    Kind regards

    Abdetu...

  • raise errors ora-01426 truncating the table

    Hello

    We have a process that runs in the following process for some tabls game
    1 disable constraints
    2. the truncating tables
    3. activation of the constraints

    but after treatment for 5 tables, truncating up error

    BEGIN < process name >; END;



    *

    ERROR on line 1:

    ORA-01426: digital overflow

    ORA-06512: at the "< procedurename >", line 33

    ORA-06512: at line 1


    This line 33 point to run immeidate ' truncate table < table name >

    Can I know what is the reason for throwing "digital overflow" error truncating the table...

    Thanks in advance

    user9080289 wrote:
    Thank you.

    Is my verision of oracle 11g

    Then, you could have the described bug. Follow the instructions how to bypass (flush with low-value stats monitoring) or apply the #8226471 patch.

    Nicolas.

  • I'm having a problem reinstalling Windows XP. After formatting the disk and create partitions, it will not complete the installation.

    Problem reinstalling Windows XP

    I'm having a problem reinstalling Windows XP.  After formatting the disk and create partitions, it will not complete the installation.  He goes back and reinstall Windows again.  I go through the installation of 39 minutes, the computer restarts to complete and it loops back and start the installation again. Why it does this and what I can do to move beyond this?

    Go into the BIOS and make sure that you your hard drive is not set to off, and that is the first priority boot CD and your second HD.

    Don't push when it restarts anything just to let him do what he does and report back if anything I'm sorry I have no idea.

  • Iterator for the table and form is a problem during the cleaning of the records

    Hello

    I use JDev 12.1.2.

    I have an object of the detail view. I represent a part of its fields in a table and the rest in a form. I use the same iterator. Basically, I dragged and dropped the object even from the view of the data control and created a table and form layout with the fields I wanted in each provision. I put in place a clear feature for the rows in the table with a clear"" key. -on click I delete the line of the iterator in the managed bean. When I do this the selected record is deleted and the next record is displayed. But fields entered in the form layout also gets deleted. (the form should also be showing the record currently selected - it shows but entrable fields in the form are deleted because of claire that I did on the previous line.) If anyone can help get this resolved?

    Not use the same iterator for the tables and forms here? The links are in the row (row.bindings...) for the table, but for the form it is (links...). The Delete on the current row operation is causing the iterator delete all fields of links instead of from the line? Please shed some light.

    Thank you

    UMA

    How do you rank on the iterator compensation?

    use resetActionListener in your clear button and let us know what is happening?

    Ashish

Maybe you are looking for

  • How to switch between 0 v and 5 v using the FTDI USB-to-TTL converter?

    I have one of these (TTL-232R-5V-WE) FTDI (http://www.ftdichip.com/Products/Cables/USBTTLSerial.htm) and it came with a few screws to control the USB converter. However, I do not know how to exit (between Vcc and Gnd) 5V to 0V. Basically, what I need

  • Wireless USB AND printing 5510e printing

    HP Photosmart 5510e printer. I have installed this printer yet because I think that it may not do what I need to do and I may have to return it. I need this printer print from 2 computers. One is a laptop using Windows 7 which is Wireless and the oth

  • Windows 7 driver for video Capture/TV Tunner card

    Is there a Windows 7 driver for the video capture card TV Tuner HP P/N 5188-7344?

  • 15-e016nr HP: hp 15-e016nr bios locked

    I was 'hired' by a colleague who had not used his laptop in a good time because the screen was dismantled to unlock his laptop. I still don't understand why people use bios passwords and then cannot keep up with them, but that's my opinion I think. H

  • Defaults to black ink only - Officejet Pro 8500

    Printer: Officejet Pro 8500 wireless Windows 7-64 bit I would like to install my printer on black only and if I want to print color, I have to select.  Is this possible? Currently, when I print a color document and wants to black ink only I have to g