Internally (zip) Compress table content possible?

I have a database with approx 20 TABLEs which contain a lot of data.
This database is rarely used (once for some hours every couple of weeks).
When I generate SQL scripts (with INSERTs) to re-create the data the file size will be huge (approx 30 GB !!)
When I zip compress these SQL scripts they will shrink to approx 20 MB !!!
So the relationship between data size uncompress and compressed is remarkable 1:1500
In order to avoid a waste of disc space I am thinking to let Oracle compress the data internally as well.
The final solution should work something like:
1.) Start Oracle services
2.) Connect to databse
3.) Tell Oracle (through SQLplus command): "Hey Oracle, uncompress internally all tables
tab1, tab2, tab3,..., t20
4.) Perform some SQL operations SELECT, UPDATE,...
5.) Tell Oracle (through SQLplus command): "Hey Oracle, now re-compress internally all tables
tab1, tab2, tab3,..., t20 again
6.) Disconnect from database
7.) Shutdown Oracle services
Ok, I know compressing and uncompressing will take some minutes but this is acceptable for me.
Is this somehow possible?
Peter

Great! Thank you.
How do I enable TABLESPACE compression as it is mentioned on this page
http://download.oracle.com/docs/cd/E11882_01/server.112/e17120/tables002.htm#ADMIN11630
But when I go to the following page then there is no clause described for compression for TABLESPACEs
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_3002.htm
Is this a feature which needs to be explicitely enabled or is it build-in out-of-the-box in all version (Express, Standard, Enterprise) of Oracle?
Peter

