Tablespace fragmentation problem

All,
I am working in Oracle 9i. Developers are facing some problem. Oracle is throwing ORA-1654 error. There is enough space in the tablespaces. To me it seems to be fragmentation problem. I found one query on some site and executed in my environment.
SQL> select substr(ts.name, 1,10) TableSpace,to_char(f.file#,990) "file #",tf.blocks blocks,sum(f.length) free,to_char(count(*),9990) frags,max(f.length) bigst, to_char(min(f.length),999990) smllst,round(avg(f.length)) avg,to_char(sum(decode(sign(f.length-5), -1, f.length,0)),99990) dead from sys.fet$ f, sys.file$ tf, sys.ts$ ts where ts.ts# = f.ts# and ts.ts# = tf.ts# group by ts.name, f.file#, tf.blocks;
TABLESPACE file BLOCKS FREE FRAGS BIGST SMLLST AVG DEAD
GAP_ARC 7 15360 8239 108 6099 20 76 0
GAP_BILD 8 256000 223804 3655 77909 5 61 0
GAP_DATA 9 230400 48267 211 3937 5 229 0
GAP_GEN 10 192000 86156 902 52178 1 96 3
GAP_IMP 11 38400 37669 14 37399 10 2691 0
GAP_INDEX 12 230400 96408 3557 506 1 27 5335
GAP_INDEX 12 409600 96408 3557 506 1 27 5335
GAP_INDEX 13 230400 56120 1611 495 2 35 2627
GAP_INDEX 13 409600 56120 1611 495 2 35 2627
GAP_ZNZL 14 1920 1919 50 515 10 38 0
RBS 3 51200 30479 871 35 29 35 0
RBS_BIG 4 76800 63929 157 43649 130 407 0
SYSTEM 1 25600 25952 2 12976 12976 12976 0
SYSTEM 2 25600 22728 20 11321 2 1136 12
TEMP 5 64000 58279 252 25649 130 231 0
TOOLS 6 6400 6384 1 6384 6384 6384 0
16 Zeilen ausgewählt.
From the output it seems GAP_INDEX has some fragmentation problem. Can somebody suggest, what the output means particularly the "DEAD" one.
And also, how to do the fragmentation ??
Thanks for help.
Regards,
Rajeev

I haven't taken the time to study the query in depth but I think 'dead' is an attempt to identify free exents that are too small to be used.
The original post leaves out some very important information such as the type of tablespace space allocation in use: dictionary vs local with auto-allocate or uniform extents.
As one poster noted if you use locally managed tablespaces wtih uniform extents then free space fragmentation by definition cannot exist.
With auto-allocate and dictionary mangement it can. Auto-allocate generally extents the time till a tablespace's free space becomes fragemented such that the space is not usuable and contains logic to reclaim via reuse but with the right combination of very small and very large objects the problem can still exist.
Dictionary management is almost bound to lead to free space fragmentation conditions for an active system though the adoption of a proper extent sizing policy can help: initial = next with pctincrease = 0 for all objects in a tablespace and the extent sizes for the larger objects being an even multiple of the small object extent size.
For auto-allocate and especially dictionary management when free space gets low the options are re-create the objects to consolidate all free space into a few large contiguous chunks or add another file. Sometimes you can relocate an object whose extents can then be reused by other objects. With uniform extents moving an object to another tablespace always creates fully reusable free space. Since objects should be where you want them the only real option then is to add free space is to add a file. Managing free space in a uniform extent environment then is genarally very straight forward.
HTH -- Mark D Powell --

Similar Messages

  • How we find tablespace fragmentation and resolve this problem

    Hi,
    How we find tablespace fragmentation and resolve this in 10 G (R2) windows XP.
    Regards
    Faheem

    Hi,
    >>Are you using Dictionary Managed or Locally Managed Tablespaces...??
    In fact, there is no way to create a DMT if SYSTEM tablespace is LMT. So, what I said in my previous post "Unless the OP is using DMT ..." is impossible in Oracle 10g ...
    SQL> create tablespace tbs_test
      2      datafile '/u01/oradata/BDRPS/test01.dbf' size 5m
      3      extent management dictionary;
    create tablespace tbs_test
    ERROR at line 1:
    ORA-12913: Cannot create dictionary managed tablespace
    SQL> select extent_management from dba_tablespaces
      2  where tablespace_name='SYSTEM';
    EXTENT_MAN
    LOCALCheers
    Legatti

  • What is  tablespace fragmentation?

    hello all,
    please,give me more detail about tablespace fragmentation .i want to know when tablespace fragmentation occur? thanks all in advance for response.

    first thanks u and all for give me response and this wonderful link but i have a doubt which i want to ask ,when table is dropped,or truncated or raw of table is deleted then free extents is available for another request, if a request is made for an extent allocation that cannot be found in one free contiguous extent even though the total free space in the tablespace may be significantly larger than the requested size. is this a fragmentation problem?

  • Checking Tablespace Fragmentation...

    Folks,
    Can someone share a high-end script for Checking Tablespace Fragmentation that shows exact numbers/values?
    The one I have shows only yes or no..
    Pasting my script below:
    Prompt Fragmentation Level in the db
    Prompt
    TTitle left "*** Fragmentation Level in the db (As of:"xdate ") from mtdb" skip2
    SELECT dfsc.tablespace_name tablespace_name,
    DECODE (
    dfsc.percent_extents_coalesced,
    100,
    (DECODE (
    GREATEST ((SELECT COUNT (1)
    FROM dba_free_space dfs
    WHERE dfs.tablespace_name = dfsc.tablespace_name),
    1),
    1,
    'No Frag',
    'Fragmented'
    'Possible Honey Comb Frag'
    fragmentation_status
    FROM dba_free_space_coalesced dfsc
    ORDER BY dfsc.tablespace_name
    ttitle off
    results:
    TABLESPACE_NAME FRAGMENTATION_STATUS
    IIS_TABS1 No Frag
    IIS_TABS2 No Frag
    IIS_TABS3 Fragmented
    IIS_TABS4 No Frag
    IIS_TABS5 No Frag
    regards,
    Lily

    Can you explain what, exactly, you mean by "tablespace fragmentation"? Assuming you are on a recent version of Oracle and using locally managed tablespaces (LMT's), fragmentation in the sense of having a chunk of space on disk that cannot be reused because it is too small is all but impossible. Technically, it is still possible in a LMT with automatic rather than uniform extent allocation, but it is exceptionally difficult in practice to come up with such a scenario.
    Tablespace fragmentation was a potential problem in long-ago days when there were dictionary-managed tablespaces (DMT's) when individual objects could have different extent allocation policies and PCTINCREASE could be specified. The solution back then was to set INITIAL = NEXT = <<some reasonable constant>> and PCTINCREASE = 0 and simulate the uniform extent allocation option of LMTs.
    Justin

  • Tablespace fragmentation

    Hi All,
    How can I identify the tablespace is fragmented or not?
    If fragmented how can I resolve the issue while production database is up & running.
    Thanks in advance...

    REM     This script measures the fragmentation of free space
    REM     in all of the tablespaces in the database and scores them
    REM     according to an arbitrary index for comparison
    REM     
    REM               largest extent     100
    REM     FSFI = 100 * sqrt(------------------) * (-------------------------------)
    REM               sum of all extents sqrt(sqrt((number of extents)))
    REM     
    REM     FSFI - Free Space Fragmentation index
    REM     The largest possible FSFI (for an ideal single-file tablespace) is 100
    REM     As the number of extents increases, the FSFI rating drops slowly. As the size of
    REM     the largest extent drops, however, the FSFI rating drops rapidly.
    select          tablespace_name
    , file_id
    ,          sqrt(max(blocks)/sum(blocks)) *
              (100/sqrt(sqrt(count(blocks)))) fsfi
    from          dba_free_space
    group by     tablespace_name, file_id
    order by     1,2;
    You can move object to another tablespace and rebuild the associated indexes for tablespace fragmentation.
    Drop the old tablespace.
    Also you can go for export/import.
    Regards
    Asif Kabir

  • Best way to correct Tablespace fragmentation?

    Dear DBAs,
    The following query returns tablespace fragmentation:
    select
    tablespace_name,
    count(*) free_chunks,
    decode(
    round((max(bytes) / 1024000),2),
    null,0,
    round((max(bytes) / 1024000),2)) largest_chunk,
    nvl(round(sqrt(max(blocks)/sum(blocks))*(100/sqrt(sqrt(count(blocks)) )),2),
    0) fragmentation_index
    from
    sys.dba_free_space
    group by
    tablespace_name
    order by
    2 desc, 1;
    I have 3 tablespaces that are Locally Managed and suffer heavyt fragmentation. I just received the task of tuning this database and from what I could tell the fragmentation originated from a number of bad practices from past DBAs and also, some bizarre structures in certain tables.
    My question is: what would be the best way to correct tablespace fragmentation LMT? I'm thinking export - drop - import to reorganize all blocks within the tablespace?

    Alvaro wrote:
    Dear DBAs,
    The following query returns tablespace fragmentation:
    select
    tablespace_name,
    count(*) free_chunks,
    decode(
    round((max(bytes) / 1024000),2),
    null,0,
    round((max(bytes) / 1024000),2)) largest_chunk,
    nvl(round(sqrt(max(blocks)/sum(blocks))*(100/sqrt(sqrt(count(blocks)) )),2),
    0) fragmentation_index
    from
    sys.dba_free_space
    group by
    tablespace_name
    order by
    2 desc, 1;
    I have 3 tablespaces that are Locally Managed and suffer heavyt fragmentation. I just received the task of tuning this database and from what I could tell the fragmentation originated from a number of bad practices from past DBAs and also, some bizarre structures in certain tables.
    My question is: what would be the best way to correct tablespace fragmentation LMT? I'm thinking export - drop - import to reorganize all blocks within the tablespace?In addition to what everyone else notes is the unlikelihood of fragmentation, there may be implicit compaction and skew in your data distribution that could be impacted by export/import. For better or worse.
    What bad practices are you referring to? Sometimes practices are inappropriate, sometimes useless, sometimes perfectly understandable. If you don't know about the fragmentation issue, I wonder how well you judge practices. And yes, there are some really bad practices floating about.

  • What is the difference between Table & Tablespace Fragmentation

    What is the difference between Table Fragmentation & Tablespace Fragmentation.
    What causes Table Fragmentation and what cause Tablespace Fragmentation.
    How can we avoid Table Fragmentation & Tablespace Fragmentation.
    How can we fix already Fragmented Tables & Fragmented Tablespaces
    Thanks
    Naveen

    Unless you are using an exceptionally old version of Oracle or are still using dictionary managed tablespaces or are using some interesting definitions of "fragmentation", fragmentation is practically impossible in Oracle.
    Justin

  • Removing Tablespace fragmentation in 10g

    i have a problem with a tablespace space that is highly fragmented . It's locally managed with PCT_INCREASE set to 0. How can i reduce the fragmentation in this tablepsace
    Free/Used Space Report :
    Tablespace                        Used MB    Free MB   Total MB  Pct. Free
    FRP_I01                            158556      44625     203181         22
    select PCT_INCREASE,EXTENT_MANAGEMENT,SEGMENT_SPACE_MANAGEMENT from dba_tablespaces where TABLESPACE_NAME='FRP_I01';
    PCT_INCREASE EXTENT_MAN SEGMEN
               0 LOCAL      AUTO
    fragmentation report :
    select
      2  tablespace_name,
      3  count(*) free_chunks,
    decode(
      4    5  round((max(bytes) / 1024000),2),
      6  null,0,
      7  round((max(bytes) / 1024000),2)) largest_chunk,
      8  nvl(round(sqrt(max(blocks)/sum(blocks))*(100/sqrt(sqrt(count(blocks)) )),2),
      9  0) fragmentation_index
    10  from
    11  sys.dba_free_space
    12  group by tablespace_name
    13  having tablespace_name='FRP_I01'
    14  order by
    15  2 desc, 1;
    TABLESPACE_NAME                FREE_CHUNKS LARGEST_CHUNK FRAGMENTATION_INDEX
    FRP_I01                                201         11904               13.56
    SELECT   dfsc.tablespace_name tablespace_name,
      2           DECODE (
      3              dfsc.percent_extents_coalesced,
                100,
      4    5              (DECODE (
      6                  GREATEST ((SELECT COUNT (1)
      7                               FROM dba_free_space dfs
      8                              WHERE dfs.tablespace_name = dfsc.tablespace_name), 1),
      9                  1,
    10                  'No Frag',
    11                  'Bubble Frag'
    12               )
    13              ),
    14              'Possible Honey Comb Frag'
    15           )
    16                 fragmentation_status
    17      FROM dba_free_space_coalesced dfsc
    18  where dfsc.tablespace_name='FRP_I01'
    19  ORDER BY dfsc.tablespace_name;
    TABLESPACE_NAME                FRAGMENTATION_STATUS
    FRP_I01                        Bubble Frag

    yes, i know that. But as per my script this particular tablespace is fragmented and i want to know if some1 can help me out how to defragment it ?
    A 100% score indicates no fragmentation at all. Lesser scores verify the presence of fragmentation.The free chunks count column will tell you how many segments of free space are scattered throughout the tablespace.
    thanks in advance

  • Tablespace Fragmentation. specially in SYSTEM tablesapce.

    Hi,
    I am working on Oracle 11gR2 DB and AIX OS.
    An database is having many tablespaces which are allocated to specific schemas. These schemas are functional from a long time. Data comes and goes all the time. The size of the tablespace has gone very high(than expected). We have removed(truncated) most of the unwanted tables and data from the schema and trying to resize the datafile, but we are not able to do it.
    while checking with the below query :-
    SELECT   df.tablespace_name "Tablespace",
           df.bytes / (1024 * 1024) "Size (MB)",
           SUM(fs.bytes) / (1024 * 1024) "Free (MB)",
           Nvl(Round(SUM(fs.bytes) * 100 / df.bytes),1) "% Free",
           Round((df.bytes - SUM(fs.bytes)) * 100 / df.bytes) "% Used"
      FROM dba_free_space fs,
           (SELECT tablespace_name,SUM(bytes) bytes
              FROM dba_data_files
             GROUP BY tablespace_name) df
    WHERE fs.tablespace_name (+)  = df.tablespace_name
    GROUP BY df.tablespace_name,df.bytes
    UNION ALL
    SELECT df.tablespace_name tspace,
           fs.bytes / (1024 * 1024),
           SUM(df.bytes_free) / (1024 * 1024),
           Nvl(Round((SUM(fs.bytes) - df.bytes_used) * 100 / fs.bytes), 1),
           Round((SUM(fs.bytes) - df.bytes_free) * 100 / fs.bytes)
      FROM dba_temp_files fs,
           (SELECT tablespace_name,bytes_free,bytes_used
              FROM v$temp_space_header
             GROUP BY tablespace_name,bytes_free,bytes_used) df
    WHERE fs.tablespace_name (+)  = df.tablespace_name
    GROUP BY df.tablespace_name,fs.bytes,df.bytes_free,df.bytes_used
    ORDER BY 4 DESC;
    The output is :-
    tablespace name         size_MB    free_space_MB     %free  %used
      SYSTEM                34256     28941.375        84            16
       SMD                      7975     2991.1875        38            62
    .................N many other Here if i try to resize the SMD tablespace datafile to (7975-2991.1875) 4983 MB it does not allow me to do it.
    Also the SYSTEM tablespace has gone so big but used space is very less.
    I suspect that fragmentation is the problem here._
    Please guide me what could i do in these case to reduce the space taken by the datafiles.
    Thanks in advance.

    Thanks for notifying......I have a misconception about it...both the queries giving almost same result.
    but first query give you result at datafile level.
    SQL> column tablespace_name format a10
    SQL> column file_name format a32
    SQL> column file_mb format 9999990
    SQL> column hwm_mb format 9999990
    SQL> column used_mb format 9999990
    SQL> column shrnk_mb format 9999990
    SQL>
    SQL> break on report
    SQL> compute sum of file_mb on report
    SQL> compute sum of hwm_mb on report
    SQL> compute sum of used_mb on report
    SQL> compute sum of shrnk_mb on report
    SQL>
    SQL> select a.*
      2  , file_mb-hwm_mb shrnk_mb
      3  from (
      4  select /*+ rule */
      5  a.tablespace_name,
      6  a.file_name,
      7  a.bytes/1024/1024 file_mb,
      8  b.hwm*d.block_size/1024/1024 hwm_mb,
      9  b.used*d.block_size/1024/1024 used_mb
    10  from
    11  dba_data_files a,
    12  (select file_id,max(block_id+blocks-1) hwm,sum(blocks) used
    13  from dba_extents
    14  group by file_id) b,
    15  dba_tablespaces d
    16  where a.file_id = b.file_id
    17  and a.tablespace_name = d.tablespace_name
    18  ) a
    19  order by a.tablespace_name,a.file_name;
    TABLESPACE FILE_NAME                         FILE_MB   HWM_MB  USED_MB SHRNK_MB
    SYSAUX     C:\ORACLEXE\APP\ORACLE\ORADATA\X      710      673      672       37
               E\UNDOTBS1.DBF
    SYSTEM     C:\ORACLEXE\APP\ORACLE\ORADATA\X      360      353      352        7
               E\SYSTEM.DBF
    UNDOTBS1   C:\ORACLEXE\APP\ORACLE\ORADATA\X      260      258      257        2
               E\SYSAUX.DBF
    USERS      C:\ORACLEXE\APP\ORACLE\ORADATA\X     6340     6017     6016      323
               E\USERS.DBF
    TABLESPACE FILE_NAME                         FILE_MB   HWM_MB  USED_MB SHRNK_MB
    sum                                             7670     7301     7296      369
    SQL> SELECT /* + RULE */  df.tablespace_name "Tablespace",
      2         df.bytes / (1024 * 1024) "Size (MB)",
      3         SUM(fs.bytes) / (1024 * 1024) "Free (MB)",
      4         Nvl(Round(SUM(fs.bytes) * 100 / df.bytes),1) "% Free",
      5         Round((df.bytes - SUM(fs.bytes)) * 100 / df.bytes) "% Used"
      6    FROM dba_free_space fs,
      7         (SELECT tablespace_name,SUM(bytes) bytes
      8            FROM dba_data_files
      9           GROUP BY tablespace_name) df
    10   WHERE fs.tablespace_name (+)  = df.tablespace_name
    11   GROUP BY df.tablespace_name,df.bytes
    12  UNION ALL
    13  SELECT /* + RULE */ df.tablespace_name tspace,
    14         fs.bytes / (1024 * 1024),
    15         SUM(df.bytes_free) / (1024 * 1024),
    16         Nvl(Round((SUM(fs.bytes) - df.bytes_used) * 100 / fs.bytes), 1),
    17         Round((SUM(fs.bytes) - df.bytes_free) * 100 / fs.bytes)
    18    FROM dba_temp_files fs,
    19         (SELECT tablespace_name,bytes_free,bytes_used
    20            FROM v$temp_space_header
    21           GROUP BY tablespace_name,bytes_free,bytes_used) df
    22   WHERE fs.tablespace_name (+)  = df.tablespace_name
    23   GROUP BY df.tablespace_name,fs.bytes,df.bytes_free,df.bytes_used
    24   ORDER BY 4 DESC;
    Tablespace                      Size (MB)  Free (MB)     % Free     % Used
    TEMP                                   20         17         85         15
    USERS                                6340   323.3125          5         95
    SYSAUX                                710      37.25          5         95
    SYSTEM                                360     7.3125          2         98
    UNDOTBS1                              260     1.8125          1         99
    SQL>

  • Transport tablespace related problem

    Hi all,
    I have a problem i want to export tablespaces as i have to migrate my db from oracle 9.2 to oracle 10.2 from win to RHEL4.......but i am getting an error ,pls suggest me for the same....
    SQL> @G:\oracle\ora92\rdbms\admin\dbmsplts.sql;
    Package created.
    Package created.
    Grant succeeded.
    Package created.
    Grant succeeded.
    drop view sys.transport_set_violations
    ERROR at line 1:
    ORA-00942: table or view does not exist
    PL/SQL procedure successfully completed.
    drop table sys.transts_error$
    ERROR at line 1:
    ORA-00942: table or view does not exist
    Package created.
    SQL> exec sys.dbms_tts.transport_set_check('SRO',true);
    BEGIN sys.dbms_tts.transport_set_check('SRO',true); END;
    ERROR at line 1:
    ORA-04068: existing state of packages has been discarded
    ORA-04063: package body "SYS.DBMS_TTS" has errors
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512: at line 1
    SQL> desc dbms_tts
    PROCEDURE DOWNGRADE
    FUNCTION ISSELFCONTAINED RETURNS BOOLEAN
    Argument Name                  Type                    In/Out Default?
    TS_LIST                        CLOB                    IN
    INCL_CONSTRAINTS               BOOLEAN                 IN
    FULL_CHECK                     BOOLEAN                 IN
    PROCEDURE KFP_CKCMP
    PROCEDURE TRANSPORT_SET_CHECK
    Argument Name                  Type                    In/Out Default?
    TS_LIST                        CLOB                    IN
    INCL_CONSTRAINTS               BOOLEAN                 IN     DEFAULT
    FULL_CHECK                     BOOLEAN                 IN     DEFAULT
    SQL> exec dbms_tts.transport_set_check('SRO',true);
    BEGIN dbms_tts.transport_set_check('SRO',true); END;
    ERROR at line 1:
    ORA-04068: existing state of packages has been discarded
    ORA-04063: package body "SYS.DBMS_TTS" has errors
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512: at line 1

    Are you,by any chance, running Oracle 9i installation code in an Oracle 10g database?
    If so : why?
    As far as I know you can only transport tablespaces to a database of an identical version, so it looks like this is not going to work.
    Sybrand Bakker
    Senior Oracle DBA

  • Fragmentation problem with Wlan Controler 4402 due to LWAPP header overhead

    Hello there,
    I have following situation.
    network---wlan controller4402----FW1---MPLS---FW2---Access points----networks
    I can see very big amount of fragmented packets coming to FW2 and getting dropped in one moment. After those packets get dropped, access points get disconnected
    I wonder, is there any documentation, or maybe some of you guys can give me some tip/trick how to set up WLC4402 to use TCP MSS, PMTU or any other settings that can help that IP Datagrams between 4402 and access points don't go over 1300B
    Thanks a lot for any help
    Regards
    Milos

    Hello,
    Thanks for your response.
    I'm a bit confused watching this document you gave me. I don't know which part of it can be related to prevention of IP Fragments between controller and AP-s.
    Problem is that controller is located on one side of the network, and we have FW (non cisco), MPLS network, other FW and then APs
    other FW across MPLS receive a lot of fragments, which of course should be defragmented for session inspection, so this leads to large CPU utilization and fragment drops.
    If we can instruct controller to set MSS bits or to be involved in PMTU, then we could try to prevent end hosts to ever create large TCP/UDP segments/datagrams to be sent via LWAPP tunnel
    Thanks for any advice
    Cheers
    Milos

  • Oracle 9i TEMP tablespace backup problem using RMAN!

    Oracle8/8i whole backup is ok for our backup software(using RMAN without RC database), but for Oracle 9i, I get following error messages when backing up temp tablespace.
    1. RMAN-20202: tablespace not found in the recovery catalog
    2. RMAN-06019: could not translate tablespace name "TEMP"
    I check some views of Oracle9i, and know some changes happen for temp tablespace in 9i, but how to deal with this problem. Any idea, please!

    In 9i RMAN does not restore temporary datafiles. Instead, you should create them after your restore. I believe that Oracle is going to make a change to this in the next release of 9i and have RMAN create the temporary files. You can view the temporary datafiles @ v$tempfile.
    I believe RMAN doesn't restore temporary files because they are locally managed and not in the control files. RMAN reads the controlfile of the target database to obtain info about backups, datafiles, etc.
    Hope this helps.

  • Tablespace Replication Problem - high disk I/O

    Hi.
    I'm doing some R&D on Oracle Streams. Have setup Tablespace replication between 2 10g R2 instances. data seems to replicate between the 2. These 2 instances have no applications running off of them apart from OEM and queries I run using SQL Developer and SQL*PLUS.
    The problem i'm seeing is that since setting up and switching on this replication config disk I/O is high.I'm using windows Performance Monitor to look at
    - % Disk time = 100%
    - Avg Disk Writes/sec = 20
    - Avg Disk Reads/sec = 30
    - CPU % = 1
    - % Commited Mem = 40%
    To me this just looks/sounds wrong.
    This has been like this for about 24hrs.
    OEM ADDM report says "Investigate the cause for high "Streams capture: waiting for archive log" waits. Refer to Oracle's "Database Reference" for the description of this wait event. Use given SQL for further investigation." I haven't found any reference to this anywhere.
    Anybody got any ideas on how to track this one down? Where in my db's can I look for more info?
    Platform details:
    (P4, 1GB RAM, IDE disk) x 2
    Windows Server 2003 x64 SP1
    Oracle 10.2.0.1 Enterprise x64
    Script used to setup replication:
    set echo on;
    connect streamadmin/xxxx;
    BEGIN
      DBMS_STREAMS_ADM.SET_UP_QUEUE(
        queue_table => '"STM_QT"',
        queue_name  => '"STM_Q"',
        queue_user  => '"STREAMADMIN"');
    END;
    --connect streamadmin/xxxx@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=oratest2.xxxx.co.uk)(PORT=1521)))(CONNECT_DATA=(SID=oratest2.xxxx.co.uk)(server=DEDICATED)));
    connect streamadmin/xxxx@oratest2;
    BEGIN
      DBMS_STREAMS_ADM.SET_UP_QUEUE(
        queue_table => '"STM_QT"',
        queue_name  => '"STM_Q"',
        queue_user  => '"STREAMADMIN"');
    END;
    connect streamadmin/xxxx;
    create or replace directory "EMSTRMTBLESPCEDIR_0" AS 'D:\ORACLE\DATA\ORATEST1';
    DECLARE 
        t_names DBMS_STREAMS_TABLESPACE_ADM.TABLESPACE_SET;
    BEGIN   
    t_names(1) := '"ADFERO_TS"';
    DBMS_STREAMS_ADM.MAINTAIN_TABLESPACES(
       tablespace_names             => t_names,
       source_directory_object       => '"DPUMP_DIR"',
       destination_directory_object  => '"DPUMP_DIR"',
       destination_database          => 'ORATEST2.xxxx.CO.UK' ,
       setup_streams                 => true,
       script_name                    => 'Strm_100407_1172767271909.sql',
       script_directory_object        => '"DPUMP_DIR"',
       dump_file_name                 => 'Strm_100407_1172767271909.dmp',
       capture_name                  => '"STM_CAP"',
       propagation_name              => '"STM_PROP"',
       apply_name                    => '"STM_APLY"',
       source_queue_name             => '"STREAMADMIN"."STM_Q"',
       destination_queue_name        => '"STREAMADMIN"."STM_Q"',
       log_file                      => 'Strm_100407_1172767271909.log',
       bi_directional                => true);
    END;
    /

    ok dont know why this didn't work before but here are the results.
    select segment_name, bytes from dba_segments where owner='SYSTEM' and segment_name like 'LOGMNR%' ORDER BY bytes desc
    SEGMENT_NAME                                                                      BYTES                 
    LOGMNR_RESTART_CKPT$                                                              14680064              
    LOGMNR_OBJ$                                                                       5242880               
    LOGMNR_COL$                                                                       4194304               
    LOGMNR_I2COL$                                                                     3145728               
    LOGMNR_I1OBJ$                                                                     2097152               
    LOGMNR_I1COL$                                                                     2097152               
    LOGMNR_RESTART_CKPT$_PK                                                           2097152               
    LOGMNR_ATTRIBUTE$                                                                 655360                
    LOGMNRC_GTCS                                                                      262144                
    LOGMNR_I1CCOL$                                                                    262144                
    LOGMNR_CCOL$                                                                      262144                
    LOGMNR_CDEF$                                                                      262144  
    LOGMNR_USER$                                                                      65536  
    160 rows selected
    select segment_name, bytes from dba_extents where segment_name=upper( 'logmnr_restart_ckpt$' );
    SEGMENT_NAME                                                                      BYTES                 
    LOGMNR_RESTART_CKPT$                                                              65536                 
    LOGMNR_RESTART_CKPT$                                                              65536                 
    LOGMNR_RESTART_CKPT$                                                              65536                 
    LOGMNR_RESTART_CKPT$                                                              65536                 
    LOGMNR_RESTART_CKPT$                                                              65536                 
    LOGMNR_RESTART_CKPT$                                                              65536                 
    LOGMNR_RESTART_CKPT$                                                              65536                 
    LOGMNR_RESTART_CKPT$                                                              65536                 
    LOGMNR_RESTART_CKPT$                                                              65536                 
    LOGMNR_RESTART_CKPT$                                                              65536                 
    LOGMNR_RESTART_CKPT$                                                              65536                 
    LOGMNR_RESTART_CKPT$                                                              65536                 
    LOGMNR_RESTART_CKPT$                                                              65536                 
    LOGMNR_RESTART_CKPT$                                                              65536                 
    LOGMNR_RESTART_CKPT$                                                              65536                 
    LOGMNR_RESTART_CKPT$                                                              65536                 
    LOGMNR_RESTART_CKPT$                                                              1048576               
    LOGMNR_RESTART_CKPT$                                                              1048576               
    LOGMNR_RESTART_CKPT$                                                              1048576               
    LOGMNR_RESTART_CKPT$                                                              1048576               
    LOGMNR_RESTART_CKPT$                                                              1048576               
    LOGMNR_RESTART_CKPT$                                                              1048576               
    LOGMNR_RESTART_CKPT$                                                              1048576               
    LOGMNR_RESTART_CKPT$                                                              1048576               
    LOGMNR_RESTART_CKPT$                                                              1048576               
    LOGMNR_RESTART_CKPT$                                                              1048576               
    LOGMNR_RESTART_CKPT$                                                              1048576               
    LOGMNR_RESTART_CKPT$                                                              1048576               
    LOGMNR_RESTART_CKPT$                                                              1048576               
    29 rows selectedMessage was edited by:
    JA
    Message was edited by:
    JA

  • Fragment problem

    Hi
    Our xdp's are rendered on our site as rendered html form  or rendered pdf form depending on which the client wants.
    we've started using simple fragments for the address page a the end of the form.
    let's say there are 30 different xdp's all with the same fragment xdp which are on the server in the same directory.
    when we made a change to the fragment we ran into a problem with the rendered pdf form not showing the revised
    fragment.
    i've read that previewing the pdf in designer would work. but that doesn't seem to be the case with a rendered pdf.
    also would i have to open and preview all 30 xdp's for this to work.
    if so ,why use fragments if you have to open and upload every xdp.
    thank you
    Karl Nowak

    Fragments are resolved at runtime. If yor 30 forms are saved as XDPs then rendered when the user requewtes them, then the
    fragments will be resolved and any changes to them will also be picked up. If you saved the 30 forms as PDFs , then they already are rendered and the fragment has been resolved (at teh time of PDF creation).
    Make sense?
    Paul

  • Fragmentation problems with PSE 11

    I have just installed PSE & Premier Elements 11 on Vista Ultimate. When I try to edit my photos they become fragmented and look like a jigsaw puzzle. This does not happen with PSE 10 on the same computer. Can anyone tell me why this occurs?  Could it be a fault with the software?

    Thank you for your information about my problem with PSE 11. I have since tried the programme on 2 different computers and it works fine. Seems like the problem is with my computer although my old PSE 10 works okay. I'd appreciate any ideas about what could be wrong with my computer to cause my photos to break up into various segments which don't join together particularly when I move them into 'before and after horizontal' or '......vertical' and even when zooming them. ( HP Pavilion Elite) Vista Ultimate.
    Regards,
    Stervogel.

Maybe you are looking for