Change the length of a Table column (CHAR data type)

Hi gurus,

SQL > select * from version $ v

BANNER

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

Oracle Database 10g Release 10.2.0.3.0 - 64 bit Production

PL/SQL version 10.2.0.3.0 - Production

CORE Production 10.2.0.3.0

AMT for Linux: release 10.2.0.3.0 - Production

NLSRTL Version 10.2.0.3.0 - Production

I need to increase the length of a CHAR of a table data type column (currently it's tank (3) and you want to change to char (4)). Here are more details on the table:-

  • Contains more than 20 million lines.
  • Table contains several indexes.
  • Table is referenced by several tables (about 60 tables) and it refers to several tables (about 3)
  • Table has 4 complex triggers. Triggers call procedures and packages.

What I've tried so far


1 disabled all triggers and ran ALTER statement to increase the length. It took hours and did not finish in a reasonable amount of time, even if no error, but it took more than 12 hours.

2 tried DBMS_REDEFINITION package but it does not work with the standard version of Oracle 10 g.

I think to try next

I think same Optics:

Say my name of the existing table is OLD_T1 where the length of column need to increase

-Create a copy (with increased column length) table of OLD_T1, Say NEW_T1

-Move data from in OLD_T1 to the new table NEW_T1

-Lower OLD_T1 (or rename it to OLD_T1_TMP)

-Rename NEW_T1 to OLD_T1

-Create all indexes, triggers, constraints etc..

I wish to confirm, if my approach is correct? Or someone has a better idea to do this?

Please note: I know that the CHAR data type gives the problem but it is an old system and I don't have authority to change the design of database.

Appreciate any comment/suggestion

Thanks in advance

> I mean, can any application break if it depends on fixed-length?

Yes, because the code can be expected completed on the right areas.

Tags: Database

Similar Questions

  • change the length of field

    Using database Oracle 9.2.0.5 on Oracle Enterprise Linux and Oracle Report Builder 10.1.2.0.2 on Microsoft Windows XP Professional SP2.

    I have changed the length of a varchar2 column in my database from 4 to 8 and to update the fields that correspond to this column in my reports.

    How this is done?

    Open your query, add space and press OK... your domain should now reflect the changes made to the database.

  • Windows Movie Maker 2, 6-How do I change the length of time of the image

    Easily change the time

    Windows Movie Maker 2.6 can I change the duration of an image easily without leaving the storyboard / timeline? It takes too long to delete images and report them to the timeline/storyboard. If possible it is possible to easily select all the images I want currently on my slideshow and you change the length of time from there?

    Windows Movie Maker 2.6 can I change the duration of an image easily without leaving the storyboard / timeline? It takes too long to delete images and report them to the timeline/storyboard. If possible it is possible to easily select all the images I want currently on my slideshow and you change the length of time from there?

    ================================
    The change of setting to: Tools / Options /.
    Advanced... tab applies only to the added clips
    to the timeline * after * you change the setting.

    If you switch to view "Storyboard" and select
    all of the clips as a batch (select one and the type...
    CTRL + A)... you can add the 'Speed Up, Double.
    or "Slow down, half" effect of changing the
    duration. Simply select all clips / right click
    the effect on the menu... Choose...
    Add to storyboard table.

    'Speed Up, Double' cuts the duration of half.

    "Slow Down, half ' double life.

    These effects can be added up to six times.

    If you need finer adjustment...
    the info may be useful:

    You can change the duration for each clip
    manually. Move your pointer autour the
    edge of an element until you see a double red
    arrow. Now, drag the double red arrow...
    you will see if show a ToolTip displays the duration
    train to change.

    Or... just to redo the project after changing
    the long-term: Tools / Options / Advanced
    tab.

    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • Microsoft Movie Maker - cannot change the length of each clip.

    Cannot change the length of each clip on Microsoft Movie Maker.

    I clicked on 'tools', then 'options' in Microsoft Movie Maker after importing my media and organize my clips as the way I would like it. When I then click on the "Advanced" tab, image duration shows only 5 seconds with the transition period only 1.25 seconds, which is the default setting and that is also what I want. However, when I play my project in Movie Maker, it accelerates through each clip. I also noticed that when I press the title of 'Clip' in my headings at the top left and then click on 'Properties', the duration of each clip shows that only 00:02 seconds. Which is why my speed clips too quickly.

    I would have thought that setting my time of duration in the Tools section would then set in the Clips section, but this is obniously does not. I don't understand why everyone would show differently and wonder if you can help me to slow down the speed that my movie is playing.

    Thank you

    Cannot change the length of each clip on Microsoft Movie Maker.

    I clicked on 'tools', then 'options' in Microsoft Movie Maker after importing my media and organize my clips as the way I would like it. When I then click on the "Advanced" tab, image duration shows only 5 seconds with the transition period only 1.25 seconds, which is the default setting and that is also what I want. However, when I play my project in Movie Maker, it accelerates through each clip. I also noticed that when I press the title of 'Clip' in my headings at the top left and then click on 'Properties', the duration of each clip shows that only 00:02 seconds. Which is why my speed clips too quickly.

    I would have thought that setting my time of duration in the Tools section would then set in the Clips section, but this is obniously does not. I don't understand why everyone would show differently and wonder if you can help me to slow down the speed that my movie is playing.

    Thank you

    ================================
    The change of setting to: Tools / Options /.
    Advanced... tab applies only to the added clips
    to the timeline * after * you change the setting.

    If you switch to view "Storyboard" and select
    all of the clips as a batch (select one and the type...
    CTRL + A)... you can add the 'Speed Up, Double.
    or "Slow down, half" effect of changing the
    duration. Simply select all clips / right click
    the effect on the menu... Choose...
    Add to storyboard table.

    'Speed Up, Double' cuts the duration of half.

    "Slow Down, half ' double life.

    These effects can be added up to six times.

    If you need finer adjustment...
    the info may be useful:

    You can change the duration for each clip
    manually. Move your pointer autour the
    edge of an element until you see a double red
    arrow. Now, drag the double red arrow...
    you will see if show a ToolTip displays the duration
    train to change.

    Or... just to redo the project after changing
    the long-term: Tools / Options / Advanced
    tab.
    Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.

  • using a column having the nvl char data type...

    The entity table has 4 records with 'X' account status and 42 records with account_status with null.

    Select * entity where nvl (account_status, 'X') = 'X '.

    When I run the query above, must be extracted all 46 records but only 42 records with only statement null is read.

    Also when I run the query below

    Select * entity where nvl(account_status,'T') = 'X '. No line is fethced.

    The account_status column is char data type.

    When I use the same type of query with a number data type column it works correctly.

    NVL work differently for the char data will type column? Could someone help me on this? I don't know if I am wrong anywhere.

    vesrion of Oracle that I use here is Oracle 10 g.

    Hello

    SELECT * ENTITY WHERE NVL (UPPER (TRIM (ACCOUNT_STATUS)), 'X') = 'X '.

    Check the empty space in the field you are trying to cut.

    Thank you

  • How can I change the length of a photo in iMovie? I can't drag the edge because the cursor is red.

    I have a problem in iMovie 10.1.2.  I can no longer select a photo and to extend its length, i.e. from 3 seconds to 4 seconds. My cursor is red and I can't return the normal cursor.

    Hi, jhskyline,

    To change the length (duration) of a photo in iMovie 10.1.1 (latest version), select the photo in the timeline panel, and then click the Info button in the toolbar at the top of your screen.  It is one that has an 'i' with a circle around it.   On the right, you will see a box of duration.  Type in the length you want and press return on your keyboard.

    Another way is to expand the line of time slightly with the cursor located above the timeline and right next to the settings button.  Then, you can select the photo and drag his edge to extend.

  • You cannot change the length of the transition from photo album

    Does anyone know why I can't change the length of one of the album transitions four other than 16 frames photo?  The transition moves way to fast to a half second really give me the effect I was hoping.  Working with fcpx 10.2.3.  Running on an iMac, El Capitan, 10.11.3.  Any thoughts?

    The duration of the transition is controlled by the amount of available handles extra beyond the edit point. To increase the duration, you may have the trim, the shots to put at the disposal of the media more. Hand and waving of the Edit with the tab at the top of the transition point.

  • BlackBerry Smartphones change the length of your cycle

    I love the phone, but the only thing that makes me mad is the length of the phone rings before going to voicemail.

    My only rings for 10 seconds, regardless of the type of ringtone, before the voicemail of storm cuts. I'm lucky if I can look to see who the caller is, and still less y answer!

    Is this normal? (hope not). How can we change it?

    I'll answer my own question, I'm afraid! I rang my network to check with them and they gave me the code to change the length of the ring. He is about 30 seconds.

  • How can I change the length of a page if keeps bouncing back?

    I am changing the length of a page manually using the page but when I try to drag upwards or downwards using the handles and release it bounces back to the size it was. This is the case even with page masters. I turned off as I just get rid of the excess space, leaving only liquid content. Advice? I include a screenshot. The black box is supposed to be here.

    issue.PNG

    Thank you

    Hold down the Alt (Option) key while dragging and it will remain.

  • Insert the ROWNUM in a column of data type of NUMBER table

    Hello

    I have a table that has a column named "rank" of the NUMBER data type. Basically, I want to make an analysis of top-n and insert the ROWNUM with other columns in the table.

    Definition of table1:

    CREATE TABLE

    (

    col1 VARCHAR2 (10),

    Col2 NUMBER,

    NUMBER of col3,

    rank NUMBER

    );

    INSERT INTO table1

    SELECT col1, col2, col3, rownum

    DE)

    SELECT col1, col2, col3

    FROM table2

    ORDER BY DESC of col3

    )

    WHERE rownum < = 5;

    I get an error ORA-01722: invalid number. I think the mistake is virtual ROWNUM is not data type of NUMBER, so I tried to cast as CAST (ROWNUM AS NUMBER), but it does not work, same error. Can can you please shed some light on how to convert a ROWNUM number or if the issue is something else.

    you're right, your example worked. It is an example of table I just created just to illustrate the problem, but my real table was always showing the same problem. Weird, isn't? However when I added the column names after that insert the question but statement I resolved. Adding code

    INSERT INTO TABLE1

    (col1, col2, col3, rank) - added

    SELECT col1, col2, col3, rownum

    DE)

    SELECT col1, col2, col3

    FROM table2

    ORDER BY DESC of col3

    )

    WHERE rownum<=>

    So that means ROWNUM returns number; and another confusion: why the inclusion of the column has solved my problem when it is not necessary for your example. in any case thank you.

  • Cannot change the length of the slide in simulation software

    I use 7 Captivate for the first time. I had a version much older, but rarely used.

    I recorded a simple software simulation which should be a piece of cake, to edit and produce, but do you have a problem I do not know how to solve. Simulation includes a component screen is clicked, then slipped and fell into a new location. I can't change the length of the slide that shows the movement of drag - move. It has a length of 6.5 seconds, which is painfully and excessively slow and there is no way I can find to shorten.

    I can't drag the end of the slide on the timeline, right click did not produce anything that is promising in the pop-up menus and the Properties Panel has a field of time, but when I select the 6.5 seconds and change, it is just 6.5 seconds immediately after.

    I remember this kind of thing being very simple in previous versions of Captivate. No more, I guess...

    Thank you

    -Jennifer

    Hello

    Could check you this slide, has created a video demonstration for this slide, because default recording demo Captivate 7 creates the video demo for drag-and - drop and mouse wheel actions.

    If it has been registered as a video demo, it will show as a red line BarrΘ in the chronology of this slide. The duration of the demonstration video can be increasedbut cannot be decreased.

    Thank you.

  • Plugin entry hidden - cannot change the length

    I use a lot the hidden plugin. But the strange thing is that it doesn't have a "length" field, so by default at 30. In order to change the length, I have to change to a text field, and then change the length (for example, of the 15 for the phone number) and then to change the return type of entry hidden. The length is then shorten.

    The masked input plugin can be modified to include the length field? It always seems to use it.

    Robert
    http://apexjscss.blogspot.com

    Hi Robert,.

    Are you talking about the duration of the field or the number of characters that can be entered.
    Do not have access to the source code now from my iPad, but in the definition of plugin you can check if the checkbox for the width of the field (don't remember the exact name) in the standard attributes area is checked.

    You have downloaded the plugin from http://apex.oracle.com/plugins or use the copy of the sample application?

    Concerning
    Patrick

  • dynamically change the length of the text element

    Hi all
    can it is possible to change the length of the dynamic text element without use of CCP.

    Please answer...

    Hello

    Read this article


    François

  • Rules move when changing the length of InDesign CS5

    Whenever I change the length of the rules in CS5, the rule will then proceed to jump all over the page. Is a simple adjustment I am on? Really slows down the workflow when you need to change a rule in length and then move the rule to where he was. Any help will be appreciated. Thank you.

    Who just sent a lightning bolt through my brain. Is the link beween the length and height fields? If this is the case, try to turn it off. The status of the settings in the control panel for 'Dimensions include srtroke weight' and "Adjust STROKE weight when climbing" can also come into play.

    A tip would be a factor, if you actually have the end caps, but race position (Center, inside or outside) could make a minor difference if time and whose weight dimensional scaling are enabled.

    It is also quite easy to accidentally move when selecting something, but I don't want that, since you say that change happens afer you type a number in the field of reduction.

  • Change the length of the line

    Hello.  Me once again.

    I'm still working on my pulley sim card.  I have two wieghts hanging from a pulley.  When the user drags one down, another upward as a result.  I'm trying to figure out how to make the line representing the string grow and shrink by moving the weight.  I drew the line like this:

    var lineW:MovieClip = new MovieClip();
    addChild (lineW);
    lineW.graphics.lineStyle (1);
    lineW.graphics.moveTo (178,127);
    lineW.graphics.lineTo (weight_mc.x, weight_mc.y);

    But I don't know how to change the length.  I tried the new route of the line in the Enter_Frame function which shifts the weight, but it added to the line without shortening it.

    Any suggestions?

    You want to make a lineW.graphics.clear () so that you redraw the line when you need, and not only add beforehand.

Maybe you are looking for