Unable to allocate MINEXTENTS beyond 31 in tablespace employee

create tablespace employee
logging
datafile '/rdbms/oracle/ora1022i/64/oradata/ora1022b/employee.dbf'
size 200m
autoextend on
next 32m maxsize unlimited
extent management local;
declare
counter NUMBER;
sql_string VARCHAR2(4000);
BEGIN FOR counter IN 1..2 LOOP
sql_string := 'CREATE TABLE e'||counter||'
(id varchar2(10) primary key,
col_a varchar2(1000),
col_b date,
col_c varchar2(10),
col_d varchar2(10),
col_e varchar2(10),
col_f varchar2(20),
col_g varchar2(10),
col_h date,
col_i varchar2(20),
col_j varchar2(20),
col_k date,
col_l varchar2(20),
col_m varchar2(15),
col_n varchar2(20),
col_o varchar2(12),
col_p varchar2(12),
col_q date,
col_r varchar2(20),
col_s varchar2(15),
col_t varchar2(10),
col_u varchar2(11),
col_v char(20),
col_w varchar2(13),
col_x date,
col_y varchar2(15),
col_z varchar2(12),
col_aa varchar2(10),
col_bb varchar2(10),
col_cc char(200),
col_dd varchar2(20),
col_ee date,
col_ff varchar2(10),
col_gg varchar2(10),
col_hh varchar2(10),
col_ii varchar2(10),
col_jj char(20),
col_kk varchar2(10),
col_ll date,
col_mm varchar2(10),
col_nn varchar2(12),
col_oo varchar2(10),
col_pp varchar2(10),
col_qq char(20),
col_rr varchar2(21),
col_ss date,
col_tt varchar2(12),
col_uu varchar2(10),
col_vv varchar2(10),col_ww varchar2(10),
col_xx char(20)
) TABLESPACE system
PCTFREE 10
INITRANS 10
MAXTRANS 255
STORAGE
INITIAL 50m
next 50M
MAXEXTENTS UNLIMITED
EXECUTE IMMEDIATE sql_string;
END LOOP;
END;
declare
ERROR at line 1:
ORA-01659: unable to allocate MINEXTENTS beyond 31 in tablespace employee
pls tell me what is the problem in this tablespace wheater it is correct or not.

hi
che the table initial extent size (2099m) and tablespace max size (2000M), also min extents setting.
rgds
Jitendra

