Base on the tablespace compression

11.2.0.2.0


I have a number of large paintings that I can compress because they either DML little or not go forward.  We have Enterprise edition, but not so advanced compression Im limited to compression in the license database.  Ive read the docs and reviewed JLs note Compression in Oracle & amp; #8211; Part 1: Base Table Compression & amp; #8211; All things Oracle

and I know how to create a table with a compression of base and understand that the only direct inserted data are compressed post compression.


Question, is possible to put compression based on a tablespace and add tables here as I see good or compression of base is at the level of the table?  I can't find a doc to say one or the other.

Hello

I think it works - I've never used this way (only on a per table basis), but the syntax allows

create tablespace default test compresses; -I use omf therefore no need of sizes or paths etc.

And it's on 10.2 before the existence of advanced compression.

Try it and see...

Kind regards

Rich

Tags: Database

Similar Questions

  • Defragmentation of the tablespaces?

    DB version: 11.2.0.4

    Platform: Oracle Linux 6.5

    3-node RAC DB

    We have a TB 23 DB, and we met some performance issues lately. Sound mainly due to poorly written queries, large volume of data in the result set,... etc. But, this application was asked at a meeting if I could check that storage space (not tables) are fragmented. Apparently, in his old store DBA there did some 'Defragmenting' of tablespaces for the same application solve some performance problems.

    To resize the data files, move to another tablespace DB objects so that the HWM in a particular data file is reset and then we could run the RESIZE command. But this isn't "defragmentation".

    In the thread below, Justin cave explains that "a managed tablespace locally cannot effectively be fragmented."

    That Justin is meant by that? Why have we not need "defragmentation" to locally managed Tablespaces?

    Since I worked on 11g, I don't know the history. Done, DBA do a sort of defragmentation for older versions?

    https://community.Oracle.com/thread/2508361

    In general, you don't need to defragment of LMT because they re - operate segments more effectively.  That assumes a particular definition of the fragmentation that don't understand what some people call "Gruyère" fragmentation, which means free space holes, spread across the tablespace.  Sometimes it is wise to reclaim this space, generally do not, since generally the trend is to use space.

    Many more details are in the link given Aman, but there are a few somewhat obscure situations where you would not automatically exclude the defragmentation:

    A tablespace that has been migrated from DMT could have a few deferred maintenance on the lookout for defragmentation.

    You might still have DMTs.  You shouldn't, but there is nothing no longer this deferred maintenance upgrades of version (I do not forget something hope).

    Some applications do stupid things like add and remove tables and if done in a strange order (as drop any other individual and adding more), can travel on limits of segment requirements (as Jonathan explains in some links on the moving objects until the beginning of storage spaces).

    It is also possible to be unlucky and have performance issues based on the distribution of physical data get worse by moving data autour.

    In general, Oracle did some good things, but be prepared to do an investigation of mind, when it is not.  It allows to be confident and knowledgeable on the bases then.  For the 'fragmentation' in particular, a Manager may well have been seduced by myths or the specific practices that don't apply generally. "Best practices" may suffer, too.

  • ORA-01659: impossible to allocate MINEXTENTS beyond 2 in the tablespace test

    Hello

    I created a table and tried to insert records over 2 million and I'm getting an error such as ORA-01659: impossible to allocate MINEXTENTS beyond 2 in the tablespace test.

    Used tablespace percentage is only 73%.

    I used below when creating table

    tablespace TEST

    PCTFREE 10

    INITRANS 1

    maxtrans 255

    Please suggest me how to solve this problem.

    Thank you

    Suri

    Hi @Suri

    I see no problem in storage settings in your table.

    But the number of rows helps you insert and in the free space in your tablespace.

    Perhaps too much space is needed for your data and storage space can not support.

    The only things you can do is the following:

    (a) try PCT_INCREASE to 0, this product extensions to equal size.

    (b) put the PCT_FREE less than the default of 10. But it is advisable if you make updates to your table.

    (c) maybe create your table with the clause compress, just for bulk inserts, but this depends on the use of the table.

    (d) ask your DBA to increase the data files of the TEST table space or add more data files.

    (e) using the package DBMS_SPACE, you can calculate the space used by your table in tablespace TEST. g 10 and later versions.

    See the following example:

    
    SQL> SET SERVEROUTPUT ON
    
     SQL> DECLARE
       lc_tablespace       VARCHAR2(100)  DEFAULT 'CC_TBSD001_MOVI_DOMICILIOS';
       lc_megabytes        SIMPLE_INTEGER DEFAULT 1024*1024;
       lc_estimated_rows   SIMPLE_INTEGER DEFAULT 45000000;
       lc_pct_used         SIMPLE_INTEGER DEFAULT 10;
    
       l_cost_columns           SYS.CREATE_TABLE_COST_COLUMNS;
       l_mbytes_to_be_used      NUMBER;
       l_mbytes_to_be_allocated NUMBER;
    BEGIN
      l_cost_columns := SYS.CREATE_TABLE_COST_COLUMNS(
                 SYS.CREATE_TABLE_COST_COLINFO('NUMBER'  ,15)
                ,SYS.CREATE_TABLE_COST_COLINFO('NUMBER'  ,10)
                ,SYS.CREATE_TABLE_COST_COLINFO('NUMBER'  , 4)
                ,SYS.CREATE_TABLE_COST_COLINFO('VARCHAR2', 6)
                ,SYS.CREATE_TABLE_COST_COLINFO('VARCHAR2', 4)
                ,SYS.CREATE_TABLE_COST_COLINFO('NUMBER'  , 1)
                ,SYS.CREATE_TABLE_COST_COLINFO('NUMBER'  , 4)
                                                      );
    
       DBMS_SPACE.CREATE_TABLE_COST(lc_tablespace
                                   ,l_cost_columns
                                   ,lc_estimated_rows
                                   ,lc_pct_used
                                   ,l_mbytes_to_be_used
                                   ,l_mbytes_to_be_allocated
                                   );
    
       l_mbytes_to_be_used      := l_mbytes_to_be_used/lc_megabytes;
       l_mbytes_to_be_allocated := l_mbytes_to_be_allocated/lc_megabytes;
    
       DBMS_OUTPUT.PUT_LINE('Megabytes to be used: '||TO_CHAR(l_mbytes_to_be_used));
       DBMS_OUTPUT.PUT_LINE('Megabytes to be allocated: '||TO_CHAR(l_mbytes_to_be_allocated));
    END;
    /
    

    A few ref, pleas read

    http://docs.Oracle.com/CD/B28359_01/server.111/b28286/clauses009.htm#SQLRF30013

    Hope this can help you.

    Kind regards

    Juan M

  • collect statistics for the tablespace

    Friends...

    OS: Linux

    DB: 11 GR 2

    Data size: 1 TB

    I spend monthly multiple partitioned table spaces and bring together in a single annual partition. (for example tbs_2014_01, tbs_2014_02 - tbs_2014_12... all combine them into tbs_2014 as a tablespace)

    Over the weekend, work of database gets executed that collects statistics that are obsolete, it collects all the segments that have been moved from the storage.

    Given that the collection of statistics at the end of the week takes too long, I tried to find a smart way to collect statistics after each tablespace move rather than waiting for job to weekend which will take two or three days to complete.

    1. is there a way to gather statistics at the tablespace level and collect statistics for all objects in this table space?

    2. how to determine the overall stats of collection of statistics part?

    That is, suppose I have move the tbs_2014_01 tablespace and collect statistics with global stats that could take 2 hours but it will be difficult to spend 2 hours for each stats global tablespace which in my opinion is not good and we should be collecting global stats only once.

    3. any other advice?

    977272 wrote:

    @sol.beach... Thanks for your comments...

    I've not been asked to collect statistics to the tablespace but level to collect statistics after that finish objects move in storage.

    Given the size of the data, it is difficult to gather all the statistics at the weekend so trying to understand another method to collect the statistics the weekend load will be less.

    You can collect statistics object on an object by object basis level after that each object has been moved.

  • Tablespace compression

    I have a tablespace compression based on that. I want to take 2 tables in the tablespace of compression off. Tablespace compression which will replace?

    Hello

    If you have noticed that too much CPU is used on the server for the update, remove the
    compression can help reduce CPU consumption.

    But as I posted previously, completely remove the compression on a Table to
    reload the data (for example with a MOVE), and this operation is quite heavy on the big
    Tables.

    Otherwise, the NOCOMPRESS apply only to the new inserted data. And, in this case, I'm not sure
    that update 'old compressed' data 'new nocompressed' datas will save a lot of CPU
    resources.

    Best regards
    Jean Valentine

  • How to find the tablespace

    Hello
    in 10g R2, DB is mounted and I get ORA-01177: data file is not dictionary - probably old incarnation
    ORA-01110: data file 123: ' D:\BASE\TEST\DATA\MYFILE. DBF'

    In what display find the tablespace of MYFILE. DBF?

    I want to drop this file to OPEN DATABASE RESETLOGS.

    Do you have another solution?

    Thank you.

    Check the TS # used for this data file from v$ datafile

    and from there, you can search for the name in the table space V$ for this data file.

  • everything except the tablespace from backup system

    Is there a way to everything except the tablespace from backup system without having to specify each individual tablespace?

    version is 10.1.0.5 on HP - UX itanium.

    The reason is the database has been updated since 7.3.4-> 8i - > 10.1.0.5 and we now migrate with RMAN to instead of the user managed backups however, we met a bug when save the index blocks in the system tablesapce this only impacts backupsets compressed so if I can exclude the system tablespace I can run two backups one uncompressed which captures the system tablespace , then another that captures everything. I would really avoid specifying storage space in a script that she then introduced the possibility of a tablespace is added and is not included in the backup.

    Unfortunately, if you want to do a full database backup, you will not be able to exclude the SYSTEM tablespace. With this in mind, you will have left with specifying the tablespace backups.

  • Tablespace compression does not work as I expect

    Database 11g, Enterprise edition.

    I have a problem, which allows automatic compression in a tablespace. Objects are created in the space of storage are not compressed, they get only tablets if I perform a DISPLACEMENT of ALTER TABLE on them or create them with the COMPRESSION option. I expect the option COMPRESS for all THE OPERATIONS specified at the level of the tablespace cascading down to tables, but this doesn't seem to be the case.

    Suppose I have a table T. It is this size:
    SQL> select segment_name, sum(bytes) from dba_extents where segment_name='T' 
      group by segment_name;
     
    SEGMENT_NAME    SUM(BYTES)
    --------------- ----------
    T                 16777216
    I have create a tablespace with COMPRESSION of all THE OPERATIONS:
    create tablespace TEST1 datafile '/u02/oradata/MYDB/test1.dbf'
      size 1024K autoextend on next 1024K maxsize unlimited 
      DEFAULT COMPRESS FOR ALL OPERATIONS
      extent management local
      segment space management auto;
    I create a copy of T in TEST1, but it does not compress:
    create table t1 tablespace test1 as select * from t;
    
    SQL> select segment_name, sum(bytes) from dba_extents where tablespace_name='TEST1' 
      group by segment_name;
     
    SEGMENT_NAME    SUM(BYTES)
    --------------- ----------
    T1                16777216
    Of course, if I create the table with the COMPRESSION option it compresses:
    drop table t1;
    
    create table t1 tablespace test1 compress for all operations as select * from t;
    
    SQL> select segment_name, sum(bytes) from dba_extents where tablespace_name='TEST1' 
      group by segment_name;
     
    SEGMENT_NAME    SUM(BYTES)
    --------------- ----------
    T1                14680064
    .. .but I want to automatically compress the objects created in the TEST1 table space to be. If you specify compress for each table, then create what is the good of COMPRESS for all THE OPERATIONS in the CREATE TABLESPACE statement?

    Thank you

    Fred

    It seems to work for me:

    SQL> create tablespace cfao datafile '+GROUP1' size 100m DEFAULT COMPRESS FOR ALL OPERATIONS;
    
    Tablespace created.
    
    SQL> create table x1 tablespace cfao as select * from dba_objects;
    
    Table created.
    
    SQL> create table x2 tablespace cfao compress for all operations as select * from dba_objects;
    
    Table created.
    
    SQL> select table_name, compression, compress_for from user_tables where table_name in('X1','X2');
    
    TABLE_NAME                 COMPRESS COMPRESS_FOR
    ------------------------------ -------- ------------------
    X1                      ENABLED     FOR ALL OPERATIONS
    X2                      ENABLED     FOR ALL OPERATIONS
    
    SQL> col segment_name for a10
    SQL> select segment_name, sum(bytes) from user_segments where segment_name in ('X1','X2')
      2  group by segment_name
      3  /
    
    SEGMENT_NA SUM(BYTES)
    ---------- ----------
    X1            524288
    X2            524288
    

    Fact the user_tables query show that compress_for = "for all THE OPERATIONS?

    --
    Kind regards
    Greg Rahn
    http://structureddata.org

  • Vista Home Premium will not read/recognize/burn HD videos taken with my Canon camcorder HDD21/AVCHD (MTS format). Results in the message stating "Windows Media Player may not supported file type or the codec that the file compressed.

    I have a Vista Home Premium 64-bit, Service Pack 2 Dell.  He read/won't recognise no videos HD taken with my Canon camcorder HDD21/AVCHD (MTS format).  Each attempt generates a message stating "Windows Media Player may not support the file type or the codec that the file compressed.  I used a Windows 7 PC, which allowed me to play the video from the camcorder and burn a DVD of the video to share with the family.  I'd appreciate any help.  Thank you

    Information on the types of media files that supports Windows Media Player
    http://support.Microsoft.com/kb/316992

    For better support please try the Microsoft Vista for photos and video forum instead. http://social.answers.Microsoft.com/forums/en-us/vistapictures/threads

  • access to the files compressed after disk clean

    I have Windows XP Media Center Edition Version 2002 SP3. Two nights ago, I ran Disk Clean Up and Defrag to improve speed. I used compress old files for the first time. Tonight I tried to access certain personal records and documents and they went. When I run a search for them, they are not accessible and are moved to the folder of My Documents and Settings or gone completely. I can only assume that this is due to the use "compress old files". How to access these compressed files?

    You say that you are missing a lot of files and folders...

    Compressed file always appears in a Windows search and will be in a default blue color.

    If you think the specific name of some of the files you are missing or part of the name, see if they find themselves in a search for Windows and if they do, where they are.  Adjust the search with more advanced options and tick the boxes in system folders search, search hidden files and folders, hidden files and folders, and search subfolders (this way it will look everywhere).

    Using Windows Explorer, navigate to the desktop, then the (Local Disk (C). assuming that XP is installed on your C drive

    Below, you should see the Documents and Settings folder, open then, and you will see a folder for each user on your system (and perhaps some that you do not recognize).  Each user has a folder under Documents and Settings.

    Double-click the folder associated with your user name (for example, Andrea) and you will see a My Documents folder that belongs to you.  Look in here and see what you can see if you understand how it works...  Look in my pictures, my videos, my music, etc and see if you see one of your items.

    Then go back up to the Documents and Settings folder and open the folder associated with the next user (even if you don't recognize it) and look in the Documents folder for this user (for example the Documents of Jose) and search there and see if you can locate your missing documents.  Repeat for all users folders Documents and see if you can find your stuff.

    I can't imagine what happened to your stuff, but thinking that perhaps your XP user profile has been corrupted somehow and when that happens, XP login with an account that works will record and you get connected, but this new account will have all the documents in it since they'll be in the Documents folder for another user whose profile corrupt (maybe).
    If this is the case, you can fix it, but you should see if you can find your stuff first.

    Anywho, use Windows Search to search for specific files or even wildcards as type names and see if you can determine if the files are actually missing or are just in other places when you are looking.

    I use the word "stuff" a lot today for a reason but that is my style of back.

  • I can decompress the files compressed by disk cleanup process?

    By mistake, I activate the option compress when I ran disk cleanup.

    The compressed window of my old picture and a video file that make my camera Media Player (not computer) does not recognize these files more.

    Can I return or unzip these files back to normal?

    Yes, right click on any compressed file or folder and select Properties.  On the property sheet, click the Advanced button and then deselect «Compress content...» ».

    John

  • I have microsoft net framework 2.0 service pack 2... and msnf 3.0 sp2... and msnf 3.5 sp1... and the microsoft compression client pack 1.0 for windows... should I all of this on my computer?

    I have microsoft net framework SP2 2.o... and sp2... msnf3.0 and msnf3.5 sp 1... and the microsoft compression client pack 1.0 for windows... should I all of this on my computer?

    See:

    What is the .NET Framework, and I need all these versions?
    http://ask-Leo.com/what_is_the_net_framework_and_do_i_need_all_these_versions.html

  • How can we decompressed the files compressed in disk cleanup? (Windows XP, SP3)

    How can we decompressed the files compressed in disk cleanup? (Windows XP, SP3)? I would like to do at once and not having to open each file, one at a time.

    Hi Johnm1938,

    Disk Cleanup tool detects removes the old compresses files unused for some specified duration and there is no way to decompress these files.

    You can use the method mentioned in the article for the unzip compressed on the computer.

    The use of the Compression of files in Windows XP

    http://support.Microsoft.com/kb/307987

  • x 200 got stuck in the base of the Ultra

    My laptop seems to be stuck in the base of the Ultra.  I unlock it, but it won't come out.

    Any suggestions?

    you know you have to pull the lever to release, right?  I think that it is on the left side towards the front.

  • How to submit an article to the knowledge base on the BlackBerry support community.

    How to submit an article to the knowledge base on the BlackBerry support community.

    http://supportforums.BlackBerry.com/T5/BlackBerry-App-world-development/how-to-create-your-own-Artic...

Maybe you are looking for