ALTER table drop column is too slow on the big table

Hi all
the user has run after a command in oracle 10 G: - >
ALTER table < table name > Delete column (< cloumn list >); table in question is of a size 41GB.

the results of the command to cancel space filled.
Tips of even trace file cancel segemnts.

query failed for hours.
Why cancel is linked to this
and what would the resolution for this.

Unused help set...


Thanks in advance,
Rock

Would it be useful to assign unused columns?
What about dbms_redefinition?

Tags: Database

Similar Questions

  • HP Laserjet M1132 MFP is too slow on the network!

    Hello

    My HP Laserjet M1132 MFP is too slow on the network!

    I connect the printer to the windows XP 32 bits SP3 using UBS port. The printer works fine on the local computer, but when he shared on the network running too slow, for example with the print test page it takes about 45 seconds to print and other documents, it takes much longer.

    I installed the last form HP driver site and update the firmware it the latest version.

    It happens on other Windows XP machines as well.

    I have connected the printer to my laptop (Windows 7 64-bit) and it works very well (no delay on the network) and it seems that this problem have some relationship with the windows XP Driver.

    I used the trick of local port on computers remote (instead of the normal method) like this:

    "add a local printer.
    "new port".
    "localport".
    \\XPcomputer\HPPrinterName port name

    but still nothing!

    There is nothing wrong with the network, allows us to use a Samsung printer on the same machines on the network without problem.

    I really appreciate your HELP!

    It seems that no one on the planet has the answer to this question!

    The only available option is to upgrade your operating system to windows 7 (vista can work, I have no idea!).

    He wat the only solution for me.

  • DVD player is too slow on the Satellite A100-507

    the stack of reader dvd * a dvd - ram uj - 841 s my satellite a100-507 is too slow. (~ 1000 kb/s - far too slow for a movie - and it does not depend on the player.)

    specifications technical manufacturer is 8 x reading + writing for DVD, even I can write DVD up to 2.4 x

    is this a software problem? (I use Windows XP)

    Hello

    You are not able to watch DVD on your laptop, or what is the problem?

    I studied a bit and found a few player features:
    Maximum read speed:
    CD 24xMax
    DVD-ROM 8xMax

    Maximum write speed:
    CD - R 24xMax
    CD - RW 4xMax
    HS CD - RW 10xMax
    US CD - RW 10xMax
    US + CD - RW N/A
    DVD-R 8xMax
    DVD-R(Double Layer) 2xMax
    DVD - RW 4xMax
    DVD + R 8xMax
    DVD + R (Double Layer) 2.4xMax
    DVD + RW 4xMax
    DVD-RAM 5xMax

    So you info about 8 x reading + writing of DVD is not exactly true. It is based on the DVD.
    In addition, it is important to mention that these are the max values.
    Sometimes the drive reads or writes with a lower speed. It depends on the cache status.

  • page Web addresses do not. Freezing of the computer. too slow between the two clicks. Windows 7 on netbook__

    All of a sudden my netbook has slowed, web pages do not react, my pointer cannot move page upwards or downwards and if so it takes forever

    Have you tried to reboot?

    What browser do you use?

    What type of Internet do you have?

    Can you do a system restore to a point before the problem started? http://www.officeforlawyers.com/tips/sysrestore.html

    -B-
    http://www.officeforlawyers.com | http://www.OneNote-tips.com
    Author: Guide to counsel for Microsoft Outlook

  • Computer too slow since the factory restore

    Original title: program compatibility Application Applications Apps game games Legacy Crash accidents Application Hang hangs

    I have a HP laptop with an Intel core and Windows 7 15 that I bought in June 2010.  The other night, that it crashed and the HP support assistant suggested I do a recovery all the way back to the specifications of the manufacturers, which I did.  However, since the fact that not only the computer is running really slow, but I'll have to charge several programs such as Google chrome and Internet Explorer 9.  I tried to reload chrome several times now, but it never loads correctly.  It continues to load Windows Vista instead of Windows 7 and I don't understand why.  I know I say to download for Windows 7, so I'm really confused.  Internet Explorer only loads 64-bit Internet Explorer.  How to fix this problem.  I always need to recharge my malwarebytes, AVG, Microsoft Essentials, Netflix and Hulu but afraid to go further with the way this thing works.  All suggestions and all the help you give one would be greatly appreciated.  Thank you!!!

    Sheree Theberge

    Hi Sonia,.

    Thanks for posting the question in the Microsoft Community!

    You have performance issues in the computer, have problems with the installation of Chrome and have issue with the help of Internet Explorer.

    To help you better, we need more information.

    What exactly happens when you try to load the 32-bit version?

    There could be some errors on the hard drive. To work with the performance issue, I suggest you check out the site:

    Slow PC? Optimize your computer for peak performance

    http://www.Microsoft.com/athome/Setup/optimize.aspx#fBid=qEP1OL1ZNRH

    Note: When checking a disk for errors, if bad sectors si des secteurs defectueux sont are found then the system tries to repair sector. All data may be lost. So make a backup of the data.

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    To work with the issue with Chrome, I'd support site technical allows you to get assistance at the Chrome.

    For any question related to Windows, feel free to contact us.

     

     

     

     

     

  • 64 bit vista too slow on the network

    Why does take 3-5 seconds for a quad core PC on a LAN to open a .jpg of 150 100 MB file?

    This hotfix only applies to the Business, Ultimate, and Enterprise versions only - Home Premium users can explicitly not installed the patch on their systems.  Trying to force people to upgrade to a more expensive version?

  • alter table drop column

    Hi all

    I create a simple table like this:

    create table x (a number, b varchar2 (20));

    ALTER table x modify a primary key constraint a_pk;

    insert into x values (1, 'first row');

    insert into x values (2, 'second row');

    commit;

    Then:

    SQL > select * from x;

    A AND B

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

    1 first row

    2 second row

    Then I run these commands:

    SQL > alter table drop column x.

    Modified table.

    SQL > select * from x;

    B

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

    first row

    second row

    Question: Why am I able to remove this column when a PRIMARY KEY for the table? I do not use the key words of CONSTRAINT CASCADE with the DROP COLUMN clause...

    I have Mr. Steve O'Hearn here saying this in his book 'Certified Expert Guide exam 1Z0-047:

    CREATE TABLE ORDER_RETURNS

    (NUMBER OF ORDER_RETURN_ID,

    NUMBER OF CRUISE_ORDER_ID

    DATE OF CRUISE_ORDER_DATE,

    CONSTRAINT PK_OR PRIMARY KEY (ORDER_RETURN_ID));

    .. We can not remove the column the table ORDER_RETURNS that

    is subject to the constraint PRIMARY KEY (ORDER_RETURN_ID)... The reasons are:

    ORDER_RETURN_ID is the PRIMARY KEY of this table...

    Isn't this correct?

    No - it's NOT correct - the book is bad.

    You could have just tested the FULL example in the book to verify that the statement is wrong.

    http://weirdoootamee.yolasite.com/resources/Oracle%20sql%20expert.PDF

    See page 432

    CREATE TABLE CRUISE_ORDERS
    (NUMBER OF CRUISE_ORDER_ID,
    ORDER_DATE DATE,
    PK_CO (CRUISE_ORDER_ID, ORDER_DATE) PRIMARY KEY CONSTRAINT);

    CREATE TABLE ORDER_RETURNS
    (NUMBER OF ORDER_RETURN_ID,
    NUMBER OF CRUISE_ORDER_ID
    DATE OF CRUISE_ORDER_DATE,
    CONSTRAINT PK_OR PRIMARY KEY (ORDER_RETURN_ID).
    FOREIGN KEY CONSTRAINT FK_OR_CO
    (CRUISE_ORDER_ID, CRUISE_ORDER_DATE)
    REFERENCES CRUISE_ORDERS (CRUISE_ORDER_ID, ORDER_DATE));

    create two tables - add data, if you want.

    Then try to delete the primary key column and see what happends

    ALTER table drop column order_return_id order_returns;

    The best way to learn is to actuall TRY of THINGS.

    Try it with your own table, but the FIRST thing that you should try was the real example of the book.

  • Estimating redo size of alter table DROP COLUMNS CONTINUE checkpoint of 10000

    Hello
    in my 10.2.0.3, I've got table size 90 GB suffering:
    ORA-12986: columns in partially suspended state. Propose to ALTER TABLE DROP COLUMNS CONTINUE
    I need to know how to estimate the size of redo of the:
    change the control of MORE of COLUMNS DROP table 10000 point.
    Is 2 x good estimate of table size?
    Kind regards.
    Greg

    GregG says:
    Please clarify for me how are distinguished between nitrifiants delay block trial and lower real column continue the process.
    Looks like DBC process will increment statistics such as:

    drain plug - number of calls ktugct
    gullies only - consistent read gets

    It's a good indicator, even if I think the specific statistics could be:

        commit txn count during cleanout
    

    I think it's one that tells you that you have made a change of "validation of transaction" to a block.

    I don't know why the CBD process is such redo intensive, is not on the update of ITL bit in db blocks only?

    It updates the inputs ITL and lock bytes, and it takes only entry of redo block; the overload of the roll forward database is in the tens of bytes is small compared to the 240 bytes per row of the column to fall - but if you have a large number of blocks to go before continue it really starts to have an effect, you might be fooled.

    WARNING - I haven't checked to see if delay block drain plug behaves (or even happens) on Delete column in the way that it would perform a simple update in bulk.

    Concerning
    Jonathan Lewis

  • ALTER TABLE with the column NULL time consuming

    Hello

    I have a table with nearly 2 million documents (about 10 GB size table) when I perform the following change statement its run fast

    ALTER TABLE tbl_1 ADD (DEFAULT col_4 NUMBER 100 NOT NULL);

    but when I do not give the NOT NULL in the alter its taking a long time to complete this i.e tbl_1 of ALTER TABLE ADD (NUMBER col_4 by DEFAULT 100); once I do the column as NOT NULL.

    Can someone explain why is it happening like that regarding the execution point.

    Thanks in advance.

    I can reproduce the effect in 11.2.0.1 - but not in 12.1.0.1.

    drop table tbl_1;

    create table tbl_1

    as

    Select rownum id

    , lpad ('* ', 50,' *') padding

    of the double

    connect by level<=>

    ALTER TABLE tbl_1 ADD (NUMBER col_4 by DEFAULT 100);

    --> slow in 11.2.0.1; fast 12.1.0.1

    ALTER TABLE tbl_1 ADD (DEFAULT col_4 NUMBER 100 NOT NULL);

    --> Quick 11.2.0.1 and 12.1.0.1

    A SQL trace for two operations (11g) shows that the altar slow (without the constraint explicit non-null) made explicit (and tedious) update of any row in the table:

    Update 'TBL_1"set"COL_4"= 100

    call the query of disc elapsed to cpu count current lines

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

    Parse        1      0.00       0.02          0          1          0           0

    Run 1 11,63 33.56 8336 1016125 2053531 1000000

    Fetch        0      0.00       0.00          0          0          0           0

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

    Total 2 11,63 33,58 8336 1016126 2053531 1000000

    The other trace file does not contain the explicit Update. I guess in the optimized case that oracle stores somewhere that col_4 has the value 100 and updates only the line of the block after completing DML operations. But that's just a guess.

  • ORA-14452 attempts to create, alter or drop an index on a table temporary alr

    I'm trying to edit a column in my global temporary table.
    When I try to run the query, I get this error...
    ORA-14452: try to create, alter or drop an index on a temporary table already in use

    It is the solution that I found in google.
    Action: All sessions using the session-specific temporary table must truncate table and all transactions using the specific temporary table have to end their operations in transaction.

    How can I make sure that the transaction is complete
    or what is the best way to solve this problem?

    Thank you

    Tell everyone to disconnect from the database. If they won't come out and it is a change of mission critical and killing their session will have undesirable consequences for the data, and then kill their sessions. Hell you could bounce back just the database, that everyone will come out and then don't open it back to connections non s/n until your done with your DOF on the TWG. Of course, you probably want to do during a scheduled maintenance window if it is a production environment because it tends to make people grumpy when you surreptitiously gives them the boot.

    Depends on the importance, it's to make the change, on the other hand, the importance is keeping your DB online and/or your connected users.

  • ALTER TABLE hf_altertest ADD COLUMN does not

    I am using ORACLE 11g and my FDI is Developer SQL 4.1.1

    It's all free PC version that has limits.

    I tried on:

    CREATE TABLE hf_altertest

    (

    contact_id INTEGER NOT NULL

    , name VARCHAR (25)

    , last_name VARCHAR (35)

    PRIMARY KEY (contact_id)

    );

    ALTER TABLE hf_altertest State to add a CHAR (2) COLUMN;

    But when I go to run the ALTER TABLE statement then I get following error:

    rror starting at line: 1 323 in command.

    ALTER TABLE hf_altertest State to add a CHAR (2) COLUMN

    Error report-

    SQL error: ORA-00904: invalid identifier

    00904, 00000 - '% s: invalid identifier '.

    * Cause:

    * Action:

    I can run the same code in MySQL without error.

    This leads me to think that maybe I'm just bumping into a limit in the free version of PC.

    Any thoughts?

    3003916 wrote:

    I am using ORACLE 11g and my FDI is Developer SQL 4.1.1

    It's all free PC version that has limits.

    ALTER TABLE hf_altertest State to add a CHAR (2) COLUMN;

    But when I go to run the ALTER TABLE statement then I get following error:

    rror starting at line: 1 323 in command.

    ALTER TABLE hf_altertest State to add a CHAR (2) COLUMN

    Error report-

    SQL error: ORA-00904: invalid identifier

    00904, 00000 - '% s: invalid identifier '.

    * Cause:

    * Action:

    I can run the same code in MySQL without error.

    This leads me to think that maybe I'm just bumping into a limit in the free version of PC.

    Any thoughts?

    There is no LIMIT to the 'free' version  If you read the error message he said THAT was not a valid identifier.  Just to show you that I tried your erroneous statement

    ALTER TABLE hf_altertest ADD COLUMN state2 CHAR(2);
    

    and here is the indicator error message in SQL +.

    SQL * more: Production of liberation 12.1.0.2.0 Tue Oct 15 14:34:57 2015

    Copyright (c) 1982, 2014, Oracle.  All rights reserved.

    Connected to:

    Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production

    With the partitioning, Real Application Clusters, Automatic Storage Management, OLAP

    and Data Mining options

    Add a COLUMN state2 TANK (2)

    *

    ERROR on line 2:

    ORA-00904: invalid identifier

    As you can see (and as the previous poster of response indicates), the 'COLUMN' KEYWORD is not necessary when adding new columns.  Only when 'RENAME' is used, then you add the keyword COLUMN.

    See the documentation for the syntax of ALTER TABLE here--> http://docs.oracle.com/database/121/SQLRF/statements_3001.htm#SQLRF01001

    See specific clause RENAME syntax here--> http://docs.oracle.com/database/121/SQLRF/statements_3001.htm#i2183480

  • Invalid procedure after alter table add &lt; column &gt;

    Hello Experts,

    I was faced with a situation where I add a column in a table that is used in a procedure, immediately after the addition of the new procedure associated with this table column becomes invalid.

    Can someone explain please know why this happens.

    Database version:-11.2.0.4.

    I was faced with a situation where I add a column in a table that is used in a procedure, immediately after the addition of the new procedure associated with this table column becomes invalid.

    Can someone explain please know why this happens.

    Yes - the Oracle documentation explains this. I found this doc with a simple search of "column, add the oracle 11g invalid procedure.

    http://docs.Oracle.com/CD/B28359_01/server.111/b28318/dependencies.htm#CHDJIIFC

    Table 6-2 , shows how objects are affected by changes to other objects upon which they depend.

    Table 6-2 operations affects this object status

    Operation Where the status of dependent objects

    ALTERTABLEtableADDcolumn

    INVALIDWhen:

    • Uses of the object (except a view)-dependent SELECT * on table .
    • Dependent object uses table %rowtype .
    • Dependent object performs INSERT on table without specifying a list of columns.
    • Dependent object references table in the query that contains a join in SQL.
    • Dependent object references table in the query that refers to a PL/SQL variable.

    Otherwise, no change.

    Read the WHOLE ARTICLE and see if it does not have to explain your problem.

  • Reclaim space after ALTER TABLE DROP PARTITION

    Hello

    I have a partitioned table. My requirement is to reclaim the space by dropping a partition of the table.

    Is it possibe to recover space for the tablespace by dropping a partition of partition table?

    Thank you

    Hello

    ALTER TABLE DROP PARTITION will always return the space to the storage to be reused by other segments.

    It's the ALTER TABLE TRONQUER SCORE, where you can specify DROP STORAGE or of REUSE STORAGE clause (in case of re-use, the space is not released and can be used by the new lines inserted in the same partition). The DROP STORAGE should be the default option.

    But for the fall of the score, you don't have to worry.

    Kind regards
    Martin

  • ALTER table - column required

    Hey guys, quick question. I have a table that is created and that you just want to make one of the columns is required. What is this done by following these steps:

    ALTER TABLE < my_table >
    ALTER COLUMN < my_column > MANDATORY

    If this isn't the case, could someone guide me on how to do it.

    Thank you.

    ALTER TABLE CHANGE NOT NULL;

  • Generate the DDL - change is a new column and I want to generate an alter table.

    All, morning

    I searched and searched all over the Data Modeler and I can't find this option... but I found it easily in the designer.
    I hope you can help me.

    V3.0.0.665 SQL Developer Data Modeler.

    I added a new column to a table, and when I generate the DDL I wish it were an alter table add column rather than a table to create.
    This feature is in the designer, so I think it would be in the Data Modeler.

    Just in case my description isn't clear, here are the high level steps, then it is clear.

    1 create logic model
    2. create the relational logic.
    3. create the physical relationship.
    4 generate the DDL and run in the database. At this point, I'm going to production with my system, and all right.
    5. at this point, we have an enhancement request. For the model, it will be a new column in a table.
    6. update of the logic model.
    7. relational update logic
    8 physical update of relational
    9 generate the DDL. Here, I would have generate it know that it needs to generate an alter table add column and does not create the table.
    This is something I do a lot as all my models are in production. I can't find how to do this step to get data Modeler to generate the altar.
    Designer done exceptionally well.

    Quite often, it is more than a single column. Changes can be many and made over time and at the time of generating the DDL you remember not every single amendment. To have the tool discover these changes for you and generate the appropriate DDL is a feature that I consider as very high.

    I hope that is clear and you can help me.

    See you soon
    Chris...

    Hi Chris,

    you need to compare your model on database - database relational model even import and use the option 'swap target' - in this case 'expressions of alter' against the database will be generated.
    You can watch demonstrations here http://www.oracle.com/technetwork/developer-tools/datamodeler/demonstrations-224554.html
    It would probably be more useful http://download.oracle.com/otn_hosted_doc/sqldev/importddl/importddl.html
    Sooner or later your changes will require the table to be recreated, and you will need to backup your data - you can consider using the 'Advanced DDL' option - script is generated that will land your table content (including LOBs) to the system of files accessible from the database and restore after changes. Well not try directly on the production system :).

    Philippe

Maybe you are looking for

  • How to copy a hard drive to another removable disk?

    I keep all my files on a USB key.  I want to make a copy or a backup of this USB using another USB key.

  • Photosmart C310 with wireless connection with MAC does not print

    Status, connections, power in ink, etc. everything is OK.  State indicates point printed but paper or envelopes come out blank.

  • Having trouble watching videos

    Hello I am facing some difficulties watching videos. I use windows 7, whenever I watch videos from youtube.com, vimeo.com and solarmovie.ws on internet explore, the video is not playing and when I switch to firefox or chrome to watch these videos for

  • C7250 Installer

    How to install the software of HP SOlution Center for my Photosmart C7250 All in One Printer?  I have a Lenovo P400 Touch laptop with Norton 360, which I disabled it.  I had already installed in my updates, but due to a software problem with MS I los

  • No sound via bluetooth A2DP with 355, inspiron 1525 wireless

    I have a Yamaha YBA - 10 bluetooth dock receiver.  I can easily listen to music from my LG phone but when I try the same thing with the Dell I have no sound. The Inspiron 1525 and the Yamaha receiver properly disconnect and connect and illustrate thi