DB Link - OPEN_LINKS

What does open_links parameter mean ?
Say if the value is 4 and remote databases are A,B and C
1. Does it mean you can have only 4 concurrent sqls accessing a remote database (remote database A)
2. Does it mean you can have as many SQL's accessing "A" as long as the total number of concurrent remote database reference does not exceed 4 (N sql's accessing database "A" and M sql's accessing database "B" concurrently where N and M > 4)
Also an explanation of what exactly happens when you query using a database link.

http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96536/ch1133.htm#1020574
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96521/ds_concepts.htm#12354

Similar Messages

  • Database link creation problem

    localhost environment:
    OS:windows 2000 server
    Database:oracle 8.5
    database name:orcl
    remotehost environment:
    OS:windows 2000 server
    Database:oracle 8.5
    database name:orac
    These two servers in network and in the same workgroup like peer to peer.There is no concept of domain here.
    Here in this environment i am getting the response from both of the servers at the time of using tnsping.
    C:\>tnsping orac
    TNS Ping Utility for 32-bit Windows: Version 8.1.5.0.0 - Production on 15-APR-06 21:30:54
    (c) Copyright 1997 Oracle Corporation. All rights reserved.
    Attempting to contact (ADDRESS=(PROTOCOL=TCP)(HOST=azad)(PORT=1521))
    OK (70 msec)
    C:\>tnsping orcl
    TNS Ping Utility for 32-bit Windows: Version 8.1.5.0.0 - Production on 15-APR-06 21:31:02
    (c) Copyright 1997 Oracle Corporation. All rights reserved.
    Attempting to contact (ADDRESS=(PROTOCOL=TCP)(HOST=pvs)(PORT=1521))
    OK (70 msec)
    But at the time of creating database links in between these databases at local host i am getting this error message when i am using connect_user method:
    SQL> create database link REMOTE_CONNECT connect to current_user using 'ORAC';
    Database link created.
    SQL> select * from emp@REMOTE_CONNECT;
    select * from emp@REMOTE_CONNECT
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [kspgsp2], [64978272], [265], [ent_domain_name], [0],
    [1], [], []
    But at the time of creating database links in between these databases at local host i am getting this error message when i am using identified method:
    SQL> create database link REMOTE_CONNECT2 connect to scott identified by tiger using 'ORAC';
    Database link created.
    SQL> select * from emp@REMOTE_CONNECT2;
    select * from emp@REMOTE_CONNECT2
    ERROR at line 1:
    ORA-02085: database link REMOTE_CONNECT2 connects to ORACLE
    help me to create the database link in between these two databases..........

    Hi, I have read carefully your letter.
    Firt of all, when you use 'current_user' statement you must guarantee that such users have in both databases.If users exist in both databases and the error will appear again than try create database link with the option 'PUBLIC' as follow:
    CREATE PUBLIC DATABASE LINK REMOTE_CONNECT connect to scott identified by tiger using 'ORAC';
    and check the creation:
    SQL> COL OWNER FORMAT a10
    SQL> COL USERNAME FORMAT A8 HEADING "USER"
    SQL> COL DB_LINK FORMAT A30
    SQL> COL HOST FORMAT A7 HEADING "SERVICE"
    SQL> SELECT * FROM DBA_DB_LINKS;
    OWNER DB_LINK USER SERVICE CREATED
    PUBLIC REMOTE_CONNECT.US.ORACLE.COM SCOTT ORAC 17.04.06
    if the error appear again than checks parameter 'open_links' for your database instance. Default is 4. Increase that number. Good luck.Let me know if something go wrong.

  • Limit on Joined Tables or DB Links Used in a single Select Statement???

    I am writing a query that joins upwards of five tables utilizing two or three DB links in the process. When I run the query I get an error telling me that the table or view does not exist. I know that it does in fact exist and I am able to run a separate query on said table even across a DB Link. I've never know there to be a limit to the amount of DB Links used within a single query, but then again, I previously have only written in T-SQL.
    I am using ANSI standard SQL in my joins syntax and am familial with the syntax for use of remote DB tables in PL/SQL.
    Does anyone have an idea what the problem might be?
    David

    I am Using Oracle 10g and I'm positive that I am not exceeding my OPEN_LINKS limit.
    As far as my SQL, here is a simplified version:
    SELECT count(*)
    FROM SYSADM.PS_PERSONAL_DATA
    INNER JOIN ARTEMIS.HRMS_EMPLOYMENT_TBL@prod ON ARTEMIS.HRMS_EMPLOYMENT_TBL.EMPLOYEE_ID = SYSADM.PS_PERSONAL_DATA.EMPLID
    INNER JOIN ARTEMIS.HRMS_JOB_TBL@prod on ARTEMIS.HRMS_JOB_TBL.EMPLOYEE_ID = ARTEMIS.HRMS_EMPLOYMENT_TBL.EMPLOYEE_ID
    INNER JOIN SYSADM.PS_DEPT_TBL on ARTEMIS.HRMS_JOB_TBL.JOB_DEPT_ID = SYSADM.PS_DEPT_TBL.DEPTID
    INNER JOIN UMSSECU.PERSON@sirs ON ARTEMIS.HRMS_JOB_TBL.EMPLOYEE_ID = UMSSECU.PERSON.PERSON_ID
    INNER JOIN UMSSECU.ASSIGNMENT@sirs ON UMSSECU.PERSON.PERSON_ID = UMSSECU.ASSIGNMENT.PERSON_ID
    INNER JOIN UMSSECU.ORGANIZATION@sirs ON UMSSECU.ASSIGNMENT.ORGANIZATION_ID = UMSSECU.ORGANIZATION.ORGANIZATION_ID;
    The error comes into play with the join to UMSSECU.ASSIGNMENT@sirs it says that the table does not exist. But when I run (select count(*) from UMSSECU.ASSIGNMENT@sirs) on the sirs DB it executes without error. I am confused. I also just identified that I cannot remotely query that table in particular. All the other tables from the sirs DB can be queried from the other DB.

  • Ora-02020 too many database links in use

      Hi All,
                    While trying to  update Table through datalink in my program I am getting the above error.   Without modifying the  v$parameter  value ( 'open_links' ) in database how to use this feature to close Inactive sessions  in BPEL ?

    Yes, I set the init.ora parameters on all servers and then restarted them. I still get the error.
    Note that, for convenience, all my servers have public database links to all other servers in my private network.
    This procedure (described at the start) works for one run of copying 50 tables from one server to one other server:
    server1 runs the procedure and copies data from server2 to server3 (total of 3 servers in the process)But I get the error when I run the procedure to copy 40 tables from multiple servers to one other server:
    server1 runs the procedure and copies data from server2, server3, and server4 to server5The error occurs when only four (or five) servers are involved in the process.
    Any suggestions are greatly appreciated.
    Edited by: user652257 on Nov 1, 2009 12:40 PM

  • ORA-02020: too many database links in use ; but OK with where clause...

    Hello all,
    I have a view called V_MEDGEN_LISTRADIO but I can't run
    SELECT * FROM V_MEDGEN_LISTRADIO
    ORA-02020: too many database links in useThe cause is that we call in the view 5 tables over dblink and the open_links parameter is set to 4.
    What is strange is that when I run this select by adding a where clause then it works!
    SELECT * FROM V_MEDGEN_LISTRADIO WHERE SPRR = 3645;Can someone explain me ? (use of index so all tables are not called ???)
    Thanks

    Explain plan for SELECT * FROM V_MEDGEN_LISTRADIO WHERE SPRR = 3645;
    | Id  | Operation                              | Name            | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop | Inst   |IN-OUT|
    |   0 | SELECT STATEMENT                       |                 |     1 |   244 |    19   (6)| 00:00:01 |       |       |        |      |
    |   1 |  SORT ORDER BY                         |                 |     1 |   244 |    19   (6)| 00:00:01 |       |       |        |      |
    |   2 |   NESTED LOOPS                         |                 |     1 |   244 |    18   (0)| 00:00:01 |       |       |        |      |
    |   3 |    NESTED LOOPS                        |                 |     1 |   218 |    17   (0)| 00:00:01 |       |       |        |      |
    |   4 |     NESTED LOOPS                       |                 |     1 |   188 |    15   (0)| 00:00:01 |       |       |        |      |
    |   5 |      NESTED LOOPS                      |                 |     3 |   384 |    10   (0)| 00:00:01 |       |       |        |      |
    |   6 |       NESTED LOOPS                     |                 |     3 |   186 |     4   (0)| 00:00:01 |       |       |        |      |
    |   7 |        REMOTE                          | SPRR            |     1 |    20 |     2   (0)| 00:00:01 |       |       | DEV10~ | R->S |
    |   8 |        REMOTE                          | MPAT_MF         |     3 |   126 |     2   (0)| 00:00:01 |       |       | DEV10~ | R->S |
    |   9 |       REMOTE                           | SPER_P          |     1 |    66 |     2   (0)| 00:00:01 |       |       | ORAP_~ | R->S |
    |* 10 |      TABLE ACCESS BY GLOBAL INDEX ROWID| DOSSIER_MEDICAL |     1 |    60 |     3   (0)| 00:00:01 | ROWID | ROWID |        |      |
    |* 11 |       INDEX RANGE SCAN                 | DOSMED_MPR_IDX2 |     2 |       |     1   (0)| 00:00:01 |       |       |        |      |
    |  12 |     REMOTE                             | MEP             |     1 |    30 |     2   (0)| 00:00:01 |       |       | ORAP_~ | R->S |
    |  13 |    REMOTE                              | SSV             |     1 |    26 |     1   (0)| 00:00:01 |       |       | ORAP_~ | R->S |
    Predicate Information (identified by operation id):
      10 - filter("DM"."EXAM_TYPE"='TELEM')
      11 - access("DM"."MPR"="P"."SPER")
    Remote SQL Information (identified by operation id):
       7 - SELECT "SPRR","MNEMO" FROM "SPRR" "MP" WHERE "SPRR"=3645 (accessing 'DEV10_DBLK' )
       8 - SELECT "SPAT","DU","RMPB","SPRR_MF","AU" FROM "MPAT_MF" "MF" WHERE "SPRR_MF"=3645 AND NVL("AU",:1+1)>=:2 AND
           "RMPB"='PRINC' AND "DU"<=:3 (accessing 'DEV10_DBLK' )
       9 - SELECT "SPER","NOM","PRENOM","DTE_NAI" FROM "SPER_P" "P" WHERE "SPER"=:1 (accessing 'ORAP_DBLK' )
      12 - SELECT "MSJ","MEPNO_SEQ","SSV_OU_PAT_SEJOURNE" FROM "MEP" "MEP" WHERE :1="MSJ" AND :2="MEPNO_SEQ" (accessing 'ORAP_DBLK' )
      13 - SELECT "SSV","LIB_1" FROM "SSV" "SSV" WHERE :1="SSV" (accessing 'ORAP_DBLK' )Explain plan for SELECT * FROM V_MEDGEN_LISTRADIO
    Plan hash value: 3820716840
    | Id  | Operation                                | Name                  | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop | Inst   |IN-OUT|
    |   0 | SELECT STATEMENT                         |                       |     7 |  1708 |   771   (1)| 00:00:10 |       |       |        |      |
    |   1 |  SORT ORDER BY                           |                       |     7 |  1708 |   771   (1)| 00:00:10 |       |       |        |      |
    |   2 |   NESTED LOOPS                           |                       |     7 |  1708 |   770   (1)| 00:00:10 |       |       |        |      |
    |   3 |    NESTED LOOPS                          |                       |     7 |  1568 |   763   (1)| 00:00:10 |       |       |        |      |
    |   4 |     NESTED LOOPS                         |                       |     7 |  1386 |   756   (1)| 00:00:10 |       |       |        |      |
    |   5 |      NESTED LOOPS                        |                       |     7 |  1176 |   742   (1)| 00:00:09 |       |       |        |      |
    |   6 |       NESTED LOOPS                       |                       |   194 | 24444 |   414   (1)| 00:00:05 |       |       |        |      |
    |   7 |        TABLE ACCESS BY GLOBAL INDEX ROWID| DOSSIER_MEDICAL       |   194 | 11640 |    23   (0)| 00:00:01 | ROWID | ROWID |        |      |
    |*  8 |         INDEX RANGE SCAN                 | DOSMED_EXAM_TYPE_IDX2 |   194 |       |     1   (0)| 00:00:01 |       |       |        |      |
    |   9 |        REMOTE                            | SPER_P                |     1 |    66 |     2   (0)| 00:00:01 |       |       | ORAP_~ | R->S |
    |  10 |       REMOTE                             | MPAT_MF               |     1 |    42 |     2   (0)| 00:00:01 |       |       | DEV10~ | R->S |
    |  11 |      REMOTE                              | MEP                   |     1 |    30 |     2   (0)| 00:00:01 |       |       | ORAP_~ | R->S |
    |  12 |     REMOTE                               | SSV                   |     1 |    26 |     1   (0)| 00:00:01 |       |       | ORAP_~ | R->S |
    |  13 |    REMOTE                                | SPRR                  |     1 |    20 |     1   (0)| 00:00:01 |       |       | DEV10~ | R->S |
    Predicate Information (identified by operation id):
       8 - access("DM"."EXAM_TYPE"='TELEM')
    Remote SQL Information (identified by operation id):
       9 - SELECT "SPER","NOM","PRENOM","DTE_NAI" FROM "SPER_P" "P" WHERE :1="SPER" (accessing 'ORAP_DBLK' )
      10 - SELECT "SPAT","DU","RMPB","SPRR_MF","AU" FROM "MPAT_MF" "MF" WHERE NVL("AU",:1+1)>=:2 AND "RMPB"='PRINC' AND "DU"<=:3 AND
            :4="SPAT" (accessing 'DEV10_DBLK' )
      11 - SELECT "MSJ","MEPNO_SEQ","SSV_OU_PAT_SEJOURNE" FROM "MEP" "MEP" WHERE :1="MSJ" AND :2="MEPNO_SEQ" (accessing 'ORAP_DBLK' )
      12 - SELECT "SSV","LIB_1" FROM "SSV" "SSV" WHERE :1="SSV" (accessing 'ORAP_DBLK' )
      13 - SELECT "SPRR","MNEMO" FROM "SPRR" "MP" WHERE :1="SPRR" (accessing 'DEV10_DBLK' )

  • Database Link Problem-Peculiar SQL stmt execution.. Please help

    Hi all,
    This is a strange problem i'm facing while running the following query.
    This query is run on the local machine which is fetching data from another remote database. All the functions included also are fetching data from the remote database through db links.
    I know lot of db links are into picture, but the requirement is like this only.
    SQL :SELECT billing_extract_subscriber.get_external_id_types_descr
    (ciem.external_id_type,
    'ra_delhi'
    ) AS "EXTERNAL_ID_TYPE",
    ciem.external_id, ciem.subscr_no customer_equip_map_subscr_no,
    ciem.subscr_no_resets, s.subscr_no servive_subscriber_no,
    s.service_active_dt, s.service_inactive_dt, s.is_prepaid,
    billing_extract_subscriber.get_status_values_descr
    (ss.status_id,
    'ra_delhi'
    ) AS "STATUS_VALUES",
    billing_extract_subscriber.get_status_type_values_descr
    (ss.status_type_id,
    'ra_delhi'
    ) AS "STATUS_TYPE_VALUES",
    ss.subscr_no service_status_subscr_no, NULL "point_target",
    NULL "customer_corridors_subscr_no", cmc.component_id, cmc.package_id,
    billing_extract_subscriber.get_component_name_descr
    (cmc.component_id,
    'ra_delhi'
    ) AS "COMPONENT_NAME",
    billing_extract_subscriber.get_package_def_values_descr
    (cmc.package_id,
    'ra_delhi'
    ) AS "PACKAGE_NAME",
    cmc.component_status,
    billing_extract_subscriber.get_mkt_code_values_descr
    (cf.mkt_code,
    'ra_delhi'
    ) AS "MKT_CODE",
    cf.account_no,
    billing_extract_subscriber.get_bill_period_descr
    (cf.bill_period,
    'ra_delhi'
    ) AS "BILL_PERIOD",
    cf.account_type,
    billing_extract_subscriber.get_account_category_descr
    (cf.account_category,
    'ra_delhi'
    ) AS "ACCOUNT_CATEGORY",
    billing_extract_subscriber.get_gender_descr (cf.gender,
    'ra_delhi'
    ) AS "GENDER"
    FROM customer_id_equip_map@ra_delhi ciem,
    service@ra_delhi s,
    service_status@ra_delhi ss,
    cmf_package_component@ra_delhi cmc,
    cmf@ra_delhi cf
    WHERE ciem.subscr_no = s.subscr_no
    AND s.subscr_no = ss.subscr_no
    AND s.parent_account_no = cf.account_no
    AND s.service_active_dt >= cf.date_active
    AND NVL (s.service_inactive_dt, '31-dec-9999') <=NVL (cf.date_inactive, '31-dec-9999')
    AND s.service_active_dt <= ciem.active_date
    AND NVL (s.service_inactive_dt, '31-dec-9999') >=NVL (ciem.inactive_date, '31-dec-9999')
    AND cmc.parent_account_no = cf.account_no
    AND ciem.active_date <= cmc.active_dt
    AND NVL (ciem.inactive_date, '31-dec-9999') >=NVL (cmc.inactive_dt, '31-dec-9999');
    *1. Now when i'm running this sql all as a whole I'm getting the error:*
    ORA-00904: "S"."SERVICE_INACTIVE_DT": invalid identifier
    ORA-02063: preceding line from RA_DELHI
    Sometimes Invalid Identifier, sometimes invalid table etc. is coming.
    *2. Now when i'm running the above query after breaking into two parts is :*
    a. first part .. WHERE clause is removed -
    SELECT billing_extract_subscriber.get_external_id_types_descr
    (ciem.external_id_type,
    'ra_delhi'
    ) AS "EXTERNAL_ID_TYPE",
    ciem.external_id, ciem.subscr_no customer_equip_map_subscr_no,
    ciem.subscr_no_resets, s.subscr_no servive_subscriber_no,
    s.service_active_dt, s.service_inactive_dt, s.is_prepaid,
    billing_extract_subscriber.get_status_values_descr
    (ss.status_id,
    'ra_delhi'
    ) AS "STATUS_VALUES",
    billing_extract_subscriber.get_status_type_values_descr
    (ss.status_type_id,
    'ra_delhi'
    ) AS "STATUS_TYPE_VALUES",
    ss.subscr_no service_status_subscr_no, NULL "point_target",
    NULL "customer_corridors_subscr_no", cmc.component_id, cmc.package_id,
    billing_extract_subscriber.get_component_name_descr
    (cmc.component_id,
    'ra_delhi'
    ) AS "COMPONENT_NAME",
    billing_extract_subscriber.get_package_def_values_descr
    (cmc.package_id,
    'ra_delhi'
    ) AS "PACKAGE_NAME",
    cmc.component_status,
    billing_extract_subscriber.get_mkt_code_values_descr
    (cf.mkt_code,
    'ra_delhi'
    ) AS "MKT_CODE",
    cf.account_no,
    billing_extract_subscriber.get_bill_period_descr
    (cf.bill_period,
    'ra_delhi'
    ) AS "BILL_PERIOD",
    cf.account_type,
    billing_extract_subscriber.get_account_category_descr
    (cf.account_category,
    'ra_delhi'
    ) AS "ACCOUNT_CATEGORY",
    billing_extract_subscriber.get_gender_descr (cf.gender,
    'ra_delhi'
    ) AS "GENDER"
    FROM customer_id_equip_map@ra_delhi ciem,
    service@ra_delhi s,
    service_status@ra_delhi ss,
    cmf_package_component@ra_delhi cmc,
    cmf@ra_delhi cf
    The query is running fine.
    b. when i'm running the another part where i'm removing the functions and replacing with then also it is running fine. e.g*
    SELECT *
    FROM customer_id_equip_map@ra_delhi ciem,
    service@ra_delhi s,
    service_status@ra_delhi ss,
    cmf_package_component@ra_delhi cmc,
    cmf@ra_delhi cf
    WHERE ciem.subscr_no = s.subscr_no
    AND s.subscr_no = ss.subscr_no
    AND s.parent_account_no = cf.account_no
    AND s.service_active_dt >= cf.date_active
    AND NVL (s.service_inactive_dt, '31-dec-9999') <=NVL (cf.date_inactive, '31-dec-9999')
    AND s.service_active_dt <= ciem.active_date
    AND NVL (s.service_inactive_dt, '31-dec-9999') >=NVL (ciem.inactive_date, '31-dec-9999')
    AND cmc.parent_account_no = cf.account_no
    AND ciem.active_date <= cmc.active_dt
    AND NVL (ciem.inactive_date, '31-dec-9999') >=NVL (cmc.inactive_dt, '31-dec-9999');
    *3. I can trace out there is some problem related to the concurrent db links getting opened.*
    i've done resizing the following parameters as well but isn't working :
    NAME TYPE VALUE
    open_cursors integer 3000
    open_links integer 100
    open_links_per_instance integer 100
    read_only_open_delayed boolean FALSE
    session_max_open_files integer 10
    NAME TYPE VALUE
    open_cursors integer 3000
    open_links integer 100
    open_links_per_instance integer 100
    read_only_open_delayed boolean FALSE
    session_max_open_files integer 10
    SQL>
    SQL> sho parameter distributed
    NAME TYPE VALUE
    distributed_lock_timeout integer 300
    I've tried breaking up the query but in any case i'm opening same no. of dblinks. So it din't help me.
    Kindly Suggset what to do? Is there any more parameter which govern maximum db links opened at a time? or is this problem due to someother reasons?
    Database Details :
    Version : 10.2.0.3.0
    Platform : HP UX

    Hi all,
    NO RESPONSE AT ALL???
    Well not a PROBLEM....
    I got my solution so thought of writing it here for everybody's reference.
    SQL> alter session set events '10176 trace name context forever';
    Session altered.
    SQL> alter system flush shared_pool;
    System altered.
    And then I have execute original query given by Prabhat, it's running fine.
    Applies to:
    Oracle Server - Enterprise Edition - Version: 10.2.0.1 to 11.1.0.7
    This problem can occur on any platform.
    Symptoms
    -- Problem Statement:
    Following query over dblink having Local database 9iR2 and remote 10gR2 works..
    select *
    from ctps3.institutions@ctps3 i,
    ctps3.state_types@ctps3 s,ods.institutions oi
    where s.stt_state_type_id (+) = i.stt_state_type_id
    and oi.ctps_insttn_id = i.inst_insttn_id
    and i.inst_modifd_dt = trunc(sysdate)
    and (nvl (oi.inst_state_txt, 'x') <> nvl (s.stt_state_type_nm, 'x'))
    and (nvl (oi.inst_phone_txt, 17) <> nvl (i.inst_phone_txt, 17));
    The same query fails when both local and remote databases are 10g R2, with following errors:
    ERROR at line 2:
    ORA-00904: "OI"."INST_STATE_TXT": invalid identifier
    ORA-02063: preceding line from CTPS3
    Cause
    Outer join query over dblink can fail with ORA-904, as referenced in:
    Bug 6620988 QUERY OVER DBLINK FAILS WITH ORA-904 SELECTING DATE
    Predicates are not checked to verify if they belong to same network node when we attempt to colocate the remote tables. This results in wrongly generating remote query and ORA-904
    REDISCOVERY INFORMATION:
    1. ORA-904
    2. DB link
    3. OJ predicates across network nodes
    4. predicates wrongly pushed network nodes
    Solution
    -- To implement the solution, please execute the following steps::
    Use the workaround of disabling colocated joins via event 10176 and force a hard parse to happen
    (ie by flushing the shared pool), ie:
    SQL> alter session set events '10176 trace name context forever';
    SQL> alter system flush shared_pool;
    or
    For a permanent fix, request a One-Off Backport of 6620988 for the appropiate platform.
    References
    Bug 6620988 - QUERY OVER DBLINK FAILS WITH ORA-904 SELECTING DATE

  • ORA-02020 too many database links

    Hello,
    I'm getting the ORA-02020 too many database links error in my Apex application. This error occurs when I run an interactive report in a page. There are 21 pages and 7 database links in the application. Each page has one interactive report that references one database link in the region source.
    The database links are referenced in each page as follows: database link1 (page 1); database link2 (pages 2 and 3); database link3 (pages 4-7), database link4 (pages 8-15); database link5 (pages 16-18); database link6 (pages 19); and database link7 (pages 20-21). Each database link is referenced to separate schemas in one remote Oracle database.
    I tried to eliminate the error by setting the open_links and open_links_per_instance parameters in the init.ora file of the remote and XE databases to 100 then restarted the both databases. This solution did not work. I created separate Application Processes from the Shared Components to close each database link by implementing the following:
    Click on Shared Components&gt; Logic &gt; Application Processes &gt; Create &gt;
    Name: CLOSE_LINK1
    Sequence: 1
    Point: On Load: Before Header (page template header)
    Type: PL/SQL Anonymous Block
    Process Text: execute immediate 'ALTER SESSION CLOSE DATABASE LINK LINK1';
    Error Message: Database Link Error
    When I run the application now, the ORA-02081: database link is not open error appears.
    Please help anyone! I know someone has experienced these same errors.
    Thanks,
    Ms. H

    Joel,
    Thank you for your quick response. For clarification purposes, could you provide samples for 1) issuing the CLOSE DATABASE LINK and catching the exception; and 2) querying from V$DBLINK prior to issuing the CLOSE DATABASE LINK from the Shared Components &gt; Logic &gt; Application Processes?
    Lets assume the following query with a database link in the region source is referenced for Page 1.
    Page 1 - Employee Listing
    Region Source:
    select ename, job, hiredate
    from scott.emp@link1
    Lets assume the following Application Processes from the Shared Components is referenced to close the database link:
    Click on Shared Components&gt; Logic &gt; Application Processes &gt; Create &gt;
    Name: CLOSE_LINK1
    Sequence: 1
    Point: On Load: Before Header (page template header)
    Type: PL/SQL Anonymous Block
    Process Text: execute immediate 'ALTER SESSION CLOSE DATABASE LINK LINK1';
    Error Message: Database Link Error
    My thoughts are to do the following:
    1. Log in SQL*Plus as SYS
    SQL&gt; grant select to v_$dblink to scott;
    2. In Apex, goto Shared Components&gt; Logic &gt; Application Processes and add the following queries in the Process Text:
    Name: CLOSE_LINK1
    Sequence: 1
    Process Text:
    select db_link from v$dblink;
    execute immediate 'ALTER SESSION CLOSE DATABASE LINK LINK1';
    3. Catch the exception???
    Your assistance is greatly appreciated. :8}
    Ms. H

  • ORA-2020 when trying to verify database links

    I have a problem with verifying database links. I want to create a procedure for checking all database links. this is done like the following:
    declare
    xRefCursor sys_refcursor;
    cursor cDBLinks is
    select db_link
    from user_db_links;
    nDummy number;
    begin
    for rL in cDBLinks loop
    begin
    open xRefCursor for 'select 1 from dual@'||rL.db_link;
    fetch xRefCursor into nDummy;
    close xRefCursor;
    dbms_output.put_line(rL.db_link||' established');
    exception
    when others then
    if xRefCursor%isopen then
    close xRefCursor;
    end if;
    dbms_output.put_line(rL.db_link||' error '||sqlerrm);
    end;
    end loop;
    end;
    when running the procedure, I get a ORA-2020 : 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
    exact after the count of database links specified in the OPEN_LINKS parameter. As you can see I don't issue any transaction, and also I close every cursor I open...so there should be just one db link active in time. note that increasing the OPEN_LINKS parameter will not be a good solution, as I can't tell how much links are existing for a user.
    any suggestions?
    regards
    Christian
    oh, forgot to mention: tried this with 9.2.0.6 and 10.2.0.3 on WINDOWS (so I believe this also occurs in 9.2.0.6 <= DBVersion <= 10.2.0.3)
    Message was edited by:
    W1zard

    As you can see I don't issue any transaction, and also I close every cursor I
    open...so there should be just one db link active in time.This is wrong assumption. The closing of the cursor does not mean DB link will be closed too. You have to close database link explicitly.
    See:
    Managing Database Link
    Rgds.

  • Database link and remote connection issues..

    We have a sql script... Large script that we would rather not post here. The script connects through a dblink to a remote site at the beginning and gets thousands of records. We then process these records locally which takes around 40 minutes. The link is unused for that time. Then the same script attempts to connect again through the dblink and set a confiirmation flag. But this final confirmation step routinely fails. The script used to work fine when the confirmation was at the beginning of the script.
    My understanding is that when you go out through a dblink it creates a session on the remote computer. The session stays active until the local proc ends or the session times out. Successive calls through the dblink from the same proc will reuse the same remote session? Is this true?
    So, Is the inactivity period possibly causing this dblink connectivity issue? We put some test sql select statements in the script here and there selecting from dual at the remote site to test the link inbetween major proc calls. Sometimes even these fail. What do I have to do to keep this link active? Is this even my issue?
    Like I said this script worked fine when the confirmation piece was at the beginning right before we start downloading files and basically no inactivity period... Now we download files and confirm at the end with a 40min to 2 hour inactivity between.
    The remote site as well as the network claim that they are not dropping us... The only piece of information I can provide is that on our side SQLNET.EXPIRE_TIME = 10 and on there side SQLNET.EXPIRE_TIME = 0. I've read that others solved this issue by manipulating this value.
    Here are some of the errror message we get in our script...
    ORA-03114: not connected to ORACLE
    ERROR at line 1:
    ORA-02068: following severe error from DMVAIS
    ORA-03135: connection lost contact
    Edited by: Mark Reichman on Nov 25, 2008 12:47 PM
    Edited by: Mark Reichman on Nov 25, 2008 12:57 PM

    What version of Oracle?
    What are the values of the following database parameters?
    open_links                       max # open links per session
    open_links_per_instance    # open links per instanceAny chance you are exhausting one or both these parameter values?
    Have you ran a check on the network connection between the two machines?
    HTH -- Mark D Powell --

  • Query on database links

    I wanted to know what is the difference between these two types of database links:
    create public database link <>
    connect to <>
    identified by <>
    using 'XYZ';
    and
    create public database link <>
    connect to <>
    identified by <>
    using '(DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 1.1.7.1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SID = XYZ)
    For me the second one works but at some point it started giving me errors
    ORA-02020, till I hit commit.
    Dhiren

    I would expect ORA-02020 to occur with other method also as it has nothing to do with how the link is created. It all depends on how many connections are open at a time.
    Check the limit imposed by open_links parameter.

  • Download error in (osx) adobe desktop app (corrupted download link).

    Here is a discription of the problem. Please consider that some of the wording might not be correct, as I do have to translate the error message from German into English.
    Using OSX 10.9.2, when clicking inside the adobe desktop app (top of the screen bar) on the tap "apps", the following screen (screenshot) appears, which states, translated from top to bottom:
    download error
    download error. Please contact support.
    (link) contact support
    (link/button) download creative cloud -> This button unfortunatly leads to the following error page "http://www.adobe.com/special/errorpages/404.html"
    All apps, like Bridge, Photoshop, Lightroom, etc. are installed and work just fine. So no problem here. I seem however unable to redownload the desktop app (in order to reinstall). As stated above the provided link inside the desktop app itself is coruppted and within the (online) web-based download centre (user logged in) I am only adviced to use the desktop app. This is a dead end and I do not know what to make of this error, let alone solving it. Please help!

    I am sorry Romsinha but this doesn't really help.
    I already restarted the desktop app and while I am obviously online and connected the problem (error message) remains the same. Information within the "home" tap is recieved/loaded  (little blue spinning wheel) stating that various apps recently have been updated. Yet the same loading wheel within the "apps" tap results in an error. My best guess is that some internal link within the app is corrupted, leading to a source on a server that can not be reached.
    UPDATE
    I clean uninstalled adobe creative cloud as discribed in the article you provided (using the cleaner tool) and even uninstalled the browser plugin. After downloading and reinstalling creative cloud the problem however remains the same. "Apps" tap still shows the same problem. "Home" tap now displays the following:

  • Barra de Navegação cinza e preta encobrindo o link, como resolver?

    Instalei o Kubuntu 14.04 e, após a atualização do sistema, na barra de navegação do Firefox os links ficam encobertos pelas cores cina e preto, impedindo a leitura e atrapalhando a navegação.
    Mudei o esquema de cores padrão do sistema, e alterei o tema Gtk mas não resolveu.
    Desinstalei e reinstalei o Firefox mas o problema persiste.
    O que pode ser feito?

    Hmmm,
    # Na [[Location bar autocomplete|barra de endereços]], escreva '''about:config''' e pressione '''Enter'''. É possível que o aviso ''''Isso pode anular a garantia!'''' apareça.
    # Clique no botão '''Serei cuidadoso, prometo!''', para acessar a página about:config.
    # Procure por '''gfx.xrender.enabled''' e mude seu valor para '''false'''.
    # Reinicie o Firefox.
    Ou tente user o Tema [https://addons.mozilla.org/pt-br/firefox/addon/fxchrome/ FXChrome]

  • Links not getting displayed in the contextual panel

    Hi,
    I have created a contextual panel inside a transparent container. And created a method in the same view supply_values of type supply function to supply the values to the panel.Inside the method I have coded like:
    DATA TAB  TYPE WD_THIS->ELEMENTS_N_VIEW_SWITCH.
      DATA LINE TYPE WD_THIS->ELEMENT_N_VIEW_SWITCH.
      LINE-TEXT    = 'User Manual'. "#EC NOTEXT
      LINE-ENABLED = ABAP_TRUE.
      APPEND LINE TO TAB.
      LINE-TEXT    = 'Logout'. "#EC NOTEXT
      LINE-ENABLED = ABAP_TRUE.
      APPEND LINE TO TAB.
      NODE->BIND_TABLE( TAB ).
    Also in the context of the view I have created a node and supplied the method  'supply_values' in the supply function.Under the node I have 2 attributes named text and enabled. Text is of string type and enabled is of boolean type. In the properties of the contextual panel I have bound the visible property with the enabled attribute.
    Now when I am running this application , links are not getting displayed in the contextual panel. Though when I debug TAB contains the values.  Please suggest if I have missed out something or I need to look into the properties of the contextual panel. Any pointers will be really helpful.
    Regards,
    Ashutosh

    Hi,
    Can you elaborate ' ItemEnable property of ViewSwitch'.
    I have already bound the enable property of the panel with a context attribute of type wdy_boolean  but it is still not working. 
    Regards,
    Ashutosh

  • Links default to wrong folder

    Why is it when I go to relink a placed image in the Links pallette it always directs me to the wrong folder (not the one the image lives in but elsewhere). I believe that it is taken me to the last folder I navigated to. thoughts?

    You now have a prefernce for where relink goes, the last folder you used to link, or the folder where the original link resides. It's in the prefs.

  • How do I add URI web link with custom tooltip like "CLICK HERE TO UPDATE" instead of URI web link in tooltip.

    How do I add URI web link with custom tooltip like "CLICK HERE TO UPDATE" instead of URI web link in tooltip.

    You've probably found an answer to this by now, but I think this has been addressed in another forum -- The link below suggested using a button and adding the tooltip to the button. 
    https://forums.adobe.com/thread/304974?start=0&tstart=0
    Sounds like it would work but I haven't actually tried it. 
    Good luck~!

Maybe you are looking for

  • Browser view in Dreamweaver different than IE view on other PCS

    I'm setting up a new webpage.  The page layout, fonts, etc. look great on my page in Dreamweaver CS4 and also when I use the preview in browser tool. I then publish my page out to our Intranet - still looks good to me.  However, everyone else in our

  • Streams

    I am trying to replicate 2 tables from 10gR2 to 11gR1 using streams. I am new to streams based replication and just started reading through the documentation to get this set up.I used the following web link http://www.oracle.com/technology/oramag/ora

  • How to take printout of Subcontact challen

    Hello, How to take Printout of Subcontract challen, Which T.code? Regards, Ramesh

  • How to call a package with ADO?

    I have designed a package which include a procedure. And I have a program coded in ASP. How to call this package with ADO. Please give a sample.

  • Problem changing scroll bar color using UIManager

    I am using the following code to change the color of a JScrollBar just before instantiating a JScrollPane: [ code ] //set colors UIManager.put("ScrollBar.thumbLightShadow", ltGrn ); UIManager.put("ScrollBar.thumb", grn ); UIManager.put("ToolBar.thumb