Segments with many allocated extents

Dear all,
This is regarding the number of allocated extents in any segments.
Our environment is SAP ECC 6.0 in ORACLE (11.2.0.2.0) in AIX.
We are having 2218 allocated extents for table BSIS in the tablespace PSAP<SID>.
The table is 114GB in size and have the default value 2147483645 as max.extents.
Like the same we have around 30 to 40 tables having more than 200 allocated extents.
The CCMS monitoring templates have all these tables in RED for the node 'Most allocated extents in any segment'.
I have tried online reorg for some of these tables and the number of extents gets increased at times.
How can we decrease the number of extents for such tables.
Regards,
Kiran

Kiran,
As others have stated, you do NOT want to waste your time reorganizing a table or index due to the number of extents (most of the type anyway). 
First, let's determine what type of tablespaces you have:
sqlplus "/as sysdba"
set lines 132 pages 100
select TABLESPACE_NAME, NEXT_EXTENT, EXTENT_MANAGEMENT, ALLOCATION_TYPE, SEGMENT_SPACE_MANAGEMENT from dba_tablespaces order by 1;
For example here are my tablespaces I have created:
TABLESPACE_NAME  NEXT_EXTENT   EXTENT_MAN ALLOCATIO     SEGMEN
PSAPGLPCAD    524,288,000          LOCAL           UNIFORM          AUTO
PSAPGLPCAI2                         104,857,600 LOCAL      UNIFORM   AUTO
PSAPMEDD                            524,288,000 LOCAL      UNIFORM   AUTO
PSAPMEDI2                           104,857,600 LOCAL      UNIFORM   AUTO
PSAPSR3                                         LOCAL      SYSTEM    AUTO
PSAPSR3701                                      LOCAL      SYSTEM    AUTO
PSAPSR3USR                                      LOCAL      SYSTEM    AUTO
PSAPTEMP                            104,857,600 LOCAL      UNIFORM   MANUAL
PSAPUNDO2                                       LOCAL      SYSTEM    MANUAL
PSAPVBFSD2                          524,288,000 LOCAL      UNIFORM   AUTO
PSAPVBFSI2                          524,288,000 LOCAL      UNIFORM   AUTO
PSAPVBOXD                           524,288,000 LOCAL      UNIFORM   AUTO
PSAPVBOXI2                          524,288,000 LOCAL      UNIFORM   AUTO
SYSAUX                                          LOCAL      SYSTEM    AUTO
SYSTEM                                          LOCAL      SYSTEM    MANUAL
If your main tablespace PSAPSR3 is LOCALLY managed as shown by the "EXTENT_MANAGEMENT" and the ALLOCATION_TYPE is SYSTEM, then Oracle will determine the NEXT extent sizes and you do not have to worry about it. 
Now the reason you don't really have to worry about extents is that when SAP sends a SQL statement, Oracle determines the execution plan and then Oracle will read date by Oracle blocks NOT by extents.  So in R/3 the CBO almost always picks an index as the leader and that means we read the root -> branch -> leaf -> table blocks.  We do NOT read by this extent and then that extent. Even FULL TABLESCANS are reading block ranges based on the db_file_multiblock_read_count value.
Usually the only time we have EXTENT issues is if the tablespace is of type DICTIONARY instead of LOCAL.  A DICTIONARY managed tablespace has a different extent management process (UET$ and FET$).  Having too many extents in a DICTIONARY managed tablespace "can" cause performance problems but usually only when you are DBA tasks like reorgs because of how Oracle manages the extents and the locking process for the UET$ and FET$.  This does not mean the DICTIONARY managed tablespace are bad, just that we have to keep an eye on the extents. 
If your tablespaces are LOCAL then your system is configured properly.  If you like, you reorg very large objects into their own tablespaces as I have done, but I do this because of archiving and frequent reorgs to seperate tablespaces so I can just drop the old tablespace.  Plus I planned this during a unicode conversion so I don't have to actively manage this over time.
And as a little big more information, when we use LOCALLY MANAGED AUTOALLOCATE type tablespaces, Oracle uses a formula for the extent sizes.  That way, this frees up the DBA (usually) from having to maintain extents and such.  What Oracle does is create the 1st 15 extents as 64K, then the batch of extents will be at 1 Mb, then 8 Mb, then 64 Mb.  That's why the AUTOALLOCATE makes it "easier" for administration.  When we create LOCALLY MANGED UNIFORM tablespace, we decide how large each extent will be an every object that is put in that tablespace will have the same extent sizes (good for very large objects).
You can test this with:
create table sapsr3.kiran (t1 number) tablespace psapsr3;
alter table sapsr3.kiran allocate extent;
........ keep adding extents to see how they change over time.
col segment_name format a20
set lines 132 pages 100
select segment_name, extent_id, bytes from dba_extents where segment_name = 'KIRAN' order by extent_id;
So that's the rational behind extents.  I hope it helps.
Good luck.
Mike Kennedy

