How to quickly increase column size in Oracle?Why won't Oracle alter the size of a column that is used for...

How to play song that contains one guitar when we have two guitarists (or more)?

How changes in personality/values of a person who turned into a vampire can be explained?

Why are energy weapons seen as more acceptable in children's shows than guns that fire bullets?

What prevents people from lying about where they live in order to reduce state income taxes?

Sing Baby Shark

Gender equality in new hires

Why Third 'Reich'? Why is 'reich' not translated when 'third' is? What is the English synonym of reich?

How do I add a strong "onion flavor" to the biryani (in restaurant style)?

Why don't reads from /dev/zero count as IO?

Can "ee" appear in Latin?

Coworker is trying to get me to sign his petition to run for office. How to decline politely?

Why did Tywin never remarry?

QGIS 3.4.4 sorts numerical values as text, solution?

Why is Shelob considered evil?

Why is opening a file faster than reading variable content?

Getting size of dynamic c-style array VS use of delete[]. Contradiction?

How to draw these kind of adjacent ovals with arrows in latex?

What is the Guild Die for?

Rudeness by being polite

Is there any physical or computational justification for non-constructive axioms such as AC or excluded middle?

Someone wants me to use my credit card at a card-only gas/petrol pump in return for cash

How to create a custom script to force the download of a .csv file that is generated in real time?

Run a command that requires sudo after a time has passed

Why does XLAT mean 'translate'?



How to quickly increase column size in Oracle?


Why won't Oracle alter the size of a column that is used for sub partitioning?rman 'delete archivelog all’ very slowMigrate / Copy Huge data from Oracle to SQL ServerRetrieve Data faster from a huge Oracle TableLast few rows from a non-indexed table in OracleFastest way to change column type from varchar2 to number on large table in OracleSlow running Oracle query caused by unnecessary full table scanOracle index on column with length > maximum varchar2 lengthOracle; Table column reducing fails with 'value too big' error although such data doesnot existAdd column to a table for every shema in an oracle db 11g













0















In our Oracle 11 database we have a table with more that 100 million rows and we would like to increase size of one column (not used in any index). I tried to execute command



alter table shipment modify (description varchar2(21) );


but it takes to much time. Is there any other (faster) way to increase column size?










share|improve this question


















  • 4





    Increasing the size of a column should be pretty much instantaneous. It's only a meta-data update, no data is actually being changed (I just did this on a table with 30 Million rows: took 0.1 seconds). I would guess your alter statement is waiting for a lock.

    – a_horse_with_no_name
    Feb 27 '15 at 15:08
















0















In our Oracle 11 database we have a table with more that 100 million rows and we would like to increase size of one column (not used in any index). I tried to execute command



alter table shipment modify (description varchar2(21) );


but it takes to much time. Is there any other (faster) way to increase column size?










share|improve this question


















  • 4





    Increasing the size of a column should be pretty much instantaneous. It's only a meta-data update, no data is actually being changed (I just did this on a table with 30 Million rows: took 0.1 seconds). I would guess your alter statement is waiting for a lock.

    – a_horse_with_no_name
    Feb 27 '15 at 15:08














0












0








0








In our Oracle 11 database we have a table with more that 100 million rows and we would like to increase size of one column (not used in any index). I tried to execute command



alter table shipment modify (description varchar2(21) );


but it takes to much time. Is there any other (faster) way to increase column size?










share|improve this question














In our Oracle 11 database we have a table with more that 100 million rows and we would like to increase size of one column (not used in any index). I tried to execute command



alter table shipment modify (description varchar2(21) );


but it takes to much time. Is there any other (faster) way to increase column size?







oracle ddl






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 27 '15 at 9:13









Paweł AdamskiPaweł Adamski

101113




101113








  • 4





    Increasing the size of a column should be pretty much instantaneous. It's only a meta-data update, no data is actually being changed (I just did this on a table with 30 Million rows: took 0.1 seconds). I would guess your alter statement is waiting for a lock.

    – a_horse_with_no_name
    Feb 27 '15 at 15:08














  • 4





    Increasing the size of a column should be pretty much instantaneous. It's only a meta-data update, no data is actually being changed (I just did this on a table with 30 Million rows: took 0.1 seconds). I would guess your alter statement is waiting for a lock.

    – a_horse_with_no_name
    Feb 27 '15 at 15:08








