Space used by tables

in a production environment we are short of disk space. we need to know which tables are occupying the high amount of space from all the tablespaces present in the database, so that we can delete some data (if possible ) from those tables. any sql query to do this task in short amount of time.
Thanx in Advance.

Hi Abhishek,
"Seeking help is not a frailty".
Below query might help you.
COLUMN TABLE_NAME FORMAT A32
COLUMN OBJECT_NAME FORMAT A32
COLUMN OWNER FORMAT A10
SELECT owner, table_name, TRUNC(sum(bytes)/1024/1024) Meg
FROM (SELECT segment_name table_name, owner, bytes
FROM dba_segments WHERE segment_type = 'TABLE'
UNION ALL
SELECT i.table_name, i.owner, s.bytes
FROM dba_indexes i, dba_segments s
WHERE s.segment_name = i.index_name AND s.owner = i.owner AND s.segment_type = 'INDEX'
UNION ALL
SELECT l.table_name, l.owner, s.bytes
FROM dba_lobs l, dba_segments s
WHERE s.segment_name = l.segment_name AND s.owner = l.owner AND s.segment_type = 'LOBSEGMENT'
UNION ALL
SELECT l.table_name, l.owner, s.bytes
FROM dba_lobs l, dba_segments s
WHERE s.segment_name = l.index_name AND s.owner = l.owner AND s.segment_type = 'LOBINDEX')
WHERE owner in UPPER('&owner') GROUP BY table_name, owner HAVING SUM(bytes)/1024/1024 > 10 /* Ignore really small tables */ ORDER BY SUM(bytes) desc ;
Thanks and Regards,
Auroeis
Edited by: 939781 on Jun 27, 2012 2:19 AM

