新的局点ORACLE上线时参数文件注意的几个要点(六)

2014-11-24 16:08:22 · 作者: · 浏览: 4
00 FALSE
如果我们增加DB_FILES 的值,那么必须重启instance,才能让修改生效。 如果是DG 环境,也需要保证主备库参数一致。
2.9 open_links_per_instance 和 open_links 参数
SQL> show parameter open;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
open_cursors integer 300
open_links integer 4
open_links_per_instance integer 4
read_only_open_delayed boolean FALSE
session_max_open_files integer 10
open_links_per_instance 和 open_links 参数用来控制dblink的数量的。 默认值是4.
如果系统中有较多的使用dblink,就可能会遇到ORA-02020的错误。
oracle@iptv-app2:~> oerr ora 02020;
02020, 00000, "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.
SQL> col name for a15;
SQL> select name,value,issys_modifiable from v$parameter where name='open_links';
NAME
---------------
VALUE
--------------------------------------------------------------------------------
ISSYS_MOD
---------
open_links
4
FALSE
SQL> col name for a25;
SQL> select name,value,issys_modifiable from v$parameter where name='open_links_per_instance';
NAME
-------------------------
VALUE
--------------------------------------------------------------------------------
ISSYS_MOD
---------
open_links_per_instance
4
FALSE
SQL> col name for a15
SQL> select name,value,issys_modifiable from v$parameter where name='open_links';
NAME VALUE ISSYS_MODIFIABLE
--------------- ---------- --------------------
open_links 4 FALSE
SQL> col name for a25
SQL> select name,value,issys_modifiable from v$parameter where name='open_links_per_instance';
NAME VALUE ISSYS_MODIFIABLE
------------------------- ---------- --------------------
open_links_per_instance 4 FALSE
SQL> alter system set open_links=10 scope=spfile;
System altered.
SQL> alter system set open_links_per_instance=10 scope=spfile;
System altered.
总结:
1.1 spfile 与 pfile 说明
思考: Oracle 启动的时候,init.ora, pfile,spfile 他们之间的加载顺序是怎么样的?
1.2 spfile 和 pfile 转换
1.3 查看数据是用spfile 启动还是pfile 启动
三. 相关参数说明
2.1 如何查看参数是否立即修改
重启:因为我们每一次重启数据库都要做出艰难的决定???
2.2 SGA 与 PGA
2.3. undo 表空间相关的参数
2.4 sessions , processes 参数
2.5 log_archive_dest_1 参数
2.6 CONTROL_FILE_RECORD_KEEP_TIME 参数
2.6 CONTROL_FILE_RECORD_KEEP_TIME 参数
2.7 修改用户profile:FAILED_LOGIN_ATTEMPTS
2.8 DB_FILES 参数
2.9 open_links_per_instance 和 open_links 参数
关于oracle 的参数,就写这么多,实际上还有很多其他的参
数。 这个要在工作慢慢的积累。