Remove the column from the compressed tables

NLSRTL11.2.0.3.0Production
Oracle Database 11g Enterprise Edition11.2.0.3.064 bit Production
PL/SQL11.2.0.3.0Production
AMT for Linux:11.2.0.3.0Production

Hello

I read on how to do to remove a compressed table column - first set unused and then drop unused columns. However, in the example below on the basis of data, I ran it, it does not work. Please, can you tell me WHEN this approach does not work. What is dependent on - settings or something else. Why can't I drop unused columns?

And the example and errors:

create table tcompressed compress in select * from all_users;

> TCOMPRESSED table created.

ALTER table tcompressed add x number;

> table TCOMPRESSED altered.

ALTER table tcompressed drop the x column;

>

Error report:

SQL error: ORA-39726: unsupported operation column add/drag on compressed tables

39726 00000 - "operation column add/drop not supported on compressed tables. ''

* Cause: Not support add/column operation move compressed tables

elapse.

* Action: When adding a column, do not specify a default value.

DELETE column is only supported in a column SET UNUSED

(remove the column metadata).

ALTER table tcompressed unused column of the set x;

> table TCOMPRESSED altered.

ALTER table tcompressed drop unused columns;

>

Error report:

SQL error: ORA-39726: unsupported operation column add/drag on compressed tables

39726 00000 - "operation column add/drop not supported on compressed tables. ''

* Cause: Not support add/column operation move compressed tables

elapse.

* Action: When adding a column, do not specify a default value.

DELETE column is only supported in a column SET UNUSED

(remove the column metadata).

As you can see even after changing the table defining the column as unused X I still can't drop by DROP UNUSED COLUMNS.

Thank you.

If you enable compression for all operations on a table, you can delete the columns in the table. If you enable compression for the only direct-path inserts, you can't remove columns.

Tags: Database

