Welcome 微信登录

首页 / 数据库 / MySQL / Oracle ORA-02020 : 过多的数据库链接在使用中解决步骤

注释:前不久开发人员编译存储时报ORA -02020 错,如下是解决方案步骤.报错全信息:Error:OR A -04052在查: 找远程对象 NIP.PB_PERADDRESSLIST@DB_NIP 时出错ORA-00604 : 递归 SQL 级别 1 出现错误ORA-02020 : 过多的数据库链接在使用中查看一下有关link的参数SQL>  show parameter open_links NAME                               TYPE        VALUE------------------------------------ ----------- ------------------------------open_links                         integer   4open_links_per_instance              integer   4 SQL>参数的解释:***open_links :每个session最多允许的dblink数量;***open_links_per_instance:指每个实例最多允许的dblink个数
扩大允许使用dblink 量;SQL> alter system set open_links=50 scope=spfile; System alteredSQL> alter system set open_links_per_instance=50 scope=spfile; System altered SQL> show parameter open_links NAME                               TYPE        VALUE------------------------------------ ----------- ------------------------------open_links                                                  integer   4open_links_per_instance              integer   4SQL> 重启后生效...SQL> shutdown immediate
数据库已经关闭。
已经卸载数据库。
Oracle 例程已经关闭。
SQL> SQL> startup
ORACLE 例程已经启动。Total System Global Area  293601280 bytes
Fixed Size                  1248600 bytes
Variable Size              96469672 bytes
Database Buffers          188743680 bytes
Redo Buffers                7139328 bytes
数据库装载完毕。
数据库已经打开。
SQL> 参数检查:SQL>  show parameter open_linksNAME                               TYPE        VALUE------------------------------------ ----------- ------------------------------open_links                         integer   50open_links_per_instance              integer   50SQL>再编译就OK了。更多Oracle相关信息见Oracle 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=12本文永久更新链接地址