Similar Messages

  • Deleting DB table contents using internal table

    Hi Gurus,
    I have a requirement of deleting DB table contents. Requirement is as follows,
    User will select the DB table description in the seletion screen using drop down list.
    Whichever description he selects,the corresponding table contents should be deleted and we should not hardcode the table name in if or case conditions.
    Is this possible?
    Regards,
    G.Srinivasan

    Hi,
    You can get the Table name from the desciption from table DD02T.
    Use the Key word DELETE to delete the contents of a table from program.
    PARAMETERS : p_ddtext type ddtext.
    select single * from dd02t into table db_tab where DDLANGUAGE = 'EN' and ddtext = p_ddtext.
    DELETE DB_TAB-TABNAME
    FROM ITAB. " Take F1 help on this Key word
    IMPORTANT --> Do not manually delete the contents of a DB table in SAP.
    The individual records only deleted through BDC or any other Acceptable Methods.
    Rest is left to you. Be careful about this activity. Take enough Authourizations/ Permissions or consult your BASIS or other team members.
    Cheerz
    Ram

  • Download database table content into internal table using Function Module?

    HI,
    Experts,
    I need a function module which can download ddic table content into internal table.
    Thank u ,
    Shabeer Ahmed.

    >
    shabeer ahmed wrote:
    > HI,
    > Experts,
    >
    > I need a function module which can download ddic table content into internal table.
    >
    > Thank u ,
    > Shabeer Ahmed.
    Hi Shabeer,
      We don't require a function module to download ddic table content to an internal table. We can use the SELECT statement for the same. Example would be:-
    DATA: <INTERNAL TABLE> type table of <DATABASE>.
    SELECT * FROM <DATABASE> into corresponding fields of <INTERNAL TABLE>.
    Also, function module might be required when you need the data from a remote system, but then it is the developer's task create this function module and the function module should be remote enabled function module.
    This remote enable function module should have the above SELECT query as its code.
    Many Regards,
    Ravi.

  • BRSPACE create new tablespace for compressed table

    Dear expert,
    I'm plannng to create new tablespace  PSAPCOMP for compressed table by brspace.
    the current total size of the tables that i want to compression is 1T.
    Now i have  2 question about the brspace script
    1.How big size should the PSAPCOMP be , let's say 500G?
    2. i'm confused about the datafile_dir value i should put (please refer to the attachment for current datafile_dir design)
    Could you help to correct/improve the scritpts as following?
    scriptA : brspace -f tscreate -t PSAPCOMP -s 5120 -a yes -i 100 -m 15360 -f sapdata4 -l 2 --> assign to sapdata4
    repeat scriptB for 20 times
    scriptB : brspace -f tsextend -t PSAPCOMP -s 5120 -a yes -i 100 -m 15360 -f sapdata4 -l 2 -f1 4 -f2 4 -f3 4 -f4 4 -f5 4 --> extend 25G in one run
    Qestion: is it OK to assign the PSAPCOMP only to "sapdata4"? or i should specify "-f sapdata1 sapdata2 sapdata3 sapdata4" so the table data can distribute among different sapdata_dir?
    Thank you!

    hi Kate,
    some of the questions depend on the "customer" decision.
    is it OK to assign the PSAPCOMP only to "sapdata4"?
    how much space is available? what kind of storage do they have? is totally stripped or not? is there "free" space on the other filesystems?
    1.How big size should the PSAPCOMP be , let's say 500G?
    as I explained to you already, it is expected that applying all compressions you can save 1/2 of the space but you have to test this as it depends on the content of the tables and selectivity of the indexes. Use the oracle package to simulate the savings for the tables you are going to compress.
    do you want the scripts interactive (option -c) or not?
    The SAP Database Guide: Oracle has all possible options so you only have to check them
    brspace -f tscreate -t PSAPCOMP -s 5120 -a yes -i 100 -m 15360 -f sapdata4 -l 2 --> assign to sapdata4
    if you want to create a 500 GB, why you limit the maximum size to 15360?

  • Compress nonclustered index on a compressed table

    Hi all,
    I've compressed a big table, space has been shrunk from 180GB to 20GB using page compression.
    I've observed that this table has 50GB of indexes too, this space has remanied the same.
    1) is it possible to compress nonclustered index on an already compressed table?
    2) is it a best practice?

    ALTER INDEX...
    https://msdn.microsoft.com/en-us/library/ms188388.aspx
    You saved the disk space, that's fine, but now see if there is some performance impact on the queries, do you observe that any improvement in terms of performance?
    http://blogs.technet.com/b/swisssql/archive/2011/07/09/sql-server-database-compression-speed-up-your-applications-without-programming-and-complex-maintenance.aspx
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How to archieve table contents?

    Hi All,
    I want to archieve (move) some DB table contents to another custom table. I got to know that some 'Relocation Program' has to be run to move this contents. The same can be revert back to original table after re-running the relocation program.
    Please let me know if you know that program name. Otherwise just let meknow if you have any other good approach in place.
    Thanks & Regards,
    Suman

    need small program
    select entries from standard table to internal table
    insert Ztable with internal table. if both tables are same strctures......

  • How do I ZIP compress existing TIFF tiles in Lightroom 3?

    I have imported about 1000 .tif files into Lightroom and done some cropping and basic editing to them. They are 8bit uncompressed tiff files in Adobe1998 color space. I am trying to find a way to compress the original tiff files with ZIP compression in Lightroom. I don't want to export them because I want to save the original files and their edit history. I don't want to loose the original files before I cropped or color corrected them. I just want to reduce file sizes. Does anyone know how to do this?
    Thanks so much for your help!

    You can´t compress original files into zipped files within Lightroom.  If you are not actively using these images in LR, you may wish to zip them all up outside LR and then delete the originals. LR will then show them as missing, but will keep the metadata, including editing history, in the catalog.  You could write the metadata to xmp files before you zip up your originals, and include these xmp files with the originals in the zipped folder, if you want to play it really safe.  It is not necessary to keep the originals around as such.  LR keeps track of what they were and what had been done to them internally, even if they are missing.  When you need to work with these files again in LR, you can unzip them and show LR where they are.

  • Table content alignment in SAP Scripts

    000010       MAG DX 17P           7,000                   PC     1.520,00       10.640,00
    000020       mag pa/dx  175             6,000             PX     1.599,00       9.594,00
    000030       MVC MULTI SYNC XV15      5,000      PC     2.301,00       10.155,00
    000040       MVC MULTI SYNC XV   17   1,000      PC     2.389,00        2.389,00       
    The above is the output i got...
    table i hv used is VBAP
    POSEX  -  6
    ARKTX  -  40
    KWMENG  - 15
    MEINS - 3
    NETPR - 11
    ZWERT - 13
    TABS i hv specified in paragraph format is 1,7,47,62,65,76,89....
    i hv compressed the kwmeng,netpr,zwert field as it has leading zeros....
    How to arrange the table contents in proper order?
    how to wrap the ARKTX field contents as it is too long for certain vbeln values...i think its the reason y im nt getin o/p in proper format......
    Is there any mapping need to be done for CURRENCY & QUANTITY fields as we do in smartforms....if so pls provide needful help...

    If i try these tab values am getting it as such.....
    000010 MAG DX 17P  7,000                                 PC                           1.520,00  
    10.640,00
    000020 mag pa/dx    175 6,000                            PX                           1.599,00
    9.594,00
    000030 MVC MULTI SYNC XV15     5,000           PC                            2.301,00
    10.155,00
    000040 MVC MULTI SYNC XV 17      1,000         PC                            2.389,00
    2.389,00
    i think the problem is with the field "item decription"- ARKTX.......
    In smartforms there is a tab to map with currency and quantity fields ,is there anything as such in sap scripts?

  • Delete all the database table content

    Hello Friends,
    I have a z table with 5 fields (all the key fields) and I want to delete all the table content and load fresh content from internal table.
    I tried using syntax 'delete ztable' but sy-subrc value is coming as 4, means no table content is getting deleted.
    Please suggest me any alternative way to delete all the database table content.
    Thanks in advance,
    Shreekant

    Hi,
    try using
    delete from ztable.
    This will delete all records from your ztable. After this command u can fill your ztable from itab by the following command
    select *
    from std table
    into corresponding fields of itab.
    insert ztable from table itab.
    Hopefully this will solve your problem.
    Regards,
    Ibrar

  • Table contents to exel

    I need steps to export internal table content to excel.

    >
    Divya Bose wrote:
    > I need steps to export internal table content to excel.
    You could always use the ALV component instead of the table. There is a very nice export to Excel function built right in.

  • ALV list table Contents

    I am trying to figure out how to get to the actual list used when ALV displays the data in the ALV container. 
    I need access to this list to determine the order of the records so I can correctly match error messages with the line they apply to.  Things get messed up when the user sorts or filters the data and the original context table that contains the data is not affected by these actions.
    I have been able to find the table contents in debug mode but they are in a protected attribute and I have not found a method that will return the information.   I am sure I saw this done somewhere but I cannot remember where.
    If anyone has the sequence of calls to get to this data I would appreciate it .
    Glenn

    Hi Glenn!
    In my case it worked like that:
    1. i filled a context node for the alv data
    2. afterwards i called the ->set_data-method of the alv with the context node
    3. then the user sorts the alv data within the GUI
    4. after the user selects an action i accessed the context node via
        CALL METHOD node_xxx->get_elements
        RECEIVING
          set = elements_xxx.
    5. i put these elements into an internal table:
      LOOP AT elements_xxx INTO element_xxx.
        CALL METHOD element_xxx->get_static_attributes
          IMPORTING
            static_attributes = lf_xxx.
        APPEND lf_xxx TO lt_xxx.
      ENDLOOP.
    6. now the internal table lt_xxx contains the sorted data
        (as the user sorted it in the GUI) of the alv grid
    Greetings
    Frank

  • Internal Zip Drive and Internal DVD Burner Question:

    Where can I find an internal Zip drive for my b&w g3 desktop?
    Or should I just get an external USB or 1394 Zip drive?
    +(I have a 20gb hard drive that doesn't have its computer anymore and I connected it to a Gateway 2000 and the hard drive has Windows 98 SE with lots of files...jpegs for example...and I am going to get the files off of the hard drive before I erase it and put it on another desktop. The only way I can get it off is with a Zip drive. The USBs wouldn't work).+
    Besides that one reason, I was going to get an internal Zip Drive for my Apple desktop anyways.
    I have a DVD Rom in the apple desktop. I also want to upgrade it to a DVD Burner / DVD+R/RW or whatever it is called. Is that possible?
    Message was edited by: In-Correct

    I have a B&W G3/400 purchased in '96 which I've upgraded with the PowerLogix 1.1 GHz Zif Upgrade. When Apple introduced OSX I also installed and ATA hard drive, and a few years ago I replaced the original Apple CD ROM with a Pioneer DV D-RW DVR-111D (which surprisingly burns DVD's faster than my new iMac 2.8GHz Intel Core2 Duo). The Pioneer DVD burner works like a charm. There were no issues at all when it came to the instyallation: rebooting, reading installation CD's or what have you. It was true, PLUG & PLAY.
    The G3 is currently running:
    1) OSX 10.4.11, on an ATA drive (Maxtor 6L100PO; 93.37GB) &
    2) MAC OS 9.2.2 on the original equipment 9GB SCSI Drive
    The G3 cannot take advantage of the ZIF processor upgrade in OSX 10.4.11, and I am in the process of downgrading OSX to 10.4.9 so that I can take advantage of the faster processor. According to PowerLogix the ZIF upgrade is not compatible with a later version of OSX after 10.4.9 as they have been unable to keep up with the changes Apple has been making in the OS.
    I hope this helps.

  • Eroro while tryin gto see the setup table content

    HI gurus,
    i would like to see the setup table content for 2lis_11_vahdr.
    when iam trying to got to T-cOde -OLI11BW it is saying that " No extract structure is activated or bw not connected" , i checked that extract structure is in active state . plase let me know the possible causes for this error.
    Praveen

    hello praveen
    u can see the setup table contents in SE11
    give table name as MC11VA0HDRSETUP for header level
                                MC11VA0ITMSETUP  for itm level
                                MC11VA0SCLSETUP for scl level.
    and one more OLI7BW IS FOR STATISTICAL SETUP OF SALES ORDER DS.                          
                     OLI8BW IS FOR STATISTICAL SETUP OF SD DELIVERY DS.                          
                     OLI9BW IS FOR STATISTICAL SETUP OF SD BILLING DS.
    PLS AGGIGN POINTS IF IT WORKS FOR U,
    THANKS,
    PAVAN.
    Edited by: pavan kumar on Feb 15, 2008 8:47 AM

  • Sending Web Dynpro table contents via Email

    Hi,
    I have a requirement where in I need to send an email from the Web Dynpro Application.
    I am using JavaMail for this purpose. And I am able to send text messages to the required Email Id.
    But my requirement is that I need to send the contents of one of the Web Dynpro table along with the text message.
    Is it possible to send the table contents via mail?
    Kindly let me know if there is any other approach.
    Regards,
    Shilpa B.V

    Hi,
    I don't think there are any methods in IWDTable or the IWDNode which can dump entire data on to something which we can pickup.
    The only way is to iterate through the elements in the node and construct a big string buffer with HTML Table code and include the other part of the mail also in the same string buffer as html. Then set the MIME type of your mail to HTML and send the mail.
    Check sending HTML content via email
    http://java.sun.com/developer/onlineTraining/JavaMail/contents.html#ProcessingHTMLMessages
    Regards
    Srini

  • Asynch RFC Sender to File Receiver Szenario (table content)

    Hi,
    I have the following szenario: RFC(R/3) => XI => File
    At the moment I implemented the following:
    1. Z-Report in R/3 calls a function module:
         CALL FUNCTION 'Z_RFC_TO_XML'
            IN BACKGROUND TASK
            DESTINATION xi_dest
            EXPORTING
              it_table = it_table.
          COMMIT WORK.
    2. The RFC Sender Adapter on XI takes the RFC data and convert it to RFC-XML
    3. There is a message mapping from RFC-XML to XML-Structure
    4. The File Receiver Adapter write the XML document to the file system
    The scenario is working without error and the file is created. But on R/3 side the it_table is filled with 20 rows before the function module Z_RFC_TO_XML is called. But on xi side I only receive one row (the header line).
    Is it possible to transmit the whole table content to xi and not only one row? And if yes, how can I do this?
    Thanks,
    manuku

    Hi Tobias,
    Currently am doing this scenarioa RFC to file
    CALL FUNCTION 'Z_RFC_TO_XML'
    >         IN BACKGROUND TASK
    >         DESTINATION xi_dest
    >         EXPORTING
                p_werks = 'Plant no'
               TABLES
    >           it_table = it_table.
    >       COMMIT WORK.
    But here am using Exporting and Tables parameter.. When i debug this FM, the debugger is not going to the FM.
    Can you help me in solving this issue....
    Thanks and Regards,
    Vijay vikram

