Oracle ORA-02020: excessive database connections in use solution steps
Note:
Not long ago, developers reported ORA-02020 error during storage compilation. The following is the solution step.
Error message:
Error: or a-04052: An Error occurred while searching for the remote object NIP. PB_PERADDRESSLIST @ DB_NIP.
ORA-00604: recursive SQL Level 1 error
ORA-02020: Too Many database connections in use
Check link parameters.
SQL> show parameter open_links
NAME TYPE VALUE
-----------------------------------------------------------------------------
Open_links integer 4
Open_links_per_instance integer 4
SQL>
Parameter explanation:
* ** Open_links: Maximum number of dblinks allowed by each session;
* ** Open_links_per_instance: Maximum number of dblinks allowed by each instance
Increase the number of dblinks allowed;
SQL> alter system set open_links = 50 scope = spfile;
System altered
SQL> alter system set open_links_per_instance = 50 scope = spfile;
System altered
SQL> show parameter open_links
NAME TYPE VALUE
-----------------------------------------------------------------------------
Open_links integer 4
Open_links_per_instance integer 4
SQL>
It takes effect after restart...
SQL> shutdown immediate
The database has been closed.
The database has been detached.
The Oracle routine has been disabled.
SQL>
SQL> startup
The ORACLE routine has been started.
Total System Global Area 293601280 bytes
Fixed Size 1248600 bytes
Variable Size 96469672 bytes
Database Buffers 188743680 bytes
Redo Buffers 7139328 bytes
The database has been loaded.
The database has been opened.
SQL>
Parameter check:
SQL> show parameter open_links
NAME TYPE VALUE
-----------------------------------------------------------------------------
Open_links integer 50
Open_links_per_instance integer 50
SQL>
Compile again and then OK.