4




4





Increasing the size of a column should be pretty much instantaneous. It's only a meta-data update, no data is actually being changed (I just did this on a table with 30 Million rows: took 0.1 seconds). I would guess your alter statement is waiting for a lock.

– a_horse_with_no_name
Feb 27 '15 at 15:08





Increasing the size of a column should be pretty much instantaneous. It's only a meta-data update, no data is actually being changed (I just did this on a table with 30 Million rows: took 0.1 seconds). I would guess your alter statement is waiting for a lock.

– a_horse_with_no_name
Feb 27 '15 at 15:08










2 Answers
2






active

oldest

votes


















0














Your two options are (depending on the use case):



https://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:8753545300346585555



https://asktom.oracle.com/pls/asktom/asktom.search?tag=best-way-to-change-the-datatype-of-a-column-in-a-table-with-20-million






share|improve this answer








New contributor




Florian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




























    -1















    Is there any other (faster) way to increase column size?




    You can try the parallel clause



    alter table shipment modify (description varchar2(21) ) parallel 8;


    And you can try the dbms_redefinition package.



    Redefining Tables Online






    share|improve this answer























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "182"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f93980%2fhow-to-quickly-increase-column-size-in-oracle%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      0














      Your two options are (depending on the use case):



      https://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:8753545300346585555



      https://asktom.oracle.com/pls/asktom/asktom.search?tag=best-way-to-change-the-datatype-of-a-column-in-a-table-with-20-million






      share|improve this answer








      New contributor




      Florian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.

























        0














        Your two options are (depending on the use case):



        https://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:8753545300346585555



        https://asktom.oracle.com/pls/asktom/asktom.search?tag=best-way-to-change-the-datatype-of-a-column-in-a-table-with-20-million






        share|improve this answer








        New contributor




        Florian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.























          0












          0








          0







          Your two options are (depending on the use case):



          https://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:8753545300346585555



          https://asktom.oracle.com/pls/asktom/asktom.search?tag=best-way-to-change-the-datatype-of-a-column-in-a-table-with-20-million






          share|improve this answer








          New contributor




          Florian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.










          Your two options are (depending on the use case):



          https://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:8753545300346585555



          https://asktom.oracle.com/pls/asktom/asktom.search?tag=best-way-to-change-the-datatype-of-a-column-in-a-table-with-20-million







          share|improve this answer








          New contributor




          Florian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          share|improve this answer



          share|improve this answer






          New contributor




          Florian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          answered 10 mins ago









          FlorianFlorian

          1




          1




          New contributor




          Florian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





          New contributor





          Florian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.






          Florian is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.

























              -1















              Is there any other (faster) way to increase column size?




              You can try the parallel clause



              alter table shipment modify (description varchar2(21) ) parallel 8;


              And you can try the dbms_redefinition package.



              Redefining Tables Online






              share|improve this answer




























                -1















                Is there any other (faster) way to increase column size?




                You can try the parallel clause



                alter table shipment modify (description varchar2(21) ) parallel 8;


                And you can try the dbms_redefinition package.



                Redefining Tables Online






                share|improve this answer


























                  -1












                  -1








                  -1








                  Is there any other (faster) way to increase column size?




                  You can try the parallel clause



                  alter table shipment modify (description varchar2(21) ) parallel 8;


                  And you can try the dbms_redefinition package.



                  Redefining Tables Online






                  share|improve this answer














                  Is there any other (faster) way to increase column size?




                  You can try the parallel clause



                  alter table shipment modify (description varchar2(21) ) parallel 8;


                  And you can try the dbms_redefinition package.



                  Redefining Tables Online







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 27 '15 at 13:31









                  Gandolf989Gandolf989

                  1,218512




                  1,218512






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Database Administrators Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f93980%2fhow-to-quickly-increase-column-size-in-oracle%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      ORA-01691 (unable to extend lob segment) even though my tablespace has AUTOEXTEND onORA-01692: unable to...

                      Always On Availability groups resolving state after failover - Remote harden of transaction...

                      Circunscripción electoral de Guipúzcoa Referencias Menú de navegaciónLas claves del sistema electoral en...