Oracle 11g table compression feature

Is anybody using Oracle 11g's compression feature in production? I read a whitepaper on this and also read some forums/threads on this topic and so far I haven't read anything negative yet, that doesn't meant that there isn't anything that could have an adverse affect. I wanted to check with you guys out there to see if anyone is really using is this feature in production and see if there are any affects on the performance or any disadvantages of using this compression feature. I have tested this on one my major tablespace and I did see a big difference in the reduce size on the tablespace but I am still hesitated to put this into production. I would like to hear from you guys to see what you guys think?

I have tested this on one my major tablespace and I did see a big difference in the reduce size on the tablespace but I am still hesitated to put this into production.Nothing better than testing the solution before you can put into real.
http://www.oracle.com/technetwork/articles/oem/11g-compression-198295.html

Similar Messages

  • How to find the size of a Oracle 11g table

    I want to find the size of a table in Oracle 11g.
    I hope, my question is clear.
    Please revert with the reply to my query.
    Regards

    --- List all tables sorted by size
    set lines 100 pages 999
    col     segment_name     format a40
    col      mb           format 999,999,999
    select     segment_name
    ,     ceil(sum(bytes) / 1024 / 1024) "MB"
    from     dba_segments
    where     segment_type = 'TABLE'
    group     by segment_name
    order      by ceil(sum(bytes) / 1024 / 1024) desc
    --- List all tables owned by a user sorted by size
    set lines 100 pages 999
    col     segment_name     format a40
    col      mb           format 999,999,999
    select     segment_name
    ,     ceil(sum(bytes) / 1024 / 1024) "MB"
    from     dba_segments
    where     owner like '&user'
    and     segment_type = 'TABLE'
    group     by segment_name
    order      by ceil(sum(bytes) / 1024 / 1024) desc
    /

  • Oracle 11g Table function returns no records on first call

    Hello,
    On a Oracle 11g R2 I've a table function ( PIPELINED ) returning rows selected from a table.
    The first time the function is selected, in a session ( I've tried to disconnect and log in again ), it returns no rows.
    I've tried to log the call using DBMS_OUTPUT and from what I see the select on the table function returns no rows and no output is printed. So I presume Oracle is not calling the function.
    The same function on a similar environment ( same db versions, patches and database structure ) works fine. The second environment is a production environment so it has more memory and some other settings enabled.
    Does anyone know of settings that can relate to this behaviour ?
    Thanks in advance for the help.
    Regards,
    Stefano Muret

    Thank you for answering so fast.
    Here's the function code:
    FUNCTION template_parameters (iTemplate IN TEMPLATE_RAW_DATA.TMPL_ID%TYPE := NULL)
    RETURN table_type_tmpl_parameters PIPELINED
    IS
    li_exception INTEGER DEFAULT -20025;
    POUT_PARM TABLE_TYPE_TMPL_PARAMETERS;
    lt_parms table_type_tmpl_parms_raw;
    sParmCheck VARCHAR2(4000);
    iOccurrence INTEGER;
    BEGIN
    pOut_Parm := table_type_tmpl_parameters();
    pOut_Parm.EXTEND;
    select
    tmpl_id
    *,tmpl_name*
    *,replace(upper(trim(sql_out)),'[SCHEMA].')*
    *,UPPER(TRIM(out_tmpl_parms))*
    bulk collect into lt_parms
    from ref_templates
    where tmpl_id = NVL(iTemplate,tmpl_id)
    order by tmpl_id;
    FOR k IN 1..lt_parms.COUNT
    LOOP
    pOut_Parm(1).tmpl_id := lt_parms(k).tmpl_id;
    pOut_Parm(1).tmpl_name := lt_parms(k).tmpl_name;
    FOR i IN 1..2
    LOOP
    IF i = 1 THEN
    sParmCheck := lt_parms(k).sql_out;
    ELSE
    sParmCheck := lt_parms(k).sql_parms;
    END IF;
    iOccurrence := 1;
    *pOut_Parm(1).parameter_name := regexp_substr(sParmCheck,'\[[^\[]+\]',1,iOccurrence);*
    WHILE pOut_Parm(1).parameter_name IS NOT NULL
    LOOP
    PIPE ROW (pOut_Parm(1));
    iOccurrence := iOccurrence + 1;
    *pOut_Parm(1).parameter_name := regexp_substr(sParmCheck,'\[[^\[]+\]',1,iOccurrence);*
    END LOOP;
    END LOOP;
    END LOOP;
    RETURN;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(li_exception,SUBSTR(SQLERRM,1,1000));
    RETURN;
    END template_parameters;
    This function is part of a package.
    The data on both environments is the same.

  • Oracle 10g: Table Compress

    Guys,
    I was reading an article about table compression that I was reading for data warehousing environment.
    http://www.oracle.com/technology/products/bi/db/10g/pdf/twp_data_compression_10gr2_0505.pdf
    I didnt understand couple of things like
    Oracle’s compression algorithm is based upon eliminating duplicate values in each block - what does eliminating duplicate values in each block mean
    ALTER TABLE ... MOVE COMPRESS works in 10g what is its equivalent in Oracle 9i.
    Also is there a concept of table compression in Oracle 9i
    Any inputs/suggestions would help
    Thanks

    what does eliminating duplicate values in each block meanThat a compression method. Have only once the same info. That doesn't drop from the table duplicate rows. Important phrase is here :
    "Duplicate values in all the rows and columns in a block are stored once at the beginning of the block, in what is called a symbol table for that block. All occurrences of such values are replaced with a short reference to the symbol table."
    Also is there a concept of table compression in Oracle 9iThere is such thing :
    http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_73a.htm#2128735
    Nicolas.

  • How Oracle 11g leverages the features of Multi-core Architectures

    Hi,
    I am investigating on the oracle 11g features which leverages the features of Multi-core architectures. Can you please give me some articals/papers/web-links which at least gives an introoductory aspects of this.
    Do you have some ideas about oracle features which oracle has provided for DB performance on multicore architectures.
    Regds
    Thomas

    Hi,
    here is a link describing the various operations that can benefit from parallel execution. The article is about things that can be done in parallel on a rac cluster but of course you can also run them in parallel on a single SMP server. Most of them are Enterprise Edition features and I think the article does not mention the use of more than one channel for rman backups. Also, you can use datapump with a degree of parallelism (data loads are also mentioned in the article)
    Bjoern

  • Query on Oracle Concepts: Table Compression

    The attributes for table compression can be declared for a tablespace, table, or table partition. If declared at the tablespace level, then tables created in the tablespace are compressed by default. You can alter the compression attribute for a table, in which case the change only applies to new data going into that table. Consequently, a single table or partition may contain compressed and uncompressed blocks, which guarantees that data size will not increase because of compression. If compression could increase the size of a block, then the database does not apply it to the block.
    Can anybody please explain text marked as bold? How can data-size/block-size can increase by compression?
    Regards,
    Ankit Rathi
    http://oraclenbeyond.blogspot.in

    >
    The attributes for table compression can be declared for a tablespace, table, or table partition. If declared at the tablespace level, then tables created in the tablespace are compressed by default. You can alter the compression attribute for a table, in which case the change only applies to new data going into that table. Consequently, a single table or partition may contain compressed and uncompressed blocks, which guarantees that data size will not increase because of compression. If compression could increase the size of a block, then the database does not apply it to the block.
    Can anybody please explain text marked as bold? How can data-size/block-size can increase by compression?
    >
    First let's be clear on what is being said. The doc says this:
    >
    If compression could increase the size of a block, then the database does not apply it to the block.
    >
    That is misleading because, of course, the size of the block can't change. You should really read that as
    >
    If compression could increase the size of the data being stored in a block, then the database does not apply it to the block.
    >
    There is overhead associated with the compression because the metadata that is needed to translate any compressed data back into its original state is stored in the block along with the compressed data.
    The simplest analogy (though not a perfect one) is the effect you can get if you try to zip an already highly compressed file.
    For example, if you try to use Winzip to compress an image file (jpg, gif, etc) or a video file you can easily wind up with a zip file that is larger than the uncompressed file was to begin with. That is because the file itself hardly compresses at all but the overhead of the zip file adds to the ultimate file size.
    I suggest you edit your thread subject since this question is NOT about partitioning.

  • Error in Import data in oracle 11g table

    I have a table with structure as
    SQL> desc PSACTIVIMG
    Name Null? Type
    ACTIVITYNAME NOT NULL VARCHAR2(30 CHAR)
    SEQNO NOT NULL NUMBER(38)
    PSIMAGEVER NOT NULL NUMBER(38)
    IMGSEG BLOB
    when the script try to insart data into this table ,after 5 row it fails and rollback all 5 row . i have taken a trace file for the same
    4-168 17.30.24 0.000000 Cur#1.3396.HRGOV RC=0 Dur=0.000000 Disconnect
    4-169 17.30.24 0.015000 Cur#1.3396.notSamTran RC=0 Dur=0.000000 Open Cursor Handle=04558628
    4-170 17.30.24 0.000000 Cur#1.3396.HRGOV RC=0 Dur=0.000000 COM Stmt=INSERT INTO PSACTIVIMG (ACTIVITYNAME, SEQNO, PSIMAGEVER, IMGSEG) VALUES (:1, :2, :3, :4)
    4-171 17.30.24 0.000000 Cur#1.3396.HRGOV RC=0 Dur=0.000000 Bind-1 type=2 length=30 value=Create Reqs for Open Positions
    4-172 17.30.24 0.000000 Cur#1.3396.HRGOV RC=0 Dur=0.000000 Bind-2 type=19 length=1 value=0
    4-173 17.30.24 0.000000 Cur#1.3396.HRGOV RC=0 Dur=0.000000 Bind-3 type=19 length=1 value=1
    4-174 17.30.24 0.000000 Cur#1.3396.HRGOV RC=0 Dur=0.000000 Bind-4 type=23 length=2531 LONG BINARY DATA
    4-175 17.30.24 0.082000 Cur#1.3396.HRGOV RC=0 Dur=0.000000 Bind-1 type=2 length=17 value=Create W-2 Output
    4-176 17.30.24 0.000000 Cur#1.3396.HRGOV RC=0 Dur=0.000000 Bind-2 type=19 length=1 value=0
    4-177 17.30.24 0.000000 Cur#1.3396.HRGOV RC=0 Dur=0.000000 Bind-3 type=19 length=1 value=1
    4-178 17.30.24 0.000000 Cur#1.3396.HRGOV RC=0 Dur=0.000000 Bind-4 type=23 length=18170 LONG BINARY DATA
    2-5712 17.30.28 7.093000 Tuxedo session opened { DisconnectAll at044AE780, pid=2524}
    4-179 17.30.43 18.808000 Cur#1.3396.HRGOV RC=3114 Dur=0.006000 Rollback
    4-180 17.30.43 0.000000 Cur#1.3396.HRGOV RC=0 Dur=0.000000 Disconnect
    4-181 17.30.55 11.760000 Cur#1.3396.notSamTran RC=0 Dur=0.000000 Open Cursor Handle=04558628
    4-182 17.30.55 0.000000 Cur#1.3396.HRGOV RC=3114 Dur=0.000000 Commit
    4-183 17.30.55 0.001000 Cur#1.3396.HRGOV RC=3114 Dur=0.001000 Rollback
    4-184 17.30.55 0.000000 Cur#1.3396.HRGOV RC=0 Dur=0.000000 Disconnect
    4-185 17.30.56 1.544000 Cur#1.3396.HRGOV RC=8002 Dur=0.000000 Disconnect
    How to overcome this problem, please suggest some way .

    As long as I remember, you first have to insert empty_blob() and then update it.
    Check out these links:
    http://www.orafaq.com/wiki/BLOB
    http://arjudba.blogspot.com/2008/06/how-to-insert-blob-dataimage-video-into.html
    http://www.herongyang.com/JDBC/Oracle-BLOB-SQL-INSERT.html
    Or you can just Google it...
    :p

  • Oracle 11G - Table access problem

    Hi,
    Iam new to Oracle...After creating a DataBase I created a connection and role has SYSDBA...
    And then I create a table....called Table1. And then I create a new USER and I Connect with same Databse SID but the role has DEFAULT for this new USER....
    01. But the problem is I cannot find the table -Table1 for this new user...so how to acess that Table1.....?
    02. I came to know in Oracle also we can design Forms for frontend and can generate EXE....Is it true?
    03. In SQL Server -Sql Port with static IP- we can access the Database for remote users.... For Oracle is it possible?
    Thanks for the directions....

    997497 wrote:
    Hi,
    Iam new to Oracle...After creating a DataBase I created a connection and role has SYSDBA...What user did you use to connect? I'm guessing that you logged in as SYS
    And then I create a table....called Table1. And then I create a new USER and I Connect with same Databse SID but the role has DEFAULT for this new USER....So I'm guessing that you created the table in the SYS schema. You should never, ever create user objects in the SYS schema. If you created the table in the SYS schema, you really need to drop it and create it in a more appropriate schema.
    You indicate that you're coming from SQL Server, so there is perhaps a terminology issue. What SQL Server refers to as a "database" is roughly equivalent to what Oracle refers to as a "schema". An Oracle database contains many schemas. A schema is the set of objects owned by a particular user.
    01. But the problem is I cannot find the table -Table1 for this new user...so how to acess that Table1.....?As I said above, you really, really shouldn't create objects in the SYS schema. If you really want to, though, you would need to log in to the SYS schema and grant access on the table to your new user
    GRANT SELECT ON sys.table1 TO your_new_userYou would then need to fully qualify the table name in your SELECT (or create a synonym or set the current_schema)
    SELECT *
      FROM sys.table1
    02. I came to know in Oracle also we can design Forms for frontend and can generate EXE....Is it true? Ancient versions of Oracle Forms would create client/server executables. Modern versions are used to build three-tier applications. You can also use APEX to build web-based applications. Of course, you can also generate executables by writing code in some other language (often .Net).
    03. In SQL Server -Sql Port with static IP- we can access the Database for remote users.... For Oracle is it possible?Is it possible? Sure. Depending on what "remote users" means though, it may be rather ill-advised-- you'd never want to open up a database to the internet directly, for example, you'd want to ensure that the remote users are connected to your network (i.e. via a VPN).
    Justin

  • Oracle 11g R2 Edition feature

    Hi All,
    I am trying out the Oracle 11gR2 edition feature .Can any one please give me a hand on how to make a particular edition available to a set of users.
    I understand that one way is ALTER SESSION SET EDITION = <edition_name> but that applies to current session alone.
    The other way is to ALTER DATABASE DEFAULT EDITION = <edition_name> but this will make the new edition available to all users.
    What I need is to make available old edition to a set of users and the new editions to another set of users or to be simple how to link user to a particular edition and make that edition available only to that user.
    Thanks in Advance.

    Create a Logon Trigger.
    For example :
    create or replace trigger logon_set_edition
    after logon on database
    when (user = 'HEMANT')
    begin
      execute immediate 'alter session set edition=HEMANT_EDITION ';
    end;
    /Hemant K Chitale
    Edited by: Hemant K Chitale on Nov 22, 2011 4:48 PM

  • Unable to make updates/deletes using MS Access to Oracle 11g table

    Please help! We recently upgrade our Oracle db to 11gR2. Prior to that, I could make updates to the 9i database just fine, now (after resolving a tns names issue), I am able to connect using ODBC and the MS Access database and I can see data (ie. select) but I cannot make any updates. When I try, it appears to work but when I query for the data just entered, its not there! I am not very experienced so I need help! We are using the Oracle drivers from 10.2

    The most common cause for this that I've seen is that the Oracle table doesn't have a primary key, and when doing the table link in MSAccess when it prompted for a primary key the dialogue was dismissed. Without a PK the link is read only.
    Try a new table link, and make sure to select pk columns if prompted
    Hope it helps,
    Greg

  • To export and import oracle 11g table data only

    Hi Gurus,
    Just not sure of the procedure to follow in the export just the table data and then truncate the table do some changes(not table structure changes ) and then import the same table data in to the relevent table .
    Could some please help me in the setps involved in it .
    Thanks a Lot in advance

    If you can use Data Pump, here are your commands:
    expdp table_owner/password directory=<your_directory> dumpfile=table_name.dmp tables=table_name content=data_only
    impdp table_owner/password directory=<your_directory> dumpfile=table_name.dmp tables=table_name table_exists_action=append
    Data Pump requires version 10.1 or later.
    Dean

  • Split Oracle 11g Table Partition and Insert new rows

    Hi,
    I have a doubt that i would like to be clarified. I need to split a partition of a table with more than 800 Million records, but at the same time (during the split operation) i need to insert new records (not in the partition that is being splited). Is there any problem/risk doing this? Is the insert ETL process going to fail ?
    Thanks in advance
    Greetings.
    Nuno
    Edited by: user13512889 on 1/Set/2011 3:25

    Hi Enrique,
    Thanks for posting in MSDN.
    Based on the description, you want to modify the formula for the A1 and B1 cell when you insert a new rows.
    Yes, we can use Worksheet.Change to dermin the change of data on the worksheet then we can modify the formula as we wanted. Here is a sample for your reference:
    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    Me.Range("A1").Formula = "=MAX($A2:$A" & Me.UsedRange.Rows.Count & ")"
    Me.Range("B1").Formula = "=MIN($B2:$B" & Me.UsedRange.Rows.Count & ")"
    End Sub
    You can more detail about Excel VBA developing from link below:
    Getting Started with VBA in Excel 2010
    Welcome to the Excel 2013 developer reference
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Oracle 11gr2 deduplication or compression feature

    Hi All;
    The Oracle Database will be upgraded from current 9i to 11G for SAP .Does SAP support the Compression or deduplication feature which is used while creating the objects within the database.
    Secondly, is the compression or deduplication feature is allowed  for the existing objects within the database system.?
    Thirdly, is the compression or deduplication feature is applicable  in future for new objects .?
    Kindly provide a reply
    Regards
    Ram

    Hi Ram,
    The Oracle Database will be upgraded from current 9i to 11G for SAP .Does SAP support the Compression or deduplication feature which is used while creating the objects within the database.
    A. Both table and index compression are supported by SAP on Oracle 11g.
    Secondly, is the compression or deduplication feature is allowed for the existing objects within the database system.?
    A. It is allowed to compress the existing objects.
    Thirdly, is the compression or deduplication feature is applicable in future for new objects .?
    A. Yes, you can have the option enabled for the new objects to be created.
    Refer: Note 1289494 - FAQ: Oracle compression and Note 1436352 - Oracle 11g Advanced Compression for SAP Systems
    Br,
    Venky

  • Advaced compression in oracle 11g

    Hi,
    We are migrating databases from oracel 10g to 11g and we are using advance compression, i have few question please help me to understand
    1. if i enable compression on tables is index also get compressed if not how i can enable compression on indexes
    2.For table compression i will take the DDL of tables from oracle 10g databases and i create the tables in oracle 11g with COMPRESS FOR ALL OPERATIONS is this the right approach
    Appreciated the inputs
    thanks

    Hi,
    I checked for one of the table ALTER TABLE MOVE COMPRESS FOR ALL OPERATIONS after upgrading to 11g from 10g and rebuild the index
    SQL> select index_name,COMPRESSION,STATUS from dba_indexes where table_name='POSITION_CUBE';
    INDEX_NAME                     COMPRESS STATUS
    TEST                           DISABLED VALIDstill compress column in dba_indexes show disabled
    so i need to compress index also , how i can achive this
    Thanks

  • Oracle 11g new features

    I am unable to locate "Oracle 11g & 10g new features by Arup Nanda" at Oracle's website

    Do you mean
    http://www.oracle.com/technetwork/articles/sql/11g-asm-083478.html
    http://www.oracle.com/technetwork/articles/sql/11g-security-100258.html
    http://www.oracle.com/technetwork/articles/sql/11g-manage-101028.html
    Edited by: Chinar on Sep 21, 2010 10:38 PM

Maybe you are looking for

  • Indesign CC 2014 keeps crashing - cannot keep open

    I have followed all the troubleshooting, I have uninstalled and reinstalled many times, checked fonts. Nothing works. Overtime I try to open Indesign since the latest Creative Cloud update, it crashes. All other Apps work fine. It is only Indesign. M

  • IPod Classic Syncing Error

    I have an iPod Classic 80GB from a few years ago. and everything works well besides i cannot sync it or see my music that was on it before it started to have issues. I can still scroll throught the menus, so it is not the OS, but i cannot see my musi

  • How to resolve ORA-02298: cannot validate (%s.%s) - parent keys not found

    Hi, During the exp/imp process,i have tried to enable the constraints once the import done,but for some of the constraints am getting ORA-02298: cannot validate (%s.%s) - parent keys not found error,can anyone assist me what are all the possible ways

  • Drop down boxes like the ones used for dates don't work and hav'nt work for quite a while. What's going on?

    Drop down boxes have not worked for the last few revisions of Firefox. I've tried eliminating all add ons etc. bit to no avail. It does not seem like this should be such a big problem to fix, since these objects used to work fine in the past. I reall

  • Another "Sender Address Invalid"

    I have a few email contacts that intermittently will not send and some just will not send. And some take a variable amount of time to send, from a couple hours to a few days. Then they just magically take off. Often I hear them go in the middle of th