ORA-02020 too many database links in use

在A库上建DB_link,更新B库。报ORA-2020 too many database links in use,是要设置OPEN_LINKS和OPEN_LINKS_PER_INSTANCE两个参数,它们的默认值都是4。

alter system set open_links=200 scope=both;

alter system set open_links_per_instance=200 scope=both;

问题来了,是修改A库中的参数还是B库,是修改A库的。

修改这类参数数据库要重启。

Error:  ora-02020

Text:   too many database links in use

-------------------------------------------------------------------------------

Cause:  The maximum number of active connections to remote databases per user

login has been reached.

Action: If the user has no open cursors, the current SQL statement accesses

more than the maximum allowed remote databases.

Otherwise, the user may free remote database connections by closing

all cursors that access the databases.

If this occurs often, consider increasing the value of the

initialization parameter OPEN_LINKS, which controls the maximum number

of concurrent open connections to remote databases per user process.

OPEN_LINKS specifies the maximum number of concurrent open connections to remote databases in one session.

OPEN_LINKS_PER_INSTANCE specifies the maximum number of migratable open connections globally for each database instance.

时间: 2024-08-10 04:55:45

ORA-02020 too many database links in use的相关文章

Oracle Database Links解析

什么是Database Links呢? 首先我们阐述下它的作用:使用户可以通过一个数据库访问到另外一个远程数据库. 那么Database Link是存储着远程数据库的连接信息. 如下图所示: 用户Scott可以在本地数据库上查询远程数据库的emp表,我们可以在我们的本地数据库上建立一个别名(Synonym) emp,然后我们就可以直接通过select * from emp来查询远程数据库上的emp表,而无需通过select * from [email protected]的方式来查询. 这个远程

Oracle Database Links

create database link DBL_XE connect to "FS_51" identified by "FS_51" using ' (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.3.48) (PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = XE) ) )';

oracle 创建database link

有时候需要在两个数据库的表join 查询 这时候要用到 database link . database link 的作用就是搭建数据库和数据库的连接. 1.先看如何使用 PL\SQL  工具创建. 找到database links  右键  新建 填名称,  这里的用户名是远程数据库的登录名 数据库就是本地文件 D:\oracle\product\10.2.0\client_1\NETWORK\ADMIN\tnsnames.ora 的 也可以在数据库这里直接填 (DESCRIPTION =(A

Oracle Active Database Duplication

Active Database Duplication 简介---------Active database duplication功能是从11g开始引入的一个新功能,它是对比以前版本中的基于备份集的复制数据库功能. 下面简单的回顾一下关于ORACLE Duplicate Database功能,Duplicate database可以按照用途分为2种,一种是duplicate database,第二种是duplicate standby database,本文主要介绍duplicate data

ORA-01122: database file 4 failed verification check

现象: 在做表空间恢复演练时,遇到如下错误提示: SQL> alter database datafile 4 online;alter database datafile 4 online      *                                     ERROR at line 1:                      ORA-01122: database file 4 failed verification checkORA-01110: data file

Oracle database sqldeveloper study(1)

我们经常用sql语句如; select  姓名,性别 from 学生表 对 学生这个table进行查询,这是个简单查询,但是当我们要将 table1,table2,table3 ,table4 ..........好多个表进行多表查询的时候,我们不想每次都写一连窜的连接语句我们想让数据库记住这个复杂的语句要让数据库将这复杂的语句编译到数据库缓存中(速度更快)!!或者我们还不想让程序员知道这个复杂的查询涉及到了table1,table2,table3 ,table4 .........这么多表,这

删除 Dblink 报错 ORA-02024: database link not found 的解决方法

昨天在删除DBlink 时报错 ORA-02024,  在orcle 11g R2的帮助文档上查找这个错误信息,居然没有,苦逼公司不能上网,回家baidu一下,oracle 使用前辈们已经总结的很好了,还是记录下这个问题解决方法吧.下面引用自http://blog.csdn.net/tianlesoftware/article/details/6160196 文章. 在Metalink上搜到了2篇与这个错误有关的文章: Cannot drop a database link after chan

Oracle Standby Database 实现方案

Oracle Standby Database 实现方案  From: http://wanow.blog.hexun.com/4672755_d.html 字号:大 中 小 版本:V20060328.01.01 Standby Database的工作原理 1. Oracle 与 High Availability, Disaster Recovery 及 Data Duplicate 相关功能的产品概述 Oracle 的 High Availability 功能,Oracle 是从下面几个方面

Oracle创建Database Link

一菜单方式: 打开plsql,点击[File]-[New]-[Database link],打开如下图所示窗口 填好各项信息后,点击[Apply]即可完成Database Link的创建. 二SQL方式 -- Drop existing database link drop public database link dblink_name; -- Create database link create public database link dblink_name connect to SYS