Similar Messages

  • Most allocated extents in any segment

    hi gurus
    My db is oracle with HP-UX In rz20 -- database-oraclesegmentsin that most allocated extents in any segment-  is showing red.how to rectify this problem. and y its shoing red wht is the problem and how can i solved this.
    thanks/regards

    Hi,
    If you are using Locally managed tablespace ( by default as of Oracle 9i), then you dont have worry about this warnings.
    High number of extents is not a problem in LMTS.
    Please check the below link & sap notes
    http://help.sap.com/saphelp_nw70/helpdata/EN/25/5215e970077e4fb366e5ce25629aac/frameset.htm
    Note 599694 - LMTS autoallocate: Extent allocation
    Note 706625 - Oracle9i: Locally managed SYSTEM tablespace
    Note 214995 - Oracle locally-managed tablespaces in the SAP environment
    Hope this helps.
    Thanks,
    Sushil

  • DB02:Space management/Segments/Most allocated extents in any segment

    Hi ,
    in My SAP server: DB02 > Oracle Database Administration > Alerts > Alert monitor, there are few red alerts.
    1. Space management > Segments >Most allocated extents in any segment  263  > 200   - 263 > 200: number of extents > threshold 03.03.2009 09:35:46
    in RZ20 Most allocated extents in any segment  having thersold value :200
    Can anybody knows what it is about? How to fix this? And what are the risks if I ignore this?
    with Regards
    Harinatha Reddy M

    Hi,
    What is your Oracle database version.? If it is 9i or 10g then you can ignore this warning as from Oracle uses Localy managed Tablespaces.
    Please check below mentioned SAP notes, it may help you.
    Note 599694 - LMTS autoallocate: Extent allocation
    Note 706625 - Oracle9i: Locally managed SYSTEM tablespace
    Note 214995 - Oracle locally-managed tablespaces in the SAP environment
    Thanks,
    Sushil

  • Pre-allocating Extents for Instances

    Using 10.2.0.4 Standard Edition RAC. I have a table very busy with inserts. Oracle waits for events "gc current block busy", "gc buffer busy release" etc. There seems contention of the blocks between instance. I pre-allocated extent to each instance:
    alter table busy_table allocate extent (100m instance 1);
    alter table busy_table allocate extent (100m instance 2);But this seems not reducing the events. Is there any more to do?
    Some additional questions:
    1) How to I know the extent is allocated to a specific instance? DBA_EXTENTS has no instance information. And X$KTFBUE always shows the current instance.
    select INST_ID, KTFBUEFNO, KTFBUEBNO from X$KTFBUE
    where KTFBUESEGBNO=(
    select header_block from dba_segments
    where segment_name='BUSY_TABLE');returned the same inforamtion except that INST_ID is different.
    2) Does the preallocation affects insert sql only? I guess other operation are free to use any extent. Correct?
    3) We are using ASSM. So I am not supposed to be tuning FREELISTS AND FREELIST GROUPS. Correct?
    DB: 10.2.0.4
    OS: RHEL 5.3

    Just checked the document again ([url http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/clauses001.htm#g1053419]INSTANCE integer)
    If you are using automatic segment-space management, then the INSTANCE parameter of the allocate_extent_clause may not reserve the newly allocated space for the specified instance, because automatic segment-space management does not maintain rigid affinity between extents and instances.(How come I missed this??)
    So Oracle ignores the instance clause for ASSM tablespace. Preparing a test with MSSM tablespace...

  • JDBC Receiver Adapter with many deadlocks

    Hi Gurus !
    Hi have many interfaces from Idocs to JDBC inserts to a MS SQL Server 2005. I'm using PI 7.0 SP 18.
    I'm having a problem when I send many idocs (with many segments) because some messages stay in waiting, or, to be delivered status at the endpoint in message monitoring. The real message is:
    Unable to execute statement for table or stored procedure. 'EQUI' (Structure 'JDBCStatement_EQUI') due to com.microsoft.sqlserver.jdbc.SQLServerException: Transaction (Process ID 63) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
    It makes 6 retries, and after the sixth failure it stays in status NDLV. Every time that tries to resend the message it makes the same error (deadlock), I guess because there are many messages that are trying to do the same in same moment.
    In the receiver CCs I put the value 50 in the Maximum Concurrency field.
    Does anyone know which parameters can I improve this situation? The server hasn't any tunning.
    Thanks in advance,
    Juan

    Based on my experience, these are the things that could be used to improve JDBC performance
    1. You may increase the thread count for JDBC related queues. This has to be done in accordance with SAP Note 1084161.
    2. There is parameter in JDBC communication channel called Maximum Concurrency. It signifies that one communication channel can make how many connections to database. This is 1 by default and could be increased to some values like 3-4.
    3. In the Visual Admin/ NWA, there is a parameter called as queueParallelism.maxReceivers which defines the number of parallel worker threads for one receiver channel instance. This should be done following SAP Note 1136790. This can be done along with the first point.
    Regards,
    Prateek

  • HT204416 My Safari is no longer working with many sites.  However Chrome and Firefox work fine.  I would like to re-install Safari in an effort to clear up the problem I can not resolve.

    My Safari is no longer working with many sites.  However Chrome and Firefox work fine.  I would like to re-install Safari in an effort to clear up the problem I can not resolve.

    1. From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Turn all extensions OFF and test. If the problem is resolved, turn extensions back ON and then disable them one or a few at a time until you find the culprit.
    2. Select
              Safari ▹ Preferences... ▹ Privacy ▹ Remove All Website Data...
    and confirm. Test.
    3. If the above steps don't resolve the problem, please describe it in more detail.

  • Firefox becomes really slow then eventually unresponsive when loading a page with many hires images. Unsual high memory usage up to 2gigs just for firefox. Was never a problem with v3.6.

    When loading a page with many hires images, Firefox becomes really slow and scrolling becomes jumpy then eventually becomes completely unresponsive. Unusual high memory usage of up to 2gigs just for firefox when loading these pages. This was never a problem with v3.6.

    I encountered the same type of problem. Firefox running terribly slowly and slowing down my entire machine (Core i5 with 256GB SSD). Searching the forums, I found a couple of things about troubleshooting performance issues, one of which was to use '''hardware acceleration''', that is on by default. It was turned on on my PC, '''so I tried deactivating it, and it worked!'''
    So doing the exact opposite as Mozilla support said solved the problem. It is really a pain now to work with Firefox. I'm using it because I have no choice, but I'd recommend IE and Chrome over Firefox... Whatever, the market will decide once Firefox has become to crappy...

  • Right way to preserve all parent table entries in a join with many tables!!

    This problem is quite interesting to me. I have asked this question to others but no body is able to provide me with proper answers.
    The problem is: How do I join a huge parent table with many child tables (more than 5 child tables) preserving all of the parent table entries. Lets say there is the parent table parentTable and three child tables childTable1, childTable2, childTable3. In order to get the data after joining these tables the query that I have been using was:
    select parent.field1, parent.field2, parent.field3, child1.field4, child1.field5, child2.field6, child3.field7 from ParentTable parent, childTable1 child1, childTable1 child2, childTable3 child3 where parent.fielda = child1.fieldb and parent.fieldc = child.fieldd and parent.fielde = child.fieldf.
    Although the tables are huge (more than 100,000 entries), this query is very fast, however those parent table entries which do not have child entries are lost. I know that I can left join a parent table with a child table and then with the next child table and then with the next child table and continue. Isn't there a simple solution for this commonly happening problem?
    Please provide suggestions please...

    Hello Lakshmi,
    Although I do not know exactly how to achieve what you want to achieve but I have seen DBAs/ABAPers in my experience can run queries/scripts using the COUNT function to give the actual number of line items per table for all your 100 or odd tables.
    Rgds
    CONMJI

  • How do I compensate for only one ADDT ' tNG_config.inc.php file with many Registration pages to build?

    My dynamic site has a lot of different languages funneled into one website, using various cookies, url params, php includes, etc. all to obtain similar info in different languages. Thank you David Powers.
    It is working really well and now I’ve come to the Registration section. Okay, so registration isn’t all that hard; I could do most of it with the standard Dreamweaver set of tools. Alas, I really like much of what ADDT has to offer with welcome email messages and activation and such.
    Here’s the setup: Obviously, with many different language people, I have many different databases for them. I did that becuase we’re expecting a big audience and I really don’t want to have all those different language names in the same table. Furthermore, these tables, whereby the students will login, will also contain a lot of information about their work so again, don’t want to have one massive table. I’ve divvied them up into tables by language and I’m using those tables to keep track of them and their work.
    I want to use ADDT’s User Registration Wizard and I have looked at all the neat stuff in the Control Panel/Login Settings.
    Here’s my situation: I notice that when I’m done with the configuring of one of the registration pages, I’m asked if I want to upload the tNG_config.inc.php page and that it has changed since the last upload. I saved a copy of the _config.inc.php and did a new registration form with the same info and when done, I compared the two _config.inc.php files. As one would guess, there is a small difference in the Connection string to the databases  $tNG_login_config["connexction"] = "connString_Ital_db".
    My problem is that I have 13 of these registration pages to do but ADDT only has the one tNG_config.inc.php. That’ll work great for the one with which it is associated, but the others will obviously break. I’ve looked through the code in the Registration pages, to find the ADDT link to the tNG_config.inc.php file hoping to rename it Italian, Spanish, etc, but the name of the file does not appear in the Registration page.  I realize that ADDT Control panel is designed for use on one site, and can then be used on others, with the changes etc. But my site seems a little unique since so many sites are actually in one.
    Has anyone whipped this problem before? I just don’t understand why there is no link in the head code of the Registration page to let me change it and to create more config files with different names. Thanks for you help!
    [Moved by moderator to appropriate forum]

    Hi Brian,
    I just tried to check all of ADDT´s "includes" files for any internal references (read: "require" or "require_once" statements) to the file "tNG_config.inc.php". So far I can only see this file referenced in the file "tNG.inc.php" (within the "$KT_tNG_uploadFileList1" array).
    So what could this mean ? Maybe you´ll have to make copies of the the original "tNG.inc.php" as well and save them as, say, "tNG.inc_ital.php" file plus make sure that these copies internally point to a different "tNG_config_ital.inc.php" file -- because it´s always the first mentioned file which gets referenced from e.g. an ADDT login page (see the "Load the tNG classes" - part)
    I want to use ADDT’s User Registration Wizard and I have looked at all the neat stuff in the Control Panel/Login Settings
    The Control Panel will always update the main "tNG_config.inc.php" file, so any further modifications will have to become manually applied to the custom files you´re creating.
    Cheers,
    Günter

  • I have several disks with many comedy routines;I want to select a few from each disk and combine them to one disk for my personal use.How?

    I have several disks with many comedy routines;I want to select a few from each disk to make one single disk for my personal use.How?

    Copy the routines into a new folder on your hard drive. Then burn the folder to a new blank disc using Disk Utility.

  • I have an older Ipod shuffle with many songs loaded on it. How can I transfer these songs to a new computer since the old computer is no longer available

    I have an oder Ipod shuffle with many songs loaded on it. How can I transfer ths songs to a new computer since the old computer is no longer available?

    I had the same problem with my iPad, i couldn't get the newer version of itunes because the computer was too old and my iPad couldnt sync with the old itunes. I got a PC from school a few months later so that solved the problem for me. Unfortunately i don't think there would be a program to put your music on your iPod, iTunes should be the only way to transfer files to Apple devices. What operating system are you running and what version of it is it?

  • Safari 5.1 now is garbled with many of the sites having lines on top of each other. Is any one else having that issue? If so, how did you resolve it? Thanks in advance for any help.

    Safari 5.1 now is garbled with many of the sites having lines on top of each other. Is any one else having that issue? If so, how did you resolve it? Thanks in advance for any help.

    "Did you make the .psd file with a transparent background (checkerboard) in Photoshop? And when you placed it in AI did you choose the top option Convert Photoshop Layers to Objects?"
    Yep, and it still didn't work.
    But I figured what I did wrong: I was selecting both the text and the heart, and then I was doing the whole Object>Wrap Text>Make thing, as opposed to just selecting the heart and doing it. Once I did it, I moved the heart around on top of the text, and it "made room" for the pic, wrapping itself around the heart.
    Thanks so much, and thanks A MILLION for being so patient.
    Jeez, when can I get some textbook to learn all the intricacies of Illustrator?

  • I have been trying to get my iPhone to sync with a new computer.  As a result I have ended up with many of my apps on the old computer, but missing from the the new one and the iPhone.  How do I get the apps on the old one to the iPhone and then the new c

    I have been trying to get my iPhone to sync with a new computer.  As a result I have ended up with many of my apps on the old computer, but missing from the the new one and the iPhone.  How do I get the apps on the old one to the iPhone and then the new computer?

    You don't. Backup your itunes library on the old computer and move it to the new computer.

  • Firefox will not connect or open. Mac OS 10.6.8. I was working with many open tabs when Firefox stopped working. Now it won't connect. I have uninstalled and downloaded it several times.

    I was working with many open tabs and firefox crashed. Now it won't connect to the internet at all.

    Create a new profile as a test to check if your current profile is causing the problems.
    See "Basic Troubleshooting: Make a new profile":
    *https://support.mozilla.com/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If that new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • After updating to 5.1, pages no longer lets me convert long, single page (up to 8 1/2 x 50) document to an 8 1/2 x 11 document with many pages.

    I have been using pages to create a document that I always export in two ways.  1st, I export a single page document that contains all of the data (sometimes this can go as long as 8 1/2 x 50).  I have to do this for web purposes.  Next, I duplicate the document, and change the page setup to 8 1/2 x 11, turning it into a document with many pages. This is for printing purposes.
    Before upgrading to Pages 5.1, this worked flawlessly.  After the upgrade, when I change the document to 8 1/2 x 11, Pages just deletes all of the data after the 11'' mark. 
    I am trying to make it behave like it did before the upgrade: when I convert the document to 8 1/2 x 11, it just made as many new pages as necessary and didn't delete any of the data.
    How can I do this?

    Pages 5 is buggy and has had over 100 fetaures removed.
    Pages '09 should still be in your Applications/iWork folder, use that.
    Peter

Maybe you are looking for