Similar Messages

  • Space Allocated and Space used for Table.

    Hi,
    Is there any way, we can find Space Allocated and Space used for Table wise.
    I know USER_TABLESPACES help use to find table space wise. But I would like to know, the space utilized by each table in the specific table space.

    Check this link from Tom Kyte about it.
    http://asktom.oracle.com/pls/asktom/f?p=100:11:2092735390859556::::P11_QUESTION_ID:231414051079

  • How Find space Used by Tables and Indexes

    Dear All(s)
    How i check space used (and number of rows) by each table and index in schema. ( can i check current space utilization and sysdate-date past in time)
    How i can check used, and free space for each database and tablespace.
    Thanks

    You can always use the search feature
    anyway
    how to calculate the percentage of free space for a table in Oracle
    Re: incorrect free space in dba_free_space
    These links could give you all the necessary info

  • Determine space used by table partitions

    Hello,
    I deal with a table that is made up of about 30 partitions. How can I determin (query) how much GB or TB those
    partitions actually use on the hard disk?
    Thanks

    You can use
    SELECT SEGMENT_NAME TABLE_NAME, PARTITION_NAME,
    SEGMENT_TYPE,
    SUM(BYTES)/(1024*1024) table_size_meg
    FROM dba_segments
    WHERE segment_type = 'TABLE PARTITION'
    AND owner = 'ownername'
    AND segment_name = 'table name'
    GROUP BY partition_name;Regards
    Renjith Madhavan

  • Determining the space used by data in a table at the granularity of bytes

    The SPACE_USAGE procedure of DBMS_SPACE package
    is meant for knowing space table with auto segment
    space management.
    It gives out 4 types of values fs1_blocks to
    fs4_blocks as the number of blocks which are filled
    25%, 50%, ....
    I tried it with different number of records (including)
    and empty table) but all 4 fields are always output as
    zero.
    Basically my aim is to know the actual amount of space
    used by my data in the table for both auto segment
    allocation and non auto mode.

    To have this kind of information I've used the function
    DBMS_SPACE.UNUSED_SPACE, that reporting:
    TOTAL_BLOCKS - data allocation space (in blocks)
    TOTAL_BYTES - data allocation space (in bytes)
    UNUSED_BLOCKS - allocated space but not used (in blocks)
    UNUSED_BYTES - allocated space but not used (in bytes)
    The difference between TOTAL_BYTES and UNUSED_BYTES is the REAL SIZE of your data.
    I don't know if you can use the same function for table with auto segment space management.
    Bye L.

  • Steps to Increase / adding New Table Space using BR TOOLS

    Hi
    Can Anyone Tell me the Step by Step Process for Increasing / Adding New Table Space using BRTOOLS.
    Any Demos/Blogs will be appreciated.
    Thanks in Advance.
    Rg
    Dan

    Hi Dan,
    <u><b>Adding a datafile using BRTOOLS</b></u>
    1) su – <b>ora<sid></b>
    2) start <b>brtools</b>
    3) Select option <b>2 -- Space management</b>
    4) Select option <b>1 -- Extend tablespace</b>
    5) Select option <b>3 --Tablespace name (specify tablespace name) and say continue(c- cont)</b>
    6) Select option <b>3 – New data file to be added and return</b>
    7) Select option <b>5 -- Size of the new file in MB (specify the size of the file) and say continue</b>
    regards,
    kanthi

  • Migrating from Informix 9.21 to Oracle 9.2.0.4(Using Existing Tables space)

    Hi
    I want to create tables & indexes on different tablespaces as planned. I have already created table spaces using OEM. (for a given schema different set of tables have to be created on diffrent tablespaces and so on)
    But,it appears,"OMWB Table Space Discoverer" is not much of useful. It allows to specify one for tables, one for indexes and TEMP. Is there anyway I can 'discover' all the tablespaces from the target and assign the tables & indexes to various tablespaces as planned.
    Any suggestions?
    Rgds
    Jeya

    Hi,
    I was unable to reproduce your problem. I carried out the following steps in attempt to replicate the issue:
    1. I launched the workbench, version 10.1.0.2, selecting the Oracle Lite "Default Repository".
    2. Using the Oracle Enterprise Manager Console, I created a user "rtdb" with the password "rtdb" on my target Oracle 9i database.
    3. I captured a test Informix database, generating its source and oracle models.
    4. I then proceeded to migrate the database to Oracle and supplied my target Oracle9i database information in the "Migration Wizard, Step 1 of 4: Destination Database Details", supplying rtdb/rtdb as the username/password.
    5. My test database migrated with no such error messages reported.
    If you carried out the migration steps as I have outlined above, and are still experiencing issues with a "Failed to connect" error, I would contact support.
    Regards,
    Hilary

  • How can I list used database/table size resp user space ? Compression after

    How can I list used + maximum tablespace/database/table size of an Oracle database ?
    How can I list the space used currently by a user resp. his tables+indizes ?
    By the way: If I delete a user or table from an Oracle database installation: are then only the entires deleted
    or is the space released as well ?
    In otherwords: After I deleted a user resp. table is it recommended to do something like a "compress" similarly to Outlook
    or other eMail clients to shrink really the occupied space on hard disc ?

    I hope this helps you
    select df.tablespace_name "Tablespace",
    totalusedspace "Used MB",
    (df.totalspace - tu.totalusedspace) "Free MB",
    df.totalspace "Total MB",
    round(100 * ( (df.totalspace - tu.totalusedspace)/ df.totalspace))
    "Pct. Free"
    from
    (select tablespace_name,
    round(sum(bytes) / 1048576) TotalSpace
    from dba_data_files
    group by tablespace_name) df,
    (select round(sum(bytes)/(1024*1024)) totalusedspace, tablespace_name
    from dba_segments
    group by tablespace_name) tu
    where df.tablespace_name = tu.tablespace_name;

  • 3-1674105521 Multiple Paths error while using Bridge Table

    https://support.us.oracle.com/oip/faces/secure/srm/srview/SRViewStandalone.jspx?sr=3-1674105521
    Customer Smiths Medical International Limited
    Description: Multiple Paths error while using Bridge Table
    1. I have a urgent customer encounterd a design issue and customer was trying to add 3 logical joins between SDI_GPOUP_MEMBERSHIP and these 3 tables (FACT_HOSPITAL_FINANCE_DTLS, FACT_HOSPITAL_BEDS_UTILZN and FACT_HOSPITAL_ATRIBUTES)
    2. They found found out by adding these 3 joins, they ended with circular error.
    [nQSError: 15001] Could not load navigation space for subject area GXODS.
    [nQSError: 15009] Multiple paths exist to table DIM_SDI_CUSTOMER_DEMOGRAPHICS. Circular logical schemas are not supported.
    In response to this circular error, the developer was able to bypass the error using aliases, but this is not desired by client.
    3. They want to know how to avoid this error totally without using alias table and suggest a way to resolve the circular join(Multiple Path) error.
    Appreciated if someone can give some pointer or suggestion as the customer is in stiff deadline.
    Thanks
    Teik

    The strange thing compared to your output is that I get an error when I have table prefix in the query block:
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Master table "SYSTEM"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
    Starting "SYSTEM"."SYS_IMPORT_FULL_01":  system/******** DUMPFILE=TMP1.dmp LOGFILE=imp.log PARALLEL=8 QUERY=SYSADM.TMP1:"WHERE TMP1.A = 2" REMAP_TABLE=SYSADM.TMP1:TMP3 CONTENT=DATA_ONLY
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    ORA-31693: Table data object "SYSADM"."TMP3" failed to load/unload and is being skipped due to error:
    ORA-38500: Unsupported operation: Oracle XML DB not present
    Job "SYSTEM"."SYS_IMPORT_FULL_01" completed with 1 error(s) at Fri Dec 13 10:39:11 2013 elapsed 0 00:00:03
    And if I remove it, it works:
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Master table "SYSTEM"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
    Starting "SYSTEM"."SYS_IMPORT_FULL_01":  system/******** DUMPFILE=TMP1.dmp LOGFILE=imp.log PARALLEL=8 QUERY=SYSADM.TMP1:"WHERE A = 2" REMAP_TABLE=SYSADM.TMP1:TMP3 CONTENT=DATA_ONLY
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    . . imported "SYSADM"."TMP3"                             5.406 KB       1 out of 2 rows
    Job "SYSTEM"."SYS_IMPORT_FULL_01" successfully completed at Fri Dec 13 10:36:50 2013 elapsed 0 00:00:01
    Nicolas.
    PS: as you can see, I'm on 11.2.0.4, I do not have 11.2.0.1 that you seem to use.

  • How to calculate the percentage of free space for a table in Oracle

    okay, I am a little confused here. I have been searching the web and looking at a lot of documents. What I basically want to find out is this, how do I calculate the difference between the number of bytes a table is using and the total bytes allocated to a table space (going that way to get percent free for a particular table). So I need a byte count of a table and total table space and the percentage difference. I have been looking at the DBA_TABLES DBA_TABLESPACES and DBA_SEGMENTS views. I have tried to calculated the space as num_rows * avg_row_len (if I am wrong, let me know). I have been trying to compare that calculation to the number in DBA_TABLESPACES and DBA_SEGMENTS. I am just looking for the total space allocated to the table space that the table sits in (seem logical right now) to make the percentage value work. Thus I want to be able to track the table as it grows as compated to the table space it sits in to see a value as it changes over time (days, weeks, etc.) each time I run this script I am working on.
    Can someone get me straight and help me to find out if I am looking in the right places. Any advice would help.
    Edward

    You can use a little modified version of dbms_space from Tom, show_space. Have a look,
    SQL> create table test222 as select * from all_objects;
    Table created.
    SQL> delete from test22 where rownum<=100;
    delete from test22 where rownum<=100
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL> delete from test222 where rownum<=100;
    100 rows deleted.
    SQL> analyze table test222 compute statistics;
    Table analyzed.
    SQL>  create or replace procedure show_space
      2  ( p_segname in varchar2,
      3    p_owner   in varchar2 default user,
      4    p_type    in varchar2 default 'TABLE',
      5    p_partition in varchar2 default NULL )
      6  -- this procedure uses authid current user so it can query DBA_*
      7  -- views using privileges from a ROLE and so it can be installed
      8  -- once per database, instead of once per user that wanted to use it
      9  authid current_user
    10  as
    11      l_free_blks                 number;
    12      l_total_blocks              number;
    13      l_total_bytes               number;
    14      l_unused_blocks             number;
    15      l_unused_bytes              number;
    16      l_LastUsedExtFileId         number;
    17      l_LastUsedExtBlockId        number;
    18      l_LAST_USED_BLOCK           number;
    19      l_segment_space_mgmt        varchar2(255);
    20      l_unformatted_blocks number;
    21      l_unformatted_bytes number;
    22      l_fs1_blocks number; l_fs1_bytes number;
    23      l_fs2_blocks number; l_fs2_bytes number;
    24      l_fs3_blocks number; l_fs3_bytes number;
    25      l_fs4_blocks number; l_fs4_bytes number;
    26      l_full_blocks number; l_full_bytes number;
    27
    28      -- inline procedure to print out numbers nicely formatted
    29      -- with a simple label
    30      procedure p( p_label in varchar2, p_num in number )
    31      is
    32      begin
    33          dbms_output.put_line( rpad(p_label,40,'.') ||
    34                                to_char(p_num,'999,999,999,999') );
    35      end;
    36  begin
    37     -- this query is executed dynamically in order to allow this procedure
    38     -- to be created by a user who has access to DBA_SEGMENTS/TABLESPACES
    39     -- via a role as is customary.
    40     -- NOTE: at runtime, the invoker MUST have access to these two
    41     -- views!
    42     -- this query determines if the object is a ASSM object or not
    43     begin
    44        execute immediate
    45            'select ts.segment_space_management
    46               from dba_segments seg, dba_tablespaces ts
    47              where seg.segment_name      = :p_segname
    48                and (:p_partition is null or
    49                    seg.partition_name = :p_partition)
    50                and seg.owner = :p_owner
    51                and seg.tablespace_name = ts.tablespace_name'
    52               into l_segment_space_mgmt
    53              using p_segname, p_partition, p_partition, p_owner;
    54     exception
    55         when too_many_rows then
    56            dbms_output.put_line
    57            ( 'This must be a partitioned table, use p_partition => ');
    58            return;
    59     end;
    60
    61
    62     -- if the object is in an ASSM tablespace, we must use this API
    63     -- call to get space information, else we use the FREE_BLOCKS
    64     -- API for the user managed segments
    65     if l_segment_space_mgmt = 'AUTO'
    66     then
    67       dbms_space.space_usage
    68       ( p_owner, p_segname, p_type, l_unformatted_blocks,
    69         l_unformatted_bytes, l_fs1_blocks, l_fs1_bytes,
    70         l_fs2_blocks, l_fs2_bytes, l_fs3_blocks, l_fs3_bytes,
    71         l_fs4_blocks, l_fs4_bytes, l_full_blocks, l_full_bytes, p_partition);
    72
    73       p( 'Unformatted Blocks ', l_unformatted_blocks );
    74       p( 'FS1 Blocks (0-25)  ', l_fs1_blocks );
    75       p( 'FS2 Blocks (25-50) ', l_fs2_blocks );
    76       p( 'FS3 Blocks (50-75) ', l_fs3_blocks );
    77       p( 'FS4 Blocks (75-100)', l_fs4_blocks );
    78       p( 'Full Blocks        ', l_full_blocks );
    79    else
    80       dbms_space.free_blocks(
    81         segment_owner     => p_owner,
    82         segment_name      => p_segname,
    83         segment_type      => p_type,
    84         freelist_group_id => 0,
    85         free_blks         => l_free_blks);
    86
    87       p( 'Free Blocks', l_free_blks );
    88    end if;
    89
    90    -- and then the unused space API call to get the rest of the
    91    -- information
    92    dbms_space.unused_space
    93    ( segment_owner     => p_owner,
    94      segment_name      => p_segname,
    95      segment_type      => p_type,
    96      partition_name    => p_partition,
    97      total_blocks      => l_total_blocks,
    98      total_bytes       => l_total_bytes,
    99      unused_blocks     => l_unused_blocks,
    100      unused_bytes      => l_unused_bytes,
    101      LAST_USED_EXTENT_FILE_ID => l_LastUsedExtFileId,
    102      LAST_USED_EXTENT_BLOCK_ID => l_LastUsedExtBlockId,
    103      LAST_USED_BLOCK => l_LAST_USED_BLOCK );
    104
    105      p( 'Total Blocks', l_total_blocks );
    106      p( 'Total Bytes', l_total_bytes );
    107      p( 'Total MBytes', trunc(l_total_bytes/1024/1024) );
    108      p( 'Unused Blocks', l_unused_blocks );
    109      p( 'Unused Bytes', l_unused_bytes );
    110      p( 'Last Used Ext FileId', l_LastUsedExtFileId );
    111      p( 'Last Used Ext BlockId', l_LastUsedExtBlockId );
    112      p( 'Last Used Block', l_LAST_USED_BLOCK );
    113  end;
    114
    115  /
    Procedure created.
    SQL> desc show_space
    PROCEDURE show_space
    Argument Name                  Type                    In/Out Default?
    P_SEGNAME                      VARCHAR2                IN
    P_OWNER                        VARCHAR2                IN     DEFAULT
    P_TYPE                         VARCHAR2                IN     DEFAULT
    P_PARTITION                    VARCHAR2                IN     DEFAULT
    SQL> set serveroutput on
    SQL> exec show_space('TEST222','SCOTT');
    BEGIN show_space('TEST222','SCOTT'); END;
    ERROR at line 1:
    ORA-00942: table or view does not exist
    ORA-06512: at "SCOTT.SHOW_SPACE", line 44
    ORA-06512: at line 1
    SQL> conn / as sysdba
    Connected.
    SQL> grant sysdba to scott;
    Grant succeeded.
    SQL> conn scott/tiger as sysdba
    Connected.
    SQL> exec show_space('TEST222','SCOTT');
    BEGIN show_space('TEST222','SCOTT'); END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00201: identifier 'SHOW_SPACE' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    SQL> exec scott.show_space('TEST222','SCOTT');
    PL/SQL procedure successfully completed.
    SQL> set serveroutput on
    SQL> exec scott.show_space('TEST222','SCOTT');
    Unformatted Blocks .....................               0
    FS1 Blocks (0-25)  .....................               0
    FS2 Blocks (25-50) .....................               1
    FS3 Blocks (50-75) .....................               0
    FS4 Blocks (75-100).....................               1
    Full Blocks        .....................             807
    Total Blocks............................             896
    Total Bytes.............................       7,340,032
    Total MBytes............................               7
    Unused Blocks...........................              65
    Unused Bytes............................         532,480
    Last Used Ext FileId....................               4
    Last Used Ext BlockId...................           1,289
    Last Used Block.........................              63
    PL/SQL procedure successfully completed.
    SQL>http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:5350053031470
    I use this to find the space allocations.
    Just read your post again,this is not going to show you the percentage of the free/used space. This is going to be the number of blocks which are free/used. For the growth trend, you can look at (in 10g) Oracle EM. It has added now,Segment Growth Trend report which can show you for each object,comparing to the allocated space to the object,how much space is being used by it.
    HTH
    Aman....

  • How can I add dots after text to fill the remaining space in a table cell?

    What is the most efficient way to add dots after text to fill the remaining space in a table cell? I know it is possible using tabs but is this possible using a table?

    You can put a tab inside a table cell using Option+Tab
    Then just set the right-aligned tab stop and the right edge of the table cell and add the leader.

  • Need to reclaim space from dwh tables.

    We have couple of large tables (> 200G) in one of the DWH schema. I need to reclaim space on the mountpoint.
    I have used ALTER TABLE <> MOVE COMPRESS; command to compress these tables.
    Now in dba_segments it is showing the improvement. 200g table came down to 60G. However I am not able to see any change in datafile and in mountpoint, I beleive due to the HWM.
    I tried shrink for the tables, it did not help.
    Could you please suggest any other approach.

    refer to
    http://jonathanlewis.wordpress.com/2010/01/30/free-space/
    http://jonathanlewis.wordpress.com/2010/02/06/shrink-tablespace/
    Anand

  • Iam using a table in numbers to plot daily graph lines. If I fill a cell with a text box  at say zero it plots the graph. I can't actually set the cell value until the actual day but the graph plots it at zero when I don't want it to plot anything. Is tho

    I am using a table in Numbers to plot daily graph lines. Mood swings of how I am on the day, i"m a depressive.
    If I fill a cell with a step box at say zero it plots the graph. I can't actually set the cell value until the actual day but the graph plots it at zero when I don't want it to plot anything. Is there a work around. so thatbgraph only plots on the day?

    The answer is (sort of) in your subject, but edited out of the problem statement in the body of your message.
    When you use a stepper or a slider, the value in the cell is always numeric, and is always placed on the chart if that cell is included in the range graphed by the chart.
    But if you use a pop-up menu cell, you can specify numeric or text values in the list of choices for in the menu. Numeric values will be shown on the chart. Text values will not.
    For the example, the values list for the pop-up menu was:
    5
    3
    1
    Choose
    -1
    -3
    -5
    The first pop-up was set to display Choose, then the cell was filled down the rest of the column. Any text value (including a single space, if you want the cell to appear blank) may be used instead of Choose.
    For charts with negative Y values, the X axis will not automatically appear at Y=0. If your value set will include negative values, I would suggest setting the Y axis maximum and minimum to the maximum and minimum values on your menu list, rather than letting Numbers decide what range to include on the chart. Place a line shape across the chart at the zero level, and choose to NOT show the X axis.
    Regards,
    Barry

  • How to reclaim the space used for LOBSEGMENT, which is growing fast

    Hi,
    DB version 10.2.0.2
    OS RHEL v4
    Envi RAC on ASM
    On the production, in one of the schemas (PR_AA) on the tablespace PR_AA, i have
    1) a table (Table1) which has 3 columns of CLOB datatype. Current size of this table is 65 GB.
    2) Two LOBSEGMENTS 85GB + 25GB =110GB
    3) about 10 Indexes of Table1 are of 15 to 17 GB
    Table1 is being purged on a daily basis, but still the tablespace is growing like anything ( now the over all size of the tablespace is itself 190GB).
    What i need is,
    Q1 . Ways to reclaim the purged space from the table1.
    Q2. How to shrink the table/ tablespace? Is it possible to do it online without impacting the users/business?
    Q3. How to shrink/maintain LOBSEGMENTS space, that is , how to control the size or reclaim the space from LOBSEGMENT after the daily purge on the Table1?
    Quick help is much appreciated and thank you in advance.
    Regards
    BPL666

    Check the below metalink note and you should be able to resolve all issue (Check atucal size, Calculate space used,Move LOBDATA..etc)
    Master Note - RDBMS Large Objects (LOBs) [ID 1268771.1]
    Hope this helps,
    Regards
    http://www.oracleracexpert.com
    Oracle RMAN New Features in 11g
    http://www.oracleracexpert.com/2011/12/oracle-recovery-managerrman-new.html
    RMAN Incrementally updated backups
    http://www.oracleracexpert.com/2011/12/rman-incrementally-updated-backups.html
    Edited by: Satishbabu Gunukula on Dec 22, 2011 1:11 PM

  • Use of tables and style sheet

    Hi all,
    I am strungling using tables in RoboHelp HTML 7, to generate
    webhelp.
    What I try to accomplish is using tables in RH, and have its
    formatting defined in a style sheet. The html code generated by RH
    should be nice and clean. If possible I would not like to go into
    the HTML code, I prefer the use of the Design editor.
    I have the following in a new file in the RoboHelp table
    gallery:
    quote:
    <table>
    <caption>CAPTIONTITLE</caption>
    <COL style="width: 5%;">
    <COL style="width: 40%;">
    <thead>
    <tr><th></th><th></th></tr>
    </thead>
    <tbody>
    <tr><td></td><td></td></tr>
    <tr><td></td><td></td></tr>
    <tr><td></td><td></td></tr>
    <tr><td></td><td></td></tr>
    </tbody>
    </table>
    The following is in the CSS file:
    quote:
    table {
    border: 2px #c0c0c0 solid;
    border-collapse: collapse;
    width: "100%";
    margin: 10px;
    td, th {
    border: 1px #c0c0c0 solid;
    padding-left: 5px;
    padding-right: 10px;
    text-align: left;
    vertical-align: top;
    th {
    background: #ffc000;
    When I insert a table into a page, using the table file I
    created above, the html looks like:
    quote:
    <table x-use-null-cells>
    <col style="width: 33.333%;">
    <col style="width: 33.333%;">
    <col style="width: 33.333%;">
    <tr><td style="padding-right: 10px; padding-left:
    10px;" width=33.333%>
    <p> </td>
    <td style="padding-right: 10px; padding-left: 10px;"
    width=33.333%>
    <p> </td>
    <td style="padding-right: 10px; padding-left: 10px;"
    width=33.333%>
    <p> </td></tr>
    <tr><td style="padding-right: 10px; padding-left:
    10px;" width=33.333%>
    <p> </td>
    <td style="padding-right: 10px; padding-left: 10px;"
    width=33.333%>
    <p> </td>
    <td style="padding-right: 10px; padding-left: 10px;"
    width=33.333%>
    <p> </td></tr>
    <tr><td style="padding-right: 10px; padding-left:
    10px;" width=33.333%>
    <p> </td>
    <td style="padding-right: 10px; padding-left: 10px;"
    width=33.333%>
    <p> </td>
    <td style="padding-right: 10px; padding-left: 10px;"
    width=33.333%>
    <p> </td></tr>
    </table>
    So, RoboHelp adds a number of styles to the inserted table
    that overrules the style sheet. That shouldn't be done.
    Also, in the RoboHelp editor the table looks different than
    in the preview. That shouldn't be a big deal, but something is
    missing:
    - There's no table caption shown.
    - The background in the table header is not colored as I
    expected to be.
    To eliminate the behavior of RoboHelp with respect to the
    table gallery, I created a new page in RoboHelp, and opened the
    HTML view. I inserted the following to create a new table.
    quote:
    <table>
    <caption>CAPTIONTITLE</caption>
    <COL style="width: 5%;">
    <COL style="width: 40%;">
    <thead>
    <tr><th></th><th></th></tr>
    </thead>
    <tbody>
    <tr><td></td><td></td></tr>
    <tr><td></td><td></td></tr>
    <tr><td></td><td></td></tr>
    <tr><td></td><td></td></tr>
    </tbody>
    </table>
    When switching to Design view and bach to HTML, it has been
    converted by RoboHelp to:
    quote:
    <table x-use-null-cells>
    <col style="width: 5%;">
    <col style="width: 40%;">
    <caption>CAPTIONTITLE</caption>
    <tr><th style="width: 5%;" width=5%>
    <p> </th>
    <th style="width: 40%;" width=40%>
    <p> </th></tr>
    <tr><td style="width: 5%;" width=5%>
    <p> </td>
    <td style="width: 40%;" width=40%>
    <p> </td></tr>
    <tr><td style="width: 5%;" width=5%>
    <p> </td>
    <td style="width: 40%;" width=40%>
    <p> </td></tr>
    <tr><td style="width: 5%;" width=5%>
    <p> </td>
    <td style="width: 40%;" width=40%>
    <p> </td></tr>
    <tr><td style="width: 5%;" width=5%>
    <p> </td>
    <td style="width: 40%;" width=40%>
    <p> </td></tr>
    </table>
    That seems ok, there are no styles redefined, other that the
    width.
    In Design view the table looks different than intended,
    however in preview it is as expected. I shows the caption tile, and
    the background of the table header, and text alignment is correct
    (at the top of each cell).
    So, my interpretation is that RoboHelp messes up the nice and
    neat html code when using the table gallery, and does not show the
    table in Design view as it would like in the Preview.
    As a consequence I think I will copy and paste the table code
    into the html directly, rather than using the table gallery.
    Unless, there's a good solution by using the table gallery.
    It would also be nice that the Design view behaves as a
    WYSIWYG editor.
    Has anyone an idea how I can use tables in RoboHelp as easy
    as possible, while keeping the benefits of style sheets?
    TIA,
    Andre
    BTW, my excuses for using quotes rather than attach code, but
    it seemed all code was added to the end.

    You should avoid locking yourself into a single solution for
    anything to do with RH (or any other help authoring tool, for that
    matter). Whether dealing with lists, tables, or images (the three
    major areas that usually create problems), it's wise to strike a
    balance between the features and drawbacks in HTML, CSS, RH, and
    web browsers.
    Confronted with the issue of changing border colors and table
    heading colors earlier this year (and having to do this for the 42
    projects in our merged WebHelp project), I simply used
    FAR to change the hex numbered
    colors in the code, outside of RH (from #808080 to #d8e4f8, for
    example). Some freeware products for content replacement are also
    available.
    If you've used those colors for other things, such as H1/H2,
    or other backgrounds, etc., you'll need to identify all table uses
    first, and then change only those instances. You could then set up
    a batch file to change all border-right-color: #808080;
    border-left-color: #808080; etc. all at once
    You could also just use the RH Multi-File Find & Replace
    if you're only dealing with a few projects, since these table
    attributes are likely to always appear as complete on a single line
    (the RH feature doesn't handle search and replace strings
    interrupted by line breaks and multiple spaces).
    All of our tables had been created using Rick's solution via
    the Table Gallery, and the background and border colors show up
    identically in Design, Preview, and output views. The only use of
    the css for our tables is the styling of the actual text that
    appears in the cells (TableHead, TableRow, TableSubHead), such as
    shown in the attached code below.
    BTW, another look at your original post shows that your claim
    that "RoboHelp adds a number of styles to the inserted table that
    overrules the style sheet," is not quite on the mark. The only
    change is that the
    "padding-left:" value has been increased from the CSS 5px to
    10px. I would guess that you have a 5px indent in either your BODY
    or P tag in the CSS, thereby resulting in the value being increased
    to the total of 10px.
    Good luck,
    Leon

Maybe you are looking for

  • Software update installation fails on 10.6.8 any ideas

    Since I upgraded my Intel IMac to a 2tb drive I've been getting the software update telling me there are two updates to load (involving a restart) the download works and the instalation appears to be normal until the restart when the system tells me

  • Playlist shuffle problems

    I'm having issues with playlist shuffling on my iPhone 4, and the only discussion I found with the same problem remained unanswered.  I have a playlist of various classical music that I want to shuffle randomly, and it won't.  If I play it in order,

  • PCUI: Automatically open a BP in change/create mode

    Hello all, From a custom i-view in the portal with some name and address fields, i would like to call accounts(business partner) change (if an account exists) or call account creation, automatically filling in some fields from my custom i-view. So th

  • Strange behaviour in K8N Neo2 platinum BIOS

    I have this board and recently got Crucial Ballistix Tracer 2GB kit that are rated at 2.8v. I'm running 1.8 bios on the motherboard and never had stability issues with my old memory Corsair 1024MB xlpro as they're only rated at 2.6 but since I got th

  • I want to place a jpeg graphic in illustrator without a white box

    Hi I have received a logo from another company for a flyer in a jpeg format. I want to place it in illustrator without a white box around the actual graphic as I am placing it on a coloured background. I am able to remove the white background using p