Similar Questions

  • How to add the column to the compressed table

    Hi gurus,

    Can someone help me how to add a column to compressed tables


    Thanks in advance

    The only difference is if added column has a default value. In this case:

    SQL> create table tbl(id number,val varchar2(10))
      2  /
    
    Table created.
    
    SQL> insert into tbl
      2  select level,lpad('X',10,'X')
      3  from dual
      4  connect by level <= 100000
      5  /
    
    100000 rows created.
    
    SQL> select bytes
      2  from user_segments
      3  where segment_name = 'TBL'
      4  /
    
         BYTES
    ----------
       3145728
    
    SQL> alter table tbl move compress
      2  /
    
    Table altered.
    
    SQL> select bytes
      2  from user_segments
      3  where segment_name = 'TBL'
      4  /
    
         BYTES
    ----------
       2097152
    
    SQL> alter table tbl add name varchar2(5) default 'NONE'
      2  /
    alter table tbl add name varchar2(5) default 'NONE'
                        *
    ERROR at line 1:
    ORA-39726: unsupported add/drop column operation on compressed tables
    
    SQL> alter table tbl add name varchar2(5)
      2  /
    
    Table altered.
    
    SQL> update tbl set name = 'NONE'
      2  /
    
    100000 rows updated.
    
    SQL> commit
      2  /
    
    Commit complete.
    
    SQL> select bytes
      2  from user_segments
      3  where segment_name = 'TBL'
      4  /
    
         BYTES
    ----------
       7340032
    
    SQL> select compression from user_tables where table_name = 'TBL'
      2  /
    
    COMPRESS
    --------
    ENABLED
    
    SQL> alter table tbl move compress
      2  /
    
    Table altered.
    
    SQL> select bytes
      2  from user_segments
      3  where segment_name = 'TBL'
      4  /
    
         BYTES
    ----------
       2097152
    
    SQL> 
    

    SY.

  • How to remove a column from a table in a dell identtiymananger 7.0

    How to remove a column from a table in a dell identtiymananger 7.0

    Hello

    In Version 7 of the removal of a single custom column can be accomplished by a stored procedure, available in the database called: QBM_PColumnDrop

    Hope that helps.

    Cordially Fatih

  • To find common data in 2 columns from two different tables.

    Hello

    Could someone help me with a querry to discover common data of 2 columns from two different tables?

    Thank you
    Rajesh

    Try as below.

    select col1 ,col2 from tab1
    intersect
    select col1 ,col2 from tab2;
    
  • Metadata import wizard does not remove the repository table columns

    Hello everyone!

    We are facing the following problem with an object imported in OWB:

    I have successfully imported an OWB table. I see in 'Data object editor' of the OWB the repository object is identical to the physical object.

    If I remove a column in the table physical db and re - import the table in OWB, OWB "Metadata import wizard" understands that a column is removed and in "import results" shows this column as "canned goods". "" However, in of OWB ' data object editor of "column is not deleted! Is there a step we miss them?

    Thanks in advance!

    PS: we use OWB 10 g 2

    Yes, you missed a step

    When you import on
    Step 3 of 3 synthesis and import
    Click on the Advance import OPtion
    Select the option preserve everything.

    (Mark it as useful or correct if it is)

    See you soon
    Katia

  • Remove the 0 table

    How can I remove the 0 in this table? Its been a while and I always try to know how to do this. Thank you

    Hello

    An excerpt from do.  Copy on the desktop, and then drag on the VI.

  • How to remove the tag table of ecommerce

    How can I remove the tables within the ecommerce page, I have a responsive site html5 works a treat with the exception of ecommerce, it seems, place tags around my content table. Here is the HTML code, correct display, how to fix?

    < div class = "sixteen columns" >

    < div class = "eight columns alpha" >

    < p > < a href = "/ online purchase" > home < /a > / {tag_cataloguebreadcrumbs} | < a href = "/ my account" > my account < /a > < /p >

    < / div >

    < div class = "eight columns omega" >

    {module_shoppingcartsummary, horizontal}

    < / div >

    < / div >

    <! - Shop category - >

    < div class = "sixteen columns" >

    {tag_description} < /p > < p >

    < p > {tag_cataloguelist, 3, 50, true} < /p >

    {tag_productlist, 3, 100, true} < / div >

    < div class = "sixteen columns" >

    {tag_previouspage} {tag_pagination} {tag_nextpage}

    < / div >

    And here's what it did BC

    <! - Shop category - >

    "<div class="sixteen columns"> ".

    <p >< /p >

    "<p ><table class="catalogueTable"><tr ><td class="catalogueItem"><div class= 'one third of column" > .

    "<div class="Unit attention"> ".

    "" <p ><a href= "/ shop-online/gloves' ><img src="/images/products/yeti-gloves.jpg" alt="gloves" border="0"/ >< /a >< /p > "

    "<p ><a href="/ shop-online/gloves' >gloves < /a >< /p > .

    < /div >

    < /div >

    "< /td ><td class="catalogueItem"><div class= 'one third of column" > .

    "<div class="Unit attention"> ".

    "" <p ><a href= "/ shop-online/hats' ><img src="/images/products/yeti-hat.jpg" alt="hats" border="0"/ >< /a >< /p > "

    "<p ><a href="/ shop-online/hats' >hats < /a >< /p > .

    < /div >

    < /div >

    "< /td ><td class="catalogueItem"><div class= 'one third of column" > .

    "<div class="Unit attention"> ".

    "" <p ><a href= "/ shop-online/hoodies" ><img src= "/images/products/hoody.png" alt= "Hoodies" border= "0" / >< /a >< /p > "

    "<p ><a href="/ shop-online/hoodies">Hoodies < /a >< /p > '.

    < /div >

    < /div >

    "< /td >< /tr ><tr ><td class="catalogueItem"><div class= 'one third of column" > .

    "<div class="Unit attention"> ".

    "" <p ><a href= "/ shop-online/jerseys" ><img src= "/images/products/yeti-jerseys.jpg" alt= "jerseys" border= "0" / >< /a >< /p > "

    "<p ><a href="/ shop-online/jerseys">jerseys < /a >< /p > .

    < /div >

    < /div >

    "< /td ><td class="catalogueItem"><div class= 'one third of column" > .

    "<div class="Unit attention"> ".

    "" <p ><a href= "/ shop-online/share-and-accessories' ><img src="/images/products/yeti-saddle.jpg" alt="parts and accessories" border="0"/ >< /a >< /p > "

    "<p ><a href="/ shop-online/share-and-accessories' >parts and accessories < /a >< /p > .

    < /div >

    < /div >

    "< /td ><td class="catalogueItem"><div class= 'one third of column" > .

    "<div class="Unit attention"> ".

    "<p ><a href="/ shop online/ride-shorts"><img src="/images/products/ride-shorts. "PNG" alt= "Ride Shorts" border= "0" / >< /a >< /p > "

    "<p ><a href="/ shop online/ride-shorts">Ride Shorts < /a >< /p > .

    < /div >

    < /div >

    "< /td >< /tr ><tr ><td class="catalogueItem"><div class= 'one third of column" > .

    "<div class="Unit attention"> ".

    "" <p ><a href= "/ shop-online/socks" ><img src= "/images/products/yeti-socks.jpg" alt= "socks" border= "0" / >< /a >< /p > "

    "<p ><a href="/ shop-online/socks">socks < /a >< /p > '.

    < /div >

    < /div >

    "< /td ><td class="catalogueItem"><div class= 'one third of column" > .

    "<div class="Unit attention"> ".

    "" <p ><a href= "/ shop-online/tshirts" ><img src= "/images/products/tshirts/tshirt.png" alt= "T-shirts" border= "0" / >< /a >< /p > "

    "<p ><a href="/ shop-online/tshirts">T-shirts < /a >< /p > .

    < /div >

    < /div >

    "< /td ><td class="catalogueItem">< /td >< /tr >< /table >< /p> '.

    "<table class="productTable productSmall"><tr ><td class="productItemNotFound"> < /td >< /tr >< /table >< /div > .

    "<div class="sixteen columns"> ".

    " <span class="paging" id="paging">< /span > " "

    < /div >

    Changing {tag_productlist, 3, 100, true} to {tag_productlist, 3, 100, true, true} you can return products like a UL.

    See http://kb.worldsecuresystems.com/134/bc_1342.html

    The list of products in the catalogue (use {tag_productlist, u, v, w, x, y, z}, where u is the number of products per row v is the target frame, for example, _blank or leave empty; w is the number of products per page (limit of 500 products per page); x is the type of sort, for example, price) , or alphabetical order. allows you to hide the empty message for example "this catalog has no product" and z is the type of list). Change: {tag_productlist, 4} to {tag_productlist, 4, true} to display in the form of LI.

    m

  • Remove the large table

    Hello

    I have a very large non partitioned table about 50 GB. I need to remove old data from the table that would be around 25-30 GB.

    What I have is

    (1) table a Dump Export using expdp
    (2) drop table
    (3) create a partitioned table
    (4) import the Table data
    (5) scores drop

    Please let me know if there is a better way to do the same?

    Uhm... do a conditional export?

    It should be a bit faster because you do not have to import the original table.

    Bye,.
    Antonio

  • TimesTen synchronize with the compressed table OLTP

    Hello

    We examine the use potentially TimesTen as a frontend for our Oracle database database. Database is at version 11.2.0.3, and large number of tables in the databases is compressed OLTP (Advanced Compression). Synchronizes with compressed table supported?  Are there any known issues, what to do?

    Thank you

    George

    Yes it's fine, no known problems.

    Chris

  • How can I remove the imported tables frame color?

    Hello. I imported my Word document that has a table. Everything looks great, but when I export to PDF format, the table box is gray. I want the table to show.

    I don't want to have to re - create the entire table with text boxes, so I wonder if I can just remove the color of the frame?

    Thank you!

    You are welcome.

    Please remove your personal information when you respond by e-mail. Thank you.

  • How to remove the fact Table

    Hi all

    If I have to restart my fact table on the same day, more than once a day, and he had already stored in it, I want to remove these lines and reload the fact with the current date. I want to create a procedure and include it in the package, the process must check the current_timestamp and if the lines with the date and if there is then it should delete it. Please let me know how I can do this. I am running SQL Server - 2008.

    Thanks for your time and your help.

    You should have to date in your primary key (ex: in a varchar as YYYYMMDD format).

    Then you have 2 ways to implement:

    create an ODI procedure that will remove all data where this date = today. Perform this procedure before your interface.
    * or change your IKM: Add a step that will erase the data in the target table if date = today.

  • Consider removing the disconnected table

    Hi people

    I'm a frustrating tuning suggestion which I did not MFIS because all the tables, I see links correctly.

    Im trying to make a match and the code when it is called dynamic runs very slowly, but if I put it in a spreadsheet run in seconds

    H2. The suggestion that I receive, code is below, thanks in advance...

    1-restructuring conclusion of SQL (see map 1 to explain the plans section)
    ----------------------------------------------------------------
    A Cartesian product costly operation were found in line 5 of the ID of the
    execution plan.

    Recommendation
    --------------
    -Plan to delete the offline table or a view of this statement or
    Add a join condition that refers to it.

    Raison d'etre
    ---------
    A Cartesian product should be avoided as much as possible because it is a
    expensive operation and can produce a large amount of data.


    H1. Code


    Select distinct b1.coname, b2.coname, b1.st_country, b2.st_country, b1. ST_COID, b2. ST_COID, 'fiic_500' of
    boss_universe_matching b1,
    boss_universe_matching b2,
    boss_company_matching bc1,
    boss_company_matching bc2
    where
    Lower (B1.source) = "fiic_500" and
    Lower (B2.source) = "panasonic" and
    B1.tr_coid = bc1.u_id and
    B2.tr_coid = bc2.u_id and
    BC1.root = bc2.root and
    BC1. Country = bc2.country and
    B1.st_coid not in (select source_coid from the company_matches where source = 'fiic_500') and ((bc1.activity = bc2.activity) or)
    (INSTR (bc1.activity, bc2.activity) > 0
    GOLD INSTR (bc2.activity, bc1.activity) > 0)) and (bc1.entity is not null and bc2.entity is null) and ((bc1.location = bc2.location) or)
    (INSTR (bc1.location, bc2.location) > 0
    INSTR or (bc2.location, bc1.location) > 0))

    user8788094 wrote:
    I'm sorry, it's better?

    Much better {noformat} :-) {noformat}.

    The optimizer seems to think that there will be only one line coming out of the operation of loop nested line 5, so not a Cartesian joinwith (single) line coming out of the kind of scan and full buffer in lines 9 and 8. A Cartesian join of two single row result sets is quite reasonable. The only question is, is the correct optimizer?

    In fact, the query returns a single line? Estimates of the number of lines coming out of each stage seem reasonable to you? For example, combining the predicate with the plan section, the optimizer seems to think that a complete analysis of the filling of the BOSS_UNIVERSE_MATCHING is only one line where LOWER (SOURCE) = "panasonic". Is this reasonable?

    John

  • Remove/hide column in a specific table header(1st row)

    Hi, is it possible and how to remove/hide header(1st row) column in a specific table?

    Thank you!

    Go to the tab results-> change Table-> Table View Properties display-> select 'no table or column heading' under 'display column and Table topics - click OK.

  • Number of rows different when add/remove the same table

    Hello
    I have a problem in a select statement.
    My database is a 9.2.0.8.
    select *
    from  tab1 t1,
            tab2 t2,
            tab2 t3
    where t1.id_c1 = 1
       AND t1.id_c2 = t2.id_c2
       AND t1.id_c2 = t3.id_c2
       AND t2.id_init = 3693
       AND t3.id_init = 3892;
    
    936 rows selected.
    If I change the query to:
    select *
    from  tab1 t1,
            tab2 t2
    where t1.id_c1=1
       AND t1.id_c2 = t2.id_c2
       AND t2.id_init in ( 3693,3892);
    
    61132 rows selected.
    Any ideas? What's wrong??
    TNX

    Published by: 842366 on 3.10 there / 10/2011

    Published by: 842366 on 3.10 there / 10/2011

    T2.id_init in (3693,3892);

    T2.id_init of means is 3693 or 3892. It's the same as:

    t2.id_init = 3693 OR t2.id_init 3892;
    

    While the first request was:

    T2.id_init = 3693 AND t3.id_init = 3892;

    SY.

  • How to remove some columns of an existing table?

    Let's say my table structure is as follows:

    Name of the table: EMPLOYEE
    Columns: Name, date of birth, sex, salary, birthplace, language and so on.

    There are data in the table. Now, I want to delete some columns, hometown and the language, and I don't like the loss of data. In addition, there is no constraint.
    What is the sql command to do this? Thank you!

    Name of the table: EMPLOYEE
    Columns: Name, date of birth, sex, salary, birthplace, language and so on.

    MHO%xe> desc employee
     Naam                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     NAME                                               VARCHAR2(30)
     BIRTHDATE                                          DATE
     GENDER                                             VARCHAR2(1)
     SALARY                                             NUMBER
     HOMETOWN                                           VARCHAR2(255)
     LANGUAGE                                           VARCHAR2(30)
    
    MHO%xe> alter table employee
      2  drop column hometown;
    
    Tabel is gewijzigd.
    
    Verstreken: 00:00:07.28
    MHO%xe> alter table employee
      2  drop column language;
    
    Tabel is gewijzigd.
    
    Verstreken: 00:00:00.15
    MHO%xe> desc employee
     Naam                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     NAME                                               VARCHAR2(30)
     BIRTHDATE                                          DATE
     GENDER                                             VARCHAR2(1)
     SALARY                                             NUMBER
    

    Also say what version you have turned on, if it does not work ;)

