Max # extents exceeded

Hi,
I am having problems with the max # extents being exceeded.
I am creating a spatial index using the following script:
CREATE INDEX GIS.MYTABLE_SX ON
GIS.MYTABLE(GEOMETRY)
indextype is MDSYS.SPATIAL_INDEX
parameters ( 'SDO_LEVEL=6,
     SDO_NUMTILES = 8,
     SDO_COMMIT_INTERVAL = 1000,
     TABLESPACE = GISI,
     INITIAL = 131072,
     NEXT = 131072,
     PCTINCREASE = 0,
     MINEXTENTS = 1,
     MAXEXTENTS = 2147483645,
     BTREE_INITIAL = 512K,
     BTREE_NEXT = 512K,
     BTREE_PCTINCREASE = 0')
This in turn creates the table
MYTABLE_SX_HL6N8$
and
the indexes
MYTABLE_SX_HL6N8$_B1
(x4 - one for each field SDO_GROUPCODE, SDO_CODE, SDO_STATUS, SDO_ROWID)
and
MYTABLE_SX_HL6N8$_B2
(x1 one for SDO_ROWID)
using the following script:
DROP TABLE MYTABLE_SX_HL6N8$ CASCADE CONSTRAINTS ;
CREATE TABLE MYTABLE_SX_HL6N8$ (
SDO_GROUPCODE RAW (14),
SDO_ROWID ROWID,
SDO_CODE RAW (14),
SDO_STATUS VARCHAR2 (1))
TABLESPACE GISI
PCTFREE 10
PCTUSED 40
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 131072
NEXT 131072
PCTINCREASE 0
MINEXTENTS 1
MAXEXTENTS 2147483645
FREELISTS 1 FREELIST GROUPS 1 )
NOCACHE;
CREATE INDEX MYTABLE_SX_HL6N8$_B1 ON
"GIS".MYTABLE_SX_HL6N8$(SDO_GROUPCODE, SDO_CODE, SDO_ROWID, SDO_STATUS)
TABLESPACE GISI PCTFREE 10 STORAGE(INITIAL 524288 NEXT 524288 PCTINCREASE 0 )
CREATE INDEX MYTABLE_SX_HL6N8$_B2 ON
"GIS".MYTABLE_SX_HL6N8$(SDO_ROWID)
TABLESPACE GISI PCTFREE 10 STORAGE(INITIAL 524288 NEXT 524288 PCTINCREASE 0 )
The problem is when you create a spatial index using the top script the max # extents do not get applied to
MYTABLE_SX_HL6N8$_B1
and
MYTABLE_SX_HL6N8$_B2
Instead these tables take on the default max # extents set on the tablespace.
How do I set the max # extents for indexes
MYTABLE_SX_HL6N8$_B1
and
MYTABLE_SX_HL6N8$_B2
to MAXEXTENTS 2147483645 for example. I am aware that this is not good practice but I would like to know if it is possible. Is it a spatial issue? I have tried to increase the size of
the BTREE_INITIAL and BTREE_NEXT to 512K from 128K but it still complains about max # extents (999) reached. A way round it is obviously to increase the default max # extents on the tablespace but that requires DBA intervention. I would like to know how one can do this programatically using the top script or something similar.
Thanks
Regards
Stephen

Hi Stephen,
A few thoughts:
Oracle has pretty much dropped hybrid indexing in terms of it being
a generically useful way to index data. As of 9.0.1.2 the suggestion
is to use R-tree indexes unless there is something about your
workload or data set that makes the use of R-trees bad.
If you don't use R-tree indexing, then stick with fixed indexing. The
original idea of hybrid indexing was to allow better approximations
of geometries without the index growing too large, but it turns out the
SQL index query within spatial took longer than anticipated.
In terms of setting up the spatial index, when creating a quadtree index
you can specify the btree_initial and btree_next in the parameters clause
of the create index statement, which allows you to adjust the btree indexing
parameters as you noted, but there is no way to set the max number of
extents (or in fact the tablespace used for the b-tree indexes).
When you need that control, you need to to have dba intervention to set the
default tablespace and parameters at the user level before creating the spatial
index. The parameters in the parameters clause can set up the index table
parameters, and the default parameters can be used for the btree indexes.
regards,
dan

