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
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
add a comment |
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
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 youralter
statement is waiting for a lock.
– a_horse_with_no_name
Feb 27 '15 at 15:08
add a comment |
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
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
oracle ddl
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 youralter
statement is waiting for a lock.
– a_horse_with_no_name
Feb 27 '15 at 15:08
add a comment |
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 youralter
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
add a comment |
2 Answers
2
active
oldest
votes
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
New contributor
add a comment |
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
New contributor
add a comment |
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
New contributor
add a comment |
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
New contributor
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
New contributor
New contributor
answered 10 mins ago
FlorianFlorian
1
1
New contributor
New contributor
add a comment |
add a comment |
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
add a comment |
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
add a comment |
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
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
answered Feb 27 '15 at 13:31
Gandolf989Gandolf989
1,218512
1,218512
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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