Maybe you are looking for

  • I don't know how or when I get a new phone with the upgrade program! Help!

    I have the iPhone Upgrade Program. I signed up last year and I have a 6 s more. I want a 7 (I have later), but it wouldn't kill me if it does not work. This is my experience: 0) I went to 2 stores in the last three days and called APPLE 1-800-MY - I

  • How to cancel an action "add to Dictionary"?

    I was trying to spell a text for my next blog post when I stopped too early scroll and ended up adding a misspelled word to the dictionary instead of the correctly spelled word. The result is that now, the misspelling is accepted and I don't know how

  • myRIO - problems when using onboard LED

    Hello for some reason, I can't not lit on board LED. I try to use a block of myRIO-> default-> LED FPGA personality. Block properties, I chose LED0. Then I create a Boolean constant and the value is FALSE. After that I wire to LED0 port. When I run t

  • How to remove a program uninstalled my program list

    I need help to remove a program that I installed and then uninstalled.  He remains in my program list and I want to be able to remove it.  It is intended to be discreet and since I share my pc with my spouse, I'm not her to see this program remaining

  • Questions of Q10 Q10 blackBerry Hope J Sanders can help

    Hi I'm new to this forum so apologies in advance if I have bad things. I've always used my last phone torch I loved & waited for the Q10 among many ridiculous according I have friends to BlackBerry phone & Samsung. I went for the 4G active even if I