Similar Messages

  • ORA-01659: unable to allocate MINEXTENTS beyond 29 in tablespace

    Hi,
    I am importing data into MATRIXDEV schema with the following imp command.
    imp matrixdev/crm FILE=crmodrepodump1.dmp tables=odperf_request_summary INDEXES=N IGNORE=Y STATISTICS=NONE
    But i am getting following error. Even after adding new datafile to the CRMODREPO_DATA table space i am getting same error.
    ORA-01659: unable to allocate MINEXTENTS beyond 29 in tablespace
    Can some one help me in this??
    I have used following exp command for export.
    imp userid=matrixdev/crm file=crmodrepodump1.dmp log=crmodrepodump1.log statistics=NONE indexes=Y tables=odperf_request_summary
    Thanks

    ORA-01659: unable to allocate MINEXTENTS beyond string in tablespace string
    Cause: Failed to find sufficient contiguous space to allocate MINEXTENTS for the segment being created.
    Action: Use ALTER TABLESPACE ADD DATAFILE to add additional space to the tablespace or retry with smaller value for MINEXTENTS, NEXT or PCTINCREASE

  • ORA-01659: unable to allocate MINEXTENTS beyond 9 in tablespace

    Hi all
    I received database dump from client and I am trying to Import into our database. I created tablespace and while trying to import, I am getting below error
    ORA-01659: unable to allocate MINEXTENTS beyond 9 in tablespace <>
    I increased the Size of the tablespace up to to 6gb still getting the same error.
    what I received is only structure without data. still why It's needed much space.
    My doubts are :
    1) How to know what is the size required to complete the dump
    2) s there any option to take export which can take less space when I import?
    My plan is not to replicate the DB but only to import the structure in a schema.
    We don't have a DBA so I am doing this task
    Thanks in adv

    Thanks Maran,
    ABLESPACE_NAME     BLOCK_ID     BLOCKS     BYTES
    medt          17          507904     4160749568
    medt          507921          507904     4160749568
    medt          1015825          507904     4160749568
    medt          1523729          507904     4160749568
    medt          2031633          507904     4160749568
    medt          2539537          507904     4160749568
    medt          3047441          507904     4160749568
    medt          3555345          507904     4160749568
    medt          4063249          131048     1073545216

  • ORA-01659: unable to allocate MINEXTENTS beyond 28 in tablespace PSAPSR3700

    hi everyone
    When I install ECC6.00 sr3 with oracle&HP-UX
    I come across an error at the set u201Cimport abapu201D
    my oracle version is 10.2.0.4
    my HP-UX is 11-23
    *********************import monitor log********************
    ERROR: 2010-01-22 02:42:37 com.sap.inst.migmon.LoadTask run
    Loading of 'DD03L' import package is interrupted with R3load error.
    Process '/usr/sap/R3T/SYS/exe/run/R3load -i DD03L.cmd -dbcodepage 4102 -l DD03L.
    log -stop_on_error' exited with return code 9.
    For mode details see 'DD03L.log' file.
    Standard error output:
    /usr/lib/hpux64/dld.so: Unable to find library 'libclntsh.so.10.1'.
    'DD03L.log' ****************************
    (DB) ERROR: DDL statement failed
    (DROP INDEX "DD03L~0")
    DbSlExecute: rc = 103
      (SQL error 1418)
      error message returned by DbSl:
    ORA-01418: specified index does not exist
    (IMP) INFO: a failed DROP attempt is not necessarily a problem
    DbSl Trace: Error 12801 in exec_immediate() from oci_execute_stmt(), orpc=0
    DbSl Trace: ORA-12801 occurred when executing SQL stmt (parse error offset=0)
    (DB) ERROR: DDL statement failed
    (CREATE UNIQUE INDEX "DD03L~0" ON "DD03L" ( "TABNAME", "FIELDNAME", "AS4LOCAL",
    "AS4VERS", "POSITION" ) TABLESPACE PSAPSR3700 STORAGE (INITIAL 712194033 NEXT 0
    000002560K MINEXTENTS 0000000001 MAXEXTENTS 2147483645 PCTINCREASE 0 ) NOLOGGING
    COMPUTE STATISTICS PARALLEL )
    DbSlExecute: rc = 99
      (SQL error 12801)
      error message returned by DbSl:
    ORA-12801: error signaled in parallel query server P015
    ORA-01659: unable to allocate MINEXTENTS beyond 28 in tablespace PSAPSR3700
    (DB) INFO: disconnected from DB
    ********************tablespace view****************
    Pos.  Tablespace     Type  Status    ExtMan.  SegMan.  Backup  Files/AuExt.
          Total[KB]   Used[%]    Free[KB]  MaxSize[KB]  ExtSize[KB]  FreeExt.    Largest[KB]
      1 - PSAPSR3        DATA  ONLINE    LOCAL    AUTO      NO        20/20 
          41328640     75.99     9922304    204800000     20008960        93     8192000:8192000:3624960+:1157056:866304
      2 - PSAPSR3700     DATA  ONLINE    LOCAL    AUTO      NO        21/21 
          43868160     76.44    10337472    215040000     20008960        44     8151040:8151040:3706880+:2088896:2071488
      3 - PSAPSR3USR     DATA  ONLINE    LOCAL    AUTO      NO         1/1  
             20480      9.38       18560     10240000     10219520         1    10219520+:18560:0:0:0
      4 - PSAPTEMP       TEMP  ONLINE    LOCAL    MANUAL    NO         3/1  
           6144000      0.00     6144000     14336000      8192000         0     8192000+:0:0:0:0
      5 - PSAPUNDO       UNDO  ONLINE    LOCAL    MANUAL    NO         3/1  
           6266880      0.00     6266688     14417920      8151040      4854     8151040+:2083776:2073344:8192:8192
      6 - SYSAUX         DATA  ONLINE    LOCAL    AUTO      NO         1/1  
            204800     24.72      154176     10240000     10035200         1    10035200+:154176:0:0:0
      7 - SYSTEM         DATA  ONLINE    LOCAL    MANUAL    NO         2/2  
           1392640     49.76      699712     20480000     19087360         2     9543680:9543680:696256:3456:0
    I do need yours helps
    any advise will be much appreciated!
    Thanks&Regards
    Peter

    I do not know why the newlines are all missed in my posts
    but in my reply everything goes well
    Does somebody know the reasons?
    **********************************************************8
    When I install ECC6.00 sr3 with oracle&HP-UX
    I come across an error at the set u201Cimport abapu201D
    my oracle version is 10.2.0.4
    my HP-UX is 11-23
    *********************import monitor log********************
    ERROR: 2010-01-22 02:42:37 com.sap.inst.migmon.LoadTask run
    Loading of 'DD03L' import package is interrupted with R3load error.
    Process '/usr/sap/R3T/SYS/exe/run/R3load -i DD03L.cmd -dbcodepage 4102 -l DD03L.
    log -stop_on_error' exited with return code 9.
    For mode details see 'DD03L.log' file.
    Standard error output:
    /usr/lib/hpux64/dld.so: Unable to find library 'libclntsh.so.10.1'.
    'DD03L.log' ****************************
    (DB) ERROR: DDL statement failed
    (DROP INDEX "DD03L~0")
    DbSlExecute: rc = 103
      (SQL error 1418)
      error message returned by DbSl:
    ORA-01418: specified index does not exist
    (IMP) INFO: a failed DROP attempt is not necessarily a problem
    DbSl Trace: Error 12801 in exec_immediate() from oci_execute_stmt(), orpc=0
    DbSl Trace: ORA-12801 occurred when executing SQL stmt (parse error offset=0)
    (DB) ERROR: DDL statement failed
    (CREATE UNIQUE INDEX "DD03L~0" ON "DD03L" ( "TABNAME", "FIELDNAME", "AS4LOCAL",
    "AS4VERS", "POSITION" ) TABLESPACE PSAPSR3700 STORAGE (INITIAL 712194033 NEXT 0
    000002560K MINEXTENTS 0000000001 MAXEXTENTS 2147483645 PCTINCREASE 0 ) NOLOGGING
    COMPUTE STATISTICS PARALLEL )
    DbSlExecute: rc = 99
      (SQL error 12801)
      error message returned by DbSl:
    ORA-12801: error signaled in parallel query server P015
    ORA-01659: unable to allocate MINEXTENTS beyond 28 in tablespace PSAPSR3700
    (DB) INFO: disconnected from DB

  • ORA-01659: unable to allocate MINEXTENTS beyond 13 in tablespace TBSP1

    Hi,
    I am getting crazy on how to solve this error. :(
    I still have 4Gb space in my TBSP1, what does "13" in the keyword "beyond" stands for? is it in bytes or blocks? which parameter can I see this number 13? Is it in tablespace/datafiles storage params or is it in create table parameter?
    Thanks

    Possible solutions:
    **On the command prompt**
    1.Make sure data file is not filled up and auto extend is on.
    2.Try to add a data file or alter existing data file with auto extend capability and max extents unlimited.
    alter database datafile '/..../fiilename.dbf' autoextend on maxsize unlimited;
    3.Try de-fragmentation of tablespace that caused the problem.
    alter tablespace TBSP1 coalesce;
    **If you have TOAD, here is the best possible solution**
    1. Go to database icon, click schema browser, set your schema as SYSTEM or SYS, then look for tablespaces tab below.
    2. Click on the tablespaces tab, look for the tablespace that caused the problem,click the tablespace.
    3. Click Basic Info tab, beneath that find extent management.
    4. Click on auto allocate extent sizes.
    5. Click OK button.
    That`s it Problem is resolved.
    -Regards
    Rah

  • ORA-01659: unable to allocate MINEXTENTS beyond 63 in tablespace

    Hi,
    I am importing data into MATRIXDEV schema with the following imp command.
    imp matrixdev/crm FILE=crmodrepodump1.dmp tables=odperf_request_summary INDEXES=N IGNORE=Y STATISTICS=NONE
    But i am getting following error. Even after adding new datafile to the CRMODREPO_DATA table space i am getting same error.
    imp matrixdev/crm FILE=crmodrepodump1.dmp tables=odperf_request_summary INDEXES=N IGNORE=Y STATISTICS=NONE
    Can some one help me in this??
    I have used following exp command for export.
    imp userid=matrixdev/crm file=crmodrepodump1.dmp log=crmodrepodump1.log statistics=NONE indexes=Y tables=odperf_request_summary
    Thanks

    Yes, thats what I have read.
    What I'm saying is:
    The import will create this "odperf_request_summary" table, but the tablespace where this is being created is the default tablespace of the importing user. And this is probably not the "crmodrepo_data" tablespace. (And you have to be more pricise: are we talking about crmodrepo_data as a schema or as a tablespace?)
    What you can do is:
    - Import the imp-file with the option rows=n
    - Move the table to the desired tablespace (statement given in the above post)
    - Import the imp-file
    You can read also in the Utilities Guide how to use "import". If you still don't understand, then it really means you had to look for a senior to help you (may be your DBA)

  • ORA-01659: unable to allocate MINEXTENTS beyond...

    Hi All,
    I have created a new table space as
    CREATE SMALLFILE
    TABLESPACE "FIRMGOLD"
    LOGGING
    DATAFILE '/gold3/gold/oradata/GOLD/FIRMGOLD.dbf' SIZE 2048M EXTENT
    MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO
    Then I went for creation of new user as
    CREATE USER "DIIS_FIRM_GOLD" PROFILE "DEFAULT"
    IDENTIFIED BY " DIIS_FIRM_GOLD " DEFAULT TABLESPACE " FIRMGOLD "
    TEMPORARY TABLESPACE "TEMP"
    QUOTA UNLIMITED
    ON " FIRMGOLD "
    ACCOUNT UNLOCK;
    GRANT ALTER ANY TRIGGER TO " DIIS_FIRM_GOLD " WITH ADMIN OPTION
    GRANT ALTER PROFILE TO " DIIS_FIRM_GOLD " WITH ADMIN OPTION
    GRANT ALTER RESOURCE COST TO " DIIS_FIRM_GOLD " WITH ADMIN OPTION
    GRANT ALTER ROLLBACK SEGMENT TO " DIIS_FIRM_GOLD " WITH ADMIN OPTION
    GRANT ALTER SESSION TO " DIIS_FIRM_GOLD " WITH ADMIN OPTION
    GRANT ALTER SYSTEM TO " DIIS_FIRM_GOLD " WITH ADMIN OPTION
    GRANT ALTER TABLESPACE TO " DIIS_FIRM_GOLD " WITH ADMIN OPTION
    GRANT ALTER USER TO " DIIS_FIRM_GOLD " WITH ADMIN OPTION
    GRANT BACKUP ANY TABLE TO " DIIS_FIRM_GOLD " WITH ADMIN OPTION
    GRANT CREATE ANY CLUSTER TO " DIIS_FIRM_GOLD " WITH ADMIN OPTION
    GRANT CREATE ANY INDEX TO " DIIS_FIRM_GOLD " WITH ADMIN OPTION
    GRANT CREATE ANY INDEXTYPE TO " DIIS_FIRM_GOLD " WITH ADMIN OPTION
    GRANT CREATE ANY JOB TO " DIIS_FIRM_GOLD " WITH ADMIN OPTION
    GRANT CREATE ANY LIBRARY TO " DIIS_FIRM_GOLD " WITH ADMIN OPTION
    GRANT CREATE ANY PROCEDURE TO " DIIS_FIRM_GOLD " WITH ADMIN OPTION
    GRANT CREATE ANY SEQUENCE TO " DIIS_FIRM_GOLD " WITH ADMIN OPTION
    GRANT CREATE ANY SYNONYM TO " DIIS_FIRM_GOLD " WITH ADMIN OPTION
    GRANT CREATE ANY TABLE TO " DIIS_FIRM_GOLD " WITH ADMIN OPTION
    GRANT CREATE ANY TRIGGER TO " DIIS_FIRM_GOLD " WITH ADMIN OPTION
    GRANT CREATE ANY VIEW TO " DIIS_FIRM_GOLD " WITH ADMIN OPTION
    GRANT SYSDBA TO " DIIS_FIRM_GOLD " WITH ADMIN OPTION
    GRANT "CONNECT" TO " DIIS_FIRM_GOLD " WITH ADMIN OPTION;
    GRANT "DBA" TO " DIIS_FIRM_GOLD " WITH ADMIN OPTION;
    After creating new user, I went for impdp of the dump(got from the existing user) then I encountered the following error,
    ORA-39171: Job is experiencing a resumable wait.
    ORA-01659: unable to allocate MINEXTENTS beyond 13 in tablespace CKCGOLD1
    I expected the new user “DIIS_FIRM_GOLD” to use the newly created tablespace FIRMGOLD, but instead it used old tablespace CKCGOLD1.
    When I ran the following script
    SELECT TABLESPACE_NAME,SUM(BYTES)/1024/1024 FREE_SPACE
    FROM DBA_FREE_SPACE
    GROUP BY TABLESPACE_NAME
    It returned
    TABLESPACE_NAME FREE_SPACE
    SYSTEM           221.875
    CKCGOLD2           1176.1875
    FAS_GENERAL      957.625
    JEWELGOLD      2038
    USERS           4.5625
    CKCGOLD1_I      1812
    RBS           1999.9375
    FIRMSILVER           1023.9375
    JEWELSILVER           1023.9375
    SYSAUX      21
    CKCGOLD1      26.625
    TABLESPACE_NAME FREE_SPACE
    CKCSILVER1_I      497.875
    FIRMGOLD      2038
    UNDOTBS1           1352.3125
    CKCSILVER1           1124.8125
    My new tablespace FIRMGOLD has not been used.
    Can anyone help me out in this regard.

    Hi,
    The impdp command i used is as below,
    impdp iis_firm_gold/****** REMAP_SCHEMA=iis_1_gold:iis_firm_gold dumpfile=exp_19082007_gold.dmp logfile=imp_19082007_gold_firm.log job_name=IMP_SAM19082007_GOLD_FIRM CONTENT=METADATA_ONLY TRANSFORM=oid:n
    So how should the remap_tablespace be used in the above command?
    U mean like, inserting "REMAP_TABLESPACE=CKCGOLD1:FIRMGOLD" in to my impdp command?
    Regards,
    SAM.

  • ERP 2004 SR1 with Oracle: unable to allocate MINEXTENTS

    Hello Everybody,
    I'm trying to install SAP ERP 2004 SR1 with Oracle on Debian Sarge (I know that it is not supported). The installation was prety straight forward. But now in the step "Database Load (Post processing)" i get this Errors:
    /tmp/sapinst_instdir/ECC_50_ABAP_NUC/DB/SAPSSEXC.log:
    (DB) ERROR: DDL statement failed
    (CREATE  INDEX "T100~001" ON "T100" ( "ARBGB" , "MSGNR"  ) TABLESPACE PSAPIDS640 STORAGE (INITIAL 363889471 NEXT 0000002560K MINEXTENTS 0000000001 MAXEXTENTS 2147483645 PCTINCREASE 0 ) )
    DbSlExecute: rc = 99
      (SQL error 1659)
      error message returned by DbSl:
    ORA-01659: unable to allocate MINEXTENTS beyond 17 in tablespace PSAPIDS640
    (DB) INFO: disconnected from DB
    /tmp/sapinst_instdir/ECC_50_ABAP_NUC/DB/SAPAPPL2.log:
    (DB) ERROR: DDL statement failed
    (CREATE UNIQUE INDEX "T512G~0" ON "T512G" ( "MANDT", "SPRSL", "MOLGA", "FORML", "WINDO", "GRPPE", "KENNZ", "LFDNR" ) TABLESPACE PSAPIDS STORAGE (INITIAL 11615742 NEXT 0000000080K MINEXTENTS 0000000001 MAXEXTENTS 2147483645 PCTINCREASE 0 ) )
    DbSlExecute: rc = 99
      (SQL error 1659)
      error message returned by DbSl:
    ORA-01659: unable to allocate MINEXTENTS beyond 4 in tablespace PSAPIDS
    (DB) INFO: disconnected from DB
    /tmp/sapinst_instdir/ECC_50_ABAP_NUC/DB/SAPSLEXC.log
    (DB) ERROR: DDL statement failed
    (CREATE  INDEX "DDFTX~1" ON "DDFTX" ( "ROLLNAME"  ) TABLESPACE PSAPIDS640 STORAGE (INITIAL 52072826 NEXT 0000002560K MINEXTENTS 0000000001 MAXEXTENTS 2147483645 PCTINCREASE 0 ) )
    DbSlExecute: rc = 99
      (SQL error 1659)
      error message returned by DbSl:
    ORA-01659: unable to allocate MINEXTENTS beyond 24 in tablespace PSAPIDS640
    I think the tablespace is to small. Which commands do I need to extend them? I've alredy tried:
    su – oraids
    sqlplus /nolog
    connect / as sysdba
    SELECT * FROM DBA_TABLESPACES WHERE TABLESPACE_NAME = 'PSAPIDS';
    ALTER TABLESPACE PSAPIDS DEFAULT STORAGE
    (INITIAL 11615742 NEXT 0000000080K MINEXTENTS 0000000001 MAXEXTENTS 2347483645 PCTINCREASE 0);
    Hope that anybody can help me out. I will publish the installation instructions here on SDN.
    Regards
    Gregor

    Hi Gregor.  The text of the Oracle message ORA-01659 is as follows.  As you can see it recommends adding a data file first.
    01659, 00000, "unable to allocate MINEXTENTS beyond %s in tablespace %s"
    // *Cause:  Failed to find sufficient contiguous space to allocate MINEXTENTS
    //          for the segment being created.
    // *Action: Use ALTER TABLESPACE ADD DATAFILE to add additional space to the
    //          tablespace or retry with smaller value for MINEXTENTS, NEXT or
    //          PCTINCREASE
    The syntax for adding a datafile would be
    alter tablespace PSAPIDS add datafile '/your/path/psapids99.dbf' size 100m;

  • After Effects Error: Unable To Allocate Space...

    I have never seen this before...I am stumped.
    I am on After Effects 8.0.2 on a PC at work (Windows XP Pro 2002 SP2 / Intel Xeon 3.6 Ghz / 3.25 GB RAM) and I keep getting the following error when rendering:
    "After Effects Error: Unable to Allocate Space for 4290 x 4590 image buffer"
    My Comp is nowhere near that size (1280 x 720) nor is anything in it (PS document 1200 x 1500 / 720p video / solids are comp size). I have reset Cache sizes until I am blue in the face / have enabled Disk Cache / dumped preferences / cursed at the machine / nothing works.
    Any suggestions would be appreciated...thanks.
    Joey

    Just thinkin; out loud, so sorry if it's stuff you've already considered, Joey:
    Any scale settings expanding objects beyond the size of the comp? Text especially can blow out memory when scaled up large.
    Same goes for 3D objects close to the camera.
    As you're a Mac-o-file you've probably been saved in the past by the extra RAM accessible - SP will only give AE 2GB.

  • Urgent help with ORA-01062: unable to allocate memory for define buffer

    Hello, Folks!
    I have a c++ code that is using OCI API that is running both in
    windows and in spark.
    (The same c++ code compiled and running in both platforms)
    and asking the same query.
    In windows, everything is OK but in spark
    it failes...
    The ORACLE Server is installed on win2003 station
    Both client and server ORACLE version is 10.2.0.1.0
    The code is running on spark(oracle instant client is installed)
    This query is a simple select query that selects only one field
    of type VARCHAR2(4000) (the same problem with happen with any
    string type field larger than 150 characters)
    The error occured when calling for OCIDefineByPos method
    when associating an item in a select-list with the type and output
    data buffer.
    The error message is: ORA-01062: unable to allocate memory for define
    buffer
    (This error message signifies that I need to use piecewise operation...)
    But it happens even if I make this varchar2 field to be of size larger
    than 150.
    It is not fair to use piecewise fetch for such a small fields sizes.
    May be there is not configuration setting that can enlarge this
    I know that I wrote here a very superficial description.
    If somebody knows something about this issue, please help
    Thanks

    I had a special luck today after searching the solution per weeks:)I have got a solution.
    When I get the size of the oci field, in the following expressioin
    l_nResult = OCIAttrGet(l_oParam->pOCIHandle(), OCI_DTYPE_PARAM, &(orFieldMD.m_nSize), NULL, OCI_ATTR_DATA_SIZE, m_oOCIErrInfo.pOCIError());
    orFieldMD.m_nSize was of type ub4 but according the manual it must be ub2.
    As a result, the number returned was very large (junk?) and I passed this value to OCIDefineByPos
    Now I changed the type and everything is working!!!
    In windows there is not problem with this expression :)
    Thanks
    Issahar

  • " unable to allocate space from the buffer cache" Message

    Hi
    I am trying to delete a large volume or records from a BTREE database. I have used the DB_SET_RANGE with a cursor to locate the desired records. After that the Dbc::get() with DB_NEXT is called. After deleting a considerable amount of records I am receiving a message in the error callback function as "unable to allocate space from the buffer cache".
    What might be the reason for such a message.
    Regards
    Nisam

    Nisam,
    This means that the cache is full and there are no pages that BDB can evict to make space. Are you running with the default cache size? You can increase the cache size by calling: dbenv->set_cachesize or db->set_cachesize.
    Related docs:
    Selecting a cache size: http://www.oracle.com/technology/documentation/berkeley-db/db/ref/am_conf/cachesize.html
    Bogdan Coman

  • ORA-04031: unable to allocate 64 bytes of shared memory

    Hi All,
    We are performing System copy on a distributed environment with OS Windows 2003 and DB Oracle 10.2.0.4
    While importing the Database (ABAP) only ,we are facing error and 5 import steps are failing  in Import ABAP phase.
    Error is "ORA-00604: error occurred at recursive SQL level 1
    ORA-04031: unable to allocate 4120 bytes of shared memory ("shared pool","select user#,type# from user...","Typecheck","kgghteInit")
    (DB) INFO: disconnected from DB"
    There is already one Oracel Instance OracleXX1 is runing this is the second instance and the server has around 1.75 GB RAM...i
    Can you please suggest what could be the error.
    Regards
    Ajay

    Dears,
    Please try increase your database parameter shared_pool_size in pfile and then try to resume the activity.
    Regards,
    Shivam

  • ORA-04031: unable to allocate 4096 bytes if shared memory

    Hello Gurus,
    Did anyone got this type of error before:
    ERROR:
    ORA-20414: Materialized View refresh failed - ORA-12008: error in materialized view refresh path
    ORA-04031: unable to allocate 4096 bytes of shared memory ("shared pool","IDX_MIF_SITE","pacdHds_kkpaco","stP_kkpacd: kkpodPacdInit")
    Every sunday full refresh of the data warehouse is scheduled. This sunday it didn't complete and gave us the above error. This can be solved by increasing the shared pool memory size. But DBA doesnot want to increase it every sunday(This has been going on for 3 weeks now) and it's not feasible to increase like this everytime.
    We want to find the actual cause of it and fix?
    Does anyone know the solution or can throw some light on this issue?
    Thanks,
    Sanjay

    We want to find the actual cause of it and fix?The cause is simple - you have run out of memory assigned to the Shared Pool in the SGA.
    The root cause is more of an issue. The Shared Pool is mostly used for keeping the SQL statements and supporting information (such as cursor support). Each unique SQL statement requires it's own area in the shared pool, however identical statements can used the same (shared) area. Shared Pool is also used to store the 'current' data dictionary (table, view, etc.) information. And in some cases, it's also used for 'large' operations such as direct path insert block builds.
    Some of the possible reasons for running out of shared pool might include
    - it's simply undersized;
    - not enough SQL is actually shareable;
    - the large pool has not been allocated.
    That second one is frequent when the application builds up SQL statements by concatenating pieces, including literals (user input) and then executing the unique statement. This is a common technique by developers using .Net, Perl or having SQL Server background. (That mode of operation is very susceptible to SQL Injection.)
    You can get a lot more info from:
    - searching the forum;
    - looking in the docco (Concepts manual and Performance Tuning guide);
    - books, like Tom Kyte's "Expert One on One Oracle", "Effective Oracle By Design", and newer on apress.com

  • ORA-01653: unable to extend table  by 16 in tablespace

    Hi All,
    When i run the script it throws the following error msg:
    ORA-01653: unable to extend table by 16 in tablespace
    Can anyone help me.
    Thanks in advance

    See this link and get an idea of it:
    http://www.dbmotive.com/oracle_error_codes.php?errcode=01653
    Generally when u try to create a table of size more than the tablespace you will encounter this problem.Even for more no of columns you will face this problem.

  • Testcase for error - "Unable to allocate thread control block"

    Hello,
    The down-below code throws the error message:
    db_stat: Unable to allocate thread control block
    BDB: 4.8, OS: Ubuntu 9.10
    Thanks
    #include <stdlib.h>
    #include <sys/ipc.h>
    #include <db.h>
    #define DIRECTORY "/tmp/db"
    int main()
    // open environment
    DB_ENV *handle;
    int status = db_env_create( &handle, 0 );
    status = handle->set_cachesize( handle, 0, 32*1024*1024, 0 );
    status = handle->set_thread_count( handle, 0x100 );
    key_t key = ftok( DIRECTORY, 'M' );
    handle->set_shm_key( handle, key );
    u_int32_t flags = DB_CREATE | DB_INIT_MPOOL | DB_INIT_TXN | DB_INIT_LOCK | DB_INIT_LOG | DB_SYSTEM_MEM;
    status = handle->open( handle, DIRECTORY, flags, 0644 );
    if( status != 0 )
    exit( 1 );
    // raise error
    chdir( DIRECTORY );
    for( int i=0; i < 0x1000; ++i )
    system( "db_stat -e | grep process/thread | wc" );
    return 0;
    }

    Hello,
    I am still looking into this, but upon closer examination here is the situation, basically as reported.
    The test calls set_thread_count which sizes the memory. In __env_attach(), (dbenv->thr_max is used to size the region. So you are correct, the higher the value used in set_thread_count, the larger the size of the region will be. Eventually that memory will be depleted, and __env_alloc_size() returns ENOMEM, after multiple calls to system(db_stat). __env_alloc_free() is not called. This is the part I am still investigating.
    The test uses system to fork a separate processes for db_stat and the failing stack is:
    lt-db_stat: assert failure: ../dist/../env/env_failchk.c/426: "ret == 0"
    lt-db_stat: __os_stack+0x2b
    lt-db_stat: __os_abort+0x1d
    lt-db_stat: __db_assert+0x47
    lt-db_stat: __env_set_state+0x53c
    lt-db_stat: __env_attach_regions+0x38b
    lt-db_stat: __env_open+0x154
    lt-db_stat: __env_open_pp+0x334
    lt-db_stat: lt-db_stat
    So db_stat is opening an environment, attaching to its region, and then __env_set_state() calls __env_alloc(). It is __env_alloc() which fails with ENOMEM after some point when there is no more space to be allocated from the shared region. And I'm still looking into that space would be returned to the shared region.
    Thanks,
    Sandra

Maybe you are looking for

  • Help Me! iTunes Screwed Up 1500 songs on my iPod When I Updated

    Hope someone out there can help me. My son updated the iTunes software on our PC (Windows XP Media) as recommended, and now whenever you click on a song imprted from a CD, you get a message that iTunes cannot locate the file. We're talking more than

  • Problems adding info to a JTable

    Hi, list, I was figthing all this week with a JTable issue and I haven't more resources to try. I think that it's a complex problem to explain, but I'll try it as well I can. SCENARIO: - There is a panel with 2 JTables (sqlServerJTable and oracleJTab

  • Issues Syncing Photos to PC from iPad with ios5 with Solution.

    As far as transferring pictures TO your PC FROM the Ipad2 (in my case) with Windows 7, I have a done a lot of testing with the new IOS5. As far as I can tell, only pictures taken with the device can be uploaded. So pictures to the iPad using Dropbox;

  • HT201317 how do i find my i cloud photo's on my mac ?

    How do I find my icloud phot's on my mac ?

  • SSD Condition types in Controlling

    Dear All, We maintain the SD condition types in CO for Profitability analysis purpose. can anyone tell me the Transaction code for the same as i have used it before and am nto recollecting the same. In Co - we maintain the same condition tpye with a