Maybe you are looking for

  • Can't get ipod touch to sync manually!

    I have a new 16 gig ipod touch, which I'd like to sync with content on both my home and work computers. I have an iMac G5 at home (running 10.5) and a Macbook at work (running 10.4.10). I also have the latest version of itunes on both machines. I've

  • PRICE AND QTY VARIANCE IN INVOICE

    THERE'S A SCENARIO QUANTITY AND PRICE VARIANCE DURING INVOICE: PO QTY - 10 PO PRICE  - 100/PC INVOICE BY VENDOR QTY - 5 PRICE - 110/PC GR QTY - 4 AFTER SETTLING THE ABOVE AGAIN A INVOCE COMES FRM VENDOR QTY - 6 PRICE - 120/PC IN THE ABOVE CASE HOW VL

  • IOS 7.0.3 iMessage

    Still an issue.  I txt my wife and when she resplys her txt comes back in a whole new conversation.  Sometimes I have to restart my phone and I'll get her messages after the restart.  Great job Apple!! Feel like I have Droid again.  Anyone else havin

  • Mac OS compatibility and earlier versions of PS Elements?

    1. Is there a chart of Mac system requirements for ealier versions of PSE? 2. I can use Bridge from PSE 6 with the Editor from PSE 10. Does anyone have any ideas on the functionality of features of different versions? I like the Editor from 10, but c

  • How to stop IDoc jobs?

    Dear Sir,   We transfered master data from PRD to QAS by ALE. Since the data is huge, I cease the process on PRD but there were already many IDocs received by QAS. It seems fork many...many...many jobs to deal with these Idocs and they occupied all t