一.先看官网的说明

1.1OPEN_LINKS

Property

Description

Parameter type

Integer

Default value

4

Modifiable

No --即修改需要重启实例

Range of values

0 to 255

OPEN_LINKS specifies the maximum number of concurrent open connections to remote databases in one session. These connections include database links, as well as external procedures and cartridges, each of which uses a separate process.

Oracle counts one open link for the following:

For each user that references a public or private database link

For each external procedure or cartridge connection when it is executed for the first time

Both types of connections close when the session ends.You can also close a database link connection explicitly by issuing an ALTER SESSION CLOSE DATABASE LINK statement.

You should set this parameter to allow for the external procedure and cartridge connections expected during the session plus the number of databases referred to in typical distributed transactions (that is, a single SQL statement that references multiple databases), so that all the databases can be open to execute the statement.

For example, if queries alternately access databases A, B, and C, and OPEN_LINKS is set to 2, time will be lost waiting while one connection is broken and another made. Increase the value if many different databases are accessed over time.

This parameter refers only to connections used for distributed transactions.Direct connections to a remote database specified as an application connects are not counted.

If you set OPEN_LINKS to 0, then no distributed transactions are allowed.

1.2 OPEN_LINKS_PER_INSTANCE

Property

Description

Parameter type

Integer

Default value

4

Modifiable

No

Range of values

0 to 4294967295 (4 GB -1)

Oracle RAC

Multiple instances can have different values.

OPEN_LINKS_PER_INSTANCE specifies the maximum number of migratable open connections globally for each database instance. XA transactions use migratable open connections so that the connections are cached after a transaction is committed. Another transaction can use the connection, provided the user who created the connection is the same as the user who owns the transaction.

OPEN_LINKS_PER_INSTANCE is different from OPEN_LINKS, which indicates the number of connections from a session. The OPEN_LINKS parameter is not applicable to XA applications.

二.查看并修改

2.1查看

SQL> show parameter open

NAMETYPEVALUE

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

open_cursorsinteger300

open_linksinteger4

open_links_per_instanceinteger4

read_only_open_delayedbooleanFALSE

session_max_open_filesinteger10

2.2与这个参数有关的错误是ORA-02020

ORA-02020:too many database links in use

Cause:The current session has exceeded the INIT.ORA open_links maximum.

Action:Increase the open_links limit, or free up some open links by committing or rolling back the transaction and canceling open cursors that reference remote databases.

2.3修改该参数

之前说过, 修改这个参数需要重启实例。可以只修改spfile里的值。 如:

SQL> alter system set open_links=10;

alter system set open_links=10

*

第1行出现错误:

ORA-02095:无法修改指定的初始化参数

SQL> alter system set open_links=10 scope=spfile;

系统已更改。

在次查看:

SQL> show parameter open_links

NAMETYPEVALUE

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

open_linksinteger4

open_links_per_instanceinteger4

修改没有生效,还是需要重启实例的。

oracle open_link,open_links_per_instance 和 open_links 参数说明相关推荐

  1. open_links_per_instance 和 open_links 参数说明

    一.  先看官网的说明 1.1  OPEN_LINKS Property Description Parameter type Integer Default value 4 Modifiable N ...

  2. [置顶] 如何搭建一个 Data Guard 环境

    在Blog里零零散散的讲了一些DB 维护的东西,比较杂,也比较散. 这里就Oracle Data Guard 这块做一个小结. 主要是流程上的东西. 做个参考,以后装DG,照这个流程走就ok了. 一. ...

  3. 如何搭建一个数据库服务器平台 .

    玩Oracle 2年多了,从接触Oracle 到现在,一直没有停止过学习. 要学的东西太多,刚入门的时候是这样的感觉,现在还是这样的感觉. 有时候也在想,还要学多长时间才能感觉自我良好了,有十足的自信 ...

  4. 如何搭建一个 Data Guard 环境

    在Blog里零零散散的讲了一些DB 维护的东西,比较杂,也比较散. 这里就Oracle Data Guard 这块做一个小结. 主要是流程上的东西. 做个参考,以后装DG,照这个流程走就ok了. 一. ...

  5. 如何搭建一个数据库服务器平台

    原 如何搭建一个数据库服务器平台https://blog.csdn.net/tianlesoftware/article/details/5602291版权声明: https://blog.csdn. ...

  6. oracle ora 02020,ORA-02020 too many database links in use再现

    ORA-02020 too many database links in use重现 在A库上建DB_link,更新B库.报ORA-2020 too many database links in us ...

  7. Linux下Oracle 11G r2 (64位)安装

    一.硬件配置 IBM3850(以安装环境为基础) 二.软件准备 linux.x64_11gR2_database_1of2.zip linux.x64_11gR2_database_2of2.zip ...

  8. oracle00279,ORACLE數據恢復

    alter Log文件: Mon Feb 28 13:25:31 2005 ORACLE V8.1.6.0.0 - Production vsnsta=0 vsnsql=e vsnxtr=3 Wind ...

  9. oracle asm登陆实例,Oracle ASM实例介绍

    ASM:Automatic Storage Management, 是Oracle主推的一种面向Oracle的存储解决方案, ASM也是ORACLE实例,它管理asm盘阵,可通过sqlplus 工具来 ...

最新文章

  1. F - Prime Path POJ - 3126
  2. Mac自定义终端的欢迎页
  3. 华为在线题--计算字符个数
  4. Android面试题目之三: 字符串转整形
  5. 并发基础(八) java线程的中断机制
  6. 【直播回放】新手如何入门并学习自然语言处理
  7. 学长毕业日记 :本科毕业论文写成博士论文的神操作
  8. Git之Sourcetree的commit后回滚
  9. 不会代码,如何搭建一个个人博客?
  10. maskrcnn还可以加网络吗_桃子加蜂蜜可以榨汁吗?桃子和蜂蜜可以一起吃吗?原来可以这样吃...
  11. 操作系统:分享6 个“吓人”的 Linux 命令
  12. linux加密框架 crypto 通用算法注册接口__crypto_register_alg注册流程
  13. SparkStreaming之updateStateByKey
  14. cocos2dx 3.1从零学习(四)——内存管理(错误案例分析)
  15. 阿里fastjson 对象转JSON
  16. 家用计算机常见故障及解决方式,电脑常见故障及处理方法汇总
  17. 计算机绘图第二章,机械制图电子教桉-02第二章+计算机绘图..ppt
  18. java命令行打包war_手工命令行打包java工程为war包
  19. excel中indirect函数使用方法和应用实例
  20. 硬件之OC、OD、推挽解释

热门文章

  1. 【BZOJ1045】【codevs1868】糖果传递,数学贪心
  2. bzoj3190 [JLOI2013]赛车 半平面交
  3. 2017.3.25 圆桌聚餐 思考记录
  4. 【英语学习】【Level 08】U04 What I love L2 My favorite sport
  5. Intel 64/x86_64/IA-32/x86处理器 - SIMD指令集 - SSE扩展(13/E) - FXSAVE/FXRSTOR指令
  6. windows下配置mysql允许远程访问
  7. centos下添加windows启动项
  8. python pip的配置
  9. pandas.Series.rank用法详解
  10. 技术沟通者的自我修养