解决ORA-04031:unable to allocate 56bytes of shared memory

发布时间 2023-04-06 20:47:12作者: 周随

登录PL/SQL Developer出现ORA-04031错误。
解决方式:

  1. 用oracle账号登录linux服务器
  2. 进入sqlplus
    sqlplus / as sysdba
  3. 查看sga大小
    show parameter sga;
    image
  4. 扩大sga空间
    alter system set sga_max_size=10G scope=spfile;
    alter system set sga_target=10G scope=spfile;
  5. 关机重启
    shutdown normal
    startup