GOAL
To find out the number of database links opened.
SOLUTION
OPEN_LINKS Default: 4 Range: 0 to 255 Specifies the maximum number of concurrent open connections to remote databases in one session. These connections include database links plus external procedures and cartridges each of which uses a separate process.
The following view shows the database link connections that are currently open in your current session: V$DBLINK - Lists all open database links in your session, that is, all database links with the IN_TRANSACTION column set to YES.
NOTE: It is important to state that the section above "Lists all open database links in your session" is important, as this is only YOUR open dblinks that can be seen.
For example, you can create and execute the script below to determine which links are open (sample output included):
Note that above displays ONLY details about database links open in the session within which you are working.
If looking for details about database links open by different sessions, might use below:
sqlplus /nolog
connect / as sysdba
select username, osuser, status, sid, serial#, machine, process, terminal, program from v$session where saddr in (select k2gtdses from sys.x$k2gte );
USERNAME OSUSER STATUS ------------------------------ ------------------------------ -------- SID SERIAL# ---------- ---------- MACHINE ---------------------------------------------------------------- PROCESS TERMINAL ------------------------ ------------------------------ PROGRAM ------------------------------------------------ SCOTT bugmnt INACTIVE 68 11 celclnx1.us.oracle.com
29318 pts/15 sqlplus@celclnx1.us.oracle.com (TNS V1-V3)
REPADMIN bugmnt INACTIVE 232 5 celclnx1.us.oracle.com
28081 pts/14 sqlplus@celclnx1.us.oracle.com (TNS V1-V3)
SQL>
SQL> alter system set open_links=255 scope=spfile; alter system set open_links=255 scope=spfile * ERROR at line 1: ORA-32001: write to SPFILE requested but no SPFILE specified at startup
SQL> alter system set open_links=255 scope=both; alter system set open_links=255 scope=both * ERROR at line 1: ORA-02095: specified initialization parameter cannot be modified
SQL> alter system set open_links_per_instance=255 scope=spfile; alter system set open_links_per_instance=255 scope=spfile * ERROR at line 1: ORA-32001: write to SPFILE requested but no SPFILE specified at startup
SQL> alter system set open_links_per_instance=255 scope=both; alter system set open_links_per_instance=255 scope=both * ERROR at line 1: ORA-02095: specified initialization parameter cannot be modified
编辑推荐:
相关推荐
-
雷神推出 MIX PRO II 迷你主机:基于 Ultra 200H,玻璃上盖 + ARGB 灯效
2 月 9 日消息,雷神 (THUNDEROBOT) 现已宣布推出基于英
-
制造商 Musnap 推出彩色墨水屏电纸书 Ocean C:支持手写笔、第三方安卓应用
2 月 10 日消息,制造商 Musnap 现已在海外推出一款 Oce
热文推荐
- expdp ORA-01555(二)(大表拆分)
expdp ORA-01555(二)(大表拆分)
26-03-03 - Debian集群监控告警设置(手把手教你搭建高效稳定的服务器监控与告警系统)
- 实验之 RMAN-异机增量备份恢复
实验之 RMAN-异机增量备份恢复
26-03-03 - API实现批次序列号的销售出库
API实现批次序列号的销售出库
26-03-03 - 实验之 RMAN-本机增量备份恢复
实验之 RMAN-本机增量备份恢复
26-03-03 - 02 Oracle Database 12c DBA官方手册1.6
02 Oracle Database 12c DBA官方手册1.6
26-03-03 - 12C RMAN-本机cdb差异增量备份恢复多个pdb
12C RMAN-本机cdb差异增量备份恢复多个pdb
26-03-03 - Oracle12c 针对单个pdb的全备与恢复
Oracle12c 针对单个pdb的全备与恢复
26-03-03 - oracle 12c 针对cdb的差异0备与对pdb进行恢复
oracle 12c 针对cdb的差异0备与对pdb进行恢复
26-03-03 - 12C针对cdb全备与 PDB执行不完全恢复(基于SCN)
12C针对cdb全备与 PDB执行不完全恢复(基于SCN)
26-03-03
