ORA-4031 Solaris

Hi,
I'm having problems with the following error message: ORA-4031: unable to allocate 72 bytes of shared memory ("large pool", "unknown object", "session heap", "trigger condition node"). It always appears the SECOND time I REMOTELY log in to a database. Local connections never experience this problem. The database which is running under Oracle 9.2.0.1 was created by a point in time recovery from an Oracle 9.2.0.8 database. The OS is Solaris 9.
Any ideas?

The error says an allocation FROM large pool FOR session heap has failed. This indicates that you're using shared servers for your remote sessions (and local sessions are using dedicated) and the shared server sessions run out of space in large pool.
So you can query v$sgastat to see how much memory there's free in large pool when you get this error.
The solution would be either to increase large pool size (with large_pool_size parameter on 9i) or stop using shared servers if you don't have too many connections to database...
Tanel Poder
http://blog.tanelpoder.com

Similar Messages

  • ORA-4031 [512024] [large pool] [unknown object] [large pool] [PX msg pool]

    Hello Friends,
    I am frequently getting error in alert.log file.
    ORA-4031 [512024] [large pool] [unknown object] [large pool] [PX msg pool]
    Database version: 11gR2
    OS : Solaris 10
    SGA Size 4gb
    SGA Target 4112mb
    I am unable to identify the cause for above error.
    Some time database become hang.
    I can also see many wait events "latch: parallel query alloc buffer"
    Please guide me what could be the cause of this problem

    Hi
    Please check below which could be helpful for your issue:
    Master Note for Diagnosing ORA-4031 [ID 1088239.1]
    https://support.oracle.com/CSP/ui/flash.html#tab=Dashboard%28page=GRHome&id=gkzpuq90%28domainId=ORA4031%29%29
    Regard
    Helios

  • Explain one query in 256M shared pool and ORA-4031 .

    Hi,
    looks like Oracle 9.2.0.8 got some problems with explaining huge (1000 lines) queries, here
    goes ORA-4031 dump, shared pool is about 256 M but there are no other sessions in that DB only mine .
    I can reproduce that in 1GB shared pool as well .
    *** 2010-09-06 09:43:24.005
    *** SESSION ID:(13.24) 2010-09-06 09:43:23.997
    =================================
    Begin 4031 Diagnostic Information
    =================================
    The following information assists Oracle in diagnosing
    causes of ORA-4031 errors.  This trace may be disabled
    by setting the init.ora parameter _4031_dump_bitvec = 0
    ======================================
    Allocation Request Summary Information
    ======================================
    Current information setting:  00654fff
      Dump Interval=300 seconds  SGA Heap Dump Interval=3600 seconds
      Last Dump Time=09/06/2010 09:43:22
    Allocation request for: qknAllocate : qkn
    Heap: 70000002aa6f4e8, size: 640
    HEAP DUMP heap name="sga heap"  desc=700000000000058
    extent sz=0xfe0 alt=200 het=32767 rec=9 flg=-126 opc=0
    parent=0 owner=0 nex=0 xsz=0x0
    HEAP DUMP heap name="sql area"  desc=70000002aa6f4e8
    extent sz=0x1040 alt=32767 het=32 rec=0 flg=2 opc=2
    parent=700000000000058 owner=0 nex=0 xsz=0x1
    Subheap has 102506016 bytes of memory allocated
    ====================
    Process State Object
    ====================
    SO: 7000000222fe540, type: 2, owner: 0, flag: INIT/-/-/0x00
      (process) Oracle pid=12, calls cur/top: 700000021736ba0/700000021736ba0, flag: (0) -
                int error: 0, call error: 0, sess error: 0, txn error 0
      (post info) last post received: 199 0 4
                  last post received-location: kslpsr
                  last process to post me: 7000000222fca88 1 6
                  last post sent: 0 0 16
                  last post sent-location: ksasnd
                  last process posted by me: 7000000222fca88 1 6
      (latch info) wait_event=0 bits=0
        Process Group: DEFAULT, pseudo proc: 7000000212e7290
        O/S info: user: oracle, term: UNKNOWN, ospid: 6766752
        OSD pid info: Unix process pid: 6766752, image: oracle@prod3 (TNS V1-V3)
    =========================
    User Session State Object
    =========================
    SO: 7000000226ee540, type: 4, owner: 7000000222fe540, flag: INIT/-/-/0x00
      (session) trans: 0, creator: 7000000222fe540, flag: (100045) USR/- BSY/-/-/-/-/-
                DID: 0001-000C-00000002, short-term DID: 0000-0000-00000000
                txn branch: 0
                oct: 50, prv: 0, sql: 70000002aa7fbf8, psql: 0, user: 2622/INSTALL
                 program: sqlplus.exe
      application name: SQL*Plus, hash value=3669949024
      last wait for 'db file sequential read' blocking sess=0x0 seq=93 wait_time=11432
              file#=1, block#=106e8, blocks=1
      temporary object counter: 0
    =========================
    Current Parent KGL Object
    =========================
      LIBRARY OBJECT HANDLE: handle=70000002aa7fbf8
      name=
    explain plan for
    select *
    from salda
    where saldo <> 0
      and konta in ('361','362','363','371','372','373','380','381','382','383','384','385','386','387','388','389','390','391','392','393',
                       '394','395','396','397','398','399','400','401','402','403','404','405','406','407','408','409','410','411','412','413',
      hash=ff099bfd timestamp=09-06-2010 09:41:45
      namespace=CRSR flags=RON/KGHP/TIM/PN0/[10010000]
      kkkk-dddd-llll=0000-0001-0001 lock=N pin=X latch#=7
      lwt=70000002aa7fc28[70000002aa7fc28,70000002aa7fc28] ltm=70000002aa7fc38[70000002aa7fc38,70000002aa7fc38]
      pwt=70000002aa7fc58[70000002aa7fc58,70000002aa7fc58] ptm=70000002aa7fce8[70000002aa7fce8,70000002aa7fce8]
      ref=70000002aa7fc08[70000002aa7fc08, 70000002aa7fc08] lnd=70000002aa7fd00[70000002aa7fd00,70000002aa7fd00]
        LIBRARY OBJECT: object=70000002aa6fc98
        type=CRSR flags=EXS[0001] pflags= [00] status=VALD load=0
        CHILDREN: size=16
        child#    table reference   handle
             0 70000002aa6ff08 70000002aa6fbc0 70000002aa6f7a0
    ==================
    Current KGL Object
    ==================
      LIBRARY OBJECT HANDLE: handle=70000002aa6f7a0
      namespace=CRSR flags=RON/KGHP/PN0/[10010000]
      kkkk-dddd-llll=0000-0000-0000 lock=N pin=X latch#=7
      lwt=70000002aa6f7d0[70000002aa6f7d0,70000002aa6f7d0] ltm=70000002aa6f7e0[70000002aa6f7e0,70000002aa6f7e0]
      pwt=70000002aa6f800[70000002aa6f800,70000002aa6f800] ptm=70000002aa6f890[70000002aa6f890,70000002aa6f890]
      ref=70000002aa6f7b0[70000002aa6fbc0, 70000002aa6fbc0] lnd=70000002aa6f8a8[70000002aa6f8a8,70000002aa6f8a8]
        LIBRARY OBJECT: object=70000002aa6f3b8
        type=CRSR flags=EXS[0001] pflags= [00] status=VALD load=0
    ===========================
    Current Instatiation Object
    ===========================
    INSTANTIATION OBJECT: object=1102fa2e0
    type="cursor"[2] lock=70000002865ffe0 handle=70000002aa7fbf8 body=0 level=0
    flags=FST[60] executions=0
    cursor name:
    explain plan for
    select *
    from salda
    where saldo <> 0
      and nr_konta in ('361','362','363','371','372','373','380','381','382','383','384','385','386','387','388','389','390','391','392','393',
                       '394','395','396','397','398','399','400','401','402','403','404','405','406','407','408','409','410','411','412','413',
                       '414','432','450','453','454','455','456','457','458','459','460','461','462','463','464','465','466','467','468','469',
                       '470','471','472','473','474','475','476','477','478','479','480','481')
      and (
    (umowa = lpad('2169725150',10) and nr_klasy = lpad('7',3)) or
    (umowa = lpad('2170639147',10) and nr_klasy = lpad('13',3)) or
    (umowa = lpad('2170815147',10) and nr_klasy = lpad('13',3)) or
    (umowa = lpad('2170991138',10) and nr_klasy = lpad('13',3)) or
    (umowa = lpad('2173034150',10) and nr_klasy = lpad('7',3)) or
    (umowa = lpad('2173821138',10) and nr_klasy = lpad('13',3)) or
    (umowa = lpad('2174491138',10) and nr_klasy = lpad('13',3)) or
    (umowa = lpad('2176065138',10) and nr_klasy = lpad('13',3)) or
    (umowa = lpad('2177180150',10) and nr_klasy = lpad('7',3)) or
    (umowa = lpad('2178183150',10) and nr_klasy = lpad('7',3)) or
    (umowa = lpad('2178609150',10) and nr_klasy = lpad('7',3)) or
    (umowa = lpad('2180241147',10) and nr_klasy = lpad('27',3)) or
    (umowa = lpad('2180252147',10) and nr_klasy = lpad('13',3)) or
    (umowa = lpad('2180377148',10) and nr_klasy = lpad('13',3)) or
    (umowa = lpad('2180787148',10) and nr_klasy = lpad('13',3)) or
    (umowa = lpad('2181011148',10) and nr_klasy = lpad('13',3)) or
    (umowa = lpad('2183314150',10) and nr_klasy = lpad('9',3)) or
    (umowa = lpad('2187754150',10) and nr_klasy = lpad('9',3)) or
    (umowa = lpad('2189036150',10) and nr_klasy = lpad('9',3)) or
    (umowa = lpad('2189362150',10) and nr_klasy = lpad('9',3)) or
    (umowa = lpad('2189685150',10) and nr_klasy = lpad('27',3)) or
    (umowa = lpad('2191061124',10) and nr_klasy = lpad('7',3)) or
    (umowa = lpad('2194768150',10) and nr_klasy = lpad('27',3)) or
    (umowa = lpad('2195063150',10) and nr_klasy = lpad('9',3)) or
    (umowa = lpad('2195568150',10) and nr_klasy = lpad('9',3)) or
    (umowa = lpad('2196774143',10) and nr_klasy = lpad('7',3)) or
    (umowa = lpad('2196872143',10) and nr_klasy = lpad('7',3)) or
    (umowa = lpad('2196964143',10) and nr_klasy = lpad('7',3)) or
    .... a lot off similar lines
    child pin: 0, child lock: 70000002865fb18, parent lock: 70000002865ffe0
    xscflg: 4004, parent handle: 70000002aa7fbf8, xscfl2: 0
    ----- Call Stack Trace -----
    calling              call     entry                argument values in hex
    location             type     point                (? means dubious value)
    ksm_4031_dump+065c   bl       ksedst               110006450 ?
    ksmasg+0084          bl       ksm_4031_dump        FFFFFFFFFFF5F60 ? 10299AAF8 ?
                                                       000000000 ? 70000002A9007F8 ?
                                                       000000000 ? 000000000 ?
    kghnospc+0178        bl       _ptrgl
    kghalp+00f0          bl       kghnospc             FFFFFFFFFFF6150 ?
                                                       422222247FFFFFFC ?
                                                       100107620 ? 080000000 ?
                                                       000000000 ?
    kksalc+0048          bl       kghalp               100107620 ? 000000000 ?
                                                       FFFFFFFFFFF62C0 ? 000000000 ?
                                                       000000080 ? 000000003 ?
    qknAllocate+0040     bl       kksalc               70000002AC2E1C0 ?
                                                       70000002C873DD8 ?
                                                       70000002AC2E1C0 ?
    qknltAllocate+00d0   bl       qknAllocate          FFFFFFFFFFF65C0 ?
                                                       7000000345292A0 ? 000000000 ?
                                                       000000003 ?
    qkatab+0ec8          bl       qknltAllocate        000000000 ? 000000000 ?
                                                       000000000 ? 000000000 ?
                                                       000000000 ? 000000000 ?
                                                       000000000 ? 000000000 ?
                                                       70000002C874170 ?
    qkajoi+0b30          bl       qkatab               000000000 ? 110378F00 ?
                                                       000000000 ? 000000042 ?
                                                       100002100050000 ? 110378530 ?
    qkaqkn+08d0          bl       qkajoi               000000000 ? 000000000 ?
                                                       000000000 ? 000000000 ?
                                                       000000000 ? 000000000 ?
                                                       000000000 ? 000000000 ?
    qkadrv+07a0          bl       qkaqkn               000000000 ? 10299B690 ?
    ===============================
    Memory Utilization of Subpool 1
    ===============================
         Allocation Name          Size
    "free memory              "   148632616
    "miscellaneous            "     3998104
    "qmps connections         "     1454200
    "errors                   "           0
    "txncallback              "      246640
    "PL/SQL MPCODE            "      506520
    "enqueue                  "     6054632
    "KSXR pending messages que"      853952
    "KQR L PO                 "      221192
    "parameters               "        1064
    "Checkpoint queue         "     1026560
    "1M buffer                "      528384
    "db_block_hash_buckets    "      589824
    "fixed allocation callback"        1112
    "sim trace entries        "      196608
    "KGLS heap                "      374728
    "KGK heap                 "         552
    "channel handle           "      780672
    "MTTR advisory            "       34088
    "DML lock                 "     1022032
    "trigger source           "        2288
    "trigger defini           "         280
    "dictionary cache         "     2137216
    "table definiti           "         456
    "KQR X PO                 "       28352
    "transaction              "     2747760
    "constraints              "      824960
    "library cache            "     2030512
    "message pool freequeue   "      213264
    "sql area                 "     1546168
    "sessions                 "     4467008
    "replication session stats"     1004720
    "event statistics per sess"    18791304
    "KQR S SO                 "        5632
    "sim memory hea           "      157768
    "PL/SQL DIANA             "       80104
    "KQR M PO                 "      141320
    "messages                 "      624000
    ===============================
    Memory Utilization of Subpool 2
    ===============================
         Allocation Name          Size
    "free memory              "     6285488
    "miscellaneous            "     8927008
    "log_buffer               "     1056800
    "FileOpenBlock            "    16270720
    "sim memory hea           "      162008
    "KQR S SO                 "        9472
    "transaction              "     3297312
    "PL/SQL DIANA             "           0
    "KGLS heap                "       47776
    "table definiti           "           0
    "db_handles               "     3480000
    "KQR L PO                 "      213056
    "Temporary Tables State Ob"      775488
    "trigger inform           "           0
    "message pool freequeue   "      558720
    "trigger defini           "           0
    "fixed allocation callback"        1168
    "branch                   "     1180120
    "ktlbk state objects      "     1948360
    "PLS non-lib hp           "        2088
    "KGK heap                 "        6448
    "KQR M SO                 "        1024
    "dictionary cache         "     2137216
    "parameters               "           0
    "Checkpoint queue         "     1026560
    "trigger source           "           0
    "enqueue resources        "      768192
    "library cache            "     1798152
    "KSXR receive buffers     "     1034000
    "sql area                 "   105380864
    "processes                "     4104000
    "sessions                 "     4469712
    "joxs heap init           "        4240
    "errors                   "           0
    "event statistics per sess"    18779936
    "PL/SQL MPCODE            "           0
    "KQR M PO                 "      173592
    "UNDO INFO SEGMENTED ARRAY"      649856
    LIBRARY CACHE STATISTICS:
    namespace           gets hit ratio      pins hit ratio    reloads   invalids
    CRSR                3184     0.874     12550     0.950         97         11
    TABL/PRCD/TYPE      1917     0.871      2293     0.811          0          0
    BODY/TYBD             52     0.788        52     0.788          0          0
    TRGR                  33     0.939        33     0.939          0          0
    INDX                  74     0.514        43     0.140          0          0
    CLST                 353     0.977       489     0.980          0          0
    OBJE                   0     0.000         0     0.000          0          0
    PIPE                   0     0.000         0     0.000          0          0
    LOB                    0     0.000         0     0.000          0          0
    DIR                    0     0.000         0     0.000          0          0
    QUEU                   0     0.000         0     0.000          0          0
    OBJG                   0     0.000         0     0.000          0          0
    PROP                   0     0.000         0     0.000          0          0
    JVSC                   0     0.000         0     0.000          0          0
    JVRE                   0     0.000         0     0.000          0          0
    ROBJ                   0     0.000         0     0.000          0          0
    REIP                   0     0.000         0     0.000          0          0
    CPOB                   0     0.000         0     0.000          0          0
    EVNT                   8     0.750        91     0.978          0          0
    SUMM                   0     0.000         0     0.000          0          0
    DIMN                   0     0.000         0     0.000          0          0
    CTX                    0     0.000         0     0.000          0          0
    OUTL                   0     0.000         0     0.000          0          0
    RULS                   0     0.000         0     0.000          0          0
    RMGR                   0     0.000         0     0.000          0          0
    IFSD                   0     0.000         0     0.000          0          0
    PPLN                   0     0.000         0     0.000          0          0
    PCLS                   0     0.000         0     0.000          0          0
    SUBS                   0     0.000         0     0.000          0          0
    LOCS                   0     0.000         0     0.000          0          0
    RMOB                   0     0.000         0     0.000          0          0
    RSMD                   0     0.000         0     0.000          0          0
    JVSD                   0     0.000         0     0.000          0          0
    ENPR                   0     0.000         0     0.000          0          0
    RELC                   0     0.000         0     0.000          0          0
    STREAM                 0     0.000         0     0.000          0          0
    APPLY                  0     0.000         0     0.000          0          0
    APPLY SOURCE           0     0.000         0     0.000          0          0
    APPLY DESTN            0     0.000         0     0.000          0          0
    TEST                   0     0.000         0     0.000          0          0
    CUMULATIVE          5621     0.874     15551     0.928         97         11
    Permanent space allocted for Load Locks
    LATCH:0  TOTAL SPACE: 4248
    FREELIST CHUNK COUNT:59  OBJECT SIZE:72
    Permanent space allocted for KGL pins
    LATCH:0  TOTAL SPACE: 4224
    FREELIST CHUNK COUNT:13  OBJECT SIZE:128
    LATCH:1  TOTAL SPACE: 4224
    FREELIST CHUNK COUNT:15  OBJECT SIZE:128
    LATCH:2  TOTAL SPACE: 4224
    FREELIST CHUNK COUNT:18  OBJECT SIZE:128
    LATCH:3  TOTAL SPACE: 4224
    FREELIST CHUNK COUNT:19  OBJECT SIZE:128
    LATCH:4  TOTAL SPACE: 4224
    FREELIST CHUNK COUNT:21  OBJECT SIZE:128
    LATCH:5  TOTAL SPACE: 4224
    FREELIST CHUNK COUNT:27  OBJECT SIZE:128
    LATCH:6  TOTAL SPACE: 4224
    FREELIST CHUNK COUNT:16  OBJECT SIZE:128
    Permanent space allocted for KGL locks
    LATCH:0  TOTAL SPACE: 4216
    FREELIST CHUNK COUNT:11  OBJECT SIZE:136
    LATCH:1  TOTAL SPACE: 4216
    FREELIST CHUNK COUNT:13  OBJECT SIZE:136
    LATCH:2  TOTAL SPACE: 4216
    FREELIST CHUNK COUNT:16  OBJECT SIZE:136
    ...<snipped>...any ideas ?

    GregG wrote:
    Thanks,
    but I'm interested in what is the particular problem. Looks like sql area is short on free chunks .I can't say if it is an oracle bug so feel free to ignore my post.
    select *
    from salda
    where saldo  0
      and nr_konta in ('361','362','363','371','372','373','380','381','382','383','384','385','386','387','388','389','390','391','392','393',
                       '394','395','396','397','398','399','400','401','402','403','404','405','406','407','408','409','410','411','412','413',
                       '414','432','450','453','454','455','456','457','458','459','460','461','462','463','464','465','466','467','468','469',
                       '470','471','472','473','474','475','476','477','478','479','480','481')
      and (
    (umowa = lpad('2169725150',10) and nr_klasy = lpad('7',3)) or
    (umowa = lpad('2170639147',10) and nr_klasy = lpad('13',3)) or
    (umowa = lpad('2170815147',10) and nr_klasy = lpad('13',3)) or
    (umowa = lpad('2170991138',10) and nr_klasy = lpad('13',3)) or
    (umowa = lpad('2173034150',10) and nr_klasy = lpad('7',3)) or
    (umowa = lpad('2173821138',10) and nr_klasy = lpad('13',3)) or
    (umowa = lpad('2174491138',10) and nr_klasy = lpad('13',3)) or
    (umowa = lpad('2176065138',10) and nr_klasy = lpad('13',3)) or
    (umowa = lpad('2177180150',10) and nr_klasy = lpad('7',3)) or
    (umowa = lpad('2178183150',10) and nr_klasy = lpad('7',3)) or
    (umowa = lpad('2178609150',10) and nr_klasy = lpad('7',3)) or
    (umowa = lpad('2180241147',10) and nr_klasy = lpad('27',3)) or
    (umowa = lpad('2180252147',10) and nr_klasy = lpad('13',3)) or
    (umowa = lpad('2180377148',10) and nr_klasy = lpad('13',3)) or
    (umowa = lpad('2180787148',10) and nr_klasy = lpad('13',3)) or
    (umowa = lpad('2181011148',10) and nr_klasy = lpad('13',3)) or
    (umowa = lpad('2183314150',10) and nr_klasy = lpad('9',3)) or
    (umowa = lpad('2187754150',10) and nr_klasy = lpad('9',3)) or
    (umowa = lpad('2189036150',10) and nr_klasy = lpad('9',3)) or
    (umowa = lpad('2189362150',10) and nr_klasy = lpad('9',3)) or
    (umowa = lpad('2189685150',10) and nr_klasy = lpad('27',3)) or
    (umowa = lpad('2191061124',10) and nr_klasy = lpad('7',3)) or
    (umowa = lpad('2194768150',10) and nr_klasy = lpad('27',3)) or
    (umowa = lpad('2195063150',10) and nr_klasy = lpad('9',3)) or
    (umowa = lpad('2195568150',10) and nr_klasy = lpad('9',3)) or
    (umowa = lpad('2196774143',10) and nr_klasy = lpad('7',3)) or
    (umowa = lpad('2196872143',10) and nr_klasy = lpad('7',3)) or
    (umowa = lpad('2196964143',10) and nr_klasy = lpad('7',3)) or
    .... a lot off similar linesThis looks like an ideal candidate for using a Global Temporary table (if you can).
    So if you can insert all combination of valid values for "umowa" and "nr_klasy" columns in a GTT,
    you can simplify your query as
    select *
    from salda
    where saldo  0
      and nr_konta in ('361','362','363','371','372','373','380','381','382','383','384','385','386','387','388','389','390','391','392','393',
                       '394','395','396','397','398','399','400','401','402','403','404','405','406','407','408','409','410','411','412','413',
                       '414','432','450','453','454','455','456','457','458','459','460','461','462','463','464','465','466','467','468','469',
                       '470','471','472','473','474','475','476','477','478','479','480','481')
    and (umowa, nr_klasy) in (select lpad(col1,10), lpad(col2,3) from gtt_temp)

  • ORA-604 and ORA-4031 during installation of SAP

    Hi,
    I tried to install Oracle 10.2.0.2 on Windows 2003 with SAP R3E 47X2.
    However, during the installation on the Database Load phases it pops up a ORA-604 and ORA-4031 error log. It was unable to completed the Database Load phase showed as R3 load jobs: running 1, waiting 0.
      I tried to set the share pool in init.ora as shared_pool_size = 40000000. It still show up as shared memory issue.
    The log shows as,
    E:\usr\sap\IDE\SYS\exe\run/R3load.exe: START OF LOG: 20081201110818
    E:\usr\sap\IDE\SYS\exe\run/R3load.exe: sccsid @(#) $Id: //bas/640_REL/src/R3ld/R3load/R3ldmain.c#12 $ SAP
    E:\usr\sap\IDE\SYS\exe\run/R3load.exe: version R6.40/V1.4 [UNICODE]
    Compiled Dec 15 2005 22:22:21
    E:\usr\sap\IDE\SYS\exe\run/R3load.exe -dbcodepage 4103 -i C:\Program Files\sapinst_instdir\R3E47X2\SYSTEM\ABAP\ORA\UC\DB/SAPSSEXC.cmd -l C:\Program Files\sapinst_instdir\R3E47X2\SYSTEM\ABAP\ORA\UC\DB/SAPSSEXC.log -stop_on_error
    DbSl Trace: ORA-1403 when accessing table SAPUSER
    DbSl Trace: Failed to register client info: orc=604
    (DB) INFO: connected to DB
    (DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): UTF8
    DbSl Trace: Error in exec_immediate()
    DbSl Trace: ORA-604 occurred when executing SQL statement (parse error offset=15)
    (DB) ERROR: DDL statement failed
    (TRUNCATE TABLE "DYNPSOURCE")
    DbSlExecute: rc = 99
      (SQL error 604)
      error message returned by DbSl:
    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
    E:\usr\sap\IDE\SYS\exe\run/R3load.exe: job finished with 1 error(s)
    E:\usr\sap\IDE\SYS\exe\run/R3load.exe: END OF LOG: 20081201110858
    Could anyone help me about it?
    Thanks.

    hi Nikhuj,
    I reset the installation and however endup the installation still have an error. Please help me to check with the following:
    SQL> connect system
    Enter password:
    ERROR:
    ORA-00604: error occurred at recursive SQL level 2
    ORA-04031: unable to allocate 4120 bytes of shared memory ("shared
    pool","select ts#,file#,block#,nvl(...","Typecheck","kgghtInit")
    SQL> show parameters shared_pool;
    NAME                   TYPE     VALUE
    shared_pool_reserved_size   big integer 12881756
    shared_pool_size         big integer 124M
    SQL> alter system set shared_pool_size=40000000;
    alter system set shared_pool_size=40000000
    ERROR at line 1:
    ORA-02097: parameter cannot be modified because specified value is invalid
    ORA-04034: unable to shrink pool to specified size
    As I had changed the parameter in initsmpl.ora shared pool from 10000000 to 40000000. The log as below was showing that:
    SAPAPPL1.log:
    Error accessing package DBMS_APPLICATION_INFO
    Connected.
    (IMP) INFO: import of LXE_PPX__1 completed (1 rows) #20081201200124
    (DB) INFO: LXE_PPX__1~0 created #20081201200124
    DbSl Trace: Error in exec_immediate()
    DbSl Trace: ORA-604 occurred when executing SQL statement (parse error offset=34)
    (DB) ERROR: DDL statement failed
    (CREATE  INDEX "LXE_PPX__1~CNT" ON "LXE_PPX__1" ( "T_LANG" , "S_LANG" ,
    "DOMATYP" , "DOMANAM" , "USAGECNT"  ) TABLESPACE PSAPIDE STORAGE (INITIAL 0 NEXT
    0000010240K MINEXTENTS 0000000001 MAXEXTENTS 2147483645 PCTINCREASE 0 ) )
    DbSlExecute: rc = 99
      (SQL error 604)
      error message returned by DbSl:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-04031: unable to allocate 4120 bytes of shared memory ("shared pool","CREATE
    UNIQUE INDEX "PA0399~...","Typecheck","kgghteInit")
    (DB) INFO: disconnected from DB
    E:\usr\sap\IDE\SYS\exe\run/R3load.exe: job finished with 1 error(s)
    E:\usr\sap\IDE\SYS\exe\run/R3load.exe: END OF LOG: 20081201200129
    SAPAPPL2.log:
    (DB) INFO: TCN2T~0 created #20081201200843
    DbSl Trace: Error in exec_immediate()
    DbSl Trace: ORA-604 occurred when executing SQL statement (parse error offset=0)
    (DB) ERROR: DDL statement failed
    (CREATE TABLE "TCN41" ( "MANDT" VARCHAR2(9) DEFAULT '000' NOT NULL , "PLNAW"
    VARCHAR2(3) DEFAULT ' ' NOT NULL , "PROFIDNETZ" VARCHAR2(21) DEFAULT ' ' NOT NULL
    , "FLG_ERF_H" VARCHAR2(3) DEFAULT ' ' NOT NULL , "ESOKZ" VARCHAR2(3) DEFAULT ' '
    NOT NULL , "EKORG" VARCHAR2(12) DEFAULT ' ' NOT NULL , "KSTAR_FRMD" VARCHAR2(30)
    DEFAULT ' ' NOT NULL , "STEUS_WORK" VARCHAR2(12) DEFAULT ' ' NOT NULL ,
    "STEUS_FRMD" VARCHAR2(12) DEFAULT ' ' NOT NULL , "STEUS_PRIM" VARCHAR2(12)
    DEFAULT ' ' NOT NULL , "KSTAR_COST" VARCHAR2(30) DEFAULT ' ' NOT NULL ,
    "KSTAR_SERV" VARCHAR2(30) DEFAULT ' ' NOT NULL , "STEUS_SERV" VARCHAR2(12)
    DEFAULT ' ' NOT NULL , "DAUNE" VARCHAR2(9) DEFAULT ' ' NOT NULL , "ARBEH"
    VARCHAR2(9) DEFAULT ' ' NOT NULL , "WAERS" VARCHAR2(15) DEFAULT ' ' NOT NULL ,
    "SLWID" VARCHAR2(21) DEFAULT ' ' NOT NULL , "LVARI" VARCHAR2(6) DEFAULT ' ' NOT
    NULL , "INDET" VARCHAR2(3) DEFAULT ' ' NOT NULL , "BUKRS" VARCHAR2(12) DEFAULT '
    ' NOT NULL , "AOB_KEY" VARCHAR2(3) DEFAULT ' ' NOT NULL , "VORNR_DEL" VARCHAR2
    (12) DEFAULT ' ' NOT NULL , "TERKZ" VARCHAR2(3) DEFAULT ' ' NOT NULL , "AUART"
    VARCHAR2(12) DEFAULT ' ' NOT NULL , "WERKS" VARCHAR2(12) DEFAULT ' ' NOT NULL ,
    "DISPO" VARCHAR2(9) DEFAULT ' ' NOT NULL , "RSCHL_OFER" VARCHAR2(18) DEFAULT ' '
    NOT NULL , "RSCHL_OFRD" VARCHAR2(18) DEFAULT ' ' NOT NULL , "RSCHL_UFER"
    VARCHAR2(18) DEFAULT ' ' NOT NULL , "RSCHL_UFRD" VARCHAR2(18) DEFAULT ' ' NOT
    NULL , "RSCHL_OCST" VARCHAR2(18) DEFAULT ' ' NOT NULL , "RSCHL_UCST" VARCHAR2(18)
    DEFAULT ' ' NOT NULL , "GR_PRF_GR" VARCHAR2(12) DEFAULT ' ' NOT NULL ,
    "GR_PRF_NAM" VARCHAR2(36) DEFAULT ' ' NOT NULL , "FHORI" VARCHAR2(9) DEFAULT ' '
    NOT NULL , "NETSTUFE" VARCHAR2(6) DEFAULT '00' NOT NULL , "VAGRP" VARCHAR2(9)
    DEFAULT ' ' NOT NULL , "MSGTY" VARCHAR2(3) DEFAULT ' ' NOT NULL , "AOB_DARST"
    VARCHAR2(3) DEFAULT ' ' NOT NULL , "VRG_DARST" VARCHAR2(3) DEFAULT ' ' NOT NULL ,
    "NO_DISP" VARCHAR2(3) DEFAULT ' ' NOT NULL , "COLKZ_ELEM" VARCHAR2(33) DEFAULT '
    ' NOT NULL , "COLKZ_TEIL" VARCHAR2(33) DEFAULT ' ' NOT NULL , "COLKZ_MLST"
    VARCHAR2(33) DEFAULT ' ' NOT NULL , "COLKZ_DOKU" VARCHAR2(33) DEFAULT ' ' NOT
    NULL , "COLKZ_MAT" VARCHAR2(33) DEFAULT ' ' NOT NULL , "VSPRF" VARCHAR2(21)
    DEFAULT ' ' NOT NULL , "CLASF" VARCHAR2(3) DEFAULT ' ' NOT NULL , "PROFILE_ID"
    VARCHAR2(30) DEFAULT ' ' NOT NULL , "BALK_PROF" VARCHAR2(36) DEFAULT ' ' NOT NULL
    , "KBED" VARCHAR2(3) DEFAULT ' ' NOT NULL , "KKALKR" VARCHAR2(3) DEFAULT ' ' NOT
    NULL , "LSTVAR" VARCHAR2(36) DEFAULT ' ' NOT NULL , "MATKL" VARCHAR2(27) DEFAULT
    ' ' NOT NULL , "MATEXIT" VARCHAR2(3) DEFAULT ' ' NOT NULL , "EKGRP" VARCHAR2(9)
    DEFAULT ' ' NOT NULL , "MATKL_FRMD" VARCHAR2(27) DEFAULT ' ' NOT NULL ,
    "EKGRP_FRMD" VARCHAR2(9) DEFAULT ' ' NOT NULL , "POSNR_MAT" VARCHAR2(12) DEFAULT
    '0000' NOT NULL , "SCHED_END" VARCHAR2(3) DEFAULT ' ' NOT NULL , "SCEND_ACT"
    VARCHAR2(3) DEFAULT ' ' NOT NULL , "NT_SEARCH1" VARCHAR2(6) DEFAULT ' ' NOT NULL
    , "NT_SEARCH2" VARCHAR2(6) DEFAULT ' ' NOT NULL , "NT_SEARCH3" VARCHAR2(6)
    DEFAULT ' ' NOT NULL , "MFLIC" VARCHAR2(9) DEFAULT ' ' NOT NULL , "MEINH_FRMD"
    VARCHAR2(9) DEFAULT ' ' NOT NULL , "MEINH_SERV" VARCHAR2(9) DEFAULT ' ' NOT NULL
    , "KSTAR_MATVORPL" VARCHAR2(30) DEFAULT ' ' NOT NULL , "KZERB" VARCHAR2(3)
    DEFAULT ' ' NOT NULL , "VALID" VARCHAR2(21) DEFAULT ' ' NOT NULL , "VALID_VG"
    VARCHAR2(21) DEFAULT ' ' NOT NULL , "SUBST" VARCHAR2(21) DEFAULT ' ' NOT NULL ,
    "SUBST_VG" VARCHAR2(21) DEFAULT ' ' NOT NULL , "FPART" VARCHAR2(6) DEFAULT ' '
    NOT NULL  ) TABLESPACE PSAPIDE STORAGE (INITIAL 65536 NEXT 0000000040K MINEXTENTS
    0000000001 MAXEXTENTS 2147483645 PCTINCREASE 0 ) )
    DbSlExecute: rc = 99
      (SQL error 604)
      error message returned by DbSl:
    ORA-00604: error occurred at recursive SQL level 2
    ORA-04031: unable to allocate 4040 bytes of shared memory ("shared pool","select
    i.obj#,i.ts#,i.file#,...","Typecheck","seg:kggfaAllocSeg")
    (DB) INFO: disconnected from DB
    E:\usr\sap\IDE\SYS\exe\run/R3load.exe: job finished with 1 error(s)
    E:\usr\sap\IDE\SYS\exe\run/R3load.exe: END OF LOG: 20081201200843
    SAPAPPL0.log:
    (DB) INFO: PA0398~0 created #20081201200124
    (DB) INFO: PA0399 created #20081201200124
    (IMP) INFO: import of PA0399 completed (12 rows) #20081201200124
    DbSl Trace: Error in exec_immediate()
    DbSl Trace: ORA-4031 occurred when executing SQL statement (parse error offset=0)
    (DB) ERROR: DDL statement failed
    (CREATE UNIQUE INDEX "PA0399~0" ON "PA0399" ( "MANDT", "PERNR", "SUBTY",
    "OBJPS", "SPRPS", "ENDDA", "BEGDA", "SEQNR" ) TABLESPACE PSAPIDE STORAGE (INITIAL
    0 NEXT 0000000080K MINEXTENTS 0000000001 MAXEXTENTS 2147483645 PCTINCREASE 0 ) )
    DbSlExecute: rc = 99
      (SQL error 4031)
      error message returned by DbSl:
    ORA-04031: unable to allocate 4120 bytes of shared memory ("shared pool","CREATE
    UNIQUE INDEX "PA0399~...","Typecheck","kgghteInit")
    (DB) INFO: disconnected from DB
    E:\usr\sap\IDE\SYS\exe\run/R3load.exe: job finished with 1 error(s)
    E:\usr\sap\IDE\SYS\exe\run/R3load.exe: END OF LOG: 20081201200129

  • Ora-4031 after reducing the max sga

    Oracle 10g R2 and Baan 5c on AIX 5.3 L (p550, 3792M , 4 lcpu)
    After I reduced the max_sga_size (so to avoid the paging), now I see more ora-4031 (out of shared memory loading library cache object) warnings in the udump trc file, not in alert file. In addition, they appeared in the log.ora.sql of Baan as an error message, so the query requests were hung or stopped.
    Reading from other posts and metalink note: 146599.1, it indicated that the system has extensive fragmentation problem. (REQUEST_FAILURES is > 0 and LAST_FAILURE_SIZE is > SHARED_POOL_RESERVED_MIN_ALLOC. )
    So I used the tips form AskTom to find the query scripts that may have bind variable problem and I did found some, most of them in 2~4 multiples. However, not all of them gave ora-4031 warning/error, actually only very few.
    So what should I do for the best practice of the performance? Correct the problems with the bind variable of all queries or
    increase the max SGA again.
    All the queries were produced by the Baan´s processes or modules.

    I got hit this thread while searching some other subjects.
    (This is kind of old... but answered for a long time)
    I think this is somewhat interesting problem.
    Here is one query showing in the query of mulitple copies in system by using asktom technique. The system return 3 copies.
    SELECT /*+ FIRST_ROWS INDEX(A TTSSOC@$IDX@) */ A.T$CLST FROM >BAANDB.TTSSOC@ A WHERE (A.T$CLST = :@ OR A.T$CLST = :@) AND A.T$ORNO = :@I think there is a chance that you're hitting bind mismatch problem.
    Is [email protected]$CLST(What an annoying names~) column is VARCHAR2 type? If yes, following thread will be helpful.
    Re: Is there any way to avoid hard parsing caused by "BIND_MISMATCH" in 10g

  • Oracle Support ORA-4031 Troubleshooting Tool problem - FILE VALIDATION FAIL

    Hi,
    Having problem while trying to use ORA-4031 Troubleshooting Tool on the Oracle Support site.
    I believe I upload all files correctly: db alert log, 4031 trace file and AWR report (HTML), answered YES to the question.
    But, get this error:
    "FILE VALIDATION FAILED: Fatal Error: missing 4031 information in the trace file. ..."
    However, the trace file has 4031 error information:
    *** SERVICE NAME:(SYS$BACKGROUND) 2011-12-20 08:27:06.548
    *** SESSION ID:(546.1) 2011-12-20 08:27:06.548
    *** 2011-12-20 08:27:06.548
    AUTO SGA: Dumping stacks and disabling background sga tuning on error 604, simerr=0
    ORA-00604: error occurred at recursive SQL level 2
    ORA-04031: unable to allocate 4120 bytes of shared memory ("shared pool","select shared_pool_size_for_...","Typecheck","kgghteInit")
    ----- Call Stack Trace -----
    calling call entry argument values in hex
    location type point (? means dubious value)
    ksedst+001c bl ksedst1 000000000 ? 646F33002040000 ?
    kmgsb_tune+0ce0 bl 03F5A418
    ksbcti+03d8 bl _ptrgl              
    ksbabs+025c bl ksbcti FFFFFFFFFFFD068 ? 000000006 ?
    70000004D63CBA0 ?
    kebm_mmon_main+02e4 bl 01FC6DA4
    ksbrdp+0408 bl _ptrgl              
    opirip+03fc bl 03F59B14
    opidrv+0448 bl opirip 110278B10 ? 41027B9D0 ?
    FFFFFFFFFFFF340 ?
    sou2o+0090 bl opidrv 3202AB38FC ? 440656000 ?
    FFFFFFFFFFFF340 ?
    opimai_real+0150 bl 01FC4EB4
    main+0098 bl opimai_real 000000000 ? 000000000 ?
    __start+0098 bl main 000000000 ? 000000000 ?
    --------------------- Binary Stack Dump ---------------------
    ========== FRAME [1] (ksedst+001c -> ksedst1) ==========
    Dump of memory from 0x0FFFFFFFFFFFBB70 to 0x0FFFFFFFFFFFBBE0
    FFFFFFFFFFFBB70 0FFFFFFF FFFFBBE0 42842228 00000000 [........B."(....]
    FFFFFFFFFFFBB80 00000001 000D9DE0 00000000 00000000 [................]
    FFFFFFFFFFFBB90 00000000 00000000 00000001 102242E8 [............."B.]
    FFFFFFFFFFFBBA0 00000000 00000000 0646F330 02040000 [.........F.0....]
    FFFFFFFFFFFBBB0 00000001 10000B00 00000001 05294C08 [.............)L.]
    FFFFFFFFFFFBBC0 00000000 0000025C 00000000 0000025C [.......\.......\]
    FFFFFFFFFFFBBD0 00000001 101902C0 0FFFFFFF FFFFBBE0 [................]
    ========== FRAME [2] (kmgsb_tune+0ce0 -> 03F5A418) ==========
    Dump of memory from 0x0FFFFFFFFFFFBBE0 to 0x0FFFFFFFFFFFBFE0
    FFFFFFFFFFFBBE0 0FFFFFFF FFFFCE60 00000000 00000000 [.......`........]
    FFFFFFFFFFFBBF0 00000001 04356164 00000000 00000000 [.....5ad........]
    (.... etc.)
    What am I doing wrong ?
    Oracle 10.2.0.3 (compatible=9.2.0) on AIX.
    Thanks.

    user12053739 wrote:
    My question here is not abuot ORA-4031 error and how to troubleshoot it, but about the error (FILE VALIDATION FAILED) that I receive in ORA-4031 Trobleshooting Tool on the Oracle Support web site. We do manuall analyses and troubleshooting as well, but would be nice if the tool works as well.Have you followed all the steps in (How to use the ORA-4031 Troubleshooting Tool on MOS [ID 1381442.1])? If yes, then I believe you need to log a SR for this issue as none of us maintain this tool, and you need someone from Oracle (development team who maintain it internally) to verify why you are getting that error when uploading the files.
    Thanks,
    Hussein

  • Ora-4031&ora-1280 error-Shared Memory Problem

    Sir ,
    I am using oracle Streams for Data Replication
    I am facing the problem while confifurung cApture Process..It is giving error-ora-4031
    description
    Ora-4031-Unable to allocate <n> bytes of shared memory ( "Shared Pool","Unknown Object ","Streams Pool","Internal low LCR")
    Ora-1280 : Ligminer Fatal error
    I followed the steps given below
         # Instance Setup
              setup is like
                   Database Mode = archive
                   Share_pool_size=52m &
                   share_pool_reseved_size= 5m (10% of share pool Area)
                   processes=500
                   parallel_max_servers=35
                   parallel_min_servers=1
                   job_que_processes=1
                   aq_tm_processe=1
                   global_name=true
                   Archive log mode =true
                   log_archive_dest_1 :='location =E:\oracle\archive1 reopen=30"
                   log_archive_dest_2 :='location =E:\oracle\archive2 reopen=30"
         # Stream Administrator Setup
         # LogMinor Tablespace Setup
         # Supplemental Logging
         # Configure Propagation Process
         # Configure Capture Process
         # Configure Instantiation SCN
         # Configure Apply Process
         # Start Apply Process
         # Start Capture Process
    Please give me as solution to overcome this problem

    I suspect you are running 10.1 or earlier version of the data base? If that is the case, logminer has a memory leak that runs the SGA out of memory over time.
    Look in metalink for logminer memory leak bugs. This forum has the exact bug if you search for it. It is patched in release 10.2.0.2.0. I just loaded that release and have other issues to fix before the bug appears again or not.
    Hope this helps,
    J.

  • ORA 4031

    ora 4031 is caused by a lot of 'in' and/or 'or' in one sql statement.
    and not by an (maybe) poor performance statement caused by a not existing index.
    SELECT LIKE THIS : p_rsize = 3500
      LOOP AT i_edidc INTO w_edidc.
        r_docnum-low = w_edidc-docnum.
        APPEND r_docnum.
        IF sy-tabix EQ p_rsize.
           SELECT docnum counter segnum segnam
                 APPENDING TABLE i_edid4
                 FROM edid4
                 WHERE docnum IN r_docnum
                   AND segnam IN s_segnam.
           FREE r_docnum.
        ENDIF.
      ENDLOOP.
    LAST DOCUMENT TO RETRIEVE
      IF NOT r_docnum[] IS INITIAL.
         SELECT docnum counter segnum segnam
               APPENDING TABLE i_edid4
               FROM edid4
               WHERE docnum IN r_docnum
                 AND segnam IN s_segnam.
       ENDIF.

    hi why are using this kind of selects,
    instead of that you can use <b>IDOC_READ_COMPLETELY</b>
       CLEAR: IT_EDIDS,IT_EDIDD.
        REFRESH: IT_EDIDS,IT_EDIDD.
    *-- Reading the IDoc Completely
        CALL FUNCTION 'IDOC_READ_COMPLETELY'
          EXPORTING
            DOCUMENT_NUMBER         = I_IDOC_NUMBER
          IMPORTING
            IDOC_CONTROL            = X_EDIDC
          TABLES
            INT_EDIDS               = IT_EDIDS
            INT_EDIDD               = IT_EDIDD
          EXCEPTIONS
            DOCUMENT_NOT_EXIST      = 1
            DOCUMENT_NUMBER_INVALID = 2
            OTHERS                  = 3.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    try this.., you need to pass only IDoc number.

  • ORA-07445 (solaris 9.0.) when inserting into LONG column

    i am getting a core-dump when inserting into a table w/ long column. running 9.0.1 on solaris.
    ORA-07445: exception encountered: core dump [kghtshrt()+68] [SIGSEGV] [Address not mapped to object] [0x387BBF0] [] []
    if anyone has ANY input - please provide it ... i am desperate at this point.
    i am trying to avoid upgrading to 9.2.0 to solve this problem.
    regards -
    jerome

    You should report this in a service request on http://metalink.oracle.com.
    It is a shame that you put all the effort here to describe your problem, but on the other hand you can now also copy & paste the question to Oracle Support.
    Because you are using 10.2.0.3; I am guessing that you have a valid service contract...

  • ORA.-27102  Solaris 10 x86 when creating DB

    I'm trying to create a DB with the DBCA and i get ORA-27123: unable to attach to shared memory segment ????
    Kernel param:
    set shmsys:shminfo_shmmax=4294967295
    set shmsys:shminfo_shmmin=1
    set shmsys:shminfo_shmmni=100
    set shmsys:shminfo_shmseg=10
    set semsys:seminfo_semmns=2000
    set semsys:seminfo_semmsl=1000
    set semsys:seminfo_semmni=100
    set semsys:seminfo_semopm=100
    set semsys:seminfo_semvmx=32767
    Operating system: solaris 10 64 bits
    Oracle : 10g --> 10.1.0.3
    What I tried:
    -projadd -U oracle -K "project.max-shm-memory=(priv,4096MB,deny)" user.oracle
    -apply the patch : #4186426....
    No result still get ORA-27123: unable to attach to shared memory segment !
    Any help please !!

    I'm trying to create a DB with the DBCA and i get ORA-27123: unable to attach to shared memory segment ????
    Kernel param:
    set shmsys:shminfo_shmmax=4294967295
    set shmsys:shminfo_shmmin=1
    set shmsys:shminfo_shmmni=100
    set shmsys:shminfo_shmseg=10
    set semsys:seminfo_semmns=2000
    set semsys:seminfo_semmsl=1000
    set semsys:seminfo_semmni=100
    set semsys:seminfo_semopm=100
    set semsys:seminfo_semvmx=32767
    Operating system: solaris 10 64 bits
    Oracle : 10g --> 10.1.0.3
    What I tried:
    -projadd -U oracle -K "project.max-shm-memory=(priv,4096MB,deny)" user.oracle
    -apply the patch : #4186426....
    No result still get ORA-27123: unable to attach to shared memory segment !
    Any help please !!

  • Getting ORA- 4031 when switching db_cache_advice to ready stat

    i m getting memory allocation error while switching from off to ready...tell me what should i do to make it on.

    Check out http://metalink.oracle.com and search with "ORA-04031 DB_CACHE_ADVICE". Several useful documents are found.
    MHE

  • Ora 4031 error

    Hi all,
    I have Oracle 10g and windows 2003 enterprise 32 bit edition.
    Whenever i'm trying to start the database i'm getting the following errors
    ORA 00604
    ORA 04031- Unalbe to allocate 4000 bytes of shared memory("shared pool", "select /* +rule */ bucket_cn..." "typecheck heap", "seg: kggfaallocseg")
    Please help
    harsha

    Hi, i'm pasting the part where the error is being showed in the alert log file
    Alert Log
    Thread 1 advanced to log sequence 17
    Maximum redo generation record size = 120832 bytes
    Maximum redo generation change vector size = 116476 bytes
    Private_strands 4 at log switch
    Thread 1 opened at log sequence 17
    Current log# 1 seq# 17 mem# 0: D:\ORACLE\PRODUCT\10.1.0\ORADATA\DCLEANP\REDO01.LOG
    Successful open of redo thread 1
    Thu Aug 12 17:49:30 2010
    MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
    Thu Aug 12 17:49:30 2010
    SMON: enabling cache recovery
    Thu Aug 12 17:49:30 2010
    Errors in file d:\oracle\product\10.1.0\admin\dcleanp\udump\dcleanp_ora_940.trc:
    ORA-00704: bootstrap process failure
    ORA-04031: unable to allocate 4224 bytes of shared memory ("shared pool","unknown object","sga heap(1,0)","library cache")
    Thu Aug 12 17:49:30 2010
    Error 704 happened during db open, shutting down database
    USER: terminating instance due to error 704
    Thu Aug 12 17:49:31 2010
    Errors in file d:\oracle\product\10.1.0\admin\dcleanp\bdump\dcleanp_dbw0_3736.trc:
    ORA-00704: bootstrap process failure
    Thu Aug 12 17:49:31 2010
    Errors in file d:\oracle\product\10.1.0\admin\dcleanp\bdump\dcleanp_reco_3756.trc:
    ORA-00704: bootstrap process failure
    Thu Aug 12 17:49:32 2010
    Errors in file d:\oracle\product\10.1.0\admin\dcleanp\bdump\dcleanp_smon_3752.trc:
    ORA-00704: bootstrap process failure
    Thu Aug 12 17:49:32 2010
    Errors in file d:\oracle\product\10.1.0\admin\dcleanp\bdump\dcleanp_ckpt_3748.trc:
    ORA-00704: bootstrap process failure
    Thu Aug 12 17:49:32 2010
    Errors in file d:\oracle\product\10.1.0\admin\dcleanp\bdump\dcleanp_lgwr_3744.trc:
    ORA-00704: bootstrap process failure
    Thu Aug 12 17:49:32 2010
    Errors in file d:\oracle\product\10.1.0\admin\dcleanp\bdump\dcleanp_mman_3732.trc:
    ORA-00704: bootstrap process failure
    Thu Aug 12 17:49:32 2010
    Errors in file d:\oracle\product\10.1.0\admin\dcleanp\bdump\dcleanp_dbw1_3740.trc:
    ORA-00704: bootstrap process failure
    Thu Aug 12 17:49:32 2010
    Errors in file d:\oracle\product\10.1.0\admin\dcleanp\bdump\dcleanp_pmon_3728.trc:
    ORA-00704: bootstrap process failure
    Instance terminated by USER, pid = 940
    ORA-1092 signalled during: alter database open...
    Trace files. All the trace files have almost the same endings
    Dump file d:\oracle\product\10.1.0\admin\dcleanp\bdump\dcleanp_smon_3752.trc
    Thu Aug 12 17:49:32 2010
    ORACLE V10.1.0.2.0 - Production vsnsta=0
    vsnsql=13 vsnxtr=3
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Windows Server 2003 Version V5.2 Service Pack 1
    CPU : 16 - type 586, 4 Physical Cores
    Process Affinity: 0x00000000
    Memory (A/P) : PH:2744M/3324M, PG:4686M/5220M, VA:1710M/2047M
    Instance name: dcleanp
    Redo thread mounted by this instance: 1
    Oracle process number: 8
    Windows thread id: 3752, image: ORACLE.EXE (SMON)
    *** SERVICE NAME:() 2010-08-12 17:49:32.062
    *** SESSION ID:(164.1) 2010-08-12 17:49:32.062
    error 704 detected in background process
    ORA-00704: bootstrap process failure
    Dump file d:\oracle\product\10.1.0\admin\dcleanp\bdump\dcleanp_dbw1_3740.trc
    Thu Aug 12 17:49:32 2010
    ORACLE V10.1.0.2.0 - Production vsnsta=0
    vsnsql=13 vsnxtr=3
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Windows Server 2003 Version V5.2 Service Pack 1
    CPU : 16 - type 586, 4 Physical Cores
    Process Affinity: 0x00000000
    Memory (A/P) : PH:2745M/3324M, PG:4693M/5220M, VA:1719M/2047M
    Instance name: dcleanp
    Redo thread mounted by this instance: 1
    Oracle process number: 5
    Windows thread id: 3740, image: ORACLE.EXE (DBW1)
    *** 2010-08-12 17:49:32.468
    *** SERVICE NAME:() 2010-08-12 17:49:32.468
    *** SESSION ID:(167.1) 2010-08-12 17:49:32.468
    error 704 detected in background process
    ORA-00704: bootstrap process failure
    Dump file d:\oracle\product\10.1.0\admin\dcleanp\bdump\dcleanp_lgwr_3744.trc
    Thu Aug 12 17:49:32 2010
    ORACLE V10.1.0.2.0 - Production vsnsta=0
    vsnsql=13 vsnxtr=3
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Windows Server 2003 Version V5.2 Service Pack 1
    CPU : 16 - type 586, 4 Physical Cores
    Process Affinity: 0x00000000
    Memory (A/P) : PH:2744M/3324M, PG:4688M/5220M, VA:1713M/2047M
    Instance name: dcleanp
    Redo thread mounted by this instance: 1
    Oracle process number: 6
    Windows thread id: 3744, image: ORACLE.EXE (LGWR)
    *** SERVICE NAME:() 2010-08-12 17:49:32.281
    *** SESSION ID:(166.1) 2010-08-12 17:49:32.281
    error 704 detected in background process
    ORA-00704: bootstrap process failure
    Dump file d:\oracle\product\10.1.0\admin\dcleanp\bdump\dcleanp_mman_3732.trc
    Thu Aug 12 17:49:32 2010
    ORACLE V10.1.0.2.0 - Production vsnsta=0
    vsnsql=13 vsnxtr=3
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Windows Server 2003 Version V5.2 Service Pack 1
    CPU : 16 - type 586, 4 Physical Cores
    Process Affinity: 0x00000000
    Memory (A/P) : PH:2745M/3324M, PG:4693M/5220M, VA:1719M/2047M
    Instance name: dcleanp
    Redo thread mounted by this instance: 1
    Oracle process number: 3
    Windows thread id: 3732, image: ORACLE.EXE (MMAN)
    *** SERVICE NAME:() 2010-08-12 17:49:32.343
    *** SESSION ID:(169.1) 2010-08-12 17:49:32.343
    error 704 detected in background process
    ORA-00704: bootstrap process failure
    Dump file d:\oracle\product\10.1.0\admin\dcleanp\bdump\dcleanp_dbw0_3736.trc
    Thu Aug 12 17:49:31 2010
    ORACLE V10.1.0.2.0 - Production vsnsta=0
    vsnsql=13 vsnxtr=3
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Windows Server 2003 Version V5.2 Service Pack 1
    CPU : 16 - type 586, 4 Physical Cores
    Process Affinity: 0x00000000
    Memory (A/P) : PH:2736M/3324M, PG:4670M/5220M, VA:1681M/2047M
    Instance name: dcleanp
    Redo thread mounted by this instance: 1
    Oracle process number: 4
    Windows thread id: 3736, image: ORACLE.EXE (DBW0)
    *** 2010-08-12 17:49:31.296
    *** SERVICE NAME:() 2010-08-12 17:49:31.296
    *** SESSION ID:(168.1) 2010-08-12 17:49:31.296
    error 704 detected in background process
    ORA-00704: bootstrap process failure

  • Urgent help with memory issue (ORA-04031)

    Hi Geeks,
    Came Across this below error in alert log in of our databases. Interestingly this error only pops up while the database backup runs. Below are the memory parameters.
    memory_max_target big integer 14G
    memory_target big integer 13G
    pga_aggregate_target big integer 0
    sga_target big integer 0
    shared_pool_reserved_size big integer 192M
    shared_pool_size big integer 0
    ORA-04031: unable to allocate 5792 bytes of shared memory
    ("shared pool","unknown object","sga heap(1,1)","ges resource ")
    Errors in file /apps/opt/oracle/diag/asm/+asm/+ASM1/trace/+ASM1_lmd0_14123.trc
    I have tried specifying a value to shared_pool_size but with no luck..!! Pls help. I am not sure how to resolve this.

    Hi, ORA-4031 in this case can be caused by unrestricted growth of the PGA, thus forcefully reducing the SGA.
    We've had this in the past also.
    The solution is in older versions to increase the shared_pool_size as you mentioned but with ASMM, this is no longer an option. You can however retrict the growth of the PGA by setting SGA_TARGET.
    On our system this now looks like:
    SQL> show parameter _target
    NAME                                 TYPE                 VALUE
    db_flashback_retention_target        integer              1440
    memory_max_target                    big integer          10G
    memory_target                        big integer          10G
    pga_aggregate_target                 big integer          0
    sga_target                           big integer          8GSee how we in fact set the max growth of the PGA to 2Gb ( 10Gb - 8Gb)
    Try this and see if ot works for you also
    Success!!
    FJFranken

  • Instance is down due to error 4031

    in RAC (10.2.0.4, AIX, 64bit), instance 2 is down, check altert log,
    ORA-04031: unable to allocate 8416 bytes of shared memory ("shared pool","unknown object","sga heap(1,0)","KSXR large reply queue")
    LCK0: terminating instance due to error 4031
    ( dba broungt it up.)
    ( check related trace )
    =================================
    Begin 4031 Diagnostic Information
    =================================
    The following information assists Oracle in diagnosing
    causes of ORA-4031 errors. This trace may be disabled
    by setting the init.ora _4031_dump_bitvec = 0
    =====================================
    Allocation Request Summary Informaton
    =====================================
    Current information setting: 04014fff
    SGA Heap Dump Interval=3600 seconds
    Dump Interval=300 seconds
    Last Dump Time=09/19/2010 15:18:42
    Dump Count=1
    Allocation request for: KSXR large reply queue
    Heap: 700000010036770, size: 8416
    HEAP DUMP heap name="sga heap(1,0)" desc=700000010036770
    extent sz=0xfe0 alt=216 het=32767 rec=9 flg=-126 opc=0
    parent=0 owner=0 nex=0 xsz=0x1000000
    latch set 1 of 2
    durations enabled for this heap
    reserved granules for root 0 (granule size 16777216)
    check memory,
    sql> show parameter shared_
    NAME TYPE VALUE
    hi_shared_memory_address integer 0
    max_shared_servers integer
    shared_memory_address integer 0
    shared_pool_reserved_size big integer 15938355
    shared_pool_size big integer 304M
    shared_server_sessions integer
    shared_servers integer 0
    sql>show parameter sga_target
    NAME TYPE VALUE
    sga_target big integer 7G
    sql>show parameter cursor_sharing
    NAME TYPE VALUE
    cursor_sharing string EXACT
    the reason seems from surface is shared_pool is not big enough, but we can see that sga is pretty big,
    so it maybe shared pool fragmentation problem.
    by the way, the instance down's resaon, is due to
    terminating instance due to error 4031
    question is here:
    1. what is the reasoan for instance shutdown?
    2. how to prevernt it happening again? do we need to run flush shared pool periodically, or cursor_sharing to simailar or force?
    thanks

    -- Display shared pool advice
    set lines 100
    set pages 999
    column c1 heading 'Pool |Size(M)'
    column c2 heading 'Size|Factor'
    column c3 heading 'Est|LC(M) '
    column c4 heading 'Est LC|Mem. Obj.'
    column c5 heading 'Est|Time|Saved|(sec)'
    column c6 heading 'Est|Parse|Saved|Factor'
    column c7 heading 'Est|Object Hits' format 999,999,999
    SELECT
    2 shared_pool_size_for_estimate c1,
    3 shared_pool_size_factor c2,
    4 estd_lc_size c3,
    5 estd_lc_memory_objects c4,
    6 estd_lc_time_saved c5,
    7 estd_lc_time_saved_factor c6,
    8 estd_lc_memory_object_hits c7
    9 FROM
    10 v$shared_pool_advice;
    Est Est
    Time Parse
    Pool Size Est Est LC Saved Saved Est
    Size(M) Factor LC(M) Mem. Obj. (sec) Factor Object Hits
    1088 .3736 326 22232 65966 .8958 4,995,890
    1392 .478 628 38639 68647 .9322 5,044,957
    1696 .5824 931 56089 70007 .9506 5,068,865
    2000 .6868 1234 73521 70497 .9573 5,084,797
    2304 .7912 1537 93244 70941 .9633 5,106,783
    2608 .8956 1826 114421 71955 .9771 5,140,729
    2912 1 2129 135390 73643 1 5,177,134
    3216 1.1044 2431 157697 75513 1.0254 5,202,416
    3520 1.2088 2735 179011 77204 1.0484 5,221,651
    3824 1.3132 3038 203097 78823 1.0703 5,234,965
    4128 1.4176 3341 221760 80193 1.0889 5,244,432
    4432 1.522 3610 244317 80910 1.0987 5,252,430
    4736 1.6264 3761 255231 81101 1.1013 5,256,343
    5040 1.7308 3896 269167 81125 1.1016 5,258,292
    5344 1.8352 3896 269167 81127 1.1016 5,259,026
    5648 1.9396 3896 269167 81128 1.1016 5,259,677
    5952 2.044 3896 269167 81129 1.1017 5,260,326
    SELECT
    f.pool
    , f.name
    , s.sgasize
    , f.bytes
    , ROUND(f.bytes/s.sgasize*100, 2) "% Free"
    FROM
    (SELECT SUM(bytes) sgasize, pool FROM v$sgastat GROUP BY pool) s
    , v$sgastat f
    WHERE
    f.name = 'free memory'
    AND f.pool = s.pool
    / 2 3 4 5 6 7 8 9 10 11 12 13
    Pool Name Allocated Free % Free
    shared pool free memory 3,053,469,832 257,316,432 8.43
    large pool free memory 218,103,808 217,027,808 99.51
    java pool free memory 218,103,808 218,103,808 100
    rem library.sql - lists the library cache
    prompt
    prompt =========================
    prompt LIBRARY CACHE MISS RATIO
    prompt =========================
    prompt (If > 1 then increase the shared_pool_size in init.ora)
    prompt
    column "LIBRARY CACHE MISS RATIO" format 99.9999
    column "executions" format 999,999,999
    column "Cache misses while executing" format 999,999,999
    select sum(pins) "executions", sum(reloads) "Cache misses while executing",
    (((sum(reloads)/sum(pins)))) "LIBRARY CACHE MISS RATIO"
    from v$librarycache;
    prompt
    prompt =========================
    prompt Library Cache Section
    prompt =========================
    prompt hit ratio should be > 70, and pin ratio > 70 ...
    prompt
    column "reloads" format 999,999,999
    select namespace, trunc(gethitratio * 100) "Hit ratio",
    trunc(pinhitratio * 100) "pin hit ratio", reloads "reloads"
    from v$librarycache;
    NAMESPACE Hit ratio pin hit ratio reloads
    SQL AREA 33 44 108,245
    TABLE/PROCEDURE 80 99 4,340
    BODY 93 99 11
    TRIGGER 72 96 0
    INDEX 43 60 22
    CLUSTER 95 97 3
    OBJECT 100 100 0
    PIPE 100 100 0
    JAVA SOURCE 100 100 0
    JAVA RESOURCE 100 100 0
    JAVA DATA 100 100 0
    select NAMESPACE, GETHITRATIO from v$librarycache;
    NAMESPACE GETHITRATIO
    SQL AREA .35270614
    TABLE/PROCEDURE .806300666
    BODY .939540508
    TRIGGER .727272727
    INDEX .432343234
    CLUSTER .956873315
    OBJECT 1
    PIPE 1
    JAVA SOURCE 1
    JAVA RESOURCE 1
    JAVA DATA 1
    ---I saw the hit ratio is really low...
    THANKS

  • ORA-00604, ORA-04031

    How can I handle this error message?
    ERROR:
    ORA-00604: error occurred at recursive SQL level 2
    ORA-04031: unable to allocate 4048 bytes of shared memory ("shared pool","TRIGGER$","sga heap","state objects")
    ORA-00604: error occured at recursive SQL levle1
    ORA-04031: unable to allocate 4048 bytes of shred memory
    ("shared pool","unknown object","sga heap","state objects")
    I changed shared_pool_size.
    Initial shared_pool_size is 52428800
    and I changed it to 1500000000.
    Isn't 150M enough?
    Should I have to set shared_pool_size to lager size?
    Or is there any other way to fix this problem?
    Oracle Version is 8.1.6.
    Platform is SGI , IRIX 6.4.10+.
    Please, help me.
    Tanki

    - Use bind variables in your applications (if they are not used allready)
    - Pin larger packages (the ones you actaully use) immediately uppon database startup
    - Increase your shared pool (if it's not unreasonably large allready)
    - ALTER SYSTEM FLUSH SHARED_POOL; when you encounter ORA-4031 (this is more of a temporary workaround than a real sollution)

Maybe you are looking for

  • Character Panel lacks in Illustrator CC

    The "Highlight the font name field in the character panel" shortcut doesn't work in illustrator CC any longer. The "Shift+Enter"shortcut to submit changes while the field remains selected                doesn't work in illustrator CC any longer. Inst

  • IFS HTML Preview

    hallo list, i run Oracle 8.1.7.2, iFS 1.19 an solaris. iFS fits our purpose quite good, but the customization is really a hard pain. The only thing i wanna do is to make a HTML preview of the document, when it is stored via smb or http and display it

  • Problem with a method

    I have a problem with the getRGB(int x, int y) method of the BufferedImage class : I've load an image in it : 1:// b is my bufferedimage clas and myimage is an image 2:b.getGraphics().drawImage(myimage, 0, 0, this); 3:// g is the graphics object of m

  • Satellite 1800: screen switches black

    I have a Toshiba Satellite 1800 which is, like me, getting on a bit! It was bought in 2000 but has not had excessive use. Recently the monitor has started to play up and will suddenly go completely black. I checked the manual and to get it back I pre

  • How to configure the Integration Server Settins?

    Hi, I am doing a scenario like Idoc 2 File, I am passing parameter of Adapter Engine is a Integration Server, and when we generate a Idoc and send to XI system using TC: WE19. XI System is not picked the Idoc, and when i am checking RWB the Adapter F