http://www.happyit.net/doc/ORA-04031.pdf

解决方案 »

  1.   

    ORA-04031 unable to allocate string bytes of shared memory ("string","string","string","string")Cause: More shared memory is needed than was allocated in the shared pool.Action: If the shared pool is out of memory, either use the DBMS_SHARED_POOL package to pin large packages, reduce your use of shared memory, or increase the amount of available shared memory by increasing the value of the initialization parameters SHARED_POOL_RESERVED_SIZE and SHARED_POOL_SIZE. If the large pool is out of memory, increase the initialization parameter LARGE_POOL_SIZE. 
    ---------------------
    你起用了多线程没有,如果起用了,需要加大LARGE_POOL_SIZE.
    另外,你设置一下hash池,看怎么样
      

  2.   

    hash池在什么地方?如何设置?
      

  3.   

    init文件中
    hash_area_size,设上10M,20M的看好不好点
      

  4.   

    hash_area_size是做什么用的,把它调大的原因是什么。
    程序中我用了几个视图,这个参数是不是和视图有关?