Similar Messages

  • MAX EXTENTS  for a table

    Hello Guru's
    I am working on oracle express 10 G on windows , This is my test machine. I am a beginner to oracle Dba activities,
    Problem:
    I want to restrict the size of a table (say max upto 400k)
    My Approach:
    1. I create a Tablepsace with uniform extent size (40K each)
    2. I created a table in this tablespace with max extents 10 ( so that 40K * 10 = 400K)
    SCOTT@xe>CREATE TABLESPACE TB
      2   DATAFILE 'F:\Oracle\oradata\XE\TB.DBF' SIZE 100M
      3   EXTENT MANAGEMENT LOCAL
      4   UNIFORM SIZE 40K
      5   ONLINE ;
    Tablespace created.
    SCOTT@xe>
    SCOTT@xe>DROP USER G CASCADE ;
    User dropped.
    SCOTT@xe>CREATE USER G IDENTIFIED BY G DEFAULT TABLESPACE TB ;
    User created.
    SCOTT@xe>ALTER USER G QUOTA UNLIMITED ON TB;
    User altered.
    SCOTT@xe>GRANT CREATE SESSION , CREATE TABLE TO G;
    Grant succeeded.
    SCOTT@xe>CONNECT G/G@xe
    Connected.
    G@xe>CREATE TABLE t ( A number) TABLESPACE TB storage (minextents 1 maxextents 10);
    Table created.
    G@xe>SELECT SEGMENT_NAME, MIN_EXTENTS, MAX_EXTENTS , SEGMENT_TYPE, TABLESPACE_NAME, BLOCKS
      2  FROM USER_SEGMENTS  ;
    SEGMENT_NAME                                                                      MIN_EXTENTS MAX_EXTENTS SEGMENT_TYPE       TABLESPACE_NAME                    BLOCKS
    T                                                                                           1  2147483645 TABLE              TB                                      5
    G@xe>Issue is:
    I want the maximun extents that could be llocated to this table must be 10 , BUT from user_segments I could see MAX_EXTENTS = 2147483645 (default value).
    When i pump data into this table MAX_EXTENTS exceeds 10 (i.e user Defined value)
    I have no idea why this is the case;
    Regards,

    When creating a segment (Table/Index) in a Locally Managed Tablespace (created with "EXTENT MANAGEMENT LOCAL" and visible in DBA_TABLESPACES under EXTENT_MANAGEMENT), Oracle ignores the specification of MAXEXTENTS.
    All segments in an LMT would default to MAXEXTENTS UNLIMITED (which really means 2 billion).
    (DEFAULT STORAGE at the Tablespace level cannot be set if it is LOCAL AUTOALLOCATE or LOCAL UNIFORM)
    See [The 10gR2 documentation on the STORAGE clause|http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/clauses009.htm#i997450]
    In your 10gXE install you will not be able to create a DICTIONARY MANAGED Tablespace as the SYSTEM Tablespace itself is LOCALLY MANAGED.
    If you want to limit the size of a table you could
    a. Create a Tablespace with a set size for datafiles (ie, set AUTOEXTEND OFF for the datafiles)
    b. Create the Table in that Tablespace
    Edited by: Hemant K Chitale on Aug 18, 2009 3:31 PM

  • Max # extents Error

    When I execute this query in Oracle 8i Database.
    SQL> create table MTL_MATERIAL_TRANSACTIONS_bak as select * from MTL_MATERIAL_TRANSACTIONS;
    create table MTL_MATERIAL_TRANSACTIONS_bak as select * from MTL_MATERIAL_TRANSACTIONS
    ERROR at line 1:
    ORA-01630: max # extents (505) reached in temp segment in tablespace APPLSYSD
    then Shall I use the following command Without shutting down the database. Is there any other solutions.
    Please reply.
    alter tablespace APPLSYSD default storage (maxextents unlimited);
    OR
    alter tablespace APPLSYSD storage (maxextents unlimited);

    Hi user13098327,
    Please read below thread;
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:956629961318

  • Max Cursors Exceeded even with XSU 1.2

    In one of the messages on this forum I read Steven Muench's comments stating that the max cursors exceeded problem for big result sets in XSQL has been addressed in XSU1.2
    I have downloaded this software released in April 2000 but this version still gives me this error.
    Has someone been able to find a solution/workaround to this.
    Thanks

    It might also be an issue with the HS_OPEn_CURSORS. By default the gateway allows only 50 open cursors to be opened at the foreign database. What happens when you set in the gateway init file  HS_OPEN_CURSORS=200?
    If it still fails, could you upload to a public file share a gateway trace level DEBUG (HS_FDS_TRACE_LEVEL=DEBUG)?
    - Klaus

  • ORA-1631: max # extents 505 reached in table APPLSYS.WF_NOTIFICATION_IN

    Platform: RHEL 4u5
    Application: 11.5.10.2
    Database: 10.2.0.4
    2-node Installation as follows:
    1 Node for DB and Concurrent
    1 Node for Apps.
    We anabled OWF Mailer services on 2nd Sept, and on 5th Sep we started receiving following error messages in our DB alert log contnuously:
    ORA-1631: max # extents 505 reached in table APPLSYS.WF_NOTIFICATION_IN
    So, we stopped the OWF Mailer servcies and Agent Listeners.
    Got a metalink note 152475.1 but confused to alter the table definition as I am of the view that these Oracle Workflow related tables are Oracle Built-in Objects not the custom one.
    So, will it be ok to increase the Maxextents for this table?

    911748 wrote:
    Hi Asif,
    We have actually implemented it on Production now. We just tested the mailer configuration on TEST and when users give go ahead after they tested their scenarios we implemented the same on Production. Can I implement the extents increment activity on production?
    Yes you can.
    Thanks,
    Hussein

  • ORA-01693-Max extents reached in lobsegment

    Hi
    getting this error in our alert log file
    ORA-01693-Max extents <> reached in lobsegment <name>
    Can any tell me how to increase (alter) logsegment
    Thanks
    Bhanu

    alter table <table> modify lob (<lobcolumn>) (storage (maxextents unlimited))
    will work

  • ORA-01631: max # extents (121) reached!!!

    Please review the following DML and error in response of that command:
    insert into dtcn (area_code, cons_code, dcdat) values(12,12,sysdate);
    ERROR at line 1:
    ORA-01631: max # extents (121) reached in table MNBSYS.DTCN
    There are only two such tables DTCN and DTCN_HISTORY in which we are unable to insert any record because of above error. Following are some reference information of these tables:
    PCT_FREE: 10, PCT_USED: 40 INITIAL_EXTENT: 5242880,
    NEXT_EXTENT: 10240, MIN_EXTENTS: 1, MAX_EXTENTS: 121,
    PCT_INCREASE: 0, FREELIST: 1, TABLESPACE_NAME: MNB_DATA,
    DBUSERNAME: MNBSYS
    It may also be noted that the above statistics are exactly same for number of tables but we are facing the problem with only these two tables. Kindly advise what could be the problem and how can I overcome this...
    Thanks in anticipation...
    Zia Shareef

    Hi,
    This error comes when table reach to his max extents,here table extend upto 121 extents that is his max value so now you have to increase the value of maxextents.
    by
    SQL> alter table <table_name> storage(maxextents unlimited);
    **also set the value of nextextent parameter because currently its define by very low value of 10240
    Kuljeet

  • System maximum max extents....

    Hi,
    I need a clarification about the System maximum max extents...
    The oracle doc "Error messages" about The error code and message "ORA-01631: max # extents (string) reached in table string.string" points out as action:
    "If maxextents is less than the system maximum, raise it. Otherwise, you must recreate with larger initial, next or pctincrease params"
    Which is the system maximum max. extents...??? Is this of database block size???
    Thanks you,
    Sim

    sgalaxy wrote:
    Hi,
    I need a clarification about the System maximum max extents...
    The oracle doc "Error messages" about The error code and message "ORA-01631: max # extents (string) reached in table string.string" points out as action:
    "If maxextents is less than the system maximum, raise it. Otherwise, you must recreate with larger initial, next or pctincrease params"
    Which version of Oracle are you on ? I don't think maxextents has been a problem since 9i.
    In the days when "unlimited extents" had not been introduced and the entire extent map had to fit in the segment header the size of a segment map entry dictated the number of extents that could be listed, so the block size made a big difference. The maximum roughly doubled as you doubled the size of the block. From memory - 2KB blocks gave 121 extents, 4KB gave 248, 8KB gave 505 and 16KB gave 1016 - I don't have any memory of a figure for 32KB blocks.
    But from 9i (at least 9.2) Oracle ignores any maxextents setting you put into the table storage clause and uses "unlimited".
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    "For every expert there is an equal and opposite expert"
    Arthur C. Clarke

  • ORA-01630: max # extents (2) reached in temp segment in tablespace USERS

    Hi all,
    I got the error when I created CLUSTER
    ORA-01630: max # extents (2) reached in temp segment in tablespace USERS
    CREATE CLUSTER trial_cluster (trialno NUMBER(5,0))
    PCTUSED 80
    PCTFREE 5
    TABLESPACE users
    STORAGE (INITIAL 250K NEXT 50K
    MINEXTENTS 1 MAXEXTENTS 2
    PCTINCREASE 0)
    HASH IS trialno HASHKEYS 150;
    And I increased maxextents to 20480
    alter tablespace users default storage(MAXEXTENTS 20480)
    same error happens.

    Here is one example from Metalink note:
    create tablespace dropme datafile 'dropme.dbf' size 200m
    extent management dictionary
    default storage (initial 100k next 100k maxextents unlimited pctincrease 0);
    SQL> create index myind on mytab (object_name)
    2 storage ( initial 16k next 16k maxextents 3 pctincrease 0)
    3 tablespace dropme;
    ERROR at line 1:
    ORA-01630: max # extents (3) reached in temp segment in tablespace DROPME

  • MAX EXTENTS have reached

    Hi Team,
    We are getting ora-1632, max extents error's.. suggest ---what all can be done..
    and in future how to avoid it...

    Seems your index extent has reached its max limit, try and see if the issue resolves and always post full error instead of just error no.
    ALTER INDEX <object_owner>.<index_name> STORAGE ( MAXEXTENTS UNLIMITED);
    Edited by: Veeresh.S on Oct 22, 2012 6:53 PM

  • Max cursors exceeds problem(ORA-01000)

    Hi
    In my server open_cursors is set as 300 .We are developing a java application(using struts & Jboss web server) nearly 10 computers access the oracle 10g server through plsql procedures/functions ,frequently I am getting ORA-01000 -MAX CURSOR EXCEEDS errors,what should I do .please.....
    by
    s_bala

    That means there is two cursor related parameters
                                            |
                                            |
                                            |
                                            |
                        |                                        |     
    1)Cached cursors                              2)Currently open cursor
    1)Cached cursors     2)Currently open cursor
    SQL> select o.sid,osuser,machine,count(*) num_curs
    from v$open_cursor o,v$session s
    WHERE user_name = 'ERP' and
    o.sid = s.sid GROUP BY o.sid,osuser,machine
    ORDER BY num_curs DESC;     SQL>select max(a.value) as highest_open_cur,
         p.value as max_open_cur
         from v$sesstat a, v$statname b, v$parameter p
         where a.statistic# = b.statistic#
         and b.name = 'opened cursors current'
         and p.name= 'open_cursors'group by p.value;
    THIS IS THE RESULT I GOT
    SID OSUSER MACHINE NUM_CURS
    106 x 18
    93 x 14
    124 x 14
    152 x 13
    90 y y 11
    121 z 8
    132 a 8
    118 b b 6
    105 c 5
    131 b 5
    98 d d 4
    95 x 3
    147 y y 3
    89 e 2
    119 e 2     THIS IS THE RESULT I GOT
    HIGHEST_OPEN_CUR MAX_OPEN_CUR
    83 500
         -This is related to ORA-01000 -MAX CURSOR EXCEEDS
    From the above what I understood is correct ???
    F) How to clear 1)Cached cursors ? (or) how to reduce NUM_CURS (from the above left side table ).
    G) will the 1)Cached cursors give any problems to our database.

  • Cannot log into blend and has said max attempts exceeded, Link will not connect either

    I downloaded the Blend software on my macbook pro and it would not log in with my Blackberry ID. After 5 attempts it locked me out.
    I reset my Blackberry ID and tried again, but it will not let me even attempt to login and says max attempts exceeded. I uninstalled and reinstalled and still the same problem. Also Link will not let me connect. Any ideas please? looks like I am going over to Iphone if this continues and bin my Z30.

    Jeff,
    Thanks for the info on policy settings.
    Let's see: I had 8.1.5 installed and I tried the update to 10g but only works from 8.1.7 or 9i, so then uninstalled and re-tried to do fresh install in a different home (OraHome10 vs OraHome8). That didn't go so well--it changed my 8i somehow so 8i would no longer work. Then I tried fresh install of 9i with a new starter DB--couldn't get into that DB. So uninstalled 9i, uninstalled 10g, uninstalled 8i, deleted every reference to Oracle on my computer, registry, etc., and re-tried 10g. I even went and bought a registry cleaning tool to zap things to make sure it was clean. It looked like it installed fine, provided me with starter DB but I just can't get into it. I'll let you know if the policy setting works.
    I'm trying to look on the bright-side and say that we are learning a lot!
    Dave

  • Registration Rejected: Max Phones Exceeded On UC 560

    Hi Team
    Any Help on this
    max phone exceed on UC 560. When i connect new phone. I need urgent help on this.
    Thanks

    Hi Esa,
    You are most welcome my friend
    This does tell the story;
    ASG-ASQ01-UC560#show platform software lic
    License UDI                  : UC560-T1E1-K9:FGL154112G3
    Maximum User Licenses        : 22
    Used User Licenses           : 22
    Available User Licenses      : 0
    As the uc560 has been announced as End of Life you will need to order
    an add-on user license quite soon. Something like;
    L-UC-PRO-8U=
    Software license upgrade, authorizing an additional 8 users (e-delivery)
    http://www.cisco.com/en/US/prod/collateral/voicesw/ps6788/vcallcon/ps7293/reference_guide_c07-566560.html
    End of Life notice;
    http://www.cisco.com/en/US/prod/collateral/voicesw/ps6788/vcallcon/ps7293/end_of_life_notice_c51-729017.pdf
    Cheers!
    Rob
    "When it comes to luck you make your own  " 
    - Springsteen

  • ERR Driver Status: (Hex 0xBFFA2003) Max Time exceeded before operation completed. (TEK DPO2014)

    Hi NI.
    I'm trying to aquire signals from an Tektronix DPO2014 oscilloscope using Labview SignalExpress.
    I have downloaded and installed the appropriate driver (at least I think )) : tkdpo2k using NI download station.
    I run an ethernet connection and I do see the device in MAX, however im not quite sure if I have configured the IVI driver sessions correctly.
    Anyway, when I open Signal Express, and select "IVI scope aquire" I can select my device under "resource descriptor" and the appropriate driver under "Instrument driver". I then turn on my Oscilloscope, tune in the machines tachogenerator, which is the signal the oscilloscope is to measure, and then select "autosetup" The sinosoidal waweform shows up on the oscilloscope and in SignalExpress, it is only done once. I then try and run the program and the error message accurs:
    Timeout.
    <ERR>Driver Status:  (Hex 0xBFFA2003) Max Time exceeded before operation completed.
    Is the problem regarding problems with triggertime or write/read problems with the TCP/IP connection?
    What can I do to fix this problem?
    Best Regards
    Danny Joergensen
    University of Aalborg Denmark
    Attachments:
    MAXscreenshot.png ‏265 KB
    device.png ‏320 KB

    How are you communicating? GPIB? Are you sure you have the correct address. Can you send an IDN command with MAX? Does MAX see the instrument?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Jcp.endpoint.main.max.threads exceeded error on jrun 4.0.1 server

    jcp.endpoint.main.max.threads exceeded error on jrun 4.0.1 server
    Posted: May 20, 2005 4:30 AM Reply
    hi,
    i am getting following error on my jrun server
    'too many concurrent requests,
    jcp.endpoint.main.max.threads exceeded'
    The application is running on jrun 4.0.1 server.
    i checked the log files but the load was too few on the day.
    I tried a lots of stuff on net but could not find the solution.
    pls help it out urgently
    manoj

    Lisa,
    I would check the online docs and/or the following HowTos for more details. They are not specific to JRun, but will give you the general process and list or archives and other things to copy and add to the classpath:
    http://technet.oracle.com:89/ubb/Forum2/HTML/006397.html
    http://technet.oracle.com:89/ubb/Forum2/HTML/006398.html

Maybe you are looking for

  • Delivery in third party order

    Do we create delivery document and post PGI in third party order? If yes, why? If no, why? Thr is lot of confusion with this matter. Only n only the people worked practically on TPO are requested to answer. I have searched a  lot on this which cant c

  • Unable to boot from a cd on several iMacs

    I have read all the topics covering this situation but none of the responses seem to cover my situation. I am the computer fix it person at an elementary school and have about 8 iMacs that will not boot from a CD. I am trying to tidy these machines u

  • Cannot get on the internet

    I received a new iPad 2 for Christmas and I set it up at the Apple Store tonight... but when I got home, I could not connect to the internet because I cannot remember my wi-fi password.  Any ideas on what I should do?

  • E71x gprs access point not shown in internet desti...

    Hi All, I am having problems with gprs in my e71x. It used to work fine earlier but now when on using the web browser it just shows wifi under the internet destinations. I have gprs configured as an accesspoint inside internet destination and it work

  • How to tell Safari to open and save a web page

    While on vacation, I would like to save a daily puzzle that occurs on a web site that uses the same URL for each new puzzle. Using the Energy Saver Preference panel, I can schedule a daily start up and shut down and add Safari to the Login Items. How