change the column type of data in large tables

Hello

I have a very large table 3 TB and 97 scores and I need to extend the size of a column. This operation can take a long time and I'm afraid that it will block some SQL operations. What is the recommended way to do this? Can I use alter column? Should I add the column, copy values, delete the former and rename it?

Kind regards

Nestor Boscan

Because you widen the column, all existing values are guaranteed to fit the new size. This should happen fairly quickly. If you were however decrease the size of a column, each value must be checked first before the DOF could complete to check it might all go in the smaller space. Change the alter table is a great value.

If these fields are variable length (number, varchar2), then the space doesn't have to be 'reserved' for future data. Oracle will take care of the future inserts or updates of larger data as usual. If you increase a fixed length as a CHAR data type, then it is another story.

Tags: Database

Similar Questions

  • What is the best way to change a column type in the materialized view?

    Hello my dear friends,.

    I want to change a column type in a materialized view. VARCHAR2 NUMBER, so what do you recommend? What is the best way to do it?

    Thank you

    You can not change the data type of the column while there are data in the MV, so you might as well give up and recreate the MV with a TO_CHAR() around the column in question in the application of MV to get the data exactly as you want (be sure to include an appropriate format mask). That said, I'm fighting to think reasonable grounds to make such a change.

  • change the column size will has no

    Hi all

    I have a question on oracle 10g. I will modify one of the type of column of varchar table (100) to varchar (200).
    Initially I intend to modify the table in readonly mode, then change the column.

    But I hit the options not valid error and discovered that, in 10g, do not have this feature, so I intend to do online, but during off peak hours.
    So my question is when I change the column, if there is an insert/update / delete on the table, they would wait or they will fail?

    Please notify.

    >
    1 let say if the previous DML operation were engaged
    4 h I fire the alter column statement
    3. the DML from query, they will wait the "alter column' finished or they fail?

    When you perform the alter column, there will be a level lock table to prevent the update of the rite of the table?
    >
    Yes - but the table will lock only for a moment. Edit a VARCHAR2 column to expand it is only a change in data dictionary. No actual data is changed.

    The table should be locked to change the dictionary, and is then immediately unblocked. There will be no problem of performance. You need just one or two seconds, there where there is no DML or DDL going on for this table.

  • Change the format of a date field to be used in a file name.

    Good afternoon!

    I use Livecycle ES3 and Adobe Professional XI

    I have a form in livecycle for employee evaluations.

    I'm saving a file based on domain names.  My problem is when I use a date in my file name field.  I have the scripts to work for the confidence function and the button on the form field.  They are listed below.

    Script folder level-

    mySaveAs = app.trustPropagatorFunction (function (doc, path)
    {
    app.beginPriv ();
    doc.saveAs (path);
    app.endPriv ();
    });

    myTrustedSpecialTaskFunc = app.trustedFunction (function (doc, file_path)
    {
    Privileged and non-privileged code above
    app.beginPriv ();
    mySaveAs (doc, file_path);
    app.endPriv ();
    });

    Button script

    () myTrustedSpecialTaskFunc

    this, "/ c/myfiles / ' + ReviewPeriodTo.rawValue + '-' + Div.rawValue + '-' + EVALTTYPE.rawValue + '-' + LASTNAME.rawValue + '-' + FIRSTNAME.rawValue +

    ".pdf");

    My problem is the ReviewPeriodTo.rawValue.  When I enter data in the form and that you do not enter a value for the ReviewPeriodTo field, the file is saved with the values of other fields, and a null value is inserted where the field would go to date.

    When I type a value such as 2014-03-15 in the area of the ReviewPeriodTo and values in other areas, it works.

    When I try to insert a value in as the 15/03/2014 in the area of the ReviewPeriodTo, I get the following error.

    RaiseError: The file may be read-only or another user can open. Please save the document under a different name or in a different folder.

    Doc.saveAs:16:XFA:form1 [0]: page 1 [0]: #subform [0]: Button3 [0]: mouseUp

    = > The file may be read-only or another user may be subject to open. Please save the document under a different name or in a different folder.

    My problem is, it's part of a much larger process when I import information from a make table query MS Access which is exported to Excel.  If I could just format field data automatically to formation of yyyy-mm-dd since t, that would work, but I don't know how to do coding in MS Access.

    Question: How can I format the data which are entered on the form to be the yyyy-mm-dd format?

    I tried to change the display format and data through models livecycle for the field, but it does not work.

    Any help would be greatly appreciated!

    Thank you

    Hello

    It sounds like you need to specify all the formats users can enter the date in the editing modes.  If it matches one of the formats then the rawValue will be automatically formatted to yyyy-mm-dd format.

    This means that if the formattedValue is equal to the rawValue then the date does not match one of the edition models so you will need display an error message.

    Concerning

    Bruce

  • How can I change the columns in File-> Open views program?

    I use El Capitan 10.11.3 on a MacBook Pro. I start with a clean system. I copied my files from my backup and reinstall my programs.

    This created a problem, seeking to resolve by changing the column headings in the views of program "file-> open.

    Whatever program I use, when I open a file, the window displays currently "Date added". It is of no use to me as the "Date added" to all my files is exactly the same - date, I have copied them on my own hard drive brilliant from my backup.

    In finder views, I can opt to display "update" instead of "added". So I order the files by date, whenever this is useful.

    However, whenever I try to open a file in a program, it is impossible to find things by date, because they all have the same "date added". I need to be able to see the "change date".

    I find anywhere that allows me to change this, either in the system preferences, or when opening a specific program. Don't I found clues to aid or the forum.

    Can someone tell me what I need to do?

    Thanks in advance.

    Mike

    Right click on the headers (if in list view) and select the headers you want to see.

    Alternatively, use the Arrangement to organize the desired date.

  • How can I permanently get rid of the column "type" in Windows Explorer to optimize my preview of file space

    In order to maximize my preview of the file space, I want to get rid of the column "type". I can tell what kind of file it is. The only thing I need is the update and the file size. Everytime I open a window of Windows Explorer I go to display, add columns and remove types. Everytime I open a new Windows Explorer window, the 'Type' column is back. How can I change the settings to permanently get rid of it?

    Cookjv

    Right-click on an empty space at the top of the column > uncheck type.

    Detached works here.

  • A statement UPDATE changes the line if the update changes the column even value?

    HI -.

    I have a main classification and the corresponding audit table. I have a trigger. I created using the suggestion:http://www.runningoracle.com/product_info.php?products_id=211

    Now the problem that I am facing is that: if I run the same query (same value) update on the main table for n times (with the same data)... my audit table is updated with a new record every time. He is not able to determine that the value is the same.

    My goal is to load the audit table data if the value in a cell in the main table is really have changed.

    A statement UPDATE changes the line if the update changes the column even value?

    Best regards

    I have a main Table and the corresponding Audit Table. I have a trigger. I created using the suggestion:http://www.runningoracle.com/product_info.php?products_id=211

    Why?

    You try to resolve what made you what are the PROBLEM that select as the solution?

    Now the problem that I am facing is that: if I run the same query (same value) update on the main table for n times (with the same data)... my audit table is updated with a new record every time.

    Yes - it is EXACTLY what you say that you wanted to do and EXACTLY what the code does in this article.

    He is not able to determine that the value is the same.

    I think you mean that the code does NOT check if the value is the same. You can certainly change the code to do this check. But I have a question to start with your need for such a solution.

    My goal is to load the audit table data if the value in a cell in the main table is really have changed.

    OK - then modify the code to check EACH COLUMN and compare its NEW value to the OLD value and insert only the table of audit if SOME (or columns you care specifically) have changed.

    A statement UPDATE changes the line if the update changes the column even value?

    It depends on what you mean by 'change the line '. Of course to update a column with the SAME value does not change the resulting data value.

    But the physical structure of the line, the location of the pieces of line and information in the header block (YVERT, etc.) will change. And, as others have said Oracle doesn't know and doesn't care, so if the new value of a column is the same as the old value will create redo, undo and the rest.

    Start over and tell us what PROBLEM you're trying to solve. Then we can help you find the best way to solve it.

  • Change the column header font size

    Hi all

    In the view of the table, I am able to change the size of the font of a column, but this does not affect the column header.
    This translates into having the data in a single font size and position of the original size.
    I tried to update the class column header in view.css (analytics\res\s_oracle10\b_mozilla_4):
    . {ColumnHdg}
    color: #3c3c3c;
    border-style: solid;
    border-color: #c9cbd3;
    border-width: 0 1px 1px 0;
    background-color: #cfe0f1;
    do-size: 8pt;
    make-weight: bold;
    vertical-align: bottom;
    padding: 1px 2px 2px 3px;
    text-align: left;
    }
    but this does not at all affect the size of the text.

    NB: I refresh and clear the cache of the browser every time I make a change in the CSS file.

    One knows what the problem is. ??

    Concerning
    Adil

    Hello
    To change the column heading, go to the properties of column-> data format-> next to the column name, you can see change format-> give the font size of the column header.
    Is that what you want?

    Kind regards
    Srikanth

  • HP 6700: Problem printing labels - try to change the paper type - thought that of why they're smuggling?

    Can not find the path to printer to change the paper type?  Any help is appreciated. Thank you

    @GWCampbell

    In the printing preferences, use the closest 'brochure' or 'thick' or other media type cardstock that you will find in the list of available paper types.

    Example:

    Control Panel > display icon > devices and printers > right click on your printer >

    Printing preferences > tab paper / quality > media

    Reference and examples:

    Printing options

    Help printing of the label:

    Print Labels_Business-Cards_Cards

    When you see a post that will help you,

    Who inspires you, gives a cool idea,

    Or you learn something new.

    Click the 'Thumbs Up' on this post.

    My answer-click accept as Solution to help others find answers.

  • [Solved] When you change the file type for RAR files, it also changes the file type of the ISO XP files

    I tried to change the file type description, as well as in default and the icon for the rar and iso programs file types inmenu\ tools\folder options\file typest\advanced, but to change the settings on a file type automatically changes settings on the other.

    How can I do this via regedit?  What can cause a bug?

    * original title - xp: types of files RAR and ISO locked together, the same treatment! *

    Hello

    1. How are you sure that you change the individual file extension and not the entire folder?
    2. how exactly you try this?

    To change a name of file, all you have to do is right click on the file, and then click Rename, instead of the path you describe in the thread.

    See also the section below to associate the default program for different file types.
    How to change or choose the program that starts when you double-click a file in Windows XP
    http://support.Microsoft.com/kb/307859

  • Windows Media Player - change the columns that appear under 'Now Playing'

    I would like to change the columns displayed in the views now play and Windows Media Player play list.  The factory default is to show only the fields title and length.  It wouldn't be that big a deal this is something fairly simple to access the page layout options, hit choose columns and select the check boxes for the columns I want to show... but the title and duration are the only fields that it allows me to select from.  He still refuses to allow me to select anything else.  I know that there is a way to display more information, but for the life of me I don't remember how to do so that he can do.  Help?

    Hey,.

    I've recreated the scenario on my Windows Media Player. It shows all the info like length, side, title, album, artist to contribute. Appoint you.

    Scan SFC should be your friend.

    http://support.Microsoft.com/kb/929833/en-us

  • You cannot change the output type and format in the page requests system - PeopleSoft process

    Hi all

    When I navigate to the PeopleSoft process scheduler page and try to run a process I see the output type and format web and txt only. I am unable to change the output type and format. All formats and types of output are marked as active in the system settings page. I'm super user of the system as well. I have as well the role of Admin ProcessScheduler. I would like to know if someone has already faced similar problems.

    Thank you

    Vimal

    Run the following SQL query to your OPRID:

    SELECT A.CLASSID, PSPRCSPRFL A.OVRDOUTDEST, PSOPRDEFN B WHERE B.PRCSPRFLCLS = A.CLASSID AND B.OPRID = '';

    Make sure that OVRDOUTDEST = 1.

    If it's 0 then you have to fix your configuration profile of the process as follows:

    -Main menu > PeopleTools > Security > list permission > CLASSID research (white list) back to top query

    -Go to the process tab

    -Click on "process the profile permissions

    S ' ensure that 'substitute an output Destination' is checked. Click OK, and then save.

    This should solve your problem.

  • How to change the vmdk in another data store

    for my vm four disks are there I want to increase disk capacity but there is no space on the data store

    Hello

    Solution is that you must change the drive to another data store and increase space.

    First findout in spatial data store is avaialble.

    Select the virtual machine and migration - migration datastore - Advanced - click the drive on which you want to increase space - browse - choose data store where space is available - finishing

    After migration - more space.

  • How can we change the disc type of thin thickness of a virtual machine?

    Hello

    We use vSphere vCenter 5.0, 5.0. How can we change the disc type of thin thickness of a virtual machine?

    Kind regards

    ZaraRose.

    Storage vMotion, cold migration, vmkfstools and VMware Converter

  • How to change the column ordering the interactive report?

    How to change the column ordering the interactive report?

    Hello

    Run the report as a developer, click on the "wonder wheel", click "Select columns" and reorder your columns in the box 'report '.
    Then click again on the "wonder wheel", click on save report and save the default state.

    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    You can reward this response in marking it as useful or Correct ;-)

Maybe you are looking for

  • Empty message when you reply to an E-mail

    I have installed iOS 10.11.3. Since then, whenever I hit the button "answer" mail an empty message appears. No signature block, to the email address in, nothing. does anyone else know this? Is there a solution? A reboot will sometimes solve the probl

  • Typing bug Safari

    When I start typing in Safari, there is a rainbow cursor during 5 seconds... very often... https://www.YouTube.com/watch?v=iEValL4K24k

  • I/O device error code: 10 and if I can't open my memory SD/MMC card when it is inserted.

    Original title: why I can not open my card memory SD/MMC when inserted? What is the problem & how do I fix?  . I/O device error code: 10 when I try to read from memory card.  OS: XP, 32-bit Clean up memory and maintenance?  Never had a problem before

  • Reading a HTML message

    Hello I need to read and HTML message, including embedded images.  I found this paper on hot to get the contents of an HTML message. But how images embedded in the message? All embedded images appear as attachemnts? So how do you know if the belows o

  • Do we have an adobe acrobat 8.0 Standard edition, I can download?

    I need to reinstall it for a customer, and I can't find presentation adobe acrobat Standard 8